Merge from mainline
[official-gcc.git] / libdecnumber / configure
blobf14a6aa4a55750d8c5f2dfeb8ed2501535aff3e3
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libdecnumber .
5 # Report bugs to <gcc-bugs@gcc.gnu.org>.
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 ## --------------------- ##
14 # Be Bourne compatible
15 if 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+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29 else
30 as_unset=false
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
40 # NLS nuisances.
41 for 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
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
51 done
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56 else
57 as_expr=false
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if 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=:
98 rm -f conf$$.sh
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
112 for as_dir in $PATH
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
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
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; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
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
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
154 done
156 esac
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 '
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; }; }
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
189 case `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= ;;
194 esac
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if 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'
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222 else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
240 IFS=" $as_nl"
242 # CDPATH.
243 $as_unset CDPATH
246 # Name of the host.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251 exec 6>&1
254 # Initializations.
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
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}
269 # Identity of this package.
270 PACKAGE_NAME='libdecnumber'
271 PACKAGE_TARNAME='libdecnumber'
272 PACKAGE_VERSION=' '
273 PACKAGE_STRING='libdecnumber '
274 PACKAGE_BUGREPORT='gcc-bugs@gcc.gnu.org'
276 ac_unique_file="decNumber.h"
277 # Factoring default headers for most tests.
278 ac_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"
314 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS 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 LIBOBJS LTLIBOBJS'
315 ac_subst_files=''
317 # Initialize some variables set by options.
318 ac_init_help=
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
322 cache_file=/dev/null
323 exec_prefix=NONE
324 no_create=
325 no_recursion=
326 prefix=NONE
327 program_prefix=NONE
328 program_suffix=NONE
329 program_transform_name=s,x,x,
330 silent=
331 site=
332 srcdir=
333 verbose=
334 x_includes=NONE
335 x_libraries=NONE
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
355 ac_prev=
356 for ac_option
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
361 ac_prev=
362 continue
365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367 # Accept the important Cygnus configure options, so we can diagnose typos.
369 case $ac_option in
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 ac_prev=bindir ;;
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 bindir=$ac_optarg ;;
376 -build | --build | --buil | --bui | --bu)
377 ac_prev=build_alias ;;
378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379 build_alias=$ac_optarg ;;
381 -cache-file | --cache-file | --cache-fil | --cache-fi \
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383 ac_prev=cache_file ;;
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386 cache_file=$ac_optarg ;;
388 --config-cache | -C)
389 cache_file=config.cache ;;
391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 ac_prev=datadir ;;
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 | --da=*)
395 datadir=$ac_optarg ;;
397 -disable-* | --disable-*)
398 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399 # Reject names that are not valid shell variable names.
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
406 -enable-* | --enable-*)
407 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408 # Reject names that are not valid shell variable names.
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413 case $ac_option in
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 *) ac_optarg=yes ;;
416 esac
417 eval "enable_$ac_feature='$ac_optarg'" ;;
419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421 | --exec | --exe | --ex)
422 ac_prev=exec_prefix ;;
423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425 | --exec=* | --exe=* | --ex=*)
426 exec_prefix=$ac_optarg ;;
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
430 with_gas=yes ;;
432 -help | --help | --hel | --he | -h)
433 ac_init_help=long ;;
434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435 ac_init_help=recursive ;;
436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437 ac_init_help=short ;;
439 -host | --host | --hos | --ho)
440 ac_prev=host_alias ;;
441 -host=* | --host=* | --hos=* | --ho=*)
442 host_alias=$ac_optarg ;;
444 -includedir | --includedir | --includedi | --included | --include \
445 | --includ | --inclu | --incl | --inc)
446 ac_prev=includedir ;;
447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448 | --includ=* | --inclu=* | --incl=* | --inc=*)
449 includedir=$ac_optarg ;;
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 ac_prev=infodir ;;
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454 infodir=$ac_optarg ;;
456 -libdir | --libdir | --libdi | --libd)
457 ac_prev=libdir ;;
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 libdir=$ac_optarg ;;
461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462 | --libexe | --libex | --libe)
463 ac_prev=libexecdir ;;
464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465 | --libexe=* | --libex=* | --libe=*)
466 libexecdir=$ac_optarg ;;
468 -localstatedir | --localstatedir | --localstatedi | --localstated \
469 | --localstate | --localstat | --localsta | --localst \
470 | --locals | --local | --loca | --loc | --lo)
471 ac_prev=localstatedir ;;
472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475 localstatedir=$ac_optarg ;;
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 ac_prev=mandir ;;
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 mandir=$ac_optarg ;;
482 -nfp | --nfp | --nf)
483 # Obsolete; use --without-fp.
484 with_fp=no ;;
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c | -n)
488 no_create=yes ;;
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 no_recursion=yes ;;
494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496 | --oldin | --oldi | --old | --ol | --o)
497 ac_prev=oldincludedir ;;
498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501 oldincludedir=$ac_optarg ;;
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 ac_prev=prefix ;;
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 prefix=$ac_optarg ;;
508 -program-prefix | --program-prefix | --program-prefi | --program-pref \
509 | --program-pre | --program-pr | --program-p)
510 ac_prev=program_prefix ;;
511 -program-prefix=* | --program-prefix=* | --program-prefi=* \
512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513 program_prefix=$ac_optarg ;;
515 -program-suffix | --program-suffix | --program-suffi | --program-suff \
516 | --program-suf | --program-su | --program-s)
517 ac_prev=program_suffix ;;
518 -program-suffix=* | --program-suffix=* | --program-suffi=* \
519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520 program_suffix=$ac_optarg ;;
522 -program-transform-name | --program-transform-name \
523 | --program-transform-nam | --program-transform-na \
524 | --program-transform-n | --program-transform- \
525 | --program-transform | --program-transfor \
526 | --program-transfo | --program-transf \
527 | --program-trans | --program-tran \
528 | --progr-tra | --program-tr | --program-t)
529 ac_prev=program_transform_name ;;
530 -program-transform-name=* | --program-transform-name=* \
531 | --program-transform-nam=* | --program-transform-na=* \
532 | --program-transform-n=* | --program-transform-=* \
533 | --program-transform=* | --program-transfor=* \
534 | --program-transfo=* | --program-transf=* \
535 | --program-trans=* | --program-tran=* \
536 | --progr-tra=* | --program-tr=* | --program-t=*)
537 program_transform_name=$ac_optarg ;;
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
541 silent=yes ;;
543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 ac_prev=sbindir ;;
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 | --sbi=* | --sb=*)
547 sbindir=$ac_optarg ;;
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
552 | --sha | --sh)
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 | --sha=* | --sh=*)
558 sharedstatedir=$ac_optarg ;;
560 -site | --site | --sit)
561 ac_prev=site ;;
562 -site=* | --site=* | --sit=*)
563 site=$ac_optarg ;;
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 ac_prev=srcdir ;;
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 srcdir=$ac_optarg ;;
570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571 | --syscon | --sysco | --sysc | --sys | --sy)
572 ac_prev=sysconfdir ;;
573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575 sysconfdir=$ac_optarg ;;
577 -target | --target | --targe | --targ | --tar | --ta | --t)
578 ac_prev=target_alias ;;
579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580 target_alias=$ac_optarg ;;
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 verbose=yes ;;
585 -version | --version | --versio | --versi | --vers | -V)
586 ac_init_version=: ;;
588 -with-* | --with-*)
589 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
594 ac_package=`echo $ac_package| sed 's/-/_/g'`
595 case $ac_option in
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 *) ac_optarg=yes ;;
598 esac
599 eval "with_$ac_package='$ac_optarg'" ;;
601 -without-* | --without-*)
602 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603 # Reject names that are not valid shell variable names.
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
610 --x)
611 # Obsolete; use --with-x.
612 with_x=yes ;;
614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615 | --x-incl | --x-inc | --x-in | --x-i)
616 ac_prev=x_includes ;;
617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619 x_includes=$ac_optarg ;;
621 -x-libraries | --x-libraries | --x-librarie | --x-librari \
622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623 ac_prev=x_libraries ;;
624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626 x_libraries=$ac_optarg ;;
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
633 *=*)
634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
641 export $ac_envvar ;;
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 esac
652 done
654 if test -n "$ac_prev"; then
655 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
663 eval ac_val=$`echo $ac_var`
664 case $ac_val in
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
668 esac
669 done
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
675 eval ac_val=$`echo $ac_var`
676 case $ac_val in
677 [\\/$]* | ?:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
680 esac
681 done
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
686 build=$build_alias
687 host=$host_alias
688 target=$target_alias
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692 if test "x$build_alias" = x; then
693 cross_compiling=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
697 cross_compiling=yes
701 ac_tool_prefix=
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704 test "$silent" = yes && exec 6>/dev/null
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709 ac_srcdir_defaulted=yes
710 # Try the directory containing this script, then its parent.
711 ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
717 echo X"$0" |
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
722 s/.*/./; q'`
723 srcdir=$ac_confdir
724 if test ! -r $srcdir/$ac_unique_file; then
725 srcdir=..
727 else
728 ac_srcdir_defaulted=no
730 if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
734 else
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CC_set=${CC+set}
756 ac_env_CC_value=$CC
757 ac_cv_env_CC_set=${CC+set}
758 ac_cv_env_CC_value=$CC
759 ac_env_CFLAGS_set=${CFLAGS+set}
760 ac_env_CFLAGS_value=$CFLAGS
761 ac_cv_env_CFLAGS_set=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value=$CFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CPP_set=${CPP+set}
772 ac_env_CPP_value=$CPP
773 ac_cv_env_CPP_set=${CPP+set}
774 ac_cv_env_CPP_value=$CPP
777 # Report the --help message.
779 if test "$ac_init_help" = "long"; then
780 # Omit some internal or obsolete options to make the list less imposing.
781 # This message is too long to be a string in the A/UX 3.1 sh.
782 cat <<_ACEOF
783 \`configure' configures libdecnumber to adapt to many kinds of systems.
785 Usage: $0 [OPTION]... [VAR=VALUE]...
787 To assign environment variables (e.g., CC, CFLAGS...), specify them as
788 VAR=VALUE. See below for descriptions of some of the useful variables.
790 Defaults for the options are specified in brackets.
792 Configuration:
793 -h, --help display this help and exit
794 --help=short display options specific to this package
795 --help=recursive display the short help of all the included packages
796 -V, --version display version information and exit
797 -q, --quiet, --silent do not print \`checking...' messages
798 --cache-file=FILE cache test results in FILE [disabled]
799 -C, --config-cache alias for \`--cache-file=config.cache'
800 -n, --no-create do not create output files
801 --srcdir=DIR find the sources in DIR [configure dir or \`..']
803 _ACEOF
805 cat <<_ACEOF
806 Installation directories:
807 --prefix=PREFIX install architecture-independent files in PREFIX
808 [$ac_default_prefix]
809 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 [PREFIX]
812 By default, \`make install' will install all the files in
813 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
814 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815 for instance \`--prefix=\$HOME'.
817 For better control, use the options below.
819 Fine tuning of the installation directories:
820 --bindir=DIR user executables [EPREFIX/bin]
821 --sbindir=DIR system admin executables [EPREFIX/sbin]
822 --libexecdir=DIR program executables [EPREFIX/libexec]
823 --datadir=DIR read-only architecture-independent data [PREFIX/share]
824 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
825 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
826 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
827 --libdir=DIR object code libraries [EPREFIX/lib]
828 --includedir=DIR C header files [PREFIX/include]
829 --oldincludedir=DIR C header files for non-gcc [/usr/include]
830 --infodir=DIR info documentation [PREFIX/info]
831 --mandir=DIR man documentation [PREFIX/man]
832 _ACEOF
834 cat <<\_ACEOF
835 _ACEOF
838 if test -n "$ac_init_help"; then
839 case $ac_init_help in
840 short | recursive ) echo "Configuration of libdecnumber :";;
841 esac
842 cat <<\_ACEOF
844 Optional Features:
845 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
846 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
847 --enable-werror-always enable -Werror despite compiler version
848 --enable-maintainer-mode enable rules only needed by maintainers
850 Some influential environment variables:
851 CC C compiler command
852 CFLAGS C compiler flags
853 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
854 nonstandard directory <lib dir>
855 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
856 headers in a nonstandard directory <include dir>
857 CPP C preprocessor
859 Use these variables to override the choices made by `configure' or to help
860 it to find libraries and programs with nonstandard names/locations.
862 Report bugs to <gcc-bugs@gcc.gnu.org>.
863 _ACEOF
866 if test "$ac_init_help" = "recursive"; then
867 # If there are subdirs, report their specific --help.
868 ac_popdir=`pwd`
869 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
870 test -d $ac_dir || continue
871 ac_builddir=.
873 if test "$ac_dir" != .; then
874 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
875 # A "../" for each directory in $ac_dir_suffix.
876 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
877 else
878 ac_dir_suffix= ac_top_builddir=
881 case $srcdir in
882 .) # No --srcdir option. We are building in place.
883 ac_srcdir=.
884 if test -z "$ac_top_builddir"; then
885 ac_top_srcdir=.
886 else
887 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
888 fi ;;
889 [\\/]* | ?:[\\/]* ) # Absolute path.
890 ac_srcdir=$srcdir$ac_dir_suffix;
891 ac_top_srcdir=$srcdir ;;
892 *) # Relative path.
893 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
894 ac_top_srcdir=$ac_top_builddir$srcdir ;;
895 esac
897 # Do not use `cd foo && pwd` to compute absolute paths, because
898 # the directories may not exist.
899 case `pwd` in
900 .) ac_abs_builddir="$ac_dir";;
902 case "$ac_dir" in
903 .) ac_abs_builddir=`pwd`;;
904 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
905 *) ac_abs_builddir=`pwd`/"$ac_dir";;
906 esac;;
907 esac
908 case $ac_abs_builddir in
909 .) ac_abs_top_builddir=${ac_top_builddir}.;;
911 case ${ac_top_builddir}. in
912 .) ac_abs_top_builddir=$ac_abs_builddir;;
913 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
914 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
915 esac;;
916 esac
917 case $ac_abs_builddir in
918 .) ac_abs_srcdir=$ac_srcdir;;
920 case $ac_srcdir in
921 .) ac_abs_srcdir=$ac_abs_builddir;;
922 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
923 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
924 esac;;
925 esac
926 case $ac_abs_builddir in
927 .) ac_abs_top_srcdir=$ac_top_srcdir;;
929 case $ac_top_srcdir in
930 .) ac_abs_top_srcdir=$ac_abs_builddir;;
931 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
932 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
933 esac;;
934 esac
936 cd $ac_dir
937 # Check for guested configure; otherwise get Cygnus style configure.
938 if test -f $ac_srcdir/configure.gnu; then
939 echo
940 $SHELL $ac_srcdir/configure.gnu --help=recursive
941 elif test -f $ac_srcdir/configure; then
942 echo
943 $SHELL $ac_srcdir/configure --help=recursive
944 elif test -f $ac_srcdir/configure.ac ||
945 test -f $ac_srcdir/configure.in; then
946 echo
947 $ac_configure --help
948 else
949 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
951 cd $ac_popdir
952 done
955 test -n "$ac_init_help" && exit 0
956 if $ac_init_version; then
957 cat <<\_ACEOF
958 libdecnumber configure
959 generated by GNU Autoconf 2.59
961 Copyright (C) 2003 Free Software Foundation, Inc.
962 This configure script is free software; the Free Software Foundation
963 gives unlimited permission to copy, distribute and modify it.
964 _ACEOF
965 exit 0
967 exec 5>config.log
968 cat >&5 <<_ACEOF
969 This file contains any messages produced by compilers while
970 running configure, to aid debugging if configure makes a mistake.
972 It was created by libdecnumber $as_me , which was
973 generated by GNU Autoconf 2.59. Invocation command line was
975 $ $0 $@
977 _ACEOF
979 cat <<_ASUNAME
980 ## --------- ##
981 ## Platform. ##
982 ## --------- ##
984 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
985 uname -m = `(uname -m) 2>/dev/null || echo unknown`
986 uname -r = `(uname -r) 2>/dev/null || echo unknown`
987 uname -s = `(uname -s) 2>/dev/null || echo unknown`
988 uname -v = `(uname -v) 2>/dev/null || echo unknown`
990 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
991 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
993 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
994 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
995 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
996 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
997 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
998 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
999 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1001 _ASUNAME
1003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1004 for as_dir in $PATH
1006 IFS=$as_save_IFS
1007 test -z "$as_dir" && as_dir=.
1008 echo "PATH: $as_dir"
1009 done
1011 } >&5
1013 cat >&5 <<_ACEOF
1016 ## ----------- ##
1017 ## Core tests. ##
1018 ## ----------- ##
1020 _ACEOF
1023 # Keep a trace of the command line.
1024 # Strip out --no-create and --no-recursion so they do not pile up.
1025 # Strip out --silent because we don't want to record it for future runs.
1026 # Also quote any args containing shell meta-characters.
1027 # Make two passes to allow for proper duplicate-argument suppression.
1028 ac_configure_args=
1029 ac_configure_args0=
1030 ac_configure_args1=
1031 ac_sep=
1032 ac_must_keep_next=false
1033 for ac_pass in 1 2
1035 for ac_arg
1037 case $ac_arg in
1038 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1039 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1040 | -silent | --silent | --silen | --sile | --sil)
1041 continue ;;
1042 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1043 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1044 esac
1045 case $ac_pass in
1046 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1048 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1049 if test $ac_must_keep_next = true; then
1050 ac_must_keep_next=false # Got value, back to normal.
1051 else
1052 case $ac_arg in
1053 *=* | --config-cache | -C | -disable-* | --disable-* \
1054 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1055 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1056 | -with-* | --with-* | -without-* | --without-* | --x)
1057 case "$ac_configure_args0 " in
1058 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1059 esac
1061 -* ) ac_must_keep_next=true ;;
1062 esac
1064 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1065 # Get rid of the leading space.
1066 ac_sep=" "
1068 esac
1069 done
1070 done
1071 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1072 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1074 # When interrupted or exit'd, cleanup temporary files, and complete
1075 # config.log. We remove comments because anyway the quotes in there
1076 # would cause problems or look ugly.
1077 # WARNING: Be sure not to use single quotes in there, as some shells,
1078 # such as our DU 5.0 friend, will then `close' the trap.
1079 trap 'exit_status=$?
1080 # Save into config.log some information that might help in debugging.
1082 echo
1084 cat <<\_ASBOX
1085 ## ---------------- ##
1086 ## Cache variables. ##
1087 ## ---------------- ##
1088 _ASBOX
1089 echo
1090 # The following way of writing the cache mishandles newlines in values,
1092 (set) 2>&1 |
1093 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1094 *ac_space=\ *)
1095 sed -n \
1096 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1097 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1100 sed -n \
1101 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1103 esac;
1105 echo
1107 cat <<\_ASBOX
1108 ## ----------------- ##
1109 ## Output variables. ##
1110 ## ----------------- ##
1111 _ASBOX
1112 echo
1113 for ac_var in $ac_subst_vars
1115 eval ac_val=$`echo $ac_var`
1116 echo "$ac_var='"'"'$ac_val'"'"'"
1117 done | sort
1118 echo
1120 if test -n "$ac_subst_files"; then
1121 cat <<\_ASBOX
1122 ## ------------- ##
1123 ## Output files. ##
1124 ## ------------- ##
1125 _ASBOX
1126 echo
1127 for ac_var in $ac_subst_files
1129 eval ac_val=$`echo $ac_var`
1130 echo "$ac_var='"'"'$ac_val'"'"'"
1131 done | sort
1132 echo
1135 if test -s confdefs.h; then
1136 cat <<\_ASBOX
1137 ## ----------- ##
1138 ## confdefs.h. ##
1139 ## ----------- ##
1140 _ASBOX
1141 echo
1142 sed "/^$/d" confdefs.h | sort
1143 echo
1145 test "$ac_signal" != 0 &&
1146 echo "$as_me: caught signal $ac_signal"
1147 echo "$as_me: exit $exit_status"
1148 } >&5
1149 rm -f core *.core &&
1150 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1151 exit $exit_status
1153 for ac_signal in 1 2 13 15; do
1154 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1155 done
1156 ac_signal=0
1158 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1159 rm -rf conftest* confdefs.h
1160 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1161 echo >confdefs.h
1163 # Predefined preprocessor variables.
1165 cat >>confdefs.h <<_ACEOF
1166 #define PACKAGE_NAME "$PACKAGE_NAME"
1167 _ACEOF
1170 cat >>confdefs.h <<_ACEOF
1171 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1172 _ACEOF
1175 cat >>confdefs.h <<_ACEOF
1176 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1177 _ACEOF
1180 cat >>confdefs.h <<_ACEOF
1181 #define PACKAGE_STRING "$PACKAGE_STRING"
1182 _ACEOF
1185 cat >>confdefs.h <<_ACEOF
1186 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1187 _ACEOF
1190 # Let the site file select an alternate cache file if it wants to.
1191 # Prefer explicitly selected file to automatically selected ones.
1192 if test -z "$CONFIG_SITE"; then
1193 if test "x$prefix" != xNONE; then
1194 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1195 else
1196 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1199 for ac_site_file in $CONFIG_SITE; do
1200 if test -r "$ac_site_file"; then
1201 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1202 echo "$as_me: loading site script $ac_site_file" >&6;}
1203 sed 's/^/| /' "$ac_site_file" >&5
1204 . "$ac_site_file"
1206 done
1208 if test -r "$cache_file"; then
1209 # Some versions of bash will fail to source /dev/null (special
1210 # files actually), so we avoid doing that.
1211 if test -f "$cache_file"; then
1212 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1213 echo "$as_me: loading cache $cache_file" >&6;}
1214 case $cache_file in
1215 [\\/]* | ?:[\\/]* ) . $cache_file;;
1216 *) . ./$cache_file;;
1217 esac
1219 else
1220 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1221 echo "$as_me: creating cache $cache_file" >&6;}
1222 >$cache_file
1225 # Check that the precious variables saved in the cache have kept the same
1226 # value.
1227 ac_cache_corrupted=false
1228 for ac_var in `(set) 2>&1 |
1229 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1230 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1231 eval ac_new_set=\$ac_env_${ac_var}_set
1232 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1233 eval ac_new_val="\$ac_env_${ac_var}_value"
1234 case $ac_old_set,$ac_new_set in
1235 set,)
1236 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1237 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1238 ac_cache_corrupted=: ;;
1239 ,set)
1240 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1241 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1242 ac_cache_corrupted=: ;;
1243 ,);;
1245 if test "x$ac_old_val" != "x$ac_new_val"; then
1246 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1247 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1248 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1249 echo "$as_me: former value: $ac_old_val" >&2;}
1250 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1251 echo "$as_me: current value: $ac_new_val" >&2;}
1252 ac_cache_corrupted=:
1253 fi;;
1254 esac
1255 # Pass precious variables to config.status.
1256 if test "$ac_new_set" = set; then
1257 case $ac_new_val in
1258 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1259 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1260 *) ac_arg=$ac_var=$ac_new_val ;;
1261 esac
1262 case " $ac_configure_args " in
1263 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1264 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1265 esac
1267 done
1268 if $ac_cache_corrupted; then
1269 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1270 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1271 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1272 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1273 { (exit 1); exit 1; }; }
1276 ac_ext=c
1277 ac_cpp='$CPP $CPPFLAGS'
1278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1309 case ../config in
1310 [\\/]* | ?:[\\/]* ) ac_macro_dir=../config ;;
1311 *) ac_macro_dir=$srcdir/../config ;;
1312 esac
1313 if test -d "$ac_macro_dir"; then :
1314 else
1315 { { echo "$as_me:$LINENO: error: cannot find macro directory \`../config'" >&5
1316 echo "$as_me: error: cannot find macro directory \`../config'" >&2;}
1317 { (exit 1); exit 1; }; }
1321 # Checks for programs.
1322 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1323 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1324 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1325 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1326 echo $ECHO_N "(cached) $ECHO_C" >&6
1327 else
1328 cat >conftest.make <<\_ACEOF
1329 all:
1330 @echo 'ac_maketemp="$(MAKE)"'
1331 _ACEOF
1332 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1333 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1334 if test -n "$ac_maketemp"; then
1335 eval ac_cv_prog_make_${ac_make}_set=yes
1336 else
1337 eval ac_cv_prog_make_${ac_make}_set=no
1339 rm -f conftest.make
1341 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1342 echo "$as_me:$LINENO: result: yes" >&5
1343 echo "${ECHO_T}yes" >&6
1344 SET_MAKE=
1345 else
1346 echo "$as_me:$LINENO: result: no" >&5
1347 echo "${ECHO_T}no" >&6
1348 SET_MAKE="MAKE=${MAKE-make}"
1351 ac_ext=c
1352 ac_cpp='$CPP $CPPFLAGS'
1353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1356 if test -n "$ac_tool_prefix"; then
1357 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1358 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1359 echo "$as_me:$LINENO: checking for $ac_word" >&5
1360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1361 if test "${ac_cv_prog_CC+set}" = set; then
1362 echo $ECHO_N "(cached) $ECHO_C" >&6
1363 else
1364 if test -n "$CC"; then
1365 ac_cv_prog_CC="$CC" # Let the user override the test.
1366 else
1367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1368 for as_dir in $PATH
1370 IFS=$as_save_IFS
1371 test -z "$as_dir" && as_dir=.
1372 for ac_exec_ext in '' $ac_executable_extensions; do
1373 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1374 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1376 break 2
1378 done
1379 done
1383 CC=$ac_cv_prog_CC
1384 if test -n "$CC"; then
1385 echo "$as_me:$LINENO: result: $CC" >&5
1386 echo "${ECHO_T}$CC" >&6
1387 else
1388 echo "$as_me:$LINENO: result: no" >&5
1389 echo "${ECHO_T}no" >&6
1393 if test -z "$ac_cv_prog_CC"; then
1394 ac_ct_CC=$CC
1395 # Extract the first word of "gcc", so it can be a program name with args.
1396 set dummy gcc; ac_word=$2
1397 echo "$as_me:$LINENO: checking for $ac_word" >&5
1398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1399 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1400 echo $ECHO_N "(cached) $ECHO_C" >&6
1401 else
1402 if test -n "$ac_ct_CC"; then
1403 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1404 else
1405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1406 for as_dir in $PATH
1408 IFS=$as_save_IFS
1409 test -z "$as_dir" && as_dir=.
1410 for ac_exec_ext in '' $ac_executable_extensions; do
1411 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1412 ac_cv_prog_ac_ct_CC="gcc"
1413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1414 break 2
1416 done
1417 done
1421 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1422 if test -n "$ac_ct_CC"; then
1423 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1424 echo "${ECHO_T}$ac_ct_CC" >&6
1425 else
1426 echo "$as_me:$LINENO: result: no" >&5
1427 echo "${ECHO_T}no" >&6
1430 CC=$ac_ct_CC
1431 else
1432 CC="$ac_cv_prog_CC"
1435 if test -z "$CC"; then
1436 if test -n "$ac_tool_prefix"; then
1437 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1438 set dummy ${ac_tool_prefix}cc; ac_word=$2
1439 echo "$as_me:$LINENO: checking for $ac_word" >&5
1440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1441 if test "${ac_cv_prog_CC+set}" = set; then
1442 echo $ECHO_N "(cached) $ECHO_C" >&6
1443 else
1444 if test -n "$CC"; then
1445 ac_cv_prog_CC="$CC" # Let the user override the test.
1446 else
1447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1448 for as_dir in $PATH
1450 IFS=$as_save_IFS
1451 test -z "$as_dir" && as_dir=.
1452 for ac_exec_ext in '' $ac_executable_extensions; do
1453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1454 ac_cv_prog_CC="${ac_tool_prefix}cc"
1455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1456 break 2
1458 done
1459 done
1463 CC=$ac_cv_prog_CC
1464 if test -n "$CC"; then
1465 echo "$as_me:$LINENO: result: $CC" >&5
1466 echo "${ECHO_T}$CC" >&6
1467 else
1468 echo "$as_me:$LINENO: result: no" >&5
1469 echo "${ECHO_T}no" >&6
1473 if test -z "$ac_cv_prog_CC"; then
1474 ac_ct_CC=$CC
1475 # Extract the first word of "cc", so it can be a program name with args.
1476 set dummy cc; ac_word=$2
1477 echo "$as_me:$LINENO: checking for $ac_word" >&5
1478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1479 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1480 echo $ECHO_N "(cached) $ECHO_C" >&6
1481 else
1482 if test -n "$ac_ct_CC"; then
1483 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1484 else
1485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1486 for as_dir in $PATH
1488 IFS=$as_save_IFS
1489 test -z "$as_dir" && as_dir=.
1490 for ac_exec_ext in '' $ac_executable_extensions; do
1491 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1492 ac_cv_prog_ac_ct_CC="cc"
1493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1494 break 2
1496 done
1497 done
1501 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1502 if test -n "$ac_ct_CC"; then
1503 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1504 echo "${ECHO_T}$ac_ct_CC" >&6
1505 else
1506 echo "$as_me:$LINENO: result: no" >&5
1507 echo "${ECHO_T}no" >&6
1510 CC=$ac_ct_CC
1511 else
1512 CC="$ac_cv_prog_CC"
1516 if test -z "$CC"; then
1517 # Extract the first word of "cc", so it can be a program name with args.
1518 set dummy cc; ac_word=$2
1519 echo "$as_me:$LINENO: checking for $ac_word" >&5
1520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1521 if test "${ac_cv_prog_CC+set}" = set; then
1522 echo $ECHO_N "(cached) $ECHO_C" >&6
1523 else
1524 if test -n "$CC"; then
1525 ac_cv_prog_CC="$CC" # Let the user override the test.
1526 else
1527 ac_prog_rejected=no
1528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1529 for as_dir in $PATH
1531 IFS=$as_save_IFS
1532 test -z "$as_dir" && as_dir=.
1533 for ac_exec_ext in '' $ac_executable_extensions; do
1534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1535 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1536 ac_prog_rejected=yes
1537 continue
1539 ac_cv_prog_CC="cc"
1540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1541 break 2
1543 done
1544 done
1546 if test $ac_prog_rejected = yes; then
1547 # We found a bogon in the path, so make sure we never use it.
1548 set dummy $ac_cv_prog_CC
1549 shift
1550 if test $# != 0; then
1551 # We chose a different compiler from the bogus one.
1552 # However, it has the same basename, so the bogon will be chosen
1553 # first if we set CC to just the basename; use the full file name.
1554 shift
1555 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1560 CC=$ac_cv_prog_CC
1561 if test -n "$CC"; then
1562 echo "$as_me:$LINENO: result: $CC" >&5
1563 echo "${ECHO_T}$CC" >&6
1564 else
1565 echo "$as_me:$LINENO: result: no" >&5
1566 echo "${ECHO_T}no" >&6
1570 if test -z "$CC"; then
1571 if test -n "$ac_tool_prefix"; then
1572 for ac_prog in cl
1574 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1575 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1576 echo "$as_me:$LINENO: checking for $ac_word" >&5
1577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1578 if test "${ac_cv_prog_CC+set}" = set; then
1579 echo $ECHO_N "(cached) $ECHO_C" >&6
1580 else
1581 if test -n "$CC"; then
1582 ac_cv_prog_CC="$CC" # Let the user override the test.
1583 else
1584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1585 for as_dir in $PATH
1587 IFS=$as_save_IFS
1588 test -z "$as_dir" && as_dir=.
1589 for ac_exec_ext in '' $ac_executable_extensions; do
1590 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1591 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1593 break 2
1595 done
1596 done
1600 CC=$ac_cv_prog_CC
1601 if test -n "$CC"; then
1602 echo "$as_me:$LINENO: result: $CC" >&5
1603 echo "${ECHO_T}$CC" >&6
1604 else
1605 echo "$as_me:$LINENO: result: no" >&5
1606 echo "${ECHO_T}no" >&6
1609 test -n "$CC" && break
1610 done
1612 if test -z "$CC"; then
1613 ac_ct_CC=$CC
1614 for ac_prog in cl
1616 # Extract the first word of "$ac_prog", so it can be a program name with args.
1617 set dummy $ac_prog; ac_word=$2
1618 echo "$as_me:$LINENO: checking for $ac_word" >&5
1619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1620 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1621 echo $ECHO_N "(cached) $ECHO_C" >&6
1622 else
1623 if test -n "$ac_ct_CC"; then
1624 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1625 else
1626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1627 for as_dir in $PATH
1629 IFS=$as_save_IFS
1630 test -z "$as_dir" && as_dir=.
1631 for ac_exec_ext in '' $ac_executable_extensions; do
1632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1633 ac_cv_prog_ac_ct_CC="$ac_prog"
1634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1635 break 2
1637 done
1638 done
1642 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1643 if test -n "$ac_ct_CC"; then
1644 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1645 echo "${ECHO_T}$ac_ct_CC" >&6
1646 else
1647 echo "$as_me:$LINENO: result: no" >&5
1648 echo "${ECHO_T}no" >&6
1651 test -n "$ac_ct_CC" && break
1652 done
1654 CC=$ac_ct_CC
1660 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1661 See \`config.log' for more details." >&5
1662 echo "$as_me: error: no acceptable C compiler found in \$PATH
1663 See \`config.log' for more details." >&2;}
1664 { (exit 1); exit 1; }; }
1666 # Provide some information about the compiler.
1667 echo "$as_me:$LINENO:" \
1668 "checking for C compiler version" >&5
1669 ac_compiler=`set X $ac_compile; echo $2`
1670 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1671 (eval $ac_compiler --version </dev/null >&5) 2>&5
1672 ac_status=$?
1673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1674 (exit $ac_status); }
1675 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1676 (eval $ac_compiler -v </dev/null >&5) 2>&5
1677 ac_status=$?
1678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1679 (exit $ac_status); }
1680 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1681 (eval $ac_compiler -V </dev/null >&5) 2>&5
1682 ac_status=$?
1683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1684 (exit $ac_status); }
1686 cat >conftest.$ac_ext <<_ACEOF
1687 /* confdefs.h. */
1688 _ACEOF
1689 cat confdefs.h >>conftest.$ac_ext
1690 cat >>conftest.$ac_ext <<_ACEOF
1691 /* end confdefs.h. */
1694 main ()
1698 return 0;
1700 _ACEOF
1701 ac_clean_files_save=$ac_clean_files
1702 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1703 # Try to create an executable without -o first, disregard a.out.
1704 # It will help us diagnose broken compilers, and finding out an intuition
1705 # of exeext.
1706 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1707 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1708 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1709 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1710 (eval $ac_link_default) 2>&5
1711 ac_status=$?
1712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1713 (exit $ac_status); }; then
1714 # Find the output, starting from the most likely. This scheme is
1715 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1716 # resort.
1718 # Be careful to initialize this variable, since it used to be cached.
1719 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1720 ac_cv_exeext=
1721 # b.out is created by i960 compilers.
1722 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1724 test -f "$ac_file" || continue
1725 case $ac_file in
1726 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1728 conftest.$ac_ext )
1729 # This is the source file.
1731 [ab].out )
1732 # We found the default executable, but exeext='' is most
1733 # certainly right.
1734 break;;
1735 *.* )
1736 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1737 # FIXME: I believe we export ac_cv_exeext for Libtool,
1738 # but it would be cool to find out if it's true. Does anybody
1739 # maintain Libtool? --akim.
1740 export ac_cv_exeext
1741 break;;
1743 break;;
1744 esac
1745 done
1746 else
1747 echo "$as_me: failed program was:" >&5
1748 sed 's/^/| /' conftest.$ac_ext >&5
1750 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1751 See \`config.log' for more details." >&5
1752 echo "$as_me: error: C compiler cannot create executables
1753 See \`config.log' for more details." >&2;}
1754 { (exit 77); exit 77; }; }
1757 ac_exeext=$ac_cv_exeext
1758 echo "$as_me:$LINENO: result: $ac_file" >&5
1759 echo "${ECHO_T}$ac_file" >&6
1761 # Check the compiler produces executables we can run. If not, either
1762 # the compiler is broken, or we cross compile.
1763 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1764 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1765 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1766 # If not cross compiling, check that we can run a simple program.
1767 if test "$cross_compiling" != yes; then
1768 if { ac_try='./$ac_file'
1769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1770 (eval $ac_try) 2>&5
1771 ac_status=$?
1772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1773 (exit $ac_status); }; }; then
1774 cross_compiling=no
1775 else
1776 if test "$cross_compiling" = maybe; then
1777 cross_compiling=yes
1778 else
1779 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1780 If you meant to cross compile, use \`--host'.
1781 See \`config.log' for more details." >&5
1782 echo "$as_me: error: cannot run C compiled programs.
1783 If you meant to cross compile, use \`--host'.
1784 See \`config.log' for more details." >&2;}
1785 { (exit 1); exit 1; }; }
1789 echo "$as_me:$LINENO: result: yes" >&5
1790 echo "${ECHO_T}yes" >&6
1792 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1793 ac_clean_files=$ac_clean_files_save
1794 # Check the compiler produces executables we can run. If not, either
1795 # the compiler is broken, or we cross compile.
1796 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1797 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1798 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1799 echo "${ECHO_T}$cross_compiling" >&6
1801 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1802 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1804 (eval $ac_link) 2>&5
1805 ac_status=$?
1806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1807 (exit $ac_status); }; then
1808 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1809 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1810 # work properly (i.e., refer to `conftest.exe'), while it won't with
1811 # `rm'.
1812 for ac_file in conftest.exe conftest conftest.*; do
1813 test -f "$ac_file" || continue
1814 case $ac_file in
1815 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1816 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1817 export ac_cv_exeext
1818 break;;
1819 * ) break;;
1820 esac
1821 done
1822 else
1823 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1824 See \`config.log' for more details." >&5
1825 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1826 See \`config.log' for more details." >&2;}
1827 { (exit 1); exit 1; }; }
1830 rm -f conftest$ac_cv_exeext
1831 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1832 echo "${ECHO_T}$ac_cv_exeext" >&6
1834 rm -f conftest.$ac_ext
1835 EXEEXT=$ac_cv_exeext
1836 ac_exeext=$EXEEXT
1837 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1838 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1839 if test "${ac_cv_objext+set}" = set; then
1840 echo $ECHO_N "(cached) $ECHO_C" >&6
1841 else
1842 cat >conftest.$ac_ext <<_ACEOF
1843 /* confdefs.h. */
1844 _ACEOF
1845 cat confdefs.h >>conftest.$ac_ext
1846 cat >>conftest.$ac_ext <<_ACEOF
1847 /* end confdefs.h. */
1850 main ()
1854 return 0;
1856 _ACEOF
1857 rm -f conftest.o conftest.obj
1858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1859 (eval $ac_compile) 2>&5
1860 ac_status=$?
1861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1862 (exit $ac_status); }; then
1863 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1864 case $ac_file in
1865 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1866 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1867 break;;
1868 esac
1869 done
1870 else
1871 echo "$as_me: failed program was:" >&5
1872 sed 's/^/| /' conftest.$ac_ext >&5
1874 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1875 See \`config.log' for more details." >&5
1876 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1877 See \`config.log' for more details." >&2;}
1878 { (exit 1); exit 1; }; }
1881 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1883 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1884 echo "${ECHO_T}$ac_cv_objext" >&6
1885 OBJEXT=$ac_cv_objext
1886 ac_objext=$OBJEXT
1887 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1888 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1889 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1890 echo $ECHO_N "(cached) $ECHO_C" >&6
1891 else
1892 cat >conftest.$ac_ext <<_ACEOF
1893 /* confdefs.h. */
1894 _ACEOF
1895 cat confdefs.h >>conftest.$ac_ext
1896 cat >>conftest.$ac_ext <<_ACEOF
1897 /* end confdefs.h. */
1900 main ()
1902 #ifndef __GNUC__
1903 choke me
1904 #endif
1907 return 0;
1909 _ACEOF
1910 rm -f conftest.$ac_objext
1911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1912 (eval $ac_compile) 2>conftest.er1
1913 ac_status=$?
1914 grep -v '^ *+' conftest.er1 >conftest.err
1915 rm -f conftest.er1
1916 cat conftest.err >&5
1917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1918 (exit $ac_status); } &&
1919 { ac_try='test -z "$ac_c_werror_flag"
1920 || test ! -s conftest.err'
1921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1922 (eval $ac_try) 2>&5
1923 ac_status=$?
1924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1925 (exit $ac_status); }; } &&
1926 { ac_try='test -s conftest.$ac_objext'
1927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1928 (eval $ac_try) 2>&5
1929 ac_status=$?
1930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1931 (exit $ac_status); }; }; then
1932 ac_compiler_gnu=yes
1933 else
1934 echo "$as_me: failed program was:" >&5
1935 sed 's/^/| /' conftest.$ac_ext >&5
1937 ac_compiler_gnu=no
1939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1940 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1943 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1944 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1945 GCC=`test $ac_compiler_gnu = yes && echo yes`
1946 ac_test_CFLAGS=${CFLAGS+set}
1947 ac_save_CFLAGS=$CFLAGS
1948 CFLAGS="-g"
1949 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1950 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1951 if test "${ac_cv_prog_cc_g+set}" = set; then
1952 echo $ECHO_N "(cached) $ECHO_C" >&6
1953 else
1954 cat >conftest.$ac_ext <<_ACEOF
1955 /* confdefs.h. */
1956 _ACEOF
1957 cat confdefs.h >>conftest.$ac_ext
1958 cat >>conftest.$ac_ext <<_ACEOF
1959 /* end confdefs.h. */
1962 main ()
1966 return 0;
1968 _ACEOF
1969 rm -f conftest.$ac_objext
1970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1971 (eval $ac_compile) 2>conftest.er1
1972 ac_status=$?
1973 grep -v '^ *+' conftest.er1 >conftest.err
1974 rm -f conftest.er1
1975 cat conftest.err >&5
1976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1977 (exit $ac_status); } &&
1978 { ac_try='test -z "$ac_c_werror_flag"
1979 || test ! -s conftest.err'
1980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1981 (eval $ac_try) 2>&5
1982 ac_status=$?
1983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1984 (exit $ac_status); }; } &&
1985 { ac_try='test -s conftest.$ac_objext'
1986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1987 (eval $ac_try) 2>&5
1988 ac_status=$?
1989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1990 (exit $ac_status); }; }; then
1991 ac_cv_prog_cc_g=yes
1992 else
1993 echo "$as_me: failed program was:" >&5
1994 sed 's/^/| /' conftest.$ac_ext >&5
1996 ac_cv_prog_cc_g=no
1998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2000 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2001 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2002 if test "$ac_test_CFLAGS" = set; then
2003 CFLAGS=$ac_save_CFLAGS
2004 elif test $ac_cv_prog_cc_g = yes; then
2005 if test "$GCC" = yes; then
2006 CFLAGS="-g -O2"
2007 else
2008 CFLAGS="-g"
2010 else
2011 if test "$GCC" = yes; then
2012 CFLAGS="-O2"
2013 else
2014 CFLAGS=
2017 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2018 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2019 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2020 echo $ECHO_N "(cached) $ECHO_C" >&6
2021 else
2022 ac_cv_prog_cc_stdc=no
2023 ac_save_CC=$CC
2024 cat >conftest.$ac_ext <<_ACEOF
2025 /* confdefs.h. */
2026 _ACEOF
2027 cat confdefs.h >>conftest.$ac_ext
2028 cat >>conftest.$ac_ext <<_ACEOF
2029 /* end confdefs.h. */
2030 #include <stdarg.h>
2031 #include <stdio.h>
2032 #include <sys/types.h>
2033 #include <sys/stat.h>
2034 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2035 struct buf { int x; };
2036 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2037 static char *e (p, i)
2038 char **p;
2039 int i;
2041 return p[i];
2043 static char *f (char * (*g) (char **, int), char **p, ...)
2045 char *s;
2046 va_list v;
2047 va_start (v,p);
2048 s = g (p, va_arg (v,int));
2049 va_end (v);
2050 return s;
2053 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2054 function prototypes and stuff, but not '\xHH' hex character constants.
2055 These don't provoke an error unfortunately, instead are silently treated
2056 as 'x'. The following induces an error, until -std1 is added to get
2057 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2058 array size at least. It's necessary to write '\x00'==0 to get something
2059 that's true only with -std1. */
2060 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2062 int test (int i, double x);
2063 struct s1 {int (*f) (int a);};
2064 struct s2 {int (*f) (double a);};
2065 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2066 int argc;
2067 char **argv;
2069 main ()
2071 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2073 return 0;
2075 _ACEOF
2076 # Don't try gcc -ansi; that turns off useful extensions and
2077 # breaks some systems' header files.
2078 # AIX -qlanglvl=ansi
2079 # Ultrix and OSF/1 -std1
2080 # HP-UX 10.20 and later -Ae
2081 # HP-UX older versions -Aa -D_HPUX_SOURCE
2082 # SVR4 -Xc -D__EXTENSIONS__
2083 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2085 CC="$ac_save_CC $ac_arg"
2086 rm -f conftest.$ac_objext
2087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2088 (eval $ac_compile) 2>conftest.er1
2089 ac_status=$?
2090 grep -v '^ *+' conftest.er1 >conftest.err
2091 rm -f conftest.er1
2092 cat conftest.err >&5
2093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094 (exit $ac_status); } &&
2095 { ac_try='test -z "$ac_c_werror_flag"
2096 || test ! -s conftest.err'
2097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2098 (eval $ac_try) 2>&5
2099 ac_status=$?
2100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101 (exit $ac_status); }; } &&
2102 { ac_try='test -s conftest.$ac_objext'
2103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2104 (eval $ac_try) 2>&5
2105 ac_status=$?
2106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107 (exit $ac_status); }; }; then
2108 ac_cv_prog_cc_stdc=$ac_arg
2109 break
2110 else
2111 echo "$as_me: failed program was:" >&5
2112 sed 's/^/| /' conftest.$ac_ext >&5
2115 rm -f conftest.err conftest.$ac_objext
2116 done
2117 rm -f conftest.$ac_ext conftest.$ac_objext
2118 CC=$ac_save_CC
2122 case "x$ac_cv_prog_cc_stdc" in
2123 x|xno)
2124 echo "$as_me:$LINENO: result: none needed" >&5
2125 echo "${ECHO_T}none needed" >&6 ;;
2127 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2128 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2129 CC="$CC $ac_cv_prog_cc_stdc" ;;
2130 esac
2132 # Some people use a C++ compiler to compile C. Since we use `exit',
2133 # in C++ we need to declare it. In case someone uses the same compiler
2134 # for both compiling C and C++ we need to have the C++ compiler decide
2135 # the declaration of exit, since it's the most demanding environment.
2136 cat >conftest.$ac_ext <<_ACEOF
2137 #ifndef __cplusplus
2138 choke me
2139 #endif
2140 _ACEOF
2141 rm -f conftest.$ac_objext
2142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2143 (eval $ac_compile) 2>conftest.er1
2144 ac_status=$?
2145 grep -v '^ *+' conftest.er1 >conftest.err
2146 rm -f conftest.er1
2147 cat conftest.err >&5
2148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149 (exit $ac_status); } &&
2150 { ac_try='test -z "$ac_c_werror_flag"
2151 || test ! -s conftest.err'
2152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2153 (eval $ac_try) 2>&5
2154 ac_status=$?
2155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156 (exit $ac_status); }; } &&
2157 { ac_try='test -s conftest.$ac_objext'
2158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2159 (eval $ac_try) 2>&5
2160 ac_status=$?
2161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162 (exit $ac_status); }; }; then
2163 for ac_declaration in \
2164 '' \
2165 'extern "C" void std::exit (int) throw (); using std::exit;' \
2166 'extern "C" void std::exit (int); using std::exit;' \
2167 'extern "C" void exit (int) throw ();' \
2168 'extern "C" void exit (int);' \
2169 'void exit (int);'
2171 cat >conftest.$ac_ext <<_ACEOF
2172 /* confdefs.h. */
2173 _ACEOF
2174 cat confdefs.h >>conftest.$ac_ext
2175 cat >>conftest.$ac_ext <<_ACEOF
2176 /* end confdefs.h. */
2177 $ac_declaration
2178 #include <stdlib.h>
2180 main ()
2182 exit (42);
2184 return 0;
2186 _ACEOF
2187 rm -f conftest.$ac_objext
2188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2189 (eval $ac_compile) 2>conftest.er1
2190 ac_status=$?
2191 grep -v '^ *+' conftest.er1 >conftest.err
2192 rm -f conftest.er1
2193 cat conftest.err >&5
2194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2195 (exit $ac_status); } &&
2196 { ac_try='test -z "$ac_c_werror_flag"
2197 || test ! -s conftest.err'
2198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2199 (eval $ac_try) 2>&5
2200 ac_status=$?
2201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202 (exit $ac_status); }; } &&
2203 { ac_try='test -s conftest.$ac_objext'
2204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2205 (eval $ac_try) 2>&5
2206 ac_status=$?
2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208 (exit $ac_status); }; }; then
2210 else
2211 echo "$as_me: failed program was:" >&5
2212 sed 's/^/| /' conftest.$ac_ext >&5
2214 continue
2216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2217 cat >conftest.$ac_ext <<_ACEOF
2218 /* confdefs.h. */
2219 _ACEOF
2220 cat confdefs.h >>conftest.$ac_ext
2221 cat >>conftest.$ac_ext <<_ACEOF
2222 /* end confdefs.h. */
2223 $ac_declaration
2225 main ()
2227 exit (42);
2229 return 0;
2231 _ACEOF
2232 rm -f conftest.$ac_objext
2233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2234 (eval $ac_compile) 2>conftest.er1
2235 ac_status=$?
2236 grep -v '^ *+' conftest.er1 >conftest.err
2237 rm -f conftest.er1
2238 cat conftest.err >&5
2239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240 (exit $ac_status); } &&
2241 { ac_try='test -z "$ac_c_werror_flag"
2242 || test ! -s conftest.err'
2243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2244 (eval $ac_try) 2>&5
2245 ac_status=$?
2246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247 (exit $ac_status); }; } &&
2248 { ac_try='test -s conftest.$ac_objext'
2249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2250 (eval $ac_try) 2>&5
2251 ac_status=$?
2252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253 (exit $ac_status); }; }; then
2254 break
2255 else
2256 echo "$as_me: failed program was:" >&5
2257 sed 's/^/| /' conftest.$ac_ext >&5
2260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2261 done
2262 rm -f conftest*
2263 if test -n "$ac_declaration"; then
2264 echo '#ifdef __cplusplus' >>confdefs.h
2265 echo $ac_declaration >>confdefs.h
2266 echo '#endif' >>confdefs.h
2269 else
2270 echo "$as_me: failed program was:" >&5
2271 sed 's/^/| /' conftest.$ac_ext >&5
2274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2275 ac_ext=c
2276 ac_cpp='$CPP $CPPFLAGS'
2277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2281 if test -n "$ac_tool_prefix"; then
2282 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2283 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2284 echo "$as_me:$LINENO: checking for $ac_word" >&5
2285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2286 if test "${ac_cv_prog_RANLIB+set}" = set; then
2287 echo $ECHO_N "(cached) $ECHO_C" >&6
2288 else
2289 if test -n "$RANLIB"; then
2290 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2291 else
2292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2293 for as_dir in $PATH
2295 IFS=$as_save_IFS
2296 test -z "$as_dir" && as_dir=.
2297 for ac_exec_ext in '' $ac_executable_extensions; do
2298 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2299 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2301 break 2
2303 done
2304 done
2308 RANLIB=$ac_cv_prog_RANLIB
2309 if test -n "$RANLIB"; then
2310 echo "$as_me:$LINENO: result: $RANLIB" >&5
2311 echo "${ECHO_T}$RANLIB" >&6
2312 else
2313 echo "$as_me:$LINENO: result: no" >&5
2314 echo "${ECHO_T}no" >&6
2318 if test -z "$ac_cv_prog_RANLIB"; then
2319 ac_ct_RANLIB=$RANLIB
2320 # Extract the first word of "ranlib", so it can be a program name with args.
2321 set dummy ranlib; ac_word=$2
2322 echo "$as_me:$LINENO: checking for $ac_word" >&5
2323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2324 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2325 echo $ECHO_N "(cached) $ECHO_C" >&6
2326 else
2327 if test -n "$ac_ct_RANLIB"; then
2328 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2329 else
2330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2331 for as_dir in $PATH
2333 IFS=$as_save_IFS
2334 test -z "$as_dir" && as_dir=.
2335 for ac_exec_ext in '' $ac_executable_extensions; do
2336 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2337 ac_cv_prog_ac_ct_RANLIB="ranlib"
2338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2339 break 2
2341 done
2342 done
2344 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2347 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2348 if test -n "$ac_ct_RANLIB"; then
2349 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2350 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2351 else
2352 echo "$as_me:$LINENO: result: no" >&5
2353 echo "${ECHO_T}no" >&6
2356 RANLIB=$ac_ct_RANLIB
2357 else
2358 RANLIB="$ac_cv_prog_RANLIB"
2362 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
2363 for ac_prog in aclocal
2365 # Extract the first word of "$ac_prog", so it can be a program name with args.
2366 set dummy $ac_prog; ac_word=$2
2367 echo "$as_me:$LINENO: checking for $ac_word" >&5
2368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2369 if test "${ac_cv_prog_ACLOCAL+set}" = set; then
2370 echo $ECHO_N "(cached) $ECHO_C" >&6
2371 else
2372 if test -n "$ACLOCAL"; then
2373 ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test.
2374 else
2375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2376 for as_dir in $PATH
2378 IFS=$as_save_IFS
2379 test -z "$as_dir" && as_dir=.
2380 for ac_exec_ext in '' $ac_executable_extensions; do
2381 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2382 ac_cv_prog_ACLOCAL="$ac_prog"
2383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2384 break 2
2386 done
2387 done
2391 ACLOCAL=$ac_cv_prog_ACLOCAL
2392 if test -n "$ACLOCAL"; then
2393 echo "$as_me:$LINENO: result: $ACLOCAL" >&5
2394 echo "${ECHO_T}$ACLOCAL" >&6
2395 else
2396 echo "$as_me:$LINENO: result: no" >&5
2397 echo "${ECHO_T}no" >&6
2400 test -n "$ACLOCAL" && break
2401 done
2402 test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal"
2404 for ac_prog in autoconf
2406 # Extract the first word of "$ac_prog", so it can be a program name with args.
2407 set dummy $ac_prog; ac_word=$2
2408 echo "$as_me:$LINENO: checking for $ac_word" >&5
2409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2410 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
2411 echo $ECHO_N "(cached) $ECHO_C" >&6
2412 else
2413 if test -n "$AUTOCONF"; then
2414 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
2415 else
2416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2417 for as_dir in $PATH
2419 IFS=$as_save_IFS
2420 test -z "$as_dir" && as_dir=.
2421 for ac_exec_ext in '' $ac_executable_extensions; do
2422 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2423 ac_cv_prog_AUTOCONF="$ac_prog"
2424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2425 break 2
2427 done
2428 done
2432 AUTOCONF=$ac_cv_prog_AUTOCONF
2433 if test -n "$AUTOCONF"; then
2434 echo "$as_me:$LINENO: result: $AUTOCONF" >&5
2435 echo "${ECHO_T}$AUTOCONF" >&6
2436 else
2437 echo "$as_me:$LINENO: result: no" >&5
2438 echo "${ECHO_T}no" >&6
2441 test -n "$AUTOCONF" && break
2442 done
2443 test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf"
2445 for ac_prog in autoheader
2447 # Extract the first word of "$ac_prog", so it can be a program name with args.
2448 set dummy $ac_prog; ac_word=$2
2449 echo "$as_me:$LINENO: checking for $ac_word" >&5
2450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2451 if test "${ac_cv_prog_AUTOHEADER+set}" = set; then
2452 echo $ECHO_N "(cached) $ECHO_C" >&6
2453 else
2454 if test -n "$AUTOHEADER"; then
2455 ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test.
2456 else
2457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2458 for as_dir in $PATH
2460 IFS=$as_save_IFS
2461 test -z "$as_dir" && as_dir=.
2462 for ac_exec_ext in '' $ac_executable_extensions; do
2463 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2464 ac_cv_prog_AUTOHEADER="$ac_prog"
2465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2466 break 2
2468 done
2469 done
2473 AUTOHEADER=$ac_cv_prog_AUTOHEADER
2474 if test -n "$AUTOHEADER"; then
2475 echo "$as_me:$LINENO: result: $AUTOHEADER" >&5
2476 echo "${ECHO_T}$AUTOHEADER" >&6
2477 else
2478 echo "$as_me:$LINENO: result: no" >&5
2479 echo "${ECHO_T}no" >&6
2482 test -n "$AUTOHEADER" && break
2483 done
2484 test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader"
2487 # Figure out what compiler warnings we can enable.
2488 # See config/warnings.m4 for details.
2491 WARN_CFLAGS=
2492 save_CFLAGS="$CFLAGS"
2493 for option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
2494 -Wmissing-prototypes -Wold-style-definition \
2495 -Wmissing-format-attribute; do
2496 as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
2498 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
2499 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
2500 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
2501 echo $ECHO_N "(cached) $ECHO_C" >&6
2502 else
2503 CFLAGS="$option"
2504 cat >conftest.$ac_ext <<_ACEOF
2505 /* confdefs.h. */
2506 _ACEOF
2507 cat confdefs.h >>conftest.$ac_ext
2508 cat >>conftest.$ac_ext <<_ACEOF
2509 /* end confdefs.h. */
2512 main ()
2516 return 0;
2518 _ACEOF
2519 rm -f conftest.$ac_objext
2520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2521 (eval $ac_compile) 2>conftest.er1
2522 ac_status=$?
2523 grep -v '^ *+' conftest.er1 >conftest.err
2524 rm -f conftest.er1
2525 cat conftest.err >&5
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); } &&
2528 { ac_try='test -z "$ac_c_werror_flag"
2529 || test ! -s conftest.err'
2530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2531 (eval $ac_try) 2>&5
2532 ac_status=$?
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); }; } &&
2535 { ac_try='test -s conftest.$ac_objext'
2536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2537 (eval $ac_try) 2>&5
2538 ac_status=$?
2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 (exit $ac_status); }; }; then
2541 eval "$as_acx_Woption=yes"
2542 else
2543 echo "$as_me: failed program was:" >&5
2544 sed 's/^/| /' conftest.$ac_ext >&5
2546 eval "$as_acx_Woption=no"
2548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2551 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
2552 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
2553 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
2554 WARN_CFLAGS="$WARN_CFLAGS${WARN_CFLAGS:+ }$option"
2557 done
2558 CFLAGS="$save_CFLAGS"
2560 WARN_PEDANTIC=
2561 if test "$GCC" = yes; then
2562 echo "$as_me:$LINENO: checking whether $CC supports -pedantic -Wno-long-long" >&5
2563 echo $ECHO_N "checking whether $CC supports -pedantic -Wno-long-long... $ECHO_C" >&6
2564 if test "${acx_cv_prog_cc_pedantic__Wno_long_long+set}" = set; then
2565 echo $ECHO_N "(cached) $ECHO_C" >&6
2566 else
2567 save_CFLAGS="$CFLAGS"
2568 CFLAGS="-pedantic -Wno-long-long"
2569 cat >conftest.$ac_ext <<_ACEOF
2570 /* confdefs.h. */
2571 _ACEOF
2572 cat confdefs.h >>conftest.$ac_ext
2573 cat >>conftest.$ac_ext <<_ACEOF
2574 /* end confdefs.h. */
2577 main ()
2581 return 0;
2583 _ACEOF
2584 rm -f conftest.$ac_objext
2585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2586 (eval $ac_compile) 2>conftest.er1
2587 ac_status=$?
2588 grep -v '^ *+' conftest.er1 >conftest.err
2589 rm -f conftest.er1
2590 cat conftest.err >&5
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); } &&
2593 { ac_try='test -z "$ac_c_werror_flag"
2594 || test ! -s conftest.err'
2595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2596 (eval $ac_try) 2>&5
2597 ac_status=$?
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); }; } &&
2600 { ac_try='test -s conftest.$ac_objext'
2601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2602 (eval $ac_try) 2>&5
2603 ac_status=$?
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); }; }; then
2606 acx_cv_prog_cc_pedantic__Wno_long_long=yes
2607 else
2608 echo "$as_me: failed program was:" >&5
2609 sed 's/^/| /' conftest.$ac_ext >&5
2611 acx_cv_prog_cc_pedantic__Wno_long_long=no
2613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2614 CFLAGS="$save_CFLAGS"
2616 echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic__Wno_long_long" >&5
2617 echo "${ECHO_T}$acx_cv_prog_cc_pedantic__Wno_long_long" >&6
2618 if test $acx_cv_prog_cc_pedantic__Wno_long_long = yes; then
2619 WARN_PEDANTIC="-pedantic -Wno-long-long"
2627 # Only enable with --enable-werror-always until existing warnings are
2628 # corrected.
2629 WERROR=
2630 # Check whether --enable-werror-always or --disable-werror-always was given.
2631 if test "${enable_werror_always+set}" = set; then
2632 enableval="$enable_werror_always"
2634 else
2635 enable_werror_always=no
2637 if test $enable_werror_always = yes; then
2638 WERROR=-Werror
2643 # Checks for header files.
2644 ac_ext=c
2645 ac_cpp='$CPP $CPPFLAGS'
2646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2649 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2650 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2651 # On Suns, sometimes $CPP names a directory.
2652 if test -n "$CPP" && test -d "$CPP"; then
2653 CPP=
2655 if test -z "$CPP"; then
2656 if test "${ac_cv_prog_CPP+set}" = set; then
2657 echo $ECHO_N "(cached) $ECHO_C" >&6
2658 else
2659 # Double quotes because CPP needs to be expanded
2660 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2662 ac_preproc_ok=false
2663 for ac_c_preproc_warn_flag in '' yes
2665 # Use a header file that comes with gcc, so configuring glibc
2666 # with a fresh cross-compiler works.
2667 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2668 # <limits.h> exists even on freestanding compilers.
2669 # On the NeXT, cc -E runs the code through the compiler's parser,
2670 # not just through cpp. "Syntax error" is here to catch this case.
2671 cat >conftest.$ac_ext <<_ACEOF
2672 /* confdefs.h. */
2673 _ACEOF
2674 cat confdefs.h >>conftest.$ac_ext
2675 cat >>conftest.$ac_ext <<_ACEOF
2676 /* end confdefs.h. */
2677 #ifdef __STDC__
2678 # include <limits.h>
2679 #else
2680 # include <assert.h>
2681 #endif
2682 Syntax error
2683 _ACEOF
2684 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2685 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2686 ac_status=$?
2687 grep -v '^ *+' conftest.er1 >conftest.err
2688 rm -f conftest.er1
2689 cat conftest.err >&5
2690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691 (exit $ac_status); } >/dev/null; then
2692 if test -s conftest.err; then
2693 ac_cpp_err=$ac_c_preproc_warn_flag
2694 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2695 else
2696 ac_cpp_err=
2698 else
2699 ac_cpp_err=yes
2701 if test -z "$ac_cpp_err"; then
2703 else
2704 echo "$as_me: failed program was:" >&5
2705 sed 's/^/| /' conftest.$ac_ext >&5
2707 # Broken: fails on valid input.
2708 continue
2710 rm -f conftest.err conftest.$ac_ext
2712 # OK, works on sane cases. Now check whether non-existent headers
2713 # can be detected and how.
2714 cat >conftest.$ac_ext <<_ACEOF
2715 /* confdefs.h. */
2716 _ACEOF
2717 cat confdefs.h >>conftest.$ac_ext
2718 cat >>conftest.$ac_ext <<_ACEOF
2719 /* end confdefs.h. */
2720 #include <ac_nonexistent.h>
2721 _ACEOF
2722 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2723 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2724 ac_status=$?
2725 grep -v '^ *+' conftest.er1 >conftest.err
2726 rm -f conftest.er1
2727 cat conftest.err >&5
2728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729 (exit $ac_status); } >/dev/null; then
2730 if test -s conftest.err; then
2731 ac_cpp_err=$ac_c_preproc_warn_flag
2732 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2733 else
2734 ac_cpp_err=
2736 else
2737 ac_cpp_err=yes
2739 if test -z "$ac_cpp_err"; then
2740 # Broken: success on invalid input.
2741 continue
2742 else
2743 echo "$as_me: failed program was:" >&5
2744 sed 's/^/| /' conftest.$ac_ext >&5
2746 # Passes both tests.
2747 ac_preproc_ok=:
2748 break
2750 rm -f conftest.err conftest.$ac_ext
2752 done
2753 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2754 rm -f conftest.err conftest.$ac_ext
2755 if $ac_preproc_ok; then
2756 break
2759 done
2760 ac_cv_prog_CPP=$CPP
2763 CPP=$ac_cv_prog_CPP
2764 else
2765 ac_cv_prog_CPP=$CPP
2767 echo "$as_me:$LINENO: result: $CPP" >&5
2768 echo "${ECHO_T}$CPP" >&6
2769 ac_preproc_ok=false
2770 for ac_c_preproc_warn_flag in '' yes
2772 # Use a header file that comes with gcc, so configuring glibc
2773 # with a fresh cross-compiler works.
2774 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2775 # <limits.h> exists even on freestanding compilers.
2776 # On the NeXT, cc -E runs the code through the compiler's parser,
2777 # not just through cpp. "Syntax error" is here to catch this case.
2778 cat >conftest.$ac_ext <<_ACEOF
2779 /* confdefs.h. */
2780 _ACEOF
2781 cat confdefs.h >>conftest.$ac_ext
2782 cat >>conftest.$ac_ext <<_ACEOF
2783 /* end confdefs.h. */
2784 #ifdef __STDC__
2785 # include <limits.h>
2786 #else
2787 # include <assert.h>
2788 #endif
2789 Syntax error
2790 _ACEOF
2791 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2792 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2793 ac_status=$?
2794 grep -v '^ *+' conftest.er1 >conftest.err
2795 rm -f conftest.er1
2796 cat conftest.err >&5
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); } >/dev/null; then
2799 if test -s conftest.err; then
2800 ac_cpp_err=$ac_c_preproc_warn_flag
2801 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2802 else
2803 ac_cpp_err=
2805 else
2806 ac_cpp_err=yes
2808 if test -z "$ac_cpp_err"; then
2810 else
2811 echo "$as_me: failed program was:" >&5
2812 sed 's/^/| /' conftest.$ac_ext >&5
2814 # Broken: fails on valid input.
2815 continue
2817 rm -f conftest.err conftest.$ac_ext
2819 # OK, works on sane cases. Now check whether non-existent headers
2820 # can be detected and how.
2821 cat >conftest.$ac_ext <<_ACEOF
2822 /* confdefs.h. */
2823 _ACEOF
2824 cat confdefs.h >>conftest.$ac_ext
2825 cat >>conftest.$ac_ext <<_ACEOF
2826 /* end confdefs.h. */
2827 #include <ac_nonexistent.h>
2828 _ACEOF
2829 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2830 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2831 ac_status=$?
2832 grep -v '^ *+' conftest.er1 >conftest.err
2833 rm -f conftest.er1
2834 cat conftest.err >&5
2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); } >/dev/null; then
2837 if test -s conftest.err; then
2838 ac_cpp_err=$ac_c_preproc_warn_flag
2839 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2840 else
2841 ac_cpp_err=
2843 else
2844 ac_cpp_err=yes
2846 if test -z "$ac_cpp_err"; then
2847 # Broken: success on invalid input.
2848 continue
2849 else
2850 echo "$as_me: failed program was:" >&5
2851 sed 's/^/| /' conftest.$ac_ext >&5
2853 # Passes both tests.
2854 ac_preproc_ok=:
2855 break
2857 rm -f conftest.err conftest.$ac_ext
2859 done
2860 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2861 rm -f conftest.err conftest.$ac_ext
2862 if $ac_preproc_ok; then
2864 else
2865 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2866 See \`config.log' for more details." >&5
2867 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2868 See \`config.log' for more details." >&2;}
2869 { (exit 1); exit 1; }; }
2872 ac_ext=c
2873 ac_cpp='$CPP $CPPFLAGS'
2874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2879 echo "$as_me:$LINENO: checking for egrep" >&5
2880 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2881 if test "${ac_cv_prog_egrep+set}" = set; then
2882 echo $ECHO_N "(cached) $ECHO_C" >&6
2883 else
2884 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2885 then ac_cv_prog_egrep='grep -E'
2886 else ac_cv_prog_egrep='egrep'
2889 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2890 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2891 EGREP=$ac_cv_prog_egrep
2894 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2895 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2896 if test "${ac_cv_header_stdc+set}" = set; then
2897 echo $ECHO_N "(cached) $ECHO_C" >&6
2898 else
2899 cat >conftest.$ac_ext <<_ACEOF
2900 /* confdefs.h. */
2901 _ACEOF
2902 cat confdefs.h >>conftest.$ac_ext
2903 cat >>conftest.$ac_ext <<_ACEOF
2904 /* end confdefs.h. */
2905 #include <stdlib.h>
2906 #include <stdarg.h>
2907 #include <string.h>
2908 #include <float.h>
2911 main ()
2915 return 0;
2917 _ACEOF
2918 rm -f conftest.$ac_objext
2919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2920 (eval $ac_compile) 2>conftest.er1
2921 ac_status=$?
2922 grep -v '^ *+' conftest.er1 >conftest.err
2923 rm -f conftest.er1
2924 cat conftest.err >&5
2925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926 (exit $ac_status); } &&
2927 { ac_try='test -z "$ac_c_werror_flag"
2928 || test ! -s conftest.err'
2929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2930 (eval $ac_try) 2>&5
2931 ac_status=$?
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); }; } &&
2934 { ac_try='test -s conftest.$ac_objext'
2935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2936 (eval $ac_try) 2>&5
2937 ac_status=$?
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); }; }; then
2940 ac_cv_header_stdc=yes
2941 else
2942 echo "$as_me: failed program was:" >&5
2943 sed 's/^/| /' conftest.$ac_ext >&5
2945 ac_cv_header_stdc=no
2947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2949 if test $ac_cv_header_stdc = yes; then
2950 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2951 cat >conftest.$ac_ext <<_ACEOF
2952 /* confdefs.h. */
2953 _ACEOF
2954 cat confdefs.h >>conftest.$ac_ext
2955 cat >>conftest.$ac_ext <<_ACEOF
2956 /* end confdefs.h. */
2957 #include <string.h>
2959 _ACEOF
2960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2961 $EGREP "memchr" >/dev/null 2>&1; then
2963 else
2964 ac_cv_header_stdc=no
2966 rm -f conftest*
2970 if test $ac_cv_header_stdc = yes; then
2971 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2972 cat >conftest.$ac_ext <<_ACEOF
2973 /* confdefs.h. */
2974 _ACEOF
2975 cat confdefs.h >>conftest.$ac_ext
2976 cat >>conftest.$ac_ext <<_ACEOF
2977 /* end confdefs.h. */
2978 #include <stdlib.h>
2980 _ACEOF
2981 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2982 $EGREP "free" >/dev/null 2>&1; then
2984 else
2985 ac_cv_header_stdc=no
2987 rm -f conftest*
2991 if test $ac_cv_header_stdc = yes; then
2992 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2993 if test "$cross_compiling" = yes; then
2995 else
2996 cat >conftest.$ac_ext <<_ACEOF
2997 /* confdefs.h. */
2998 _ACEOF
2999 cat confdefs.h >>conftest.$ac_ext
3000 cat >>conftest.$ac_ext <<_ACEOF
3001 /* end confdefs.h. */
3002 #include <ctype.h>
3003 #if ((' ' & 0x0FF) == 0x020)
3004 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3005 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3006 #else
3007 # define ISLOWER(c) \
3008 (('a' <= (c) && (c) <= 'i') \
3009 || ('j' <= (c) && (c) <= 'r') \
3010 || ('s' <= (c) && (c) <= 'z'))
3011 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3012 #endif
3014 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3016 main ()
3018 int i;
3019 for (i = 0; i < 256; i++)
3020 if (XOR (islower (i), ISLOWER (i))
3021 || toupper (i) != TOUPPER (i))
3022 exit(2);
3023 exit (0);
3025 _ACEOF
3026 rm -f conftest$ac_exeext
3027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3028 (eval $ac_link) 2>&5
3029 ac_status=$?
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3033 (eval $ac_try) 2>&5
3034 ac_status=$?
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); }; }; then
3038 else
3039 echo "$as_me: program exited with status $ac_status" >&5
3040 echo "$as_me: failed program was:" >&5
3041 sed 's/^/| /' conftest.$ac_ext >&5
3043 ( exit $ac_status )
3044 ac_cv_header_stdc=no
3046 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3050 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3051 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3052 if test $ac_cv_header_stdc = yes; then
3054 cat >>confdefs.h <<\_ACEOF
3055 #define STDC_HEADERS 1
3056 _ACEOF
3060 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3070 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3071 inttypes.h stdint.h unistd.h
3073 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3074 echo "$as_me:$LINENO: checking for $ac_header" >&5
3075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3076 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3077 echo $ECHO_N "(cached) $ECHO_C" >&6
3078 else
3079 cat >conftest.$ac_ext <<_ACEOF
3080 /* confdefs.h. */
3081 _ACEOF
3082 cat confdefs.h >>conftest.$ac_ext
3083 cat >>conftest.$ac_ext <<_ACEOF
3084 /* end confdefs.h. */
3085 $ac_includes_default
3087 #include <$ac_header>
3088 _ACEOF
3089 rm -f conftest.$ac_objext
3090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3091 (eval $ac_compile) 2>conftest.er1
3092 ac_status=$?
3093 grep -v '^ *+' conftest.er1 >conftest.err
3094 rm -f conftest.er1
3095 cat conftest.err >&5
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); } &&
3098 { ac_try='test -z "$ac_c_werror_flag"
3099 || test ! -s conftest.err'
3100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3101 (eval $ac_try) 2>&5
3102 ac_status=$?
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); }; } &&
3105 { ac_try='test -s conftest.$ac_objext'
3106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3107 (eval $ac_try) 2>&5
3108 ac_status=$?
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110 (exit $ac_status); }; }; then
3111 eval "$as_ac_Header=yes"
3112 else
3113 echo "$as_me: failed program was:" >&5
3114 sed 's/^/| /' conftest.$ac_ext >&5
3116 eval "$as_ac_Header=no"
3118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3120 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3121 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3122 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3123 cat >>confdefs.h <<_ACEOF
3124 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3125 _ACEOF
3129 done
3136 for ac_header in ctype.h stddef.h string.h stdio.h
3138 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3139 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3140 echo "$as_me:$LINENO: checking for $ac_header" >&5
3141 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3142 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3143 echo $ECHO_N "(cached) $ECHO_C" >&6
3145 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3146 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3147 else
3148 # Is the header compilable?
3149 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3150 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3151 cat >conftest.$ac_ext <<_ACEOF
3152 /* confdefs.h. */
3153 _ACEOF
3154 cat confdefs.h >>conftest.$ac_ext
3155 cat >>conftest.$ac_ext <<_ACEOF
3156 /* end confdefs.h. */
3157 $ac_includes_default
3158 #include <$ac_header>
3159 _ACEOF
3160 rm -f conftest.$ac_objext
3161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3162 (eval $ac_compile) 2>conftest.er1
3163 ac_status=$?
3164 grep -v '^ *+' conftest.er1 >conftest.err
3165 rm -f conftest.er1
3166 cat conftest.err >&5
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); } &&
3169 { ac_try='test -z "$ac_c_werror_flag"
3170 || test ! -s conftest.err'
3171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3172 (eval $ac_try) 2>&5
3173 ac_status=$?
3174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175 (exit $ac_status); }; } &&
3176 { ac_try='test -s conftest.$ac_objext'
3177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3178 (eval $ac_try) 2>&5
3179 ac_status=$?
3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181 (exit $ac_status); }; }; then
3182 ac_header_compiler=yes
3183 else
3184 echo "$as_me: failed program was:" >&5
3185 sed 's/^/| /' conftest.$ac_ext >&5
3187 ac_header_compiler=no
3189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3190 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3191 echo "${ECHO_T}$ac_header_compiler" >&6
3193 # Is the header present?
3194 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3195 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3196 cat >conftest.$ac_ext <<_ACEOF
3197 /* confdefs.h. */
3198 _ACEOF
3199 cat confdefs.h >>conftest.$ac_ext
3200 cat >>conftest.$ac_ext <<_ACEOF
3201 /* end confdefs.h. */
3202 #include <$ac_header>
3203 _ACEOF
3204 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3205 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3206 ac_status=$?
3207 grep -v '^ *+' conftest.er1 >conftest.err
3208 rm -f conftest.er1
3209 cat conftest.err >&5
3210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211 (exit $ac_status); } >/dev/null; then
3212 if test -s conftest.err; then
3213 ac_cpp_err=$ac_c_preproc_warn_flag
3214 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3215 else
3216 ac_cpp_err=
3218 else
3219 ac_cpp_err=yes
3221 if test -z "$ac_cpp_err"; then
3222 ac_header_preproc=yes
3223 else
3224 echo "$as_me: failed program was:" >&5
3225 sed 's/^/| /' conftest.$ac_ext >&5
3227 ac_header_preproc=no
3229 rm -f conftest.err conftest.$ac_ext
3230 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3231 echo "${ECHO_T}$ac_header_preproc" >&6
3233 # So? What about this header?
3234 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3235 yes:no: )
3236 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3237 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3238 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3239 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3240 ac_header_preproc=yes
3242 no:yes:* )
3243 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3244 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3245 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3246 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3247 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3248 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3249 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3250 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3251 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3252 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3253 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3254 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3256 cat <<\_ASBOX
3257 ## ----------------------------------- ##
3258 ## Report this to gcc-bugs@gcc.gnu.org ##
3259 ## ----------------------------------- ##
3260 _ASBOX
3262 sed "s/^/$as_me: WARNING: /" >&2
3264 esac
3265 echo "$as_me:$LINENO: checking for $ac_header" >&5
3266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3267 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3268 echo $ECHO_N "(cached) $ECHO_C" >&6
3269 else
3270 eval "$as_ac_Header=\$ac_header_preproc"
3272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3273 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3276 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3277 cat >>confdefs.h <<_ACEOF
3278 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3279 _ACEOF
3283 done
3287 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
3289 acx_cv_header_stdint=stddef.h
3290 acx_cv_header_stdint_kind="(already complete)"
3291 for i in stdint.h $inttype_headers; do
3292 unset ac_cv_type_uintptr_t
3293 unset ac_cv_type_uintmax_t
3294 unset ac_cv_type_int_least32_t
3295 unset ac_cv_type_int_fast32_t
3296 unset ac_cv_type_uint64_t
3297 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
3298 echo "$as_me:$LINENO: checking for uintmax_t" >&5
3299 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
3300 if test "${ac_cv_type_uintmax_t+set}" = set; then
3301 echo $ECHO_N "(cached) $ECHO_C" >&6
3302 else
3303 cat >conftest.$ac_ext <<_ACEOF
3304 /* confdefs.h. */
3305 _ACEOF
3306 cat confdefs.h >>conftest.$ac_ext
3307 cat >>conftest.$ac_ext <<_ACEOF
3308 /* end confdefs.h. */
3309 #include <sys/types.h>
3310 #include <$i>
3313 main ()
3315 if ((uintmax_t *) 0)
3316 return 0;
3317 if (sizeof (uintmax_t))
3318 return 0;
3320 return 0;
3322 _ACEOF
3323 rm -f conftest.$ac_objext
3324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3325 (eval $ac_compile) 2>conftest.er1
3326 ac_status=$?
3327 grep -v '^ *+' conftest.er1 >conftest.err
3328 rm -f conftest.er1
3329 cat conftest.err >&5
3330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331 (exit $ac_status); } &&
3332 { ac_try='test -z "$ac_c_werror_flag"
3333 || test ! -s conftest.err'
3334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3335 (eval $ac_try) 2>&5
3336 ac_status=$?
3337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338 (exit $ac_status); }; } &&
3339 { ac_try='test -s conftest.$ac_objext'
3340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3341 (eval $ac_try) 2>&5
3342 ac_status=$?
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); }; }; then
3345 ac_cv_type_uintmax_t=yes
3346 else
3347 echo "$as_me: failed program was:" >&5
3348 sed 's/^/| /' conftest.$ac_ext >&5
3350 ac_cv_type_uintmax_t=no
3352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3354 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
3355 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
3356 if test $ac_cv_type_uintmax_t = yes; then
3357 acx_cv_header_stdint=$i
3358 else
3359 continue
3362 echo "$as_me:$LINENO: checking for uintptr_t" >&5
3363 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
3364 if test "${ac_cv_type_uintptr_t+set}" = set; then
3365 echo $ECHO_N "(cached) $ECHO_C" >&6
3366 else
3367 cat >conftest.$ac_ext <<_ACEOF
3368 /* confdefs.h. */
3369 _ACEOF
3370 cat confdefs.h >>conftest.$ac_ext
3371 cat >>conftest.$ac_ext <<_ACEOF
3372 /* end confdefs.h. */
3373 #include <sys/types.h>
3374 #include <$i>
3377 main ()
3379 if ((uintptr_t *) 0)
3380 return 0;
3381 if (sizeof (uintptr_t))
3382 return 0;
3384 return 0;
3386 _ACEOF
3387 rm -f conftest.$ac_objext
3388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3389 (eval $ac_compile) 2>conftest.er1
3390 ac_status=$?
3391 grep -v '^ *+' conftest.er1 >conftest.err
3392 rm -f conftest.er1
3393 cat conftest.err >&5
3394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395 (exit $ac_status); } &&
3396 { ac_try='test -z "$ac_c_werror_flag"
3397 || test ! -s conftest.err'
3398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3399 (eval $ac_try) 2>&5
3400 ac_status=$?
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); }; } &&
3403 { ac_try='test -s conftest.$ac_objext'
3404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3405 (eval $ac_try) 2>&5
3406 ac_status=$?
3407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408 (exit $ac_status); }; }; then
3409 ac_cv_type_uintptr_t=yes
3410 else
3411 echo "$as_me: failed program was:" >&5
3412 sed 's/^/| /' conftest.$ac_ext >&5
3414 ac_cv_type_uintptr_t=no
3416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3418 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
3419 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
3420 if test $ac_cv_type_uintptr_t = yes; then
3422 else
3423 acx_cv_header_stdint_kind="(mostly complete)"
3426 echo "$as_me:$LINENO: checking for int_least32_t" >&5
3427 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
3428 if test "${ac_cv_type_int_least32_t+set}" = set; then
3429 echo $ECHO_N "(cached) $ECHO_C" >&6
3430 else
3431 cat >conftest.$ac_ext <<_ACEOF
3432 /* confdefs.h. */
3433 _ACEOF
3434 cat confdefs.h >>conftest.$ac_ext
3435 cat >>conftest.$ac_ext <<_ACEOF
3436 /* end confdefs.h. */
3437 #include <sys/types.h>
3438 #include <$i>
3441 main ()
3443 if ((int_least32_t *) 0)
3444 return 0;
3445 if (sizeof (int_least32_t))
3446 return 0;
3448 return 0;
3450 _ACEOF
3451 rm -f conftest.$ac_objext
3452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3453 (eval $ac_compile) 2>conftest.er1
3454 ac_status=$?
3455 grep -v '^ *+' conftest.er1 >conftest.err
3456 rm -f conftest.er1
3457 cat conftest.err >&5
3458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); } &&
3460 { ac_try='test -z "$ac_c_werror_flag"
3461 || test ! -s conftest.err'
3462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3463 (eval $ac_try) 2>&5
3464 ac_status=$?
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); }; } &&
3467 { ac_try='test -s conftest.$ac_objext'
3468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3469 (eval $ac_try) 2>&5
3470 ac_status=$?
3471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472 (exit $ac_status); }; }; then
3473 ac_cv_type_int_least32_t=yes
3474 else
3475 echo "$as_me: failed program was:" >&5
3476 sed 's/^/| /' conftest.$ac_ext >&5
3478 ac_cv_type_int_least32_t=no
3480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3482 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
3483 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
3484 if test $ac_cv_type_int_least32_t = yes; then
3486 else
3487 acx_cv_header_stdint_kind="(mostly complete)"
3490 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
3491 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
3492 if test "${ac_cv_type_int_fast32_t+set}" = set; then
3493 echo $ECHO_N "(cached) $ECHO_C" >&6
3494 else
3495 cat >conftest.$ac_ext <<_ACEOF
3496 /* confdefs.h. */
3497 _ACEOF
3498 cat confdefs.h >>conftest.$ac_ext
3499 cat >>conftest.$ac_ext <<_ACEOF
3500 /* end confdefs.h. */
3501 #include <sys/types.h>
3502 #include <$i>
3505 main ()
3507 if ((int_fast32_t *) 0)
3508 return 0;
3509 if (sizeof (int_fast32_t))
3510 return 0;
3512 return 0;
3514 _ACEOF
3515 rm -f conftest.$ac_objext
3516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3517 (eval $ac_compile) 2>conftest.er1
3518 ac_status=$?
3519 grep -v '^ *+' conftest.er1 >conftest.err
3520 rm -f conftest.er1
3521 cat conftest.err >&5
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); } &&
3524 { ac_try='test -z "$ac_c_werror_flag"
3525 || test ! -s conftest.err'
3526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3527 (eval $ac_try) 2>&5
3528 ac_status=$?
3529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530 (exit $ac_status); }; } &&
3531 { ac_try='test -s conftest.$ac_objext'
3532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3533 (eval $ac_try) 2>&5
3534 ac_status=$?
3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); }; }; then
3537 ac_cv_type_int_fast32_t=yes
3538 else
3539 echo "$as_me: failed program was:" >&5
3540 sed 's/^/| /' conftest.$ac_ext >&5
3542 ac_cv_type_int_fast32_t=no
3544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3546 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
3547 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
3548 if test $ac_cv_type_int_fast32_t = yes; then
3550 else
3551 acx_cv_header_stdint_kind="(mostly complete)"
3554 echo "$as_me:$LINENO: checking for uint64_t" >&5
3555 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
3556 if test "${ac_cv_type_uint64_t+set}" = set; then
3557 echo $ECHO_N "(cached) $ECHO_C" >&6
3558 else
3559 cat >conftest.$ac_ext <<_ACEOF
3560 /* confdefs.h. */
3561 _ACEOF
3562 cat confdefs.h >>conftest.$ac_ext
3563 cat >>conftest.$ac_ext <<_ACEOF
3564 /* end confdefs.h. */
3565 #include <sys/types.h>
3566 #include <$i>
3569 main ()
3571 if ((uint64_t *) 0)
3572 return 0;
3573 if (sizeof (uint64_t))
3574 return 0;
3576 return 0;
3578 _ACEOF
3579 rm -f conftest.$ac_objext
3580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3581 (eval $ac_compile) 2>conftest.er1
3582 ac_status=$?
3583 grep -v '^ *+' conftest.er1 >conftest.err
3584 rm -f conftest.er1
3585 cat conftest.err >&5
3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); } &&
3588 { ac_try='test -z "$ac_c_werror_flag"
3589 || test ! -s conftest.err'
3590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3591 (eval $ac_try) 2>&5
3592 ac_status=$?
3593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594 (exit $ac_status); }; } &&
3595 { ac_try='test -s conftest.$ac_objext'
3596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3597 (eval $ac_try) 2>&5
3598 ac_status=$?
3599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); }; }; then
3601 ac_cv_type_uint64_t=yes
3602 else
3603 echo "$as_me: failed program was:" >&5
3604 sed 's/^/| /' conftest.$ac_ext >&5
3606 ac_cv_type_uint64_t=no
3608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3610 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
3611 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
3612 if test $ac_cv_type_uint64_t = yes; then
3614 else
3615 acx_cv_header_stdint_kind="(lacks uint64_t)"
3618 break
3619 done
3620 if test "$acx_cv_header_stdint" = stddef.h; then
3621 acx_cv_header_stdint_kind="(lacks uintptr_t)"
3622 for i in stdint.h $inttype_headers; do
3623 unset ac_cv_type_uint32_t
3624 unset ac_cv_type_uint64_t
3625 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
3626 echo "$as_me:$LINENO: checking for uint32_t" >&5
3627 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
3628 if test "${ac_cv_type_uint32_t+set}" = set; then
3629 echo $ECHO_N "(cached) $ECHO_C" >&6
3630 else
3631 cat >conftest.$ac_ext <<_ACEOF
3632 /* confdefs.h. */
3633 _ACEOF
3634 cat confdefs.h >>conftest.$ac_ext
3635 cat >>conftest.$ac_ext <<_ACEOF
3636 /* end confdefs.h. */
3637 #include <sys/types.h>
3638 #include <$i>
3641 main ()
3643 if ((uint32_t *) 0)
3644 return 0;
3645 if (sizeof (uint32_t))
3646 return 0;
3648 return 0;
3650 _ACEOF
3651 rm -f conftest.$ac_objext
3652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3653 (eval $ac_compile) 2>conftest.er1
3654 ac_status=$?
3655 grep -v '^ *+' conftest.er1 >conftest.err
3656 rm -f conftest.er1
3657 cat conftest.err >&5
3658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659 (exit $ac_status); } &&
3660 { ac_try='test -z "$ac_c_werror_flag"
3661 || test ! -s conftest.err'
3662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3663 (eval $ac_try) 2>&5
3664 ac_status=$?
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); }; } &&
3667 { ac_try='test -s conftest.$ac_objext'
3668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3669 (eval $ac_try) 2>&5
3670 ac_status=$?
3671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672 (exit $ac_status); }; }; then
3673 ac_cv_type_uint32_t=yes
3674 else
3675 echo "$as_me: failed program was:" >&5
3676 sed 's/^/| /' conftest.$ac_ext >&5
3678 ac_cv_type_uint32_t=no
3680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3682 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
3683 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
3684 if test $ac_cv_type_uint32_t = yes; then
3685 acx_cv_header_stdint=$i
3686 else
3687 continue
3690 echo "$as_me:$LINENO: checking for uint64_t" >&5
3691 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
3692 if test "${ac_cv_type_uint64_t+set}" = set; then
3693 echo $ECHO_N "(cached) $ECHO_C" >&6
3694 else
3695 cat >conftest.$ac_ext <<_ACEOF
3696 /* confdefs.h. */
3697 _ACEOF
3698 cat confdefs.h >>conftest.$ac_ext
3699 cat >>conftest.$ac_ext <<_ACEOF
3700 /* end confdefs.h. */
3701 #include <sys/types.h>
3702 #include <$i>
3705 main ()
3707 if ((uint64_t *) 0)
3708 return 0;
3709 if (sizeof (uint64_t))
3710 return 0;
3712 return 0;
3714 _ACEOF
3715 rm -f conftest.$ac_objext
3716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3717 (eval $ac_compile) 2>conftest.er1
3718 ac_status=$?
3719 grep -v '^ *+' conftest.er1 >conftest.err
3720 rm -f conftest.er1
3721 cat conftest.err >&5
3722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); } &&
3724 { ac_try='test -z "$ac_c_werror_flag"
3725 || test ! -s conftest.err'
3726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3727 (eval $ac_try) 2>&5
3728 ac_status=$?
3729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730 (exit $ac_status); }; } &&
3731 { ac_try='test -s conftest.$ac_objext'
3732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3733 (eval $ac_try) 2>&5
3734 ac_status=$?
3735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736 (exit $ac_status); }; }; then
3737 ac_cv_type_uint64_t=yes
3738 else
3739 echo "$as_me: failed program was:" >&5
3740 sed 's/^/| /' conftest.$ac_ext >&5
3742 ac_cv_type_uint64_t=no
3744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3746 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
3747 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
3748 if test $ac_cv_type_uint64_t = yes; then
3750 else
3751 acx_cv_header_stdint_kind="(lacks uintptr_t and uint64_t)"
3754 break
3755 done
3757 if test "$acx_cv_header_stdint" = stddef.h; then
3758 acx_cv_header_stdint_kind="(u_intXX_t style)"
3759 for i in sys/types.h $inttype_headers; do
3760 unset ac_cv_type_u_int32_t
3761 unset ac_cv_type_u_int64_t
3762 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
3763 echo "$as_me:$LINENO: checking for u_int32_t" >&5
3764 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
3765 if test "${ac_cv_type_u_int32_t+set}" = set; then
3766 echo $ECHO_N "(cached) $ECHO_C" >&6
3767 else
3768 cat >conftest.$ac_ext <<_ACEOF
3769 /* confdefs.h. */
3770 _ACEOF
3771 cat confdefs.h >>conftest.$ac_ext
3772 cat >>conftest.$ac_ext <<_ACEOF
3773 /* end confdefs.h. */
3774 #include <sys/types.h>
3775 #include <$i>
3778 main ()
3780 if ((u_int32_t *) 0)
3781 return 0;
3782 if (sizeof (u_int32_t))
3783 return 0;
3785 return 0;
3787 _ACEOF
3788 rm -f conftest.$ac_objext
3789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3790 (eval $ac_compile) 2>conftest.er1
3791 ac_status=$?
3792 grep -v '^ *+' conftest.er1 >conftest.err
3793 rm -f conftest.er1
3794 cat conftest.err >&5
3795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796 (exit $ac_status); } &&
3797 { ac_try='test -z "$ac_c_werror_flag"
3798 || test ! -s conftest.err'
3799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3800 (eval $ac_try) 2>&5
3801 ac_status=$?
3802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803 (exit $ac_status); }; } &&
3804 { ac_try='test -s conftest.$ac_objext'
3805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3806 (eval $ac_try) 2>&5
3807 ac_status=$?
3808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809 (exit $ac_status); }; }; then
3810 ac_cv_type_u_int32_t=yes
3811 else
3812 echo "$as_me: failed program was:" >&5
3813 sed 's/^/| /' conftest.$ac_ext >&5
3815 ac_cv_type_u_int32_t=no
3817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3819 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
3820 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
3821 if test $ac_cv_type_u_int32_t = yes; then
3822 acx_cv_header_stdint=$i
3823 else
3824 continue
3827 echo "$as_me:$LINENO: checking for u_int64_t" >&5
3828 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
3829 if test "${ac_cv_type_u_int64_t+set}" = set; then
3830 echo $ECHO_N "(cached) $ECHO_C" >&6
3831 else
3832 cat >conftest.$ac_ext <<_ACEOF
3833 /* confdefs.h. */
3834 _ACEOF
3835 cat confdefs.h >>conftest.$ac_ext
3836 cat >>conftest.$ac_ext <<_ACEOF
3837 /* end confdefs.h. */
3838 #include <sys/types.h>
3839 #include <$i>
3842 main ()
3844 if ((u_int64_t *) 0)
3845 return 0;
3846 if (sizeof (u_int64_t))
3847 return 0;
3849 return 0;
3851 _ACEOF
3852 rm -f conftest.$ac_objext
3853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3854 (eval $ac_compile) 2>conftest.er1
3855 ac_status=$?
3856 grep -v '^ *+' conftest.er1 >conftest.err
3857 rm -f conftest.er1
3858 cat conftest.err >&5
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); } &&
3861 { ac_try='test -z "$ac_c_werror_flag"
3862 || test ! -s conftest.err'
3863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3864 (eval $ac_try) 2>&5
3865 ac_status=$?
3866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867 (exit $ac_status); }; } &&
3868 { ac_try='test -s conftest.$ac_objext'
3869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3870 (eval $ac_try) 2>&5
3871 ac_status=$?
3872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873 (exit $ac_status); }; }; then
3874 ac_cv_type_u_int64_t=yes
3875 else
3876 echo "$as_me: failed program was:" >&5
3877 sed 's/^/| /' conftest.$ac_ext >&5
3879 ac_cv_type_u_int64_t=no
3881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3883 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
3884 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
3885 if test $ac_cv_type_u_int64_t = yes; then
3887 else
3888 acx_cv_header_stdint_kind="(u_intXX_t style, lacks u_int64_t)"
3891 break
3892 done
3894 if test "$acx_cv_header_stdint" = stddef.h; then
3895 acx_cv_header_stdint_kind="(using manual detection)"
3898 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
3899 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
3900 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
3901 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
3902 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
3904 # ----------------- Summarize what we found so far
3906 echo "$as_me:$LINENO: checking what to include in gstdint.h" >&5
3907 echo $ECHO_N "checking what to include in gstdint.h... $ECHO_C" >&6
3909 case `$as_basename gstdint.h ||
3910 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
3911 Xgstdint.h : 'X\(//\)$' \| \
3912 Xgstdint.h : 'X\(/\)$' \| \
3913 . : '\(.\)' 2>/dev/null ||
3914 echo X/gstdint.h |
3915 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3916 /^X\/\(\/\/\)$/{ s//\1/; q; }
3917 /^X\/\(\/\).*/{ s//\1/; q; }
3918 s/.*/./; q'` in
3919 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
3920 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
3921 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
3922 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
3923 *) ;;
3924 esac
3926 echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
3927 echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
3929 # ----------------- done included file, check C basic types --------
3931 # Lacking an uintptr_t? Test size of void *
3932 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
3933 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
3934 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3935 if test "${ac_cv_type_void_p+set}" = set; then
3936 echo $ECHO_N "(cached) $ECHO_C" >&6
3937 else
3938 cat >conftest.$ac_ext <<_ACEOF
3939 /* confdefs.h. */
3940 _ACEOF
3941 cat confdefs.h >>conftest.$ac_ext
3942 cat >>conftest.$ac_ext <<_ACEOF
3943 /* end confdefs.h. */
3944 $ac_includes_default
3946 main ()
3948 if ((void * *) 0)
3949 return 0;
3950 if (sizeof (void *))
3951 return 0;
3953 return 0;
3955 _ACEOF
3956 rm -f conftest.$ac_objext
3957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3958 (eval $ac_compile) 2>conftest.er1
3959 ac_status=$?
3960 grep -v '^ *+' conftest.er1 >conftest.err
3961 rm -f conftest.er1
3962 cat conftest.err >&5
3963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964 (exit $ac_status); } &&
3965 { ac_try='test -z "$ac_c_werror_flag"
3966 || test ! -s conftest.err'
3967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3968 (eval $ac_try) 2>&5
3969 ac_status=$?
3970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971 (exit $ac_status); }; } &&
3972 { ac_try='test -s conftest.$ac_objext'
3973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3974 (eval $ac_try) 2>&5
3975 ac_status=$?
3976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977 (exit $ac_status); }; }; then
3978 ac_cv_type_void_p=yes
3979 else
3980 echo "$as_me: failed program was:" >&5
3981 sed 's/^/| /' conftest.$ac_ext >&5
3983 ac_cv_type_void_p=no
3985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3987 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3988 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3990 echo "$as_me:$LINENO: checking size of void *" >&5
3991 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3992 if test "${ac_cv_sizeof_void_p+set}" = set; then
3993 echo $ECHO_N "(cached) $ECHO_C" >&6
3994 else
3995 if test "$ac_cv_type_void_p" = yes; then
3996 # The cast to unsigned long works around a bug in the HP C Compiler
3997 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3998 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3999 # This bug is HP SR number 8606223364.
4000 if test "$cross_compiling" = yes; then
4001 # Depending upon the size, compute the lo and hi bounds.
4002 cat >conftest.$ac_ext <<_ACEOF
4003 /* confdefs.h. */
4004 _ACEOF
4005 cat confdefs.h >>conftest.$ac_ext
4006 cat >>conftest.$ac_ext <<_ACEOF
4007 /* end confdefs.h. */
4008 $ac_includes_default
4010 main ()
4012 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
4013 test_array [0] = 0
4016 return 0;
4018 _ACEOF
4019 rm -f conftest.$ac_objext
4020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4021 (eval $ac_compile) 2>conftest.er1
4022 ac_status=$?
4023 grep -v '^ *+' conftest.er1 >conftest.err
4024 rm -f conftest.er1
4025 cat conftest.err >&5
4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027 (exit $ac_status); } &&
4028 { ac_try='test -z "$ac_c_werror_flag"
4029 || test ! -s conftest.err'
4030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4031 (eval $ac_try) 2>&5
4032 ac_status=$?
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); }; } &&
4035 { ac_try='test -s conftest.$ac_objext'
4036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4037 (eval $ac_try) 2>&5
4038 ac_status=$?
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); }; }; then
4041 ac_lo=0 ac_mid=0
4042 while :; do
4043 cat >conftest.$ac_ext <<_ACEOF
4044 /* confdefs.h. */
4045 _ACEOF
4046 cat confdefs.h >>conftest.$ac_ext
4047 cat >>conftest.$ac_ext <<_ACEOF
4048 /* end confdefs.h. */
4049 $ac_includes_default
4051 main ()
4053 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4054 test_array [0] = 0
4057 return 0;
4059 _ACEOF
4060 rm -f conftest.$ac_objext
4061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4062 (eval $ac_compile) 2>conftest.er1
4063 ac_status=$?
4064 grep -v '^ *+' conftest.er1 >conftest.err
4065 rm -f conftest.er1
4066 cat conftest.err >&5
4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068 (exit $ac_status); } &&
4069 { ac_try='test -z "$ac_c_werror_flag"
4070 || test ! -s conftest.err'
4071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4072 (eval $ac_try) 2>&5
4073 ac_status=$?
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); }; } &&
4076 { ac_try='test -s conftest.$ac_objext'
4077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4078 (eval $ac_try) 2>&5
4079 ac_status=$?
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); }; }; then
4082 ac_hi=$ac_mid; break
4083 else
4084 echo "$as_me: failed program was:" >&5
4085 sed 's/^/| /' conftest.$ac_ext >&5
4087 ac_lo=`expr $ac_mid + 1`
4088 if test $ac_lo -le $ac_mid; then
4089 ac_lo= ac_hi=
4090 break
4092 ac_mid=`expr 2 '*' $ac_mid + 1`
4094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4095 done
4096 else
4097 echo "$as_me: failed program was:" >&5
4098 sed 's/^/| /' conftest.$ac_ext >&5
4100 cat >conftest.$ac_ext <<_ACEOF
4101 /* confdefs.h. */
4102 _ACEOF
4103 cat confdefs.h >>conftest.$ac_ext
4104 cat >>conftest.$ac_ext <<_ACEOF
4105 /* end confdefs.h. */
4106 $ac_includes_default
4108 main ()
4110 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
4111 test_array [0] = 0
4114 return 0;
4116 _ACEOF
4117 rm -f conftest.$ac_objext
4118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4119 (eval $ac_compile) 2>conftest.er1
4120 ac_status=$?
4121 grep -v '^ *+' conftest.er1 >conftest.err
4122 rm -f conftest.er1
4123 cat conftest.err >&5
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); } &&
4126 { ac_try='test -z "$ac_c_werror_flag"
4127 || test ! -s conftest.err'
4128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4129 (eval $ac_try) 2>&5
4130 ac_status=$?
4131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132 (exit $ac_status); }; } &&
4133 { ac_try='test -s conftest.$ac_objext'
4134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4135 (eval $ac_try) 2>&5
4136 ac_status=$?
4137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138 (exit $ac_status); }; }; then
4139 ac_hi=-1 ac_mid=-1
4140 while :; do
4141 cat >conftest.$ac_ext <<_ACEOF
4142 /* confdefs.h. */
4143 _ACEOF
4144 cat confdefs.h >>conftest.$ac_ext
4145 cat >>conftest.$ac_ext <<_ACEOF
4146 /* end confdefs.h. */
4147 $ac_includes_default
4149 main ()
4151 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
4152 test_array [0] = 0
4155 return 0;
4157 _ACEOF
4158 rm -f conftest.$ac_objext
4159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4160 (eval $ac_compile) 2>conftest.er1
4161 ac_status=$?
4162 grep -v '^ *+' conftest.er1 >conftest.err
4163 rm -f conftest.er1
4164 cat conftest.err >&5
4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166 (exit $ac_status); } &&
4167 { ac_try='test -z "$ac_c_werror_flag"
4168 || test ! -s conftest.err'
4169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4170 (eval $ac_try) 2>&5
4171 ac_status=$?
4172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173 (exit $ac_status); }; } &&
4174 { ac_try='test -s conftest.$ac_objext'
4175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4176 (eval $ac_try) 2>&5
4177 ac_status=$?
4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179 (exit $ac_status); }; }; then
4180 ac_lo=$ac_mid; break
4181 else
4182 echo "$as_me: failed program was:" >&5
4183 sed 's/^/| /' conftest.$ac_ext >&5
4185 ac_hi=`expr '(' $ac_mid ')' - 1`
4186 if test $ac_mid -le $ac_hi; then
4187 ac_lo= ac_hi=
4188 break
4190 ac_mid=`expr 2 '*' $ac_mid`
4192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4193 done
4194 else
4195 echo "$as_me: failed program was:" >&5
4196 sed 's/^/| /' conftest.$ac_ext >&5
4198 ac_lo= ac_hi=
4200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4203 # Binary search between lo and hi bounds.
4204 while test "x$ac_lo" != "x$ac_hi"; do
4205 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4206 cat >conftest.$ac_ext <<_ACEOF
4207 /* confdefs.h. */
4208 _ACEOF
4209 cat confdefs.h >>conftest.$ac_ext
4210 cat >>conftest.$ac_ext <<_ACEOF
4211 /* end confdefs.h. */
4212 $ac_includes_default
4214 main ()
4216 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4217 test_array [0] = 0
4220 return 0;
4222 _ACEOF
4223 rm -f conftest.$ac_objext
4224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4225 (eval $ac_compile) 2>conftest.er1
4226 ac_status=$?
4227 grep -v '^ *+' conftest.er1 >conftest.err
4228 rm -f conftest.er1
4229 cat conftest.err >&5
4230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231 (exit $ac_status); } &&
4232 { ac_try='test -z "$ac_c_werror_flag"
4233 || test ! -s conftest.err'
4234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4235 (eval $ac_try) 2>&5
4236 ac_status=$?
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); }; } &&
4239 { ac_try='test -s conftest.$ac_objext'
4240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4241 (eval $ac_try) 2>&5
4242 ac_status=$?
4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); }; }; then
4245 ac_hi=$ac_mid
4246 else
4247 echo "$as_me: failed program was:" >&5
4248 sed 's/^/| /' conftest.$ac_ext >&5
4250 ac_lo=`expr '(' $ac_mid ')' + 1`
4252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4253 done
4254 case $ac_lo in
4255 ?*) ac_cv_sizeof_void_p=$ac_lo;;
4256 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4257 See \`config.log' for more details." >&5
4258 echo "$as_me: error: cannot compute sizeof (void *), 77
4259 See \`config.log' for more details." >&2;}
4260 { (exit 1); exit 1; }; } ;;
4261 esac
4262 else
4263 if test "$cross_compiling" = yes; then
4264 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4265 See \`config.log' for more details." >&5
4266 echo "$as_me: error: cannot run test program while cross compiling
4267 See \`config.log' for more details." >&2;}
4268 { (exit 1); exit 1; }; }
4269 else
4270 cat >conftest.$ac_ext <<_ACEOF
4271 /* confdefs.h. */
4272 _ACEOF
4273 cat confdefs.h >>conftest.$ac_ext
4274 cat >>conftest.$ac_ext <<_ACEOF
4275 /* end confdefs.h. */
4276 $ac_includes_default
4277 long longval () { return (long) (sizeof (void *)); }
4278 unsigned long ulongval () { return (long) (sizeof (void *)); }
4279 #include <stdio.h>
4280 #include <stdlib.h>
4282 main ()
4285 FILE *f = fopen ("conftest.val", "w");
4286 if (! f)
4287 exit (1);
4288 if (((long) (sizeof (void *))) < 0)
4290 long i = longval ();
4291 if (i != ((long) (sizeof (void *))))
4292 exit (1);
4293 fprintf (f, "%ld\n", i);
4295 else
4297 unsigned long i = ulongval ();
4298 if (i != ((long) (sizeof (void *))))
4299 exit (1);
4300 fprintf (f, "%lu\n", i);
4302 exit (ferror (f) || fclose (f) != 0);
4305 return 0;
4307 _ACEOF
4308 rm -f conftest$ac_exeext
4309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4310 (eval $ac_link) 2>&5
4311 ac_status=$?
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4315 (eval $ac_try) 2>&5
4316 ac_status=$?
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); }; }; then
4319 ac_cv_sizeof_void_p=`cat conftest.val`
4320 else
4321 echo "$as_me: program exited with status $ac_status" >&5
4322 echo "$as_me: failed program was:" >&5
4323 sed 's/^/| /' conftest.$ac_ext >&5
4325 ( exit $ac_status )
4326 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4327 See \`config.log' for more details." >&5
4328 echo "$as_me: error: cannot compute sizeof (void *), 77
4329 See \`config.log' for more details." >&2;}
4330 { (exit 1); exit 1; }; }
4332 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4335 rm -f conftest.val
4336 else
4337 ac_cv_sizeof_void_p=0
4340 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
4341 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
4342 cat >>confdefs.h <<_ACEOF
4343 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4344 _ACEOF
4347 esac
4349 # Lacking an uint64_t? Test size of long
4350 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
4351 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
4352 echo $ECHO_N "checking for long... $ECHO_C" >&6
4353 if test "${ac_cv_type_long+set}" = set; then
4354 echo $ECHO_N "(cached) $ECHO_C" >&6
4355 else
4356 cat >conftest.$ac_ext <<_ACEOF
4357 /* confdefs.h. */
4358 _ACEOF
4359 cat confdefs.h >>conftest.$ac_ext
4360 cat >>conftest.$ac_ext <<_ACEOF
4361 /* end confdefs.h. */
4362 $ac_includes_default
4364 main ()
4366 if ((long *) 0)
4367 return 0;
4368 if (sizeof (long))
4369 return 0;
4371 return 0;
4373 _ACEOF
4374 rm -f conftest.$ac_objext
4375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4376 (eval $ac_compile) 2>conftest.er1
4377 ac_status=$?
4378 grep -v '^ *+' conftest.er1 >conftest.err
4379 rm -f conftest.er1
4380 cat conftest.err >&5
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); } &&
4383 { ac_try='test -z "$ac_c_werror_flag"
4384 || test ! -s conftest.err'
4385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4386 (eval $ac_try) 2>&5
4387 ac_status=$?
4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); }; } &&
4390 { ac_try='test -s conftest.$ac_objext'
4391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4392 (eval $ac_try) 2>&5
4393 ac_status=$?
4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395 (exit $ac_status); }; }; then
4396 ac_cv_type_long=yes
4397 else
4398 echo "$as_me: failed program was:" >&5
4399 sed 's/^/| /' conftest.$ac_ext >&5
4401 ac_cv_type_long=no
4403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4405 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4406 echo "${ECHO_T}$ac_cv_type_long" >&6
4408 echo "$as_me:$LINENO: checking size of long" >&5
4409 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4410 if test "${ac_cv_sizeof_long+set}" = set; then
4411 echo $ECHO_N "(cached) $ECHO_C" >&6
4412 else
4413 if test "$ac_cv_type_long" = yes; then
4414 # The cast to unsigned long works around a bug in the HP C Compiler
4415 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4416 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4417 # This bug is HP SR number 8606223364.
4418 if test "$cross_compiling" = yes; then
4419 # Depending upon the size, compute the lo and hi bounds.
4420 cat >conftest.$ac_ext <<_ACEOF
4421 /* confdefs.h. */
4422 _ACEOF
4423 cat confdefs.h >>conftest.$ac_ext
4424 cat >>conftest.$ac_ext <<_ACEOF
4425 /* end confdefs.h. */
4426 $ac_includes_default
4428 main ()
4430 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4431 test_array [0] = 0
4434 return 0;
4436 _ACEOF
4437 rm -f conftest.$ac_objext
4438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4439 (eval $ac_compile) 2>conftest.er1
4440 ac_status=$?
4441 grep -v '^ *+' conftest.er1 >conftest.err
4442 rm -f conftest.er1
4443 cat conftest.err >&5
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); } &&
4446 { ac_try='test -z "$ac_c_werror_flag"
4447 || test ! -s conftest.err'
4448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4449 (eval $ac_try) 2>&5
4450 ac_status=$?
4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452 (exit $ac_status); }; } &&
4453 { ac_try='test -s conftest.$ac_objext'
4454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4455 (eval $ac_try) 2>&5
4456 ac_status=$?
4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); }; }; then
4459 ac_lo=0 ac_mid=0
4460 while :; do
4461 cat >conftest.$ac_ext <<_ACEOF
4462 /* confdefs.h. */
4463 _ACEOF
4464 cat confdefs.h >>conftest.$ac_ext
4465 cat >>conftest.$ac_ext <<_ACEOF
4466 /* end confdefs.h. */
4467 $ac_includes_default
4469 main ()
4471 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4472 test_array [0] = 0
4475 return 0;
4477 _ACEOF
4478 rm -f conftest.$ac_objext
4479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4480 (eval $ac_compile) 2>conftest.er1
4481 ac_status=$?
4482 grep -v '^ *+' conftest.er1 >conftest.err
4483 rm -f conftest.er1
4484 cat conftest.err >&5
4485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486 (exit $ac_status); } &&
4487 { ac_try='test -z "$ac_c_werror_flag"
4488 || test ! -s conftest.err'
4489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4490 (eval $ac_try) 2>&5
4491 ac_status=$?
4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493 (exit $ac_status); }; } &&
4494 { ac_try='test -s conftest.$ac_objext'
4495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4496 (eval $ac_try) 2>&5
4497 ac_status=$?
4498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499 (exit $ac_status); }; }; then
4500 ac_hi=$ac_mid; break
4501 else
4502 echo "$as_me: failed program was:" >&5
4503 sed 's/^/| /' conftest.$ac_ext >&5
4505 ac_lo=`expr $ac_mid + 1`
4506 if test $ac_lo -le $ac_mid; then
4507 ac_lo= ac_hi=
4508 break
4510 ac_mid=`expr 2 '*' $ac_mid + 1`
4512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4513 done
4514 else
4515 echo "$as_me: failed program was:" >&5
4516 sed 's/^/| /' conftest.$ac_ext >&5
4518 cat >conftest.$ac_ext <<_ACEOF
4519 /* confdefs.h. */
4520 _ACEOF
4521 cat confdefs.h >>conftest.$ac_ext
4522 cat >>conftest.$ac_ext <<_ACEOF
4523 /* end confdefs.h. */
4524 $ac_includes_default
4526 main ()
4528 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4529 test_array [0] = 0
4532 return 0;
4534 _ACEOF
4535 rm -f conftest.$ac_objext
4536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4537 (eval $ac_compile) 2>conftest.er1
4538 ac_status=$?
4539 grep -v '^ *+' conftest.er1 >conftest.err
4540 rm -f conftest.er1
4541 cat conftest.err >&5
4542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); } &&
4544 { ac_try='test -z "$ac_c_werror_flag"
4545 || test ! -s conftest.err'
4546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4547 (eval $ac_try) 2>&5
4548 ac_status=$?
4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); }; } &&
4551 { ac_try='test -s conftest.$ac_objext'
4552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4553 (eval $ac_try) 2>&5
4554 ac_status=$?
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); }; }; then
4557 ac_hi=-1 ac_mid=-1
4558 while :; do
4559 cat >conftest.$ac_ext <<_ACEOF
4560 /* confdefs.h. */
4561 _ACEOF
4562 cat confdefs.h >>conftest.$ac_ext
4563 cat >>conftest.$ac_ext <<_ACEOF
4564 /* end confdefs.h. */
4565 $ac_includes_default
4567 main ()
4569 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4570 test_array [0] = 0
4573 return 0;
4575 _ACEOF
4576 rm -f conftest.$ac_objext
4577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4578 (eval $ac_compile) 2>conftest.er1
4579 ac_status=$?
4580 grep -v '^ *+' conftest.er1 >conftest.err
4581 rm -f conftest.er1
4582 cat conftest.err >&5
4583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584 (exit $ac_status); } &&
4585 { ac_try='test -z "$ac_c_werror_flag"
4586 || test ! -s conftest.err'
4587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4588 (eval $ac_try) 2>&5
4589 ac_status=$?
4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591 (exit $ac_status); }; } &&
4592 { ac_try='test -s conftest.$ac_objext'
4593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4594 (eval $ac_try) 2>&5
4595 ac_status=$?
4596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597 (exit $ac_status); }; }; then
4598 ac_lo=$ac_mid; break
4599 else
4600 echo "$as_me: failed program was:" >&5
4601 sed 's/^/| /' conftest.$ac_ext >&5
4603 ac_hi=`expr '(' $ac_mid ')' - 1`
4604 if test $ac_mid -le $ac_hi; then
4605 ac_lo= ac_hi=
4606 break
4608 ac_mid=`expr 2 '*' $ac_mid`
4610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4611 done
4612 else
4613 echo "$as_me: failed program was:" >&5
4614 sed 's/^/| /' conftest.$ac_ext >&5
4616 ac_lo= ac_hi=
4618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4621 # Binary search between lo and hi bounds.
4622 while test "x$ac_lo" != "x$ac_hi"; do
4623 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4624 cat >conftest.$ac_ext <<_ACEOF
4625 /* confdefs.h. */
4626 _ACEOF
4627 cat confdefs.h >>conftest.$ac_ext
4628 cat >>conftest.$ac_ext <<_ACEOF
4629 /* end confdefs.h. */
4630 $ac_includes_default
4632 main ()
4634 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4635 test_array [0] = 0
4638 return 0;
4640 _ACEOF
4641 rm -f conftest.$ac_objext
4642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4643 (eval $ac_compile) 2>conftest.er1
4644 ac_status=$?
4645 grep -v '^ *+' conftest.er1 >conftest.err
4646 rm -f conftest.er1
4647 cat conftest.err >&5
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); } &&
4650 { ac_try='test -z "$ac_c_werror_flag"
4651 || test ! -s conftest.err'
4652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4653 (eval $ac_try) 2>&5
4654 ac_status=$?
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); }; } &&
4657 { ac_try='test -s conftest.$ac_objext'
4658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4659 (eval $ac_try) 2>&5
4660 ac_status=$?
4661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662 (exit $ac_status); }; }; then
4663 ac_hi=$ac_mid
4664 else
4665 echo "$as_me: failed program was:" >&5
4666 sed 's/^/| /' conftest.$ac_ext >&5
4668 ac_lo=`expr '(' $ac_mid ')' + 1`
4670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4671 done
4672 case $ac_lo in
4673 ?*) ac_cv_sizeof_long=$ac_lo;;
4674 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4675 See \`config.log' for more details." >&5
4676 echo "$as_me: error: cannot compute sizeof (long), 77
4677 See \`config.log' for more details." >&2;}
4678 { (exit 1); exit 1; }; } ;;
4679 esac
4680 else
4681 if test "$cross_compiling" = yes; then
4682 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4683 See \`config.log' for more details." >&5
4684 echo "$as_me: error: cannot run test program while cross compiling
4685 See \`config.log' for more details." >&2;}
4686 { (exit 1); exit 1; }; }
4687 else
4688 cat >conftest.$ac_ext <<_ACEOF
4689 /* confdefs.h. */
4690 _ACEOF
4691 cat confdefs.h >>conftest.$ac_ext
4692 cat >>conftest.$ac_ext <<_ACEOF
4693 /* end confdefs.h. */
4694 $ac_includes_default
4695 long longval () { return (long) (sizeof (long)); }
4696 unsigned long ulongval () { return (long) (sizeof (long)); }
4697 #include <stdio.h>
4698 #include <stdlib.h>
4700 main ()
4703 FILE *f = fopen ("conftest.val", "w");
4704 if (! f)
4705 exit (1);
4706 if (((long) (sizeof (long))) < 0)
4708 long i = longval ();
4709 if (i != ((long) (sizeof (long))))
4710 exit (1);
4711 fprintf (f, "%ld\n", i);
4713 else
4715 unsigned long i = ulongval ();
4716 if (i != ((long) (sizeof (long))))
4717 exit (1);
4718 fprintf (f, "%lu\n", i);
4720 exit (ferror (f) || fclose (f) != 0);
4723 return 0;
4725 _ACEOF
4726 rm -f conftest$ac_exeext
4727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4728 (eval $ac_link) 2>&5
4729 ac_status=$?
4730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4733 (eval $ac_try) 2>&5
4734 ac_status=$?
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); }; }; then
4737 ac_cv_sizeof_long=`cat conftest.val`
4738 else
4739 echo "$as_me: program exited with status $ac_status" >&5
4740 echo "$as_me: failed program was:" >&5
4741 sed 's/^/| /' conftest.$ac_ext >&5
4743 ( exit $ac_status )
4744 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4745 See \`config.log' for more details." >&5
4746 echo "$as_me: error: cannot compute sizeof (long), 77
4747 See \`config.log' for more details." >&2;}
4748 { (exit 1); exit 1; }; }
4750 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4753 rm -f conftest.val
4754 else
4755 ac_cv_sizeof_long=0
4758 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
4759 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4760 cat >>confdefs.h <<_ACEOF
4761 #define SIZEOF_LONG $ac_cv_sizeof_long
4762 _ACEOF
4765 esac
4767 if test $acx_cv_header_stdint = stddef.h; then
4768 # Lacking a good header? Test size of everything and deduce all types.
4769 echo "$as_me:$LINENO: checking for int" >&5
4770 echo $ECHO_N "checking for int... $ECHO_C" >&6
4771 if test "${ac_cv_type_int+set}" = set; then
4772 echo $ECHO_N "(cached) $ECHO_C" >&6
4773 else
4774 cat >conftest.$ac_ext <<_ACEOF
4775 /* confdefs.h. */
4776 _ACEOF
4777 cat confdefs.h >>conftest.$ac_ext
4778 cat >>conftest.$ac_ext <<_ACEOF
4779 /* end confdefs.h. */
4780 $ac_includes_default
4782 main ()
4784 if ((int *) 0)
4785 return 0;
4786 if (sizeof (int))
4787 return 0;
4789 return 0;
4791 _ACEOF
4792 rm -f conftest.$ac_objext
4793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4794 (eval $ac_compile) 2>conftest.er1
4795 ac_status=$?
4796 grep -v '^ *+' conftest.er1 >conftest.err
4797 rm -f conftest.er1
4798 cat conftest.err >&5
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); } &&
4801 { ac_try='test -z "$ac_c_werror_flag"
4802 || test ! -s conftest.err'
4803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4804 (eval $ac_try) 2>&5
4805 ac_status=$?
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); }; } &&
4808 { ac_try='test -s conftest.$ac_objext'
4809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4810 (eval $ac_try) 2>&5
4811 ac_status=$?
4812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813 (exit $ac_status); }; }; then
4814 ac_cv_type_int=yes
4815 else
4816 echo "$as_me: failed program was:" >&5
4817 sed 's/^/| /' conftest.$ac_ext >&5
4819 ac_cv_type_int=no
4821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4823 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4824 echo "${ECHO_T}$ac_cv_type_int" >&6
4826 echo "$as_me:$LINENO: checking size of int" >&5
4827 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4828 if test "${ac_cv_sizeof_int+set}" = set; then
4829 echo $ECHO_N "(cached) $ECHO_C" >&6
4830 else
4831 if test "$ac_cv_type_int" = yes; then
4832 # The cast to unsigned long works around a bug in the HP C Compiler
4833 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4834 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4835 # This bug is HP SR number 8606223364.
4836 if test "$cross_compiling" = yes; then
4837 # Depending upon the size, compute the lo and hi bounds.
4838 cat >conftest.$ac_ext <<_ACEOF
4839 /* confdefs.h. */
4840 _ACEOF
4841 cat confdefs.h >>conftest.$ac_ext
4842 cat >>conftest.$ac_ext <<_ACEOF
4843 /* end confdefs.h. */
4844 $ac_includes_default
4846 main ()
4848 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4849 test_array [0] = 0
4852 return 0;
4854 _ACEOF
4855 rm -f conftest.$ac_objext
4856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4857 (eval $ac_compile) 2>conftest.er1
4858 ac_status=$?
4859 grep -v '^ *+' conftest.er1 >conftest.err
4860 rm -f conftest.er1
4861 cat conftest.err >&5
4862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863 (exit $ac_status); } &&
4864 { ac_try='test -z "$ac_c_werror_flag"
4865 || test ! -s conftest.err'
4866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4867 (eval $ac_try) 2>&5
4868 ac_status=$?
4869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870 (exit $ac_status); }; } &&
4871 { ac_try='test -s conftest.$ac_objext'
4872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4873 (eval $ac_try) 2>&5
4874 ac_status=$?
4875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876 (exit $ac_status); }; }; then
4877 ac_lo=0 ac_mid=0
4878 while :; do
4879 cat >conftest.$ac_ext <<_ACEOF
4880 /* confdefs.h. */
4881 _ACEOF
4882 cat confdefs.h >>conftest.$ac_ext
4883 cat >>conftest.$ac_ext <<_ACEOF
4884 /* end confdefs.h. */
4885 $ac_includes_default
4887 main ()
4889 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4890 test_array [0] = 0
4893 return 0;
4895 _ACEOF
4896 rm -f conftest.$ac_objext
4897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4898 (eval $ac_compile) 2>conftest.er1
4899 ac_status=$?
4900 grep -v '^ *+' conftest.er1 >conftest.err
4901 rm -f conftest.er1
4902 cat conftest.err >&5
4903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904 (exit $ac_status); } &&
4905 { ac_try='test -z "$ac_c_werror_flag"
4906 || test ! -s conftest.err'
4907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4908 (eval $ac_try) 2>&5
4909 ac_status=$?
4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911 (exit $ac_status); }; } &&
4912 { ac_try='test -s conftest.$ac_objext'
4913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4914 (eval $ac_try) 2>&5
4915 ac_status=$?
4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917 (exit $ac_status); }; }; then
4918 ac_hi=$ac_mid; break
4919 else
4920 echo "$as_me: failed program was:" >&5
4921 sed 's/^/| /' conftest.$ac_ext >&5
4923 ac_lo=`expr $ac_mid + 1`
4924 if test $ac_lo -le $ac_mid; then
4925 ac_lo= ac_hi=
4926 break
4928 ac_mid=`expr 2 '*' $ac_mid + 1`
4930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4931 done
4932 else
4933 echo "$as_me: failed program was:" >&5
4934 sed 's/^/| /' conftest.$ac_ext >&5
4936 cat >conftest.$ac_ext <<_ACEOF
4937 /* confdefs.h. */
4938 _ACEOF
4939 cat confdefs.h >>conftest.$ac_ext
4940 cat >>conftest.$ac_ext <<_ACEOF
4941 /* end confdefs.h. */
4942 $ac_includes_default
4944 main ()
4946 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4947 test_array [0] = 0
4950 return 0;
4952 _ACEOF
4953 rm -f conftest.$ac_objext
4954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4955 (eval $ac_compile) 2>conftest.er1
4956 ac_status=$?
4957 grep -v '^ *+' conftest.er1 >conftest.err
4958 rm -f conftest.er1
4959 cat conftest.err >&5
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); } &&
4962 { ac_try='test -z "$ac_c_werror_flag"
4963 || test ! -s conftest.err'
4964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4965 (eval $ac_try) 2>&5
4966 ac_status=$?
4967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968 (exit $ac_status); }; } &&
4969 { ac_try='test -s conftest.$ac_objext'
4970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4971 (eval $ac_try) 2>&5
4972 ac_status=$?
4973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974 (exit $ac_status); }; }; then
4975 ac_hi=-1 ac_mid=-1
4976 while :; do
4977 cat >conftest.$ac_ext <<_ACEOF
4978 /* confdefs.h. */
4979 _ACEOF
4980 cat confdefs.h >>conftest.$ac_ext
4981 cat >>conftest.$ac_ext <<_ACEOF
4982 /* end confdefs.h. */
4983 $ac_includes_default
4985 main ()
4987 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4988 test_array [0] = 0
4991 return 0;
4993 _ACEOF
4994 rm -f conftest.$ac_objext
4995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4996 (eval $ac_compile) 2>conftest.er1
4997 ac_status=$?
4998 grep -v '^ *+' conftest.er1 >conftest.err
4999 rm -f conftest.er1
5000 cat conftest.err >&5
5001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002 (exit $ac_status); } &&
5003 { ac_try='test -z "$ac_c_werror_flag"
5004 || test ! -s conftest.err'
5005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5006 (eval $ac_try) 2>&5
5007 ac_status=$?
5008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009 (exit $ac_status); }; } &&
5010 { ac_try='test -s conftest.$ac_objext'
5011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5012 (eval $ac_try) 2>&5
5013 ac_status=$?
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); }; }; then
5016 ac_lo=$ac_mid; break
5017 else
5018 echo "$as_me: failed program was:" >&5
5019 sed 's/^/| /' conftest.$ac_ext >&5
5021 ac_hi=`expr '(' $ac_mid ')' - 1`
5022 if test $ac_mid -le $ac_hi; then
5023 ac_lo= ac_hi=
5024 break
5026 ac_mid=`expr 2 '*' $ac_mid`
5028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5029 done
5030 else
5031 echo "$as_me: failed program was:" >&5
5032 sed 's/^/| /' conftest.$ac_ext >&5
5034 ac_lo= ac_hi=
5036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5039 # Binary search between lo and hi bounds.
5040 while test "x$ac_lo" != "x$ac_hi"; do
5041 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5042 cat >conftest.$ac_ext <<_ACEOF
5043 /* confdefs.h. */
5044 _ACEOF
5045 cat confdefs.h >>conftest.$ac_ext
5046 cat >>conftest.$ac_ext <<_ACEOF
5047 /* end confdefs.h. */
5048 $ac_includes_default
5050 main ()
5052 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5053 test_array [0] = 0
5056 return 0;
5058 _ACEOF
5059 rm -f conftest.$ac_objext
5060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5061 (eval $ac_compile) 2>conftest.er1
5062 ac_status=$?
5063 grep -v '^ *+' conftest.er1 >conftest.err
5064 rm -f conftest.er1
5065 cat conftest.err >&5
5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); } &&
5068 { ac_try='test -z "$ac_c_werror_flag"
5069 || test ! -s conftest.err'
5070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5071 (eval $ac_try) 2>&5
5072 ac_status=$?
5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074 (exit $ac_status); }; } &&
5075 { ac_try='test -s conftest.$ac_objext'
5076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5077 (eval $ac_try) 2>&5
5078 ac_status=$?
5079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080 (exit $ac_status); }; }; then
5081 ac_hi=$ac_mid
5082 else
5083 echo "$as_me: failed program was:" >&5
5084 sed 's/^/| /' conftest.$ac_ext >&5
5086 ac_lo=`expr '(' $ac_mid ')' + 1`
5088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5089 done
5090 case $ac_lo in
5091 ?*) ac_cv_sizeof_int=$ac_lo;;
5092 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5093 See \`config.log' for more details." >&5
5094 echo "$as_me: error: cannot compute sizeof (int), 77
5095 See \`config.log' for more details." >&2;}
5096 { (exit 1); exit 1; }; } ;;
5097 esac
5098 else
5099 if test "$cross_compiling" = yes; then
5100 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5101 See \`config.log' for more details." >&5
5102 echo "$as_me: error: cannot run test program while cross compiling
5103 See \`config.log' for more details." >&2;}
5104 { (exit 1); exit 1; }; }
5105 else
5106 cat >conftest.$ac_ext <<_ACEOF
5107 /* confdefs.h. */
5108 _ACEOF
5109 cat confdefs.h >>conftest.$ac_ext
5110 cat >>conftest.$ac_ext <<_ACEOF
5111 /* end confdefs.h. */
5112 $ac_includes_default
5113 long longval () { return (long) (sizeof (int)); }
5114 unsigned long ulongval () { return (long) (sizeof (int)); }
5115 #include <stdio.h>
5116 #include <stdlib.h>
5118 main ()
5121 FILE *f = fopen ("conftest.val", "w");
5122 if (! f)
5123 exit (1);
5124 if (((long) (sizeof (int))) < 0)
5126 long i = longval ();
5127 if (i != ((long) (sizeof (int))))
5128 exit (1);
5129 fprintf (f, "%ld\n", i);
5131 else
5133 unsigned long i = ulongval ();
5134 if (i != ((long) (sizeof (int))))
5135 exit (1);
5136 fprintf (f, "%lu\n", i);
5138 exit (ferror (f) || fclose (f) != 0);
5141 return 0;
5143 _ACEOF
5144 rm -f conftest$ac_exeext
5145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5146 (eval $ac_link) 2>&5
5147 ac_status=$?
5148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5151 (eval $ac_try) 2>&5
5152 ac_status=$?
5153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154 (exit $ac_status); }; }; then
5155 ac_cv_sizeof_int=`cat conftest.val`
5156 else
5157 echo "$as_me: program exited with status $ac_status" >&5
5158 echo "$as_me: failed program was:" >&5
5159 sed 's/^/| /' conftest.$ac_ext >&5
5161 ( exit $ac_status )
5162 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5163 See \`config.log' for more details." >&5
5164 echo "$as_me: error: cannot compute sizeof (int), 77
5165 See \`config.log' for more details." >&2;}
5166 { (exit 1); exit 1; }; }
5168 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5171 rm -f conftest.val
5172 else
5173 ac_cv_sizeof_int=0
5176 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5177 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5178 cat >>confdefs.h <<_ACEOF
5179 #define SIZEOF_INT $ac_cv_sizeof_int
5180 _ACEOF
5183 echo "$as_me:$LINENO: checking for short" >&5
5184 echo $ECHO_N "checking for short... $ECHO_C" >&6
5185 if test "${ac_cv_type_short+set}" = set; then
5186 echo $ECHO_N "(cached) $ECHO_C" >&6
5187 else
5188 cat >conftest.$ac_ext <<_ACEOF
5189 /* confdefs.h. */
5190 _ACEOF
5191 cat confdefs.h >>conftest.$ac_ext
5192 cat >>conftest.$ac_ext <<_ACEOF
5193 /* end confdefs.h. */
5194 $ac_includes_default
5196 main ()
5198 if ((short *) 0)
5199 return 0;
5200 if (sizeof (short))
5201 return 0;
5203 return 0;
5205 _ACEOF
5206 rm -f conftest.$ac_objext
5207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5208 (eval $ac_compile) 2>conftest.er1
5209 ac_status=$?
5210 grep -v '^ *+' conftest.er1 >conftest.err
5211 rm -f conftest.er1
5212 cat conftest.err >&5
5213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214 (exit $ac_status); } &&
5215 { ac_try='test -z "$ac_c_werror_flag"
5216 || test ! -s conftest.err'
5217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5218 (eval $ac_try) 2>&5
5219 ac_status=$?
5220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221 (exit $ac_status); }; } &&
5222 { ac_try='test -s conftest.$ac_objext'
5223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5224 (eval $ac_try) 2>&5
5225 ac_status=$?
5226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227 (exit $ac_status); }; }; then
5228 ac_cv_type_short=yes
5229 else
5230 echo "$as_me: failed program was:" >&5
5231 sed 's/^/| /' conftest.$ac_ext >&5
5233 ac_cv_type_short=no
5235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5237 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5238 echo "${ECHO_T}$ac_cv_type_short" >&6
5240 echo "$as_me:$LINENO: checking size of short" >&5
5241 echo $ECHO_N "checking size of short... $ECHO_C" >&6
5242 if test "${ac_cv_sizeof_short+set}" = set; then
5243 echo $ECHO_N "(cached) $ECHO_C" >&6
5244 else
5245 if test "$ac_cv_type_short" = yes; then
5246 # The cast to unsigned long works around a bug in the HP C Compiler
5247 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5248 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5249 # This bug is HP SR number 8606223364.
5250 if test "$cross_compiling" = yes; then
5251 # Depending upon the size, compute the lo and hi bounds.
5252 cat >conftest.$ac_ext <<_ACEOF
5253 /* confdefs.h. */
5254 _ACEOF
5255 cat confdefs.h >>conftest.$ac_ext
5256 cat >>conftest.$ac_ext <<_ACEOF
5257 /* end confdefs.h. */
5258 $ac_includes_default
5260 main ()
5262 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
5263 test_array [0] = 0
5266 return 0;
5268 _ACEOF
5269 rm -f conftest.$ac_objext
5270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5271 (eval $ac_compile) 2>conftest.er1
5272 ac_status=$?
5273 grep -v '^ *+' conftest.er1 >conftest.err
5274 rm -f conftest.er1
5275 cat conftest.err >&5
5276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277 (exit $ac_status); } &&
5278 { ac_try='test -z "$ac_c_werror_flag"
5279 || test ! -s conftest.err'
5280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5281 (eval $ac_try) 2>&5
5282 ac_status=$?
5283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284 (exit $ac_status); }; } &&
5285 { ac_try='test -s conftest.$ac_objext'
5286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5287 (eval $ac_try) 2>&5
5288 ac_status=$?
5289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290 (exit $ac_status); }; }; then
5291 ac_lo=0 ac_mid=0
5292 while :; do
5293 cat >conftest.$ac_ext <<_ACEOF
5294 /* confdefs.h. */
5295 _ACEOF
5296 cat confdefs.h >>conftest.$ac_ext
5297 cat >>conftest.$ac_ext <<_ACEOF
5298 /* end confdefs.h. */
5299 $ac_includes_default
5301 main ()
5303 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5304 test_array [0] = 0
5307 return 0;
5309 _ACEOF
5310 rm -f conftest.$ac_objext
5311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5312 (eval $ac_compile) 2>conftest.er1
5313 ac_status=$?
5314 grep -v '^ *+' conftest.er1 >conftest.err
5315 rm -f conftest.er1
5316 cat conftest.err >&5
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); } &&
5319 { ac_try='test -z "$ac_c_werror_flag"
5320 || test ! -s conftest.err'
5321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5322 (eval $ac_try) 2>&5
5323 ac_status=$?
5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325 (exit $ac_status); }; } &&
5326 { ac_try='test -s conftest.$ac_objext'
5327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5328 (eval $ac_try) 2>&5
5329 ac_status=$?
5330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331 (exit $ac_status); }; }; then
5332 ac_hi=$ac_mid; break
5333 else
5334 echo "$as_me: failed program was:" >&5
5335 sed 's/^/| /' conftest.$ac_ext >&5
5337 ac_lo=`expr $ac_mid + 1`
5338 if test $ac_lo -le $ac_mid; then
5339 ac_lo= ac_hi=
5340 break
5342 ac_mid=`expr 2 '*' $ac_mid + 1`
5344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5345 done
5346 else
5347 echo "$as_me: failed program was:" >&5
5348 sed 's/^/| /' conftest.$ac_ext >&5
5350 cat >conftest.$ac_ext <<_ACEOF
5351 /* confdefs.h. */
5352 _ACEOF
5353 cat confdefs.h >>conftest.$ac_ext
5354 cat >>conftest.$ac_ext <<_ACEOF
5355 /* end confdefs.h. */
5356 $ac_includes_default
5358 main ()
5360 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
5361 test_array [0] = 0
5364 return 0;
5366 _ACEOF
5367 rm -f conftest.$ac_objext
5368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5369 (eval $ac_compile) 2>conftest.er1
5370 ac_status=$?
5371 grep -v '^ *+' conftest.er1 >conftest.err
5372 rm -f conftest.er1
5373 cat conftest.err >&5
5374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375 (exit $ac_status); } &&
5376 { ac_try='test -z "$ac_c_werror_flag"
5377 || test ! -s conftest.err'
5378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5379 (eval $ac_try) 2>&5
5380 ac_status=$?
5381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382 (exit $ac_status); }; } &&
5383 { ac_try='test -s conftest.$ac_objext'
5384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5385 (eval $ac_try) 2>&5
5386 ac_status=$?
5387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388 (exit $ac_status); }; }; then
5389 ac_hi=-1 ac_mid=-1
5390 while :; do
5391 cat >conftest.$ac_ext <<_ACEOF
5392 /* confdefs.h. */
5393 _ACEOF
5394 cat confdefs.h >>conftest.$ac_ext
5395 cat >>conftest.$ac_ext <<_ACEOF
5396 /* end confdefs.h. */
5397 $ac_includes_default
5399 main ()
5401 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
5402 test_array [0] = 0
5405 return 0;
5407 _ACEOF
5408 rm -f conftest.$ac_objext
5409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5410 (eval $ac_compile) 2>conftest.er1
5411 ac_status=$?
5412 grep -v '^ *+' conftest.er1 >conftest.err
5413 rm -f conftest.er1
5414 cat conftest.err >&5
5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416 (exit $ac_status); } &&
5417 { ac_try='test -z "$ac_c_werror_flag"
5418 || test ! -s conftest.err'
5419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5420 (eval $ac_try) 2>&5
5421 ac_status=$?
5422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423 (exit $ac_status); }; } &&
5424 { ac_try='test -s conftest.$ac_objext'
5425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5426 (eval $ac_try) 2>&5
5427 ac_status=$?
5428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429 (exit $ac_status); }; }; then
5430 ac_lo=$ac_mid; break
5431 else
5432 echo "$as_me: failed program was:" >&5
5433 sed 's/^/| /' conftest.$ac_ext >&5
5435 ac_hi=`expr '(' $ac_mid ')' - 1`
5436 if test $ac_mid -le $ac_hi; then
5437 ac_lo= ac_hi=
5438 break
5440 ac_mid=`expr 2 '*' $ac_mid`
5442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5443 done
5444 else
5445 echo "$as_me: failed program was:" >&5
5446 sed 's/^/| /' conftest.$ac_ext >&5
5448 ac_lo= ac_hi=
5450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5453 # Binary search between lo and hi bounds.
5454 while test "x$ac_lo" != "x$ac_hi"; do
5455 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5456 cat >conftest.$ac_ext <<_ACEOF
5457 /* confdefs.h. */
5458 _ACEOF
5459 cat confdefs.h >>conftest.$ac_ext
5460 cat >>conftest.$ac_ext <<_ACEOF
5461 /* end confdefs.h. */
5462 $ac_includes_default
5464 main ()
5466 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5467 test_array [0] = 0
5470 return 0;
5472 _ACEOF
5473 rm -f conftest.$ac_objext
5474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5475 (eval $ac_compile) 2>conftest.er1
5476 ac_status=$?
5477 grep -v '^ *+' conftest.er1 >conftest.err
5478 rm -f conftest.er1
5479 cat conftest.err >&5
5480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481 (exit $ac_status); } &&
5482 { ac_try='test -z "$ac_c_werror_flag"
5483 || test ! -s conftest.err'
5484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5485 (eval $ac_try) 2>&5
5486 ac_status=$?
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); }; } &&
5489 { ac_try='test -s conftest.$ac_objext'
5490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5491 (eval $ac_try) 2>&5
5492 ac_status=$?
5493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494 (exit $ac_status); }; }; then
5495 ac_hi=$ac_mid
5496 else
5497 echo "$as_me: failed program was:" >&5
5498 sed 's/^/| /' conftest.$ac_ext >&5
5500 ac_lo=`expr '(' $ac_mid ')' + 1`
5502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5503 done
5504 case $ac_lo in
5505 ?*) ac_cv_sizeof_short=$ac_lo;;
5506 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5507 See \`config.log' for more details." >&5
5508 echo "$as_me: error: cannot compute sizeof (short), 77
5509 See \`config.log' for more details." >&2;}
5510 { (exit 1); exit 1; }; } ;;
5511 esac
5512 else
5513 if test "$cross_compiling" = yes; then
5514 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5515 See \`config.log' for more details." >&5
5516 echo "$as_me: error: cannot run test program while cross compiling
5517 See \`config.log' for more details." >&2;}
5518 { (exit 1); exit 1; }; }
5519 else
5520 cat >conftest.$ac_ext <<_ACEOF
5521 /* confdefs.h. */
5522 _ACEOF
5523 cat confdefs.h >>conftest.$ac_ext
5524 cat >>conftest.$ac_ext <<_ACEOF
5525 /* end confdefs.h. */
5526 $ac_includes_default
5527 long longval () { return (long) (sizeof (short)); }
5528 unsigned long ulongval () { return (long) (sizeof (short)); }
5529 #include <stdio.h>
5530 #include <stdlib.h>
5532 main ()
5535 FILE *f = fopen ("conftest.val", "w");
5536 if (! f)
5537 exit (1);
5538 if (((long) (sizeof (short))) < 0)
5540 long i = longval ();
5541 if (i != ((long) (sizeof (short))))
5542 exit (1);
5543 fprintf (f, "%ld\n", i);
5545 else
5547 unsigned long i = ulongval ();
5548 if (i != ((long) (sizeof (short))))
5549 exit (1);
5550 fprintf (f, "%lu\n", i);
5552 exit (ferror (f) || fclose (f) != 0);
5555 return 0;
5557 _ACEOF
5558 rm -f conftest$ac_exeext
5559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5560 (eval $ac_link) 2>&5
5561 ac_status=$?
5562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5565 (eval $ac_try) 2>&5
5566 ac_status=$?
5567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568 (exit $ac_status); }; }; then
5569 ac_cv_sizeof_short=`cat conftest.val`
5570 else
5571 echo "$as_me: program exited with status $ac_status" >&5
5572 echo "$as_me: failed program was:" >&5
5573 sed 's/^/| /' conftest.$ac_ext >&5
5575 ( exit $ac_status )
5576 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5577 See \`config.log' for more details." >&5
5578 echo "$as_me: error: cannot compute sizeof (short), 77
5579 See \`config.log' for more details." >&2;}
5580 { (exit 1); exit 1; }; }
5582 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5585 rm -f conftest.val
5586 else
5587 ac_cv_sizeof_short=0
5590 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5591 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5592 cat >>confdefs.h <<_ACEOF
5593 #define SIZEOF_SHORT $ac_cv_sizeof_short
5594 _ACEOF
5597 echo "$as_me:$LINENO: checking for char" >&5
5598 echo $ECHO_N "checking for char... $ECHO_C" >&6
5599 if test "${ac_cv_type_char+set}" = set; then
5600 echo $ECHO_N "(cached) $ECHO_C" >&6
5601 else
5602 cat >conftest.$ac_ext <<_ACEOF
5603 /* confdefs.h. */
5604 _ACEOF
5605 cat confdefs.h >>conftest.$ac_ext
5606 cat >>conftest.$ac_ext <<_ACEOF
5607 /* end confdefs.h. */
5608 $ac_includes_default
5610 main ()
5612 if ((char *) 0)
5613 return 0;
5614 if (sizeof (char))
5615 return 0;
5617 return 0;
5619 _ACEOF
5620 rm -f conftest.$ac_objext
5621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5622 (eval $ac_compile) 2>conftest.er1
5623 ac_status=$?
5624 grep -v '^ *+' conftest.er1 >conftest.err
5625 rm -f conftest.er1
5626 cat conftest.err >&5
5627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628 (exit $ac_status); } &&
5629 { ac_try='test -z "$ac_c_werror_flag"
5630 || test ! -s conftest.err'
5631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5632 (eval $ac_try) 2>&5
5633 ac_status=$?
5634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635 (exit $ac_status); }; } &&
5636 { ac_try='test -s conftest.$ac_objext'
5637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5638 (eval $ac_try) 2>&5
5639 ac_status=$?
5640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641 (exit $ac_status); }; }; then
5642 ac_cv_type_char=yes
5643 else
5644 echo "$as_me: failed program was:" >&5
5645 sed 's/^/| /' conftest.$ac_ext >&5
5647 ac_cv_type_char=no
5649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5651 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
5652 echo "${ECHO_T}$ac_cv_type_char" >&6
5654 echo "$as_me:$LINENO: checking size of char" >&5
5655 echo $ECHO_N "checking size of char... $ECHO_C" >&6
5656 if test "${ac_cv_sizeof_char+set}" = set; then
5657 echo $ECHO_N "(cached) $ECHO_C" >&6
5658 else
5659 if test "$ac_cv_type_char" = yes; then
5660 # The cast to unsigned long works around a bug in the HP C Compiler
5661 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5662 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5663 # This bug is HP SR number 8606223364.
5664 if test "$cross_compiling" = yes; then
5665 # Depending upon the size, compute the lo and hi bounds.
5666 cat >conftest.$ac_ext <<_ACEOF
5667 /* confdefs.h. */
5668 _ACEOF
5669 cat confdefs.h >>conftest.$ac_ext
5670 cat >>conftest.$ac_ext <<_ACEOF
5671 /* end confdefs.h. */
5672 $ac_includes_default
5674 main ()
5676 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
5677 test_array [0] = 0
5680 return 0;
5682 _ACEOF
5683 rm -f conftest.$ac_objext
5684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5685 (eval $ac_compile) 2>conftest.er1
5686 ac_status=$?
5687 grep -v '^ *+' conftest.er1 >conftest.err
5688 rm -f conftest.er1
5689 cat conftest.err >&5
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); } &&
5692 { ac_try='test -z "$ac_c_werror_flag"
5693 || test ! -s conftest.err'
5694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5695 (eval $ac_try) 2>&5
5696 ac_status=$?
5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); }; } &&
5699 { ac_try='test -s conftest.$ac_objext'
5700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5701 (eval $ac_try) 2>&5
5702 ac_status=$?
5703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704 (exit $ac_status); }; }; then
5705 ac_lo=0 ac_mid=0
5706 while :; do
5707 cat >conftest.$ac_ext <<_ACEOF
5708 /* confdefs.h. */
5709 _ACEOF
5710 cat confdefs.h >>conftest.$ac_ext
5711 cat >>conftest.$ac_ext <<_ACEOF
5712 /* end confdefs.h. */
5713 $ac_includes_default
5715 main ()
5717 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
5718 test_array [0] = 0
5721 return 0;
5723 _ACEOF
5724 rm -f conftest.$ac_objext
5725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5726 (eval $ac_compile) 2>conftest.er1
5727 ac_status=$?
5728 grep -v '^ *+' conftest.er1 >conftest.err
5729 rm -f conftest.er1
5730 cat conftest.err >&5
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); } &&
5733 { ac_try='test -z "$ac_c_werror_flag"
5734 || test ! -s conftest.err'
5735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5736 (eval $ac_try) 2>&5
5737 ac_status=$?
5738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739 (exit $ac_status); }; } &&
5740 { ac_try='test -s conftest.$ac_objext'
5741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5742 (eval $ac_try) 2>&5
5743 ac_status=$?
5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 (exit $ac_status); }; }; then
5746 ac_hi=$ac_mid; break
5747 else
5748 echo "$as_me: failed program was:" >&5
5749 sed 's/^/| /' conftest.$ac_ext >&5
5751 ac_lo=`expr $ac_mid + 1`
5752 if test $ac_lo -le $ac_mid; then
5753 ac_lo= ac_hi=
5754 break
5756 ac_mid=`expr 2 '*' $ac_mid + 1`
5758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5759 done
5760 else
5761 echo "$as_me: failed program was:" >&5
5762 sed 's/^/| /' conftest.$ac_ext >&5
5764 cat >conftest.$ac_ext <<_ACEOF
5765 /* confdefs.h. */
5766 _ACEOF
5767 cat confdefs.h >>conftest.$ac_ext
5768 cat >>conftest.$ac_ext <<_ACEOF
5769 /* end confdefs.h. */
5770 $ac_includes_default
5772 main ()
5774 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
5775 test_array [0] = 0
5778 return 0;
5780 _ACEOF
5781 rm -f conftest.$ac_objext
5782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5783 (eval $ac_compile) 2>conftest.er1
5784 ac_status=$?
5785 grep -v '^ *+' conftest.er1 >conftest.err
5786 rm -f conftest.er1
5787 cat conftest.err >&5
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); } &&
5790 { ac_try='test -z "$ac_c_werror_flag"
5791 || test ! -s conftest.err'
5792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5793 (eval $ac_try) 2>&5
5794 ac_status=$?
5795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796 (exit $ac_status); }; } &&
5797 { ac_try='test -s conftest.$ac_objext'
5798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5799 (eval $ac_try) 2>&5
5800 ac_status=$?
5801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802 (exit $ac_status); }; }; then
5803 ac_hi=-1 ac_mid=-1
5804 while :; do
5805 cat >conftest.$ac_ext <<_ACEOF
5806 /* confdefs.h. */
5807 _ACEOF
5808 cat confdefs.h >>conftest.$ac_ext
5809 cat >>conftest.$ac_ext <<_ACEOF
5810 /* end confdefs.h. */
5811 $ac_includes_default
5813 main ()
5815 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
5816 test_array [0] = 0
5819 return 0;
5821 _ACEOF
5822 rm -f conftest.$ac_objext
5823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5824 (eval $ac_compile) 2>conftest.er1
5825 ac_status=$?
5826 grep -v '^ *+' conftest.er1 >conftest.err
5827 rm -f conftest.er1
5828 cat conftest.err >&5
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); } &&
5831 { ac_try='test -z "$ac_c_werror_flag"
5832 || test ! -s conftest.err'
5833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5834 (eval $ac_try) 2>&5
5835 ac_status=$?
5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837 (exit $ac_status); }; } &&
5838 { ac_try='test -s conftest.$ac_objext'
5839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5840 (eval $ac_try) 2>&5
5841 ac_status=$?
5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); }; }; then
5844 ac_lo=$ac_mid; break
5845 else
5846 echo "$as_me: failed program was:" >&5
5847 sed 's/^/| /' conftest.$ac_ext >&5
5849 ac_hi=`expr '(' $ac_mid ')' - 1`
5850 if test $ac_mid -le $ac_hi; then
5851 ac_lo= ac_hi=
5852 break
5854 ac_mid=`expr 2 '*' $ac_mid`
5856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5857 done
5858 else
5859 echo "$as_me: failed program was:" >&5
5860 sed 's/^/| /' conftest.$ac_ext >&5
5862 ac_lo= ac_hi=
5864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5867 # Binary search between lo and hi bounds.
5868 while test "x$ac_lo" != "x$ac_hi"; do
5869 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5870 cat >conftest.$ac_ext <<_ACEOF
5871 /* confdefs.h. */
5872 _ACEOF
5873 cat confdefs.h >>conftest.$ac_ext
5874 cat >>conftest.$ac_ext <<_ACEOF
5875 /* end confdefs.h. */
5876 $ac_includes_default
5878 main ()
5880 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
5881 test_array [0] = 0
5884 return 0;
5886 _ACEOF
5887 rm -f conftest.$ac_objext
5888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5889 (eval $ac_compile) 2>conftest.er1
5890 ac_status=$?
5891 grep -v '^ *+' conftest.er1 >conftest.err
5892 rm -f conftest.er1
5893 cat conftest.err >&5
5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 (exit $ac_status); } &&
5896 { ac_try='test -z "$ac_c_werror_flag"
5897 || test ! -s conftest.err'
5898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5899 (eval $ac_try) 2>&5
5900 ac_status=$?
5901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5902 (exit $ac_status); }; } &&
5903 { ac_try='test -s conftest.$ac_objext'
5904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5905 (eval $ac_try) 2>&5
5906 ac_status=$?
5907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908 (exit $ac_status); }; }; then
5909 ac_hi=$ac_mid
5910 else
5911 echo "$as_me: failed program was:" >&5
5912 sed 's/^/| /' conftest.$ac_ext >&5
5914 ac_lo=`expr '(' $ac_mid ')' + 1`
5916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5917 done
5918 case $ac_lo in
5919 ?*) ac_cv_sizeof_char=$ac_lo;;
5920 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
5921 See \`config.log' for more details." >&5
5922 echo "$as_me: error: cannot compute sizeof (char), 77
5923 See \`config.log' for more details." >&2;}
5924 { (exit 1); exit 1; }; } ;;
5925 esac
5926 else
5927 if test "$cross_compiling" = yes; then
5928 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5929 See \`config.log' for more details." >&5
5930 echo "$as_me: error: cannot run test program while cross compiling
5931 See \`config.log' for more details." >&2;}
5932 { (exit 1); exit 1; }; }
5933 else
5934 cat >conftest.$ac_ext <<_ACEOF
5935 /* confdefs.h. */
5936 _ACEOF
5937 cat confdefs.h >>conftest.$ac_ext
5938 cat >>conftest.$ac_ext <<_ACEOF
5939 /* end confdefs.h. */
5940 $ac_includes_default
5941 long longval () { return (long) (sizeof (char)); }
5942 unsigned long ulongval () { return (long) (sizeof (char)); }
5943 #include <stdio.h>
5944 #include <stdlib.h>
5946 main ()
5949 FILE *f = fopen ("conftest.val", "w");
5950 if (! f)
5951 exit (1);
5952 if (((long) (sizeof (char))) < 0)
5954 long i = longval ();
5955 if (i != ((long) (sizeof (char))))
5956 exit (1);
5957 fprintf (f, "%ld\n", i);
5959 else
5961 unsigned long i = ulongval ();
5962 if (i != ((long) (sizeof (char))))
5963 exit (1);
5964 fprintf (f, "%lu\n", i);
5966 exit (ferror (f) || fclose (f) != 0);
5969 return 0;
5971 _ACEOF
5972 rm -f conftest$ac_exeext
5973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5974 (eval $ac_link) 2>&5
5975 ac_status=$?
5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5979 (eval $ac_try) 2>&5
5980 ac_status=$?
5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); }; }; then
5983 ac_cv_sizeof_char=`cat conftest.val`
5984 else
5985 echo "$as_me: program exited with status $ac_status" >&5
5986 echo "$as_me: failed program was:" >&5
5987 sed 's/^/| /' conftest.$ac_ext >&5
5989 ( exit $ac_status )
5990 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
5991 See \`config.log' for more details." >&5
5992 echo "$as_me: error: cannot compute sizeof (char), 77
5993 See \`config.log' for more details." >&2;}
5994 { (exit 1); exit 1; }; }
5996 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5999 rm -f conftest.val
6000 else
6001 ac_cv_sizeof_char=0
6004 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
6005 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
6006 cat >>confdefs.h <<_ACEOF
6007 #define SIZEOF_CHAR $ac_cv_sizeof_char
6008 _ACEOF
6012 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
6013 echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
6014 case "$ac_cv_sizeof_char" in
6015 1) acx_cv_type_int8_t=char ;;
6016 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
6017 echo "$as_me: error: no 8-bit type" >&2;}
6018 { (exit please report a bug); exit please report a bug; }; }
6019 esac
6020 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
6021 echo "${ECHO_T}$acx_cv_type_int8_t" >&6
6023 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
6024 echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
6025 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
6026 2:*) acx_cv_type_int16_t=int ;;
6027 *:2) acx_cv_type_int16_t=short ;;
6028 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
6029 echo "$as_me: error: no 16-bit type" >&2;}
6030 { (exit please report a bug); exit please report a bug; }; }
6031 esac
6032 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
6033 echo "${ECHO_T}$acx_cv_type_int16_t" >&6
6035 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
6036 echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
6037 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
6038 4:*) acx_cv_type_int32_t=int ;;
6039 *:4) acx_cv_type_int32_t=long ;;
6040 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
6041 echo "$as_me: error: no 32-bit type" >&2;}
6042 { (exit please report a bug); exit please report a bug; }; }
6043 esac
6044 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
6045 echo "${ECHO_T}$acx_cv_type_int32_t" >&6
6048 # These tests are here to make the output prettier
6050 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
6051 case "$ac_cv_sizeof_long" in
6052 8) acx_cv_type_int64_t=long ;;
6053 esac
6054 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
6055 echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
6056 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
6057 echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
6060 # Now we can use the above types
6062 if test "$ac_cv_type_uintptr_t" != yes; then
6063 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
6064 echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
6065 case $ac_cv_sizeof_void_p in
6066 2) acx_cv_type_intptr_t=int16_t ;;
6067 4) acx_cv_type_intptr_t=int32_t ;;
6068 8) acx_cv_type_intptr_t=int64_t ;;
6069 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
6070 echo "$as_me: error: no equivalent for intptr_t" >&2;}
6071 { (exit please report a bug); exit please report a bug; }; }
6072 esac
6073 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
6074 echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
6077 # ----------------- done all checks, emit header -------------
6078 ac_config_commands="$ac_config_commands gstdint.h"
6083 # Checks for typedefs, structures, and compiler characteristics.
6084 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6085 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6086 if test "${ac_cv_c_const+set}" = set; then
6087 echo $ECHO_N "(cached) $ECHO_C" >&6
6088 else
6089 cat >conftest.$ac_ext <<_ACEOF
6090 /* confdefs.h. */
6091 _ACEOF
6092 cat confdefs.h >>conftest.$ac_ext
6093 cat >>conftest.$ac_ext <<_ACEOF
6094 /* end confdefs.h. */
6097 main ()
6099 /* FIXME: Include the comments suggested by Paul. */
6100 #ifndef __cplusplus
6101 /* Ultrix mips cc rejects this. */
6102 typedef int charset[2];
6103 const charset x;
6104 /* SunOS 4.1.1 cc rejects this. */
6105 char const *const *ccp;
6106 char **p;
6107 /* NEC SVR4.0.2 mips cc rejects this. */
6108 struct point {int x, y;};
6109 static struct point const zero = {0,0};
6110 /* AIX XL C 1.02.0.0 rejects this.
6111 It does not let you subtract one const X* pointer from another in
6112 an arm of an if-expression whose if-part is not a constant
6113 expression */
6114 const char *g = "string";
6115 ccp = &g + (g ? g-g : 0);
6116 /* HPUX 7.0 cc rejects these. */
6117 ++ccp;
6118 p = (char**) ccp;
6119 ccp = (char const *const *) p;
6120 { /* SCO 3.2v4 cc rejects this. */
6121 char *t;
6122 char const *s = 0 ? (char *) 0 : (char const *) 0;
6124 *t++ = 0;
6126 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6127 int x[] = {25, 17};
6128 const int *foo = &x[0];
6129 ++foo;
6131 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6132 typedef const int *iptr;
6133 iptr p = 0;
6134 ++p;
6136 { /* AIX XL C 1.02.0.0 rejects this saying
6137 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6138 struct s { int j; const int *ap[3]; };
6139 struct s *b; b->j = 5;
6141 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6142 const int foo = 10;
6144 #endif
6147 return 0;
6149 _ACEOF
6150 rm -f conftest.$ac_objext
6151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6152 (eval $ac_compile) 2>conftest.er1
6153 ac_status=$?
6154 grep -v '^ *+' conftest.er1 >conftest.err
6155 rm -f conftest.er1
6156 cat conftest.err >&5
6157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158 (exit $ac_status); } &&
6159 { ac_try='test -z "$ac_c_werror_flag"
6160 || test ! -s conftest.err'
6161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6162 (eval $ac_try) 2>&5
6163 ac_status=$?
6164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); }; } &&
6166 { ac_try='test -s conftest.$ac_objext'
6167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6168 (eval $ac_try) 2>&5
6169 ac_status=$?
6170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171 (exit $ac_status); }; }; then
6172 ac_cv_c_const=yes
6173 else
6174 echo "$as_me: failed program was:" >&5
6175 sed 's/^/| /' conftest.$ac_ext >&5
6177 ac_cv_c_const=no
6179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6181 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6182 echo "${ECHO_T}$ac_cv_c_const" >&6
6183 if test $ac_cv_c_const = no; then
6185 cat >>confdefs.h <<\_ACEOF
6186 #define const
6187 _ACEOF
6191 echo "$as_me:$LINENO: checking for off_t" >&5
6192 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6193 if test "${ac_cv_type_off_t+set}" = set; then
6194 echo $ECHO_N "(cached) $ECHO_C" >&6
6195 else
6196 cat >conftest.$ac_ext <<_ACEOF
6197 /* confdefs.h. */
6198 _ACEOF
6199 cat confdefs.h >>conftest.$ac_ext
6200 cat >>conftest.$ac_ext <<_ACEOF
6201 /* end confdefs.h. */
6202 $ac_includes_default
6204 main ()
6206 if ((off_t *) 0)
6207 return 0;
6208 if (sizeof (off_t))
6209 return 0;
6211 return 0;
6213 _ACEOF
6214 rm -f conftest.$ac_objext
6215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6216 (eval $ac_compile) 2>conftest.er1
6217 ac_status=$?
6218 grep -v '^ *+' conftest.er1 >conftest.err
6219 rm -f conftest.er1
6220 cat conftest.err >&5
6221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222 (exit $ac_status); } &&
6223 { ac_try='test -z "$ac_c_werror_flag"
6224 || test ! -s conftest.err'
6225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6226 (eval $ac_try) 2>&5
6227 ac_status=$?
6228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229 (exit $ac_status); }; } &&
6230 { ac_try='test -s conftest.$ac_objext'
6231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6232 (eval $ac_try) 2>&5
6233 ac_status=$?
6234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6235 (exit $ac_status); }; }; then
6236 ac_cv_type_off_t=yes
6237 else
6238 echo "$as_me: failed program was:" >&5
6239 sed 's/^/| /' conftest.$ac_ext >&5
6241 ac_cv_type_off_t=no
6243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6245 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6246 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6247 if test $ac_cv_type_off_t = yes; then
6249 else
6251 cat >>confdefs.h <<_ACEOF
6252 #define off_t long
6253 _ACEOF
6257 echo "$as_me:$LINENO: checking for int" >&5
6258 echo $ECHO_N "checking for int... $ECHO_C" >&6
6259 if test "${ac_cv_type_int+set}" = set; then
6260 echo $ECHO_N "(cached) $ECHO_C" >&6
6261 else
6262 cat >conftest.$ac_ext <<_ACEOF
6263 /* confdefs.h. */
6264 _ACEOF
6265 cat confdefs.h >>conftest.$ac_ext
6266 cat >>conftest.$ac_ext <<_ACEOF
6267 /* end confdefs.h. */
6268 $ac_includes_default
6270 main ()
6272 if ((int *) 0)
6273 return 0;
6274 if (sizeof (int))
6275 return 0;
6277 return 0;
6279 _ACEOF
6280 rm -f conftest.$ac_objext
6281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6282 (eval $ac_compile) 2>conftest.er1
6283 ac_status=$?
6284 grep -v '^ *+' conftest.er1 >conftest.err
6285 rm -f conftest.er1
6286 cat conftest.err >&5
6287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288 (exit $ac_status); } &&
6289 { ac_try='test -z "$ac_c_werror_flag"
6290 || test ! -s conftest.err'
6291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6292 (eval $ac_try) 2>&5
6293 ac_status=$?
6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); }; } &&
6296 { ac_try='test -s conftest.$ac_objext'
6297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6298 (eval $ac_try) 2>&5
6299 ac_status=$?
6300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301 (exit $ac_status); }; }; then
6302 ac_cv_type_int=yes
6303 else
6304 echo "$as_me: failed program was:" >&5
6305 sed 's/^/| /' conftest.$ac_ext >&5
6307 ac_cv_type_int=no
6309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6311 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6312 echo "${ECHO_T}$ac_cv_type_int" >&6
6314 echo "$as_me:$LINENO: checking size of int" >&5
6315 echo $ECHO_N "checking size of int... $ECHO_C" >&6
6316 if test "${ac_cv_sizeof_int+set}" = set; then
6317 echo $ECHO_N "(cached) $ECHO_C" >&6
6318 else
6319 if test "$ac_cv_type_int" = yes; then
6320 # The cast to unsigned long works around a bug in the HP C Compiler
6321 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6322 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6323 # This bug is HP SR number 8606223364.
6324 if test "$cross_compiling" = yes; then
6325 # Depending upon the size, compute the lo and hi bounds.
6326 cat >conftest.$ac_ext <<_ACEOF
6327 /* confdefs.h. */
6328 _ACEOF
6329 cat confdefs.h >>conftest.$ac_ext
6330 cat >>conftest.$ac_ext <<_ACEOF
6331 /* end confdefs.h. */
6332 $ac_includes_default
6334 main ()
6336 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
6337 test_array [0] = 0
6340 return 0;
6342 _ACEOF
6343 rm -f conftest.$ac_objext
6344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6345 (eval $ac_compile) 2>conftest.er1
6346 ac_status=$?
6347 grep -v '^ *+' conftest.er1 >conftest.err
6348 rm -f conftest.er1
6349 cat conftest.err >&5
6350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351 (exit $ac_status); } &&
6352 { ac_try='test -z "$ac_c_werror_flag"
6353 || test ! -s conftest.err'
6354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6355 (eval $ac_try) 2>&5
6356 ac_status=$?
6357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358 (exit $ac_status); }; } &&
6359 { ac_try='test -s conftest.$ac_objext'
6360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6361 (eval $ac_try) 2>&5
6362 ac_status=$?
6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); }; }; then
6365 ac_lo=0 ac_mid=0
6366 while :; do
6367 cat >conftest.$ac_ext <<_ACEOF
6368 /* confdefs.h. */
6369 _ACEOF
6370 cat confdefs.h >>conftest.$ac_ext
6371 cat >>conftest.$ac_ext <<_ACEOF
6372 /* end confdefs.h. */
6373 $ac_includes_default
6375 main ()
6377 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6378 test_array [0] = 0
6381 return 0;
6383 _ACEOF
6384 rm -f conftest.$ac_objext
6385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6386 (eval $ac_compile) 2>conftest.er1
6387 ac_status=$?
6388 grep -v '^ *+' conftest.er1 >conftest.err
6389 rm -f conftest.er1
6390 cat conftest.err >&5
6391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392 (exit $ac_status); } &&
6393 { ac_try='test -z "$ac_c_werror_flag"
6394 || test ! -s conftest.err'
6395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6396 (eval $ac_try) 2>&5
6397 ac_status=$?
6398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399 (exit $ac_status); }; } &&
6400 { ac_try='test -s conftest.$ac_objext'
6401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6402 (eval $ac_try) 2>&5
6403 ac_status=$?
6404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405 (exit $ac_status); }; }; then
6406 ac_hi=$ac_mid; break
6407 else
6408 echo "$as_me: failed program was:" >&5
6409 sed 's/^/| /' conftest.$ac_ext >&5
6411 ac_lo=`expr $ac_mid + 1`
6412 if test $ac_lo -le $ac_mid; then
6413 ac_lo= ac_hi=
6414 break
6416 ac_mid=`expr 2 '*' $ac_mid + 1`
6418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6419 done
6420 else
6421 echo "$as_me: failed program was:" >&5
6422 sed 's/^/| /' conftest.$ac_ext >&5
6424 cat >conftest.$ac_ext <<_ACEOF
6425 /* confdefs.h. */
6426 _ACEOF
6427 cat confdefs.h >>conftest.$ac_ext
6428 cat >>conftest.$ac_ext <<_ACEOF
6429 /* end confdefs.h. */
6430 $ac_includes_default
6432 main ()
6434 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
6435 test_array [0] = 0
6438 return 0;
6440 _ACEOF
6441 rm -f conftest.$ac_objext
6442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6443 (eval $ac_compile) 2>conftest.er1
6444 ac_status=$?
6445 grep -v '^ *+' conftest.er1 >conftest.err
6446 rm -f conftest.er1
6447 cat conftest.err >&5
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); } &&
6450 { ac_try='test -z "$ac_c_werror_flag"
6451 || test ! -s conftest.err'
6452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6453 (eval $ac_try) 2>&5
6454 ac_status=$?
6455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456 (exit $ac_status); }; } &&
6457 { ac_try='test -s conftest.$ac_objext'
6458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6459 (eval $ac_try) 2>&5
6460 ac_status=$?
6461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462 (exit $ac_status); }; }; then
6463 ac_hi=-1 ac_mid=-1
6464 while :; do
6465 cat >conftest.$ac_ext <<_ACEOF
6466 /* confdefs.h. */
6467 _ACEOF
6468 cat confdefs.h >>conftest.$ac_ext
6469 cat >>conftest.$ac_ext <<_ACEOF
6470 /* end confdefs.h. */
6471 $ac_includes_default
6473 main ()
6475 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
6476 test_array [0] = 0
6479 return 0;
6481 _ACEOF
6482 rm -f conftest.$ac_objext
6483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6484 (eval $ac_compile) 2>conftest.er1
6485 ac_status=$?
6486 grep -v '^ *+' conftest.er1 >conftest.err
6487 rm -f conftest.er1
6488 cat conftest.err >&5
6489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490 (exit $ac_status); } &&
6491 { ac_try='test -z "$ac_c_werror_flag"
6492 || test ! -s conftest.err'
6493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6494 (eval $ac_try) 2>&5
6495 ac_status=$?
6496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497 (exit $ac_status); }; } &&
6498 { ac_try='test -s conftest.$ac_objext'
6499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6500 (eval $ac_try) 2>&5
6501 ac_status=$?
6502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503 (exit $ac_status); }; }; then
6504 ac_lo=$ac_mid; break
6505 else
6506 echo "$as_me: failed program was:" >&5
6507 sed 's/^/| /' conftest.$ac_ext >&5
6509 ac_hi=`expr '(' $ac_mid ')' - 1`
6510 if test $ac_mid -le $ac_hi; then
6511 ac_lo= ac_hi=
6512 break
6514 ac_mid=`expr 2 '*' $ac_mid`
6516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6517 done
6518 else
6519 echo "$as_me: failed program was:" >&5
6520 sed 's/^/| /' conftest.$ac_ext >&5
6522 ac_lo= ac_hi=
6524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6527 # Binary search between lo and hi bounds.
6528 while test "x$ac_lo" != "x$ac_hi"; do
6529 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6530 cat >conftest.$ac_ext <<_ACEOF
6531 /* confdefs.h. */
6532 _ACEOF
6533 cat confdefs.h >>conftest.$ac_ext
6534 cat >>conftest.$ac_ext <<_ACEOF
6535 /* end confdefs.h. */
6536 $ac_includes_default
6538 main ()
6540 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6541 test_array [0] = 0
6544 return 0;
6546 _ACEOF
6547 rm -f conftest.$ac_objext
6548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6549 (eval $ac_compile) 2>conftest.er1
6550 ac_status=$?
6551 grep -v '^ *+' conftest.er1 >conftest.err
6552 rm -f conftest.er1
6553 cat conftest.err >&5
6554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555 (exit $ac_status); } &&
6556 { ac_try='test -z "$ac_c_werror_flag"
6557 || test ! -s conftest.err'
6558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6559 (eval $ac_try) 2>&5
6560 ac_status=$?
6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562 (exit $ac_status); }; } &&
6563 { ac_try='test -s conftest.$ac_objext'
6564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6565 (eval $ac_try) 2>&5
6566 ac_status=$?
6567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568 (exit $ac_status); }; }; then
6569 ac_hi=$ac_mid
6570 else
6571 echo "$as_me: failed program was:" >&5
6572 sed 's/^/| /' conftest.$ac_ext >&5
6574 ac_lo=`expr '(' $ac_mid ')' + 1`
6576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6577 done
6578 case $ac_lo in
6579 ?*) ac_cv_sizeof_int=$ac_lo;;
6580 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6581 See \`config.log' for more details." >&5
6582 echo "$as_me: error: cannot compute sizeof (int), 77
6583 See \`config.log' for more details." >&2;}
6584 { (exit 1); exit 1; }; } ;;
6585 esac
6586 else
6587 if test "$cross_compiling" = yes; then
6588 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6589 See \`config.log' for more details." >&5
6590 echo "$as_me: error: cannot run test program while cross compiling
6591 See \`config.log' for more details." >&2;}
6592 { (exit 1); exit 1; }; }
6593 else
6594 cat >conftest.$ac_ext <<_ACEOF
6595 /* confdefs.h. */
6596 _ACEOF
6597 cat confdefs.h >>conftest.$ac_ext
6598 cat >>conftest.$ac_ext <<_ACEOF
6599 /* end confdefs.h. */
6600 $ac_includes_default
6601 long longval () { return (long) (sizeof (int)); }
6602 unsigned long ulongval () { return (long) (sizeof (int)); }
6603 #include <stdio.h>
6604 #include <stdlib.h>
6606 main ()
6609 FILE *f = fopen ("conftest.val", "w");
6610 if (! f)
6611 exit (1);
6612 if (((long) (sizeof (int))) < 0)
6614 long i = longval ();
6615 if (i != ((long) (sizeof (int))))
6616 exit (1);
6617 fprintf (f, "%ld\n", i);
6619 else
6621 unsigned long i = ulongval ();
6622 if (i != ((long) (sizeof (int))))
6623 exit (1);
6624 fprintf (f, "%lu\n", i);
6626 exit (ferror (f) || fclose (f) != 0);
6629 return 0;
6631 _ACEOF
6632 rm -f conftest$ac_exeext
6633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6634 (eval $ac_link) 2>&5
6635 ac_status=$?
6636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6639 (eval $ac_try) 2>&5
6640 ac_status=$?
6641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642 (exit $ac_status); }; }; then
6643 ac_cv_sizeof_int=`cat conftest.val`
6644 else
6645 echo "$as_me: program exited with status $ac_status" >&5
6646 echo "$as_me: failed program was:" >&5
6647 sed 's/^/| /' conftest.$ac_ext >&5
6649 ( exit $ac_status )
6650 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6651 See \`config.log' for more details." >&5
6652 echo "$as_me: error: cannot compute sizeof (int), 77
6653 See \`config.log' for more details." >&2;}
6654 { (exit 1); exit 1; }; }
6656 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6659 rm -f conftest.val
6660 else
6661 ac_cv_sizeof_int=0
6664 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6665 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
6666 cat >>confdefs.h <<_ACEOF
6667 #define SIZEOF_INT $ac_cv_sizeof_int
6668 _ACEOF
6671 echo "$as_me:$LINENO: checking for long" >&5
6672 echo $ECHO_N "checking for long... $ECHO_C" >&6
6673 if test "${ac_cv_type_long+set}" = set; then
6674 echo $ECHO_N "(cached) $ECHO_C" >&6
6675 else
6676 cat >conftest.$ac_ext <<_ACEOF
6677 /* confdefs.h. */
6678 _ACEOF
6679 cat confdefs.h >>conftest.$ac_ext
6680 cat >>conftest.$ac_ext <<_ACEOF
6681 /* end confdefs.h. */
6682 $ac_includes_default
6684 main ()
6686 if ((long *) 0)
6687 return 0;
6688 if (sizeof (long))
6689 return 0;
6691 return 0;
6693 _ACEOF
6694 rm -f conftest.$ac_objext
6695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6696 (eval $ac_compile) 2>conftest.er1
6697 ac_status=$?
6698 grep -v '^ *+' conftest.er1 >conftest.err
6699 rm -f conftest.er1
6700 cat conftest.err >&5
6701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702 (exit $ac_status); } &&
6703 { ac_try='test -z "$ac_c_werror_flag"
6704 || test ! -s conftest.err'
6705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6706 (eval $ac_try) 2>&5
6707 ac_status=$?
6708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709 (exit $ac_status); }; } &&
6710 { ac_try='test -s conftest.$ac_objext'
6711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6712 (eval $ac_try) 2>&5
6713 ac_status=$?
6714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6715 (exit $ac_status); }; }; then
6716 ac_cv_type_long=yes
6717 else
6718 echo "$as_me: failed program was:" >&5
6719 sed 's/^/| /' conftest.$ac_ext >&5
6721 ac_cv_type_long=no
6723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6725 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6726 echo "${ECHO_T}$ac_cv_type_long" >&6
6728 echo "$as_me:$LINENO: checking size of long" >&5
6729 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6730 if test "${ac_cv_sizeof_long+set}" = set; then
6731 echo $ECHO_N "(cached) $ECHO_C" >&6
6732 else
6733 if test "$ac_cv_type_long" = yes; then
6734 # The cast to unsigned long works around a bug in the HP C Compiler
6735 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6736 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6737 # This bug is HP SR number 8606223364.
6738 if test "$cross_compiling" = yes; then
6739 # Depending upon the size, compute the lo and hi bounds.
6740 cat >conftest.$ac_ext <<_ACEOF
6741 /* confdefs.h. */
6742 _ACEOF
6743 cat confdefs.h >>conftest.$ac_ext
6744 cat >>conftest.$ac_ext <<_ACEOF
6745 /* end confdefs.h. */
6746 $ac_includes_default
6748 main ()
6750 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6751 test_array [0] = 0
6754 return 0;
6756 _ACEOF
6757 rm -f conftest.$ac_objext
6758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6759 (eval $ac_compile) 2>conftest.er1
6760 ac_status=$?
6761 grep -v '^ *+' conftest.er1 >conftest.err
6762 rm -f conftest.er1
6763 cat conftest.err >&5
6764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765 (exit $ac_status); } &&
6766 { ac_try='test -z "$ac_c_werror_flag"
6767 || test ! -s conftest.err'
6768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6769 (eval $ac_try) 2>&5
6770 ac_status=$?
6771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772 (exit $ac_status); }; } &&
6773 { ac_try='test -s conftest.$ac_objext'
6774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6775 (eval $ac_try) 2>&5
6776 ac_status=$?
6777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778 (exit $ac_status); }; }; then
6779 ac_lo=0 ac_mid=0
6780 while :; do
6781 cat >conftest.$ac_ext <<_ACEOF
6782 /* confdefs.h. */
6783 _ACEOF
6784 cat confdefs.h >>conftest.$ac_ext
6785 cat >>conftest.$ac_ext <<_ACEOF
6786 /* end confdefs.h. */
6787 $ac_includes_default
6789 main ()
6791 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6792 test_array [0] = 0
6795 return 0;
6797 _ACEOF
6798 rm -f conftest.$ac_objext
6799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6800 (eval $ac_compile) 2>conftest.er1
6801 ac_status=$?
6802 grep -v '^ *+' conftest.er1 >conftest.err
6803 rm -f conftest.er1
6804 cat conftest.err >&5
6805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6806 (exit $ac_status); } &&
6807 { ac_try='test -z "$ac_c_werror_flag"
6808 || test ! -s conftest.err'
6809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6810 (eval $ac_try) 2>&5
6811 ac_status=$?
6812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813 (exit $ac_status); }; } &&
6814 { ac_try='test -s conftest.$ac_objext'
6815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6816 (eval $ac_try) 2>&5
6817 ac_status=$?
6818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819 (exit $ac_status); }; }; then
6820 ac_hi=$ac_mid; break
6821 else
6822 echo "$as_me: failed program was:" >&5
6823 sed 's/^/| /' conftest.$ac_ext >&5
6825 ac_lo=`expr $ac_mid + 1`
6826 if test $ac_lo -le $ac_mid; then
6827 ac_lo= ac_hi=
6828 break
6830 ac_mid=`expr 2 '*' $ac_mid + 1`
6832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6833 done
6834 else
6835 echo "$as_me: failed program was:" >&5
6836 sed 's/^/| /' conftest.$ac_ext >&5
6838 cat >conftest.$ac_ext <<_ACEOF
6839 /* confdefs.h. */
6840 _ACEOF
6841 cat confdefs.h >>conftest.$ac_ext
6842 cat >>conftest.$ac_ext <<_ACEOF
6843 /* end confdefs.h. */
6844 $ac_includes_default
6846 main ()
6848 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6849 test_array [0] = 0
6852 return 0;
6854 _ACEOF
6855 rm -f conftest.$ac_objext
6856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6857 (eval $ac_compile) 2>conftest.er1
6858 ac_status=$?
6859 grep -v '^ *+' conftest.er1 >conftest.err
6860 rm -f conftest.er1
6861 cat conftest.err >&5
6862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6863 (exit $ac_status); } &&
6864 { ac_try='test -z "$ac_c_werror_flag"
6865 || test ! -s conftest.err'
6866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6867 (eval $ac_try) 2>&5
6868 ac_status=$?
6869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870 (exit $ac_status); }; } &&
6871 { ac_try='test -s conftest.$ac_objext'
6872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6873 (eval $ac_try) 2>&5
6874 ac_status=$?
6875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876 (exit $ac_status); }; }; then
6877 ac_hi=-1 ac_mid=-1
6878 while :; do
6879 cat >conftest.$ac_ext <<_ACEOF
6880 /* confdefs.h. */
6881 _ACEOF
6882 cat confdefs.h >>conftest.$ac_ext
6883 cat >>conftest.$ac_ext <<_ACEOF
6884 /* end confdefs.h. */
6885 $ac_includes_default
6887 main ()
6889 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6890 test_array [0] = 0
6893 return 0;
6895 _ACEOF
6896 rm -f conftest.$ac_objext
6897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6898 (eval $ac_compile) 2>conftest.er1
6899 ac_status=$?
6900 grep -v '^ *+' conftest.er1 >conftest.err
6901 rm -f conftest.er1
6902 cat conftest.err >&5
6903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904 (exit $ac_status); } &&
6905 { ac_try='test -z "$ac_c_werror_flag"
6906 || test ! -s conftest.err'
6907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6908 (eval $ac_try) 2>&5
6909 ac_status=$?
6910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911 (exit $ac_status); }; } &&
6912 { ac_try='test -s conftest.$ac_objext'
6913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6914 (eval $ac_try) 2>&5
6915 ac_status=$?
6916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917 (exit $ac_status); }; }; then
6918 ac_lo=$ac_mid; break
6919 else
6920 echo "$as_me: failed program was:" >&5
6921 sed 's/^/| /' conftest.$ac_ext >&5
6923 ac_hi=`expr '(' $ac_mid ')' - 1`
6924 if test $ac_mid -le $ac_hi; then
6925 ac_lo= ac_hi=
6926 break
6928 ac_mid=`expr 2 '*' $ac_mid`
6930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6931 done
6932 else
6933 echo "$as_me: failed program was:" >&5
6934 sed 's/^/| /' conftest.$ac_ext >&5
6936 ac_lo= ac_hi=
6938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6941 # Binary search between lo and hi bounds.
6942 while test "x$ac_lo" != "x$ac_hi"; do
6943 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6944 cat >conftest.$ac_ext <<_ACEOF
6945 /* confdefs.h. */
6946 _ACEOF
6947 cat confdefs.h >>conftest.$ac_ext
6948 cat >>conftest.$ac_ext <<_ACEOF
6949 /* end confdefs.h. */
6950 $ac_includes_default
6952 main ()
6954 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6955 test_array [0] = 0
6958 return 0;
6960 _ACEOF
6961 rm -f conftest.$ac_objext
6962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6963 (eval $ac_compile) 2>conftest.er1
6964 ac_status=$?
6965 grep -v '^ *+' conftest.er1 >conftest.err
6966 rm -f conftest.er1
6967 cat conftest.err >&5
6968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969 (exit $ac_status); } &&
6970 { ac_try='test -z "$ac_c_werror_flag"
6971 || test ! -s conftest.err'
6972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6973 (eval $ac_try) 2>&5
6974 ac_status=$?
6975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976 (exit $ac_status); }; } &&
6977 { ac_try='test -s conftest.$ac_objext'
6978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6979 (eval $ac_try) 2>&5
6980 ac_status=$?
6981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982 (exit $ac_status); }; }; then
6983 ac_hi=$ac_mid
6984 else
6985 echo "$as_me: failed program was:" >&5
6986 sed 's/^/| /' conftest.$ac_ext >&5
6988 ac_lo=`expr '(' $ac_mid ')' + 1`
6990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6991 done
6992 case $ac_lo in
6993 ?*) ac_cv_sizeof_long=$ac_lo;;
6994 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6995 See \`config.log' for more details." >&5
6996 echo "$as_me: error: cannot compute sizeof (long), 77
6997 See \`config.log' for more details." >&2;}
6998 { (exit 1); exit 1; }; } ;;
6999 esac
7000 else
7001 if test "$cross_compiling" = yes; then
7002 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7003 See \`config.log' for more details." >&5
7004 echo "$as_me: error: cannot run test program while cross compiling
7005 See \`config.log' for more details." >&2;}
7006 { (exit 1); exit 1; }; }
7007 else
7008 cat >conftest.$ac_ext <<_ACEOF
7009 /* confdefs.h. */
7010 _ACEOF
7011 cat confdefs.h >>conftest.$ac_ext
7012 cat >>conftest.$ac_ext <<_ACEOF
7013 /* end confdefs.h. */
7014 $ac_includes_default
7015 long longval () { return (long) (sizeof (long)); }
7016 unsigned long ulongval () { return (long) (sizeof (long)); }
7017 #include <stdio.h>
7018 #include <stdlib.h>
7020 main ()
7023 FILE *f = fopen ("conftest.val", "w");
7024 if (! f)
7025 exit (1);
7026 if (((long) (sizeof (long))) < 0)
7028 long i = longval ();
7029 if (i != ((long) (sizeof (long))))
7030 exit (1);
7031 fprintf (f, "%ld\n", i);
7033 else
7035 unsigned long i = ulongval ();
7036 if (i != ((long) (sizeof (long))))
7037 exit (1);
7038 fprintf (f, "%lu\n", i);
7040 exit (ferror (f) || fclose (f) != 0);
7043 return 0;
7045 _ACEOF
7046 rm -f conftest$ac_exeext
7047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7048 (eval $ac_link) 2>&5
7049 ac_status=$?
7050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7053 (eval $ac_try) 2>&5
7054 ac_status=$?
7055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056 (exit $ac_status); }; }; then
7057 ac_cv_sizeof_long=`cat conftest.val`
7058 else
7059 echo "$as_me: program exited with status $ac_status" >&5
7060 echo "$as_me: failed program was:" >&5
7061 sed 's/^/| /' conftest.$ac_ext >&5
7063 ( exit $ac_status )
7064 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7065 See \`config.log' for more details." >&5
7066 echo "$as_me: error: cannot compute sizeof (long), 77
7067 See \`config.log' for more details." >&2;}
7068 { (exit 1); exit 1; }; }
7070 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7073 rm -f conftest.val
7074 else
7075 ac_cv_sizeof_long=0
7078 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7079 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7080 cat >>confdefs.h <<_ACEOF
7081 #define SIZEOF_LONG $ac_cv_sizeof_long
7082 _ACEOF
7086 # Checks for library functions.
7087 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7088 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7089 if test "${ac_cv_header_stdc+set}" = set; then
7090 echo $ECHO_N "(cached) $ECHO_C" >&6
7091 else
7092 cat >conftest.$ac_ext <<_ACEOF
7093 /* confdefs.h. */
7094 _ACEOF
7095 cat confdefs.h >>conftest.$ac_ext
7096 cat >>conftest.$ac_ext <<_ACEOF
7097 /* end confdefs.h. */
7098 #include <stdlib.h>
7099 #include <stdarg.h>
7100 #include <string.h>
7101 #include <float.h>
7104 main ()
7108 return 0;
7110 _ACEOF
7111 rm -f conftest.$ac_objext
7112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7113 (eval $ac_compile) 2>conftest.er1
7114 ac_status=$?
7115 grep -v '^ *+' conftest.er1 >conftest.err
7116 rm -f conftest.er1
7117 cat conftest.err >&5
7118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7119 (exit $ac_status); } &&
7120 { ac_try='test -z "$ac_c_werror_flag"
7121 || test ! -s conftest.err'
7122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7123 (eval $ac_try) 2>&5
7124 ac_status=$?
7125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126 (exit $ac_status); }; } &&
7127 { ac_try='test -s conftest.$ac_objext'
7128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7129 (eval $ac_try) 2>&5
7130 ac_status=$?
7131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132 (exit $ac_status); }; }; then
7133 ac_cv_header_stdc=yes
7134 else
7135 echo "$as_me: failed program was:" >&5
7136 sed 's/^/| /' conftest.$ac_ext >&5
7138 ac_cv_header_stdc=no
7140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7142 if test $ac_cv_header_stdc = yes; then
7143 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7144 cat >conftest.$ac_ext <<_ACEOF
7145 /* confdefs.h. */
7146 _ACEOF
7147 cat confdefs.h >>conftest.$ac_ext
7148 cat >>conftest.$ac_ext <<_ACEOF
7149 /* end confdefs.h. */
7150 #include <string.h>
7152 _ACEOF
7153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7154 $EGREP "memchr" >/dev/null 2>&1; then
7156 else
7157 ac_cv_header_stdc=no
7159 rm -f conftest*
7163 if test $ac_cv_header_stdc = yes; then
7164 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7165 cat >conftest.$ac_ext <<_ACEOF
7166 /* confdefs.h. */
7167 _ACEOF
7168 cat confdefs.h >>conftest.$ac_ext
7169 cat >>conftest.$ac_ext <<_ACEOF
7170 /* end confdefs.h. */
7171 #include <stdlib.h>
7173 _ACEOF
7174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7175 $EGREP "free" >/dev/null 2>&1; then
7177 else
7178 ac_cv_header_stdc=no
7180 rm -f conftest*
7184 if test $ac_cv_header_stdc = yes; then
7185 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7186 if test "$cross_compiling" = yes; then
7188 else
7189 cat >conftest.$ac_ext <<_ACEOF
7190 /* confdefs.h. */
7191 _ACEOF
7192 cat confdefs.h >>conftest.$ac_ext
7193 cat >>conftest.$ac_ext <<_ACEOF
7194 /* end confdefs.h. */
7195 #include <ctype.h>
7196 #if ((' ' & 0x0FF) == 0x020)
7197 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7198 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7199 #else
7200 # define ISLOWER(c) \
7201 (('a' <= (c) && (c) <= 'i') \
7202 || ('j' <= (c) && (c) <= 'r') \
7203 || ('s' <= (c) && (c) <= 'z'))
7204 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7205 #endif
7207 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7209 main ()
7211 int i;
7212 for (i = 0; i < 256; i++)
7213 if (XOR (islower (i), ISLOWER (i))
7214 || toupper (i) != TOUPPER (i))
7215 exit(2);
7216 exit (0);
7218 _ACEOF
7219 rm -f conftest$ac_exeext
7220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7221 (eval $ac_link) 2>&5
7222 ac_status=$?
7223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7226 (eval $ac_try) 2>&5
7227 ac_status=$?
7228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229 (exit $ac_status); }; }; then
7231 else
7232 echo "$as_me: program exited with status $ac_status" >&5
7233 echo "$as_me: failed program was:" >&5
7234 sed 's/^/| /' conftest.$ac_ext >&5
7236 ( exit $ac_status )
7237 ac_cv_header_stdc=no
7239 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7243 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7244 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7245 if test $ac_cv_header_stdc = yes; then
7247 cat >>confdefs.h <<\_ACEOF
7248 #define STDC_HEADERS 1
7249 _ACEOF
7254 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
7255 if test "${enable_maintainer_mode+set}" = set; then
7256 enableval="$enable_maintainer_mode"
7258 else
7259 enable_maintainer_mode=no
7262 if test "x$enable_maintainer_mode" = xno; then
7263 MAINT='#'
7264 else
7265 MAINT=
7269 # Output.
7271 ac_config_headers="$ac_config_headers config.h:config.in"
7273 ac_config_files="$ac_config_files Makefile"
7275 cat >confcache <<\_ACEOF
7276 # This file is a shell script that caches the results of configure
7277 # tests run on this system so they can be shared between configure
7278 # scripts and configure runs, see configure's option --config-cache.
7279 # It is not useful on other systems. If it contains results you don't
7280 # want to keep, you may remove or edit it.
7282 # config.status only pays attention to the cache file if you give it
7283 # the --recheck option to rerun configure.
7285 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7286 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7287 # following values.
7289 _ACEOF
7291 # The following way of writing the cache mishandles newlines in values,
7292 # but we know of no workaround that is simple, portable, and efficient.
7293 # So, don't put newlines in cache variables' values.
7294 # Ultrix sh set writes to stderr and can't be redirected directly,
7295 # and sets the high bit in the cache file unless we assign to the vars.
7297 (set) 2>&1 |
7298 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7299 *ac_space=\ *)
7300 # `set' does not quote correctly, so add quotes (double-quote
7301 # substitution turns \\\\ into \\, and sed turns \\ into \).
7302 sed -n \
7303 "s/'/'\\\\''/g;
7304 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7307 # `set' quotes correctly as required by POSIX, so do not add quotes.
7308 sed -n \
7309 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7311 esac;
7313 sed '
7314 t clear
7315 : clear
7316 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7317 t end
7318 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7319 : end' >>confcache
7320 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7321 if test -w $cache_file; then
7322 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7323 cat confcache >$cache_file
7324 else
7325 echo "not updating unwritable cache $cache_file"
7328 rm -f confcache
7330 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7331 # Let make expand exec_prefix.
7332 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7334 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7335 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7336 # trailing colons and then remove the whole line if VPATH becomes empty
7337 # (actually we leave an empty line to preserve line numbers).
7338 if test "x$srcdir" = x.; then
7339 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7340 s/:*\$(srcdir):*/:/;
7341 s/:*\${srcdir}:*/:/;
7342 s/:*@srcdir@:*/:/;
7343 s/^\([^=]*=[ ]*\):*/\1/;
7344 s/:*$//;
7345 s/^[^=]*=[ ]*$//;
7349 DEFS=-DHAVE_CONFIG_H
7351 ac_libobjs=
7352 ac_ltlibobjs=
7353 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7354 # 1. Remove the extension, and $U if already installed.
7355 ac_i=`echo "$ac_i" |
7356 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7357 # 2. Add them.
7358 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7359 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7360 done
7361 LIBOBJS=$ac_libobjs
7363 LTLIBOBJS=$ac_ltlibobjs
7367 : ${CONFIG_STATUS=./config.status}
7368 ac_clean_files_save=$ac_clean_files
7369 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7370 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7371 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7372 cat >$CONFIG_STATUS <<_ACEOF
7373 #! $SHELL
7374 # Generated by $as_me.
7375 # Run this file to recreate the current configuration.
7376 # Compiler output produced by configure, useful for debugging
7377 # configure, is in config.log if it exists.
7379 debug=false
7380 ac_cs_recheck=false
7381 ac_cs_silent=false
7382 SHELL=\${CONFIG_SHELL-$SHELL}
7383 _ACEOF
7385 cat >>$CONFIG_STATUS <<\_ACEOF
7386 ## --------------------- ##
7387 ## M4sh Initialization. ##
7388 ## --------------------- ##
7390 # Be Bourne compatible
7391 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7392 emulate sh
7393 NULLCMD=:
7394 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7395 # is contrary to our usage. Disable this feature.
7396 alias -g '${1+"$@"}'='"$@"'
7397 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7398 set -o posix
7400 DUALCASE=1; export DUALCASE # for MKS sh
7402 # Support unset when possible.
7403 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7404 as_unset=unset
7405 else
7406 as_unset=false
7410 # Work around bugs in pre-3.0 UWIN ksh.
7411 $as_unset ENV MAIL MAILPATH
7412 PS1='$ '
7413 PS2='> '
7414 PS4='+ '
7416 # NLS nuisances.
7417 for as_var in \
7418 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7419 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7420 LC_TELEPHONE LC_TIME
7422 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7423 eval $as_var=C; export $as_var
7424 else
7425 $as_unset $as_var
7427 done
7429 # Required to use basename.
7430 if expr a : '\(a\)' >/dev/null 2>&1; then
7431 as_expr=expr
7432 else
7433 as_expr=false
7436 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7437 as_basename=basename
7438 else
7439 as_basename=false
7443 # Name of the executable.
7444 as_me=`$as_basename "$0" ||
7445 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7446 X"$0" : 'X\(//\)$' \| \
7447 X"$0" : 'X\(/\)$' \| \
7448 . : '\(.\)' 2>/dev/null ||
7449 echo X/"$0" |
7450 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7451 /^X\/\(\/\/\)$/{ s//\1/; q; }
7452 /^X\/\(\/\).*/{ s//\1/; q; }
7453 s/.*/./; q'`
7456 # PATH needs CR, and LINENO needs CR and PATH.
7457 # Avoid depending upon Character Ranges.
7458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7461 as_cr_digits='0123456789'
7462 as_cr_alnum=$as_cr_Letters$as_cr_digits
7464 # The user is always right.
7465 if test "${PATH_SEPARATOR+set}" != set; then
7466 echo "#! /bin/sh" >conf$$.sh
7467 echo "exit 0" >>conf$$.sh
7468 chmod +x conf$$.sh
7469 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7470 PATH_SEPARATOR=';'
7471 else
7472 PATH_SEPARATOR=:
7474 rm -f conf$$.sh
7478 as_lineno_1=$LINENO
7479 as_lineno_2=$LINENO
7480 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7481 test "x$as_lineno_1" != "x$as_lineno_2" &&
7482 test "x$as_lineno_3" = "x$as_lineno_2" || {
7483 # Find who we are. Look in the path if we contain no path at all
7484 # relative or not.
7485 case $0 in
7486 *[\\/]* ) as_myself=$0 ;;
7487 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7488 for as_dir in $PATH
7490 IFS=$as_save_IFS
7491 test -z "$as_dir" && as_dir=.
7492 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7493 done
7496 esac
7497 # We did not find ourselves, most probably we were run as `sh COMMAND'
7498 # in which case we are not to be found in the path.
7499 if test "x$as_myself" = x; then
7500 as_myself=$0
7502 if test ! -f "$as_myself"; then
7503 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7504 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7505 { (exit 1); exit 1; }; }
7507 case $CONFIG_SHELL in
7509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7510 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7512 IFS=$as_save_IFS
7513 test -z "$as_dir" && as_dir=.
7514 for as_base in sh bash ksh sh5; do
7515 case $as_dir in
7517 if ("$as_dir/$as_base" -c '
7518 as_lineno_1=$LINENO
7519 as_lineno_2=$LINENO
7520 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7521 test "x$as_lineno_1" != "x$as_lineno_2" &&
7522 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7523 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7524 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7525 CONFIG_SHELL=$as_dir/$as_base
7526 export CONFIG_SHELL
7527 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7528 fi;;
7529 esac
7530 done
7531 done
7533 esac
7535 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7536 # uniformly replaced by the line number. The first 'sed' inserts a
7537 # line-number line before each line; the second 'sed' does the real
7538 # work. The second script uses 'N' to pair each line-number line
7539 # with the numbered line, and appends trailing '-' during
7540 # substitution so that $LINENO is not a special case at line end.
7541 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7542 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7543 sed '=' <$as_myself |
7544 sed '
7546 s,$,-,
7547 : loop
7548 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7549 t loop
7550 s,-$,,
7551 s,^['$as_cr_digits']*\n,,
7552 ' >$as_me.lineno &&
7553 chmod +x $as_me.lineno ||
7554 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7555 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7556 { (exit 1); exit 1; }; }
7558 # Don't try to exec as it changes $[0], causing all sort of problems
7559 # (the dirname of $[0] is not the place where we might find the
7560 # original and so on. Autoconf is especially sensible to this).
7561 . ./$as_me.lineno
7562 # Exit status is that of the last command.
7563 exit
7567 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7568 *c*,-n*) ECHO_N= ECHO_C='
7569 ' ECHO_T=' ' ;;
7570 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7571 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7572 esac
7574 if expr a : '\(a\)' >/dev/null 2>&1; then
7575 as_expr=expr
7576 else
7577 as_expr=false
7580 rm -f conf$$ conf$$.exe conf$$.file
7581 echo >conf$$.file
7582 if ln -s conf$$.file conf$$ 2>/dev/null; then
7583 # We could just check for DJGPP; but this test a) works b) is more generic
7584 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7585 if test -f conf$$.exe; then
7586 # Don't use ln at all; we don't have any links
7587 as_ln_s='cp -p'
7588 else
7589 as_ln_s='ln -s'
7591 elif ln conf$$.file conf$$ 2>/dev/null; then
7592 as_ln_s=ln
7593 else
7594 as_ln_s='cp -p'
7596 rm -f conf$$ conf$$.exe conf$$.file
7598 if mkdir -p . 2>/dev/null; then
7599 as_mkdir_p=:
7600 else
7601 test -d ./-p && rmdir ./-p
7602 as_mkdir_p=false
7605 as_executable_p="test -f"
7607 # Sed expression to map a string onto a valid CPP name.
7608 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7610 # Sed expression to map a string onto a valid variable name.
7611 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7614 # IFS
7615 # We need space, tab and new line, in precisely that order.
7616 as_nl='
7618 IFS=" $as_nl"
7620 # CDPATH.
7621 $as_unset CDPATH
7623 exec 6>&1
7625 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7626 # report actual input values of CONFIG_FILES etc. instead of their
7627 # values after options handling. Logging --version etc. is OK.
7628 exec 5>>config.log
7630 echo
7631 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7632 ## Running $as_me. ##
7633 _ASBOX
7634 } >&5
7635 cat >&5 <<_CSEOF
7637 This file was extended by libdecnumber $as_me , which was
7638 generated by GNU Autoconf 2.59. Invocation command line was
7640 CONFIG_FILES = $CONFIG_FILES
7641 CONFIG_HEADERS = $CONFIG_HEADERS
7642 CONFIG_LINKS = $CONFIG_LINKS
7643 CONFIG_COMMANDS = $CONFIG_COMMANDS
7644 $ $0 $@
7646 _CSEOF
7647 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7648 echo >&5
7649 _ACEOF
7651 # Files that config.status was made for.
7652 if test -n "$ac_config_files"; then
7653 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7656 if test -n "$ac_config_headers"; then
7657 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7660 if test -n "$ac_config_links"; then
7661 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7664 if test -n "$ac_config_commands"; then
7665 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7668 cat >>$CONFIG_STATUS <<\_ACEOF
7670 ac_cs_usage="\
7671 \`$as_me' instantiates files from templates according to the
7672 current configuration.
7674 Usage: $0 [OPTIONS] [FILE]...
7676 -h, --help print this help, then exit
7677 -V, --version print version number, then exit
7678 -q, --quiet do not print progress messages
7679 -d, --debug don't remove temporary files
7680 --recheck update $as_me by reconfiguring in the same conditions
7681 --file=FILE[:TEMPLATE]
7682 instantiate the configuration file FILE
7683 --header=FILE[:TEMPLATE]
7684 instantiate the configuration header FILE
7686 Configuration files:
7687 $config_files
7689 Configuration headers:
7690 $config_headers
7692 Configuration commands:
7693 $config_commands
7695 Report bugs to <bug-autoconf@gnu.org>."
7696 _ACEOF
7698 cat >>$CONFIG_STATUS <<_ACEOF
7699 ac_cs_version="\\
7700 libdecnumber config.status
7701 configured by $0, generated by GNU Autoconf 2.59,
7702 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7704 Copyright (C) 2003 Free Software Foundation, Inc.
7705 This config.status script is free software; the Free Software Foundation
7706 gives unlimited permission to copy, distribute and modify it."
7707 srcdir=$srcdir
7708 _ACEOF
7710 cat >>$CONFIG_STATUS <<\_ACEOF
7711 # If no file are specified by the user, then we need to provide default
7712 # value. By we need to know if files were specified by the user.
7713 ac_need_defaults=:
7714 while test $# != 0
7716 case $1 in
7717 --*=*)
7718 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7719 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7720 ac_shift=:
7723 ac_option=$1
7724 ac_optarg=$2
7725 ac_shift=shift
7727 *) # This is not an option, so the user has probably given explicit
7728 # arguments.
7729 ac_option=$1
7730 ac_need_defaults=false;;
7731 esac
7733 case $ac_option in
7734 # Handling of the options.
7735 _ACEOF
7736 cat >>$CONFIG_STATUS <<\_ACEOF
7737 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7738 ac_cs_recheck=: ;;
7739 --version | --vers* | -V )
7740 echo "$ac_cs_version"; exit 0 ;;
7741 --he | --h)
7742 # Conflict between --help and --header
7743 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7744 Try \`$0 --help' for more information." >&5
7745 echo "$as_me: error: ambiguous option: $1
7746 Try \`$0 --help' for more information." >&2;}
7747 { (exit 1); exit 1; }; };;
7748 --help | --hel | -h )
7749 echo "$ac_cs_usage"; exit 0 ;;
7750 --debug | --d* | -d )
7751 debug=: ;;
7752 --file | --fil | --fi | --f )
7753 $ac_shift
7754 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7755 ac_need_defaults=false;;
7756 --header | --heade | --head | --hea )
7757 $ac_shift
7758 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7759 ac_need_defaults=false;;
7760 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7761 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7762 ac_cs_silent=: ;;
7764 # This is an error.
7765 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7766 Try \`$0 --help' for more information." >&5
7767 echo "$as_me: error: unrecognized option: $1
7768 Try \`$0 --help' for more information." >&2;}
7769 { (exit 1); exit 1; }; } ;;
7771 *) ac_config_targets="$ac_config_targets $1" ;;
7773 esac
7774 shift
7775 done
7777 ac_configure_extra_args=
7779 if $ac_cs_silent; then
7780 exec 6>/dev/null
7781 ac_configure_extra_args="$ac_configure_extra_args --silent"
7784 _ACEOF
7785 cat >>$CONFIG_STATUS <<_ACEOF
7786 if \$ac_cs_recheck; then
7787 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7788 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7791 _ACEOF
7793 cat >>$CONFIG_STATUS <<_ACEOF
7795 # INIT-COMMANDS section.
7799 GCC="$GCC"
7800 CC="$CC"
7801 acx_cv_header_stdint="$acx_cv_header_stdint"
7802 acx_cv_type_int8_t="$acx_cv_type_int8_t"
7803 acx_cv_type_int16_t="$acx_cv_type_int16_t"
7804 acx_cv_type_int32_t="$acx_cv_type_int32_t"
7805 acx_cv_type_int64_t="$acx_cv_type_int64_t"
7806 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
7807 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
7808 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
7809 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
7810 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
7811 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
7812 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
7813 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
7814 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
7817 _ACEOF
7821 cat >>$CONFIG_STATUS <<\_ACEOF
7822 for ac_config_target in $ac_config_targets
7824 case "$ac_config_target" in
7825 # Handling of arguments.
7826 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7827 "gstdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
7828 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
7829 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7830 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7831 { (exit 1); exit 1; }; };;
7832 esac
7833 done
7835 # If the user did not use the arguments to specify the items to instantiate,
7836 # then the envvar interface is used. Set only those that are not.
7837 # We use the long form for the default assignment because of an extremely
7838 # bizarre bug on SunOS 4.1.3.
7839 if $ac_need_defaults; then
7840 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7841 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7842 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7845 # Have a temporary directory for convenience. Make it in the build tree
7846 # simply because there is no reason to put it here, and in addition,
7847 # creating and moving files from /tmp can sometimes cause problems.
7848 # Create a temporary directory, and hook for its removal unless debugging.
7849 $debug ||
7851 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7852 trap '{ (exit 1); exit 1; }' 1 2 13 15
7855 # Create a (secure) tmp directory for tmp files.
7858 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7859 test -n "$tmp" && test -d "$tmp"
7860 } ||
7862 tmp=./confstat$$-$RANDOM
7863 (umask 077 && mkdir $tmp)
7864 } ||
7866 echo "$me: cannot create a temporary directory in ." >&2
7867 { (exit 1); exit 1; }
7870 _ACEOF
7872 cat >>$CONFIG_STATUS <<_ACEOF
7875 # CONFIG_FILES section.
7878 # No need to generate the scripts if there are no CONFIG_FILES.
7879 # This happens for instance when ./config.status config.h
7880 if test -n "\$CONFIG_FILES"; then
7881 # Protect against being on the right side of a sed subst in config.status.
7882 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7883 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7884 s,@SHELL@,$SHELL,;t t
7885 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7886 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7887 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7888 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7889 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7890 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7891 s,@exec_prefix@,$exec_prefix,;t t
7892 s,@prefix@,$prefix,;t t
7893 s,@program_transform_name@,$program_transform_name,;t t
7894 s,@bindir@,$bindir,;t t
7895 s,@sbindir@,$sbindir,;t t
7896 s,@libexecdir@,$libexecdir,;t t
7897 s,@datadir@,$datadir,;t t
7898 s,@sysconfdir@,$sysconfdir,;t t
7899 s,@sharedstatedir@,$sharedstatedir,;t t
7900 s,@localstatedir@,$localstatedir,;t t
7901 s,@libdir@,$libdir,;t t
7902 s,@includedir@,$includedir,;t t
7903 s,@oldincludedir@,$oldincludedir,;t t
7904 s,@infodir@,$infodir,;t t
7905 s,@mandir@,$mandir,;t t
7906 s,@build_alias@,$build_alias,;t t
7907 s,@host_alias@,$host_alias,;t t
7908 s,@target_alias@,$target_alias,;t t
7909 s,@DEFS@,$DEFS,;t t
7910 s,@ECHO_C@,$ECHO_C,;t t
7911 s,@ECHO_N@,$ECHO_N,;t t
7912 s,@ECHO_T@,$ECHO_T,;t t
7913 s,@LIBS@,$LIBS,;t t
7914 s,@SET_MAKE@,$SET_MAKE,;t t
7915 s,@CC@,$CC,;t t
7916 s,@CFLAGS@,$CFLAGS,;t t
7917 s,@LDFLAGS@,$LDFLAGS,;t t
7918 s,@CPPFLAGS@,$CPPFLAGS,;t t
7919 s,@ac_ct_CC@,$ac_ct_CC,;t t
7920 s,@EXEEXT@,$EXEEXT,;t t
7921 s,@OBJEXT@,$OBJEXT,;t t
7922 s,@RANLIB@,$RANLIB,;t t
7923 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7924 s,@ACLOCAL@,$ACLOCAL,;t t
7925 s,@AUTOCONF@,$AUTOCONF,;t t
7926 s,@AUTOHEADER@,$AUTOHEADER,;t t
7927 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
7928 s,@WARN_PEDANTIC@,$WARN_PEDANTIC,;t t
7929 s,@WERROR@,$WERROR,;t t
7930 s,@CPP@,$CPP,;t t
7931 s,@EGREP@,$EGREP,;t t
7932 s,@MAINT@,$MAINT,;t t
7933 s,@LIBOBJS@,$LIBOBJS,;t t
7934 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7935 CEOF
7937 _ACEOF
7939 cat >>$CONFIG_STATUS <<\_ACEOF
7940 # Split the substitutions into bite-sized pieces for seds with
7941 # small command number limits, like on Digital OSF/1 and HP-UX.
7942 ac_max_sed_lines=48
7943 ac_sed_frag=1 # Number of current file.
7944 ac_beg=1 # First line for current file.
7945 ac_end=$ac_max_sed_lines # Line after last line for current file.
7946 ac_more_lines=:
7947 ac_sed_cmds=
7948 while $ac_more_lines; do
7949 if test $ac_beg -gt 1; then
7950 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7951 else
7952 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7954 if test ! -s $tmp/subs.frag; then
7955 ac_more_lines=false
7956 else
7957 # The purpose of the label and of the branching condition is to
7958 # speed up the sed processing (if there are no `@' at all, there
7959 # is no need to browse any of the substitutions).
7960 # These are the two extra sed commands mentioned above.
7961 (echo ':t
7962 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7963 if test -z "$ac_sed_cmds"; then
7964 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7965 else
7966 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7968 ac_sed_frag=`expr $ac_sed_frag + 1`
7969 ac_beg=$ac_end
7970 ac_end=`expr $ac_end + $ac_max_sed_lines`
7972 done
7973 if test -z "$ac_sed_cmds"; then
7974 ac_sed_cmds=cat
7976 fi # test -n "$CONFIG_FILES"
7978 _ACEOF
7979 cat >>$CONFIG_STATUS <<\_ACEOF
7980 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7981 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7982 case $ac_file in
7983 - | *:- | *:-:* ) # input from stdin
7984 cat >$tmp/stdin
7985 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7986 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7987 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7988 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7989 * ) ac_file_in=$ac_file.in ;;
7990 esac
7992 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7993 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7994 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7995 X"$ac_file" : 'X\(//\)[^/]' \| \
7996 X"$ac_file" : 'X\(//\)$' \| \
7997 X"$ac_file" : 'X\(/\)' \| \
7998 . : '\(.\)' 2>/dev/null ||
7999 echo X"$ac_file" |
8000 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8001 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8002 /^X\(\/\/\)$/{ s//\1/; q; }
8003 /^X\(\/\).*/{ s//\1/; q; }
8004 s/.*/./; q'`
8005 { if $as_mkdir_p; then
8006 mkdir -p "$ac_dir"
8007 else
8008 as_dir="$ac_dir"
8009 as_dirs=
8010 while test ! -d "$as_dir"; do
8011 as_dirs="$as_dir $as_dirs"
8012 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8013 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8014 X"$as_dir" : 'X\(//\)[^/]' \| \
8015 X"$as_dir" : 'X\(//\)$' \| \
8016 X"$as_dir" : 'X\(/\)' \| \
8017 . : '\(.\)' 2>/dev/null ||
8018 echo X"$as_dir" |
8019 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8020 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8021 /^X\(\/\/\)$/{ s//\1/; q; }
8022 /^X\(\/\).*/{ s//\1/; q; }
8023 s/.*/./; q'`
8024 done
8025 test ! -n "$as_dirs" || mkdir $as_dirs
8026 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8027 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8028 { (exit 1); exit 1; }; }; }
8030 ac_builddir=.
8032 if test "$ac_dir" != .; then
8033 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8034 # A "../" for each directory in $ac_dir_suffix.
8035 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8036 else
8037 ac_dir_suffix= ac_top_builddir=
8040 case $srcdir in
8041 .) # No --srcdir option. We are building in place.
8042 ac_srcdir=.
8043 if test -z "$ac_top_builddir"; then
8044 ac_top_srcdir=.
8045 else
8046 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8047 fi ;;
8048 [\\/]* | ?:[\\/]* ) # Absolute path.
8049 ac_srcdir=$srcdir$ac_dir_suffix;
8050 ac_top_srcdir=$srcdir ;;
8051 *) # Relative path.
8052 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8053 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8054 esac
8056 # Do not use `cd foo && pwd` to compute absolute paths, because
8057 # the directories may not exist.
8058 case `pwd` in
8059 .) ac_abs_builddir="$ac_dir";;
8061 case "$ac_dir" in
8062 .) ac_abs_builddir=`pwd`;;
8063 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8064 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8065 esac;;
8066 esac
8067 case $ac_abs_builddir in
8068 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8070 case ${ac_top_builddir}. in
8071 .) ac_abs_top_builddir=$ac_abs_builddir;;
8072 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8073 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8074 esac;;
8075 esac
8076 case $ac_abs_builddir in
8077 .) ac_abs_srcdir=$ac_srcdir;;
8079 case $ac_srcdir in
8080 .) ac_abs_srcdir=$ac_abs_builddir;;
8081 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8082 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8083 esac;;
8084 esac
8085 case $ac_abs_builddir in
8086 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8088 case $ac_top_srcdir in
8089 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8090 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8091 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8092 esac;;
8093 esac
8097 if test x"$ac_file" != x-; then
8098 { echo "$as_me:$LINENO: creating $ac_file" >&5
8099 echo "$as_me: creating $ac_file" >&6;}
8100 rm -f "$ac_file"
8102 # Let's still pretend it is `configure' which instantiates (i.e., don't
8103 # use $as_me), people would be surprised to read:
8104 # /* config.h. Generated by config.status. */
8105 if test x"$ac_file" = x-; then
8106 configure_input=
8107 else
8108 configure_input="$ac_file. "
8110 configure_input=$configure_input"Generated from `echo $ac_file_in |
8111 sed 's,.*/,,'` by configure."
8113 # First look for the input files in the build tree, otherwise in the
8114 # src tree.
8115 ac_file_inputs=`IFS=:
8116 for f in $ac_file_in; do
8117 case $f in
8118 -) echo $tmp/stdin ;;
8119 [\\/$]*)
8120 # Absolute (can't be DOS-style, as IFS=:)
8121 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8122 echo "$as_me: error: cannot find input file: $f" >&2;}
8123 { (exit 1); exit 1; }; }
8124 echo "$f";;
8125 *) # Relative
8126 if test -f "$f"; then
8127 # Build tree
8128 echo "$f"
8129 elif test -f "$srcdir/$f"; then
8130 # Source tree
8131 echo "$srcdir/$f"
8132 else
8133 # /dev/null tree
8134 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8135 echo "$as_me: error: cannot find input file: $f" >&2;}
8136 { (exit 1); exit 1; }; }
8137 fi;;
8138 esac
8139 done` || { (exit 1); exit 1; }
8140 _ACEOF
8141 cat >>$CONFIG_STATUS <<_ACEOF
8142 sed "$ac_vpsub
8143 $extrasub
8144 _ACEOF
8145 cat >>$CONFIG_STATUS <<\_ACEOF
8147 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8148 s,@configure_input@,$configure_input,;t t
8149 s,@srcdir@,$ac_srcdir,;t t
8150 s,@abs_srcdir@,$ac_abs_srcdir,;t t
8151 s,@top_srcdir@,$ac_top_srcdir,;t t
8152 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8153 s,@builddir@,$ac_builddir,;t t
8154 s,@abs_builddir@,$ac_abs_builddir,;t t
8155 s,@top_builddir@,$ac_top_builddir,;t t
8156 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8157 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8158 rm -f $tmp/stdin
8159 if test x"$ac_file" != x-; then
8160 mv $tmp/out $ac_file
8161 else
8162 cat $tmp/out
8163 rm -f $tmp/out
8166 done
8167 _ACEOF
8168 cat >>$CONFIG_STATUS <<\_ACEOF
8171 # CONFIG_HEADER section.
8174 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8175 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8177 # ac_d sets the value in "#define NAME VALUE" lines.
8178 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8179 ac_dB='[ ].*$,\1#\2'
8180 ac_dC=' '
8181 ac_dD=',;t'
8182 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8183 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8184 ac_uB='$,\1#\2define\3'
8185 ac_uC=' '
8186 ac_uD=',;t'
8188 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8189 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8190 case $ac_file in
8191 - | *:- | *:-:* ) # input from stdin
8192 cat >$tmp/stdin
8193 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8194 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8195 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8196 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8197 * ) ac_file_in=$ac_file.in ;;
8198 esac
8200 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8201 echo "$as_me: creating $ac_file" >&6;}
8203 # First look for the input files in the build tree, otherwise in the
8204 # src tree.
8205 ac_file_inputs=`IFS=:
8206 for f in $ac_file_in; do
8207 case $f in
8208 -) echo $tmp/stdin ;;
8209 [\\/$]*)
8210 # Absolute (can't be DOS-style, as IFS=:)
8211 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8212 echo "$as_me: error: cannot find input file: $f" >&2;}
8213 { (exit 1); exit 1; }; }
8214 # Do quote $f, to prevent DOS paths from being IFS'd.
8215 echo "$f";;
8216 *) # Relative
8217 if test -f "$f"; then
8218 # Build tree
8219 echo "$f"
8220 elif test -f "$srcdir/$f"; then
8221 # Source tree
8222 echo "$srcdir/$f"
8223 else
8224 # /dev/null tree
8225 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8226 echo "$as_me: error: cannot find input file: $f" >&2;}
8227 { (exit 1); exit 1; }; }
8228 fi;;
8229 esac
8230 done` || { (exit 1); exit 1; }
8231 # Remove the trailing spaces.
8232 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8234 _ACEOF
8236 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8237 # `conftest.undefs', that substitutes the proper values into
8238 # config.h.in to produce config.h. The first handles `#define'
8239 # templates, and the second `#undef' templates.
8240 # And first: Protect against being on the right side of a sed subst in
8241 # config.status. Protect against being in an unquoted here document
8242 # in config.status.
8243 rm -f conftest.defines conftest.undefs
8244 # Using a here document instead of a string reduces the quoting nightmare.
8245 # Putting comments in sed scripts is not portable.
8247 # `end' is used to avoid that the second main sed command (meant for
8248 # 0-ary CPP macros) applies to n-ary macro definitions.
8249 # See the Autoconf documentation for `clear'.
8250 cat >confdef2sed.sed <<\_ACEOF
8251 s/[\\&,]/\\&/g
8252 s,[\\$`],\\&,g
8253 t clear
8254 : clear
8255 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8256 t end
8257 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8258 : end
8259 _ACEOF
8260 # If some macros were called several times there might be several times
8261 # the same #defines, which is useless. Nevertheless, we may not want to
8262 # sort them, since we want the *last* AC-DEFINE to be honored.
8263 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8264 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8265 rm -f confdef2sed.sed
8267 # This sed command replaces #undef with comments. This is necessary, for
8268 # example, in the case of _POSIX_SOURCE, which is predefined and required
8269 # on some systems where configure will not decide to define it.
8270 cat >>conftest.undefs <<\_ACEOF
8271 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8272 _ACEOF
8274 # Break up conftest.defines because some shells have a limit on the size
8275 # of here documents, and old seds have small limits too (100 cmds).
8276 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8277 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8278 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8279 echo ' :' >>$CONFIG_STATUS
8280 rm -f conftest.tail
8281 while grep . conftest.defines >/dev/null
8283 # Write a limited-size here document to $tmp/defines.sed.
8284 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8285 # Speed up: don't consider the non `#define' lines.
8286 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8287 # Work around the forget-to-reset-the-flag bug.
8288 echo 't clr' >>$CONFIG_STATUS
8289 echo ': clr' >>$CONFIG_STATUS
8290 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8291 echo 'CEOF
8292 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8293 rm -f $tmp/in
8294 mv $tmp/out $tmp/in
8295 ' >>$CONFIG_STATUS
8296 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8297 rm -f conftest.defines
8298 mv conftest.tail conftest.defines
8299 done
8300 rm -f conftest.defines
8301 echo ' fi # grep' >>$CONFIG_STATUS
8302 echo >>$CONFIG_STATUS
8304 # Break up conftest.undefs because some shells have a limit on the size
8305 # of here documents, and old seds have small limits too (100 cmds).
8306 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8307 rm -f conftest.tail
8308 while grep . conftest.undefs >/dev/null
8310 # Write a limited-size here document to $tmp/undefs.sed.
8311 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8312 # Speed up: don't consider the non `#undef'
8313 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8314 # Work around the forget-to-reset-the-flag bug.
8315 echo 't clr' >>$CONFIG_STATUS
8316 echo ': clr' >>$CONFIG_STATUS
8317 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8318 echo 'CEOF
8319 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8320 rm -f $tmp/in
8321 mv $tmp/out $tmp/in
8322 ' >>$CONFIG_STATUS
8323 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8324 rm -f conftest.undefs
8325 mv conftest.tail conftest.undefs
8326 done
8327 rm -f conftest.undefs
8329 cat >>$CONFIG_STATUS <<\_ACEOF
8330 # Let's still pretend it is `configure' which instantiates (i.e., don't
8331 # use $as_me), people would be surprised to read:
8332 # /* config.h. Generated by config.status. */
8333 if test x"$ac_file" = x-; then
8334 echo "/* Generated by configure. */" >$tmp/config.h
8335 else
8336 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8338 cat $tmp/in >>$tmp/config.h
8339 rm -f $tmp/in
8340 if test x"$ac_file" != x-; then
8341 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8342 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8343 echo "$as_me: $ac_file is unchanged" >&6;}
8344 else
8345 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8346 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8347 X"$ac_file" : 'X\(//\)[^/]' \| \
8348 X"$ac_file" : 'X\(//\)$' \| \
8349 X"$ac_file" : 'X\(/\)' \| \
8350 . : '\(.\)' 2>/dev/null ||
8351 echo X"$ac_file" |
8352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8353 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8354 /^X\(\/\/\)$/{ s//\1/; q; }
8355 /^X\(\/\).*/{ s//\1/; q; }
8356 s/.*/./; q'`
8357 { if $as_mkdir_p; then
8358 mkdir -p "$ac_dir"
8359 else
8360 as_dir="$ac_dir"
8361 as_dirs=
8362 while test ! -d "$as_dir"; do
8363 as_dirs="$as_dir $as_dirs"
8364 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8365 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8366 X"$as_dir" : 'X\(//\)[^/]' \| \
8367 X"$as_dir" : 'X\(//\)$' \| \
8368 X"$as_dir" : 'X\(/\)' \| \
8369 . : '\(.\)' 2>/dev/null ||
8370 echo X"$as_dir" |
8371 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8372 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8373 /^X\(\/\/\)$/{ s//\1/; q; }
8374 /^X\(\/\).*/{ s//\1/; q; }
8375 s/.*/./; q'`
8376 done
8377 test ! -n "$as_dirs" || mkdir $as_dirs
8378 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8379 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8380 { (exit 1); exit 1; }; }; }
8382 rm -f $ac_file
8383 mv $tmp/config.h $ac_file
8385 else
8386 cat $tmp/config.h
8387 rm -f $tmp/config.h
8389 # Run the commands associated with the file.
8390 case $ac_file in
8391 config.h ) echo timestamp > stamp-h1 ;;
8392 esac
8393 done
8394 _ACEOF
8395 cat >>$CONFIG_STATUS <<\_ACEOF
8398 # CONFIG_COMMANDS section.
8400 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
8401 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8402 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8403 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
8404 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8405 X"$ac_dest" : 'X\(//\)[^/]' \| \
8406 X"$ac_dest" : 'X\(//\)$' \| \
8407 X"$ac_dest" : 'X\(/\)' \| \
8408 . : '\(.\)' 2>/dev/null ||
8409 echo X"$ac_dest" |
8410 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8411 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8412 /^X\(\/\/\)$/{ s//\1/; q; }
8413 /^X\(\/\).*/{ s//\1/; q; }
8414 s/.*/./; q'`
8415 { if $as_mkdir_p; then
8416 mkdir -p "$ac_dir"
8417 else
8418 as_dir="$ac_dir"
8419 as_dirs=
8420 while test ! -d "$as_dir"; do
8421 as_dirs="$as_dir $as_dirs"
8422 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8423 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8424 X"$as_dir" : 'X\(//\)[^/]' \| \
8425 X"$as_dir" : 'X\(//\)$' \| \
8426 X"$as_dir" : 'X\(/\)' \| \
8427 . : '\(.\)' 2>/dev/null ||
8428 echo X"$as_dir" |
8429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8430 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8431 /^X\(\/\/\)$/{ s//\1/; q; }
8432 /^X\(\/\).*/{ s//\1/; q; }
8433 s/.*/./; q'`
8434 done
8435 test ! -n "$as_dirs" || mkdir $as_dirs
8436 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8437 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8438 { (exit 1); exit 1; }; }; }
8440 ac_builddir=.
8442 if test "$ac_dir" != .; then
8443 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8444 # A "../" for each directory in $ac_dir_suffix.
8445 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8446 else
8447 ac_dir_suffix= ac_top_builddir=
8450 case $srcdir in
8451 .) # No --srcdir option. We are building in place.
8452 ac_srcdir=.
8453 if test -z "$ac_top_builddir"; then
8454 ac_top_srcdir=.
8455 else
8456 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8457 fi ;;
8458 [\\/]* | ?:[\\/]* ) # Absolute path.
8459 ac_srcdir=$srcdir$ac_dir_suffix;
8460 ac_top_srcdir=$srcdir ;;
8461 *) # Relative path.
8462 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8463 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8464 esac
8466 # Do not use `cd foo && pwd` to compute absolute paths, because
8467 # the directories may not exist.
8468 case `pwd` in
8469 .) ac_abs_builddir="$ac_dir";;
8471 case "$ac_dir" in
8472 .) ac_abs_builddir=`pwd`;;
8473 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8474 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8475 esac;;
8476 esac
8477 case $ac_abs_builddir in
8478 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8480 case ${ac_top_builddir}. in
8481 .) ac_abs_top_builddir=$ac_abs_builddir;;
8482 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8483 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8484 esac;;
8485 esac
8486 case $ac_abs_builddir in
8487 .) ac_abs_srcdir=$ac_srcdir;;
8489 case $ac_srcdir in
8490 .) ac_abs_srcdir=$ac_abs_builddir;;
8491 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8492 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8493 esac;;
8494 esac
8495 case $ac_abs_builddir in
8496 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8498 case $ac_top_srcdir in
8499 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8500 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8501 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8502 esac;;
8503 esac
8506 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8507 echo "$as_me: executing $ac_dest commands" >&6;}
8508 case $ac_dest in
8509 gstdint.h )
8510 if test "$GCC" = yes; then
8511 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
8512 else
8513 echo "/* generated for $CC */" > tmp-stdint.h
8516 sed 's/^ *//' >> tmp-stdint.h <<EOF
8518 #ifndef GCC_GENERATED_STDINT_H
8519 #define GCC_GENERATED_STDINT_H 1
8521 #include <sys/types.h>
8524 if test "$acx_cv_header_stdint" != stdint.h; then
8525 echo "#include <stddef.h>" >> tmp-stdint.h
8527 if test "$acx_cv_header_stdint" != stddef.h; then
8528 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
8531 sed 's/^ *//' >> tmp-stdint.h <<EOF
8532 /* glibc uses these symbols as guards to prevent redefinitions. */
8533 #ifdef __int8_t_defined
8534 #define _INT8_T
8535 #define _INT16_T
8536 #define _INT32_T
8537 #endif
8538 #ifdef __uint32_t_defined
8539 #define _UINT32_T
8540 #endif
8544 # ----------------- done header, emit basic int types -------------
8545 if test "$acx_cv_header_stdint" = stddef.h; then
8546 sed 's/^ *//' >> tmp-stdint.h <<EOF
8548 #ifndef _UINT8_T
8549 #define _UINT8_T
8550 typedef unsigned $acx_cv_type_int8_t uint8_t;
8551 #endif
8553 #ifndef _UINT16_T
8554 #define _UINT16_T
8555 typedef unsigned $acx_cv_type_int16_t uint16_t;
8556 #endif
8558 #ifndef _UINT32_T
8559 #define _UINT32_T
8560 typedef unsigned $acx_cv_type_int32_t uint32_t;
8561 #endif
8563 #ifndef _INT8_T
8564 #define _INT8_T
8565 typedef $acx_cv_type_int8_t int8_t;
8566 #endif
8568 #ifndef _INT16_T
8569 #define _INT16_T
8570 typedef $acx_cv_type_int16_t int16_t;
8571 #endif
8573 #ifndef _INT32_T
8574 #define _INT32_T
8575 typedef $acx_cv_type_int32_t int32_t;
8576 #endif
8578 elif test "$ac_cv_type_u_int32_t" = yes; then
8579 sed 's/^ *//' >> tmp-stdint.h <<EOF
8581 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
8582 #ifndef _INT8_T
8583 #define _INT8_T
8584 #endif
8585 #ifndef _INT16_T
8586 #define _INT16_T
8587 #endif
8588 #ifndef _INT32_T
8589 #define _INT32_T
8590 #endif
8592 #ifndef _UINT8_T
8593 #define _UINT8_T
8594 typedef u_int8_t uint8_t;
8595 #endif
8597 #ifndef _UINT16_T
8598 #define _UINT16_T
8599 typedef u_int16_t uint16_t;
8600 #endif
8602 #ifndef _UINT32_T
8603 #define _UINT32_T
8604 typedef u_int32_t uint32_t;
8605 #endif
8607 else
8608 sed 's/^ *//' >> tmp-stdint.h <<EOF
8610 /* Some systems have guard macros to prevent redefinitions, define them. */
8611 #ifndef _INT8_T
8612 #define _INT8_T
8613 #endif
8614 #ifndef _INT16_T
8615 #define _INT16_T
8616 #endif
8617 #ifndef _INT32_T
8618 #define _INT32_T
8619 #endif
8620 #ifndef _UINT8_T
8621 #define _UINT8_T
8622 #endif
8623 #ifndef _UINT16_T
8624 #define _UINT16_T
8625 #endif
8626 #ifndef _UINT32_T
8627 #define _UINT32_T
8628 #endif
8632 # ------------- done basic int types, emit int64_t types ------------
8633 if test "$ac_cv_type_uint64_t" = yes; then
8634 sed 's/^ *//' >> tmp-stdint.h <<EOF
8636 /* system headers have good uint64_t and int64_t */
8637 #ifndef _INT64_T
8638 #define _INT64_T
8639 #endif
8640 #ifndef _UINT64_T
8641 #define _UINT64_T
8642 #endif
8644 elif test "$ac_cv_type_u_int64_t" = yes; then
8645 sed 's/^ *//' >> tmp-stdint.h <<EOF
8647 /* system headers have an u_int64_t (and int64_t) */
8648 #ifndef _INT64_T
8649 #define _INT64_T
8650 #endif
8651 #ifndef _UINT64_T
8652 #define _UINT64_T
8653 typedef u_int64_t uint64_t;
8654 #endif
8656 elif test -n "$acx_cv_type_int64_t"; then
8657 sed 's/^ *//' >> tmp-stdint.h <<EOF
8659 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
8660 #ifndef _INT64_T
8661 #define _INT64_T
8662 typedef $acx_cv_type_int64_t int64_t;
8663 #endif
8664 #ifndef _UINT64_T
8665 #define _UINT64_T
8666 typedef unsigned $acx_cv_type_int64_t uint64_t;
8667 #endif
8669 else
8670 sed 's/^ *//' >> tmp-stdint.h <<EOF
8672 /* some common heuristics for int64_t, using compiler-specific tests */
8673 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
8674 #ifndef _INT64_T
8675 #define _INT64_T
8676 typedef long long int64_t;
8677 #endif
8678 #ifndef _UINT64_T
8679 #define _UINT64_T
8680 typedef unsigned long long uint64_t;
8681 #endif
8683 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
8684 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
8685 does not implement __extension__. But that compiler doesn't define
8686 __GNUC_MINOR__. */
8687 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
8688 # define __extension__
8689 # endif
8691 # ifndef _INT64_T
8692 # define _INT64_T
8693 __extension__ typedef long long int64_t;
8694 # endif
8695 # ifndef _UINT64_T
8696 # define _UINT64_T
8697 __extension__ typedef unsigned long long uint64_t;
8698 # endif
8700 #elif !defined __STRICT_ANSI__
8701 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
8703 # ifndef _INT64_T
8704 # define _INT64_T
8705 typedef __int64 int64_t;
8706 # endif
8707 # ifndef _UINT64_T
8708 # define _UINT64_T
8709 typedef unsigned __int64 uint64_t;
8710 # endif
8711 # endif /* compiler */
8713 #endif /* ANSI version */
8717 # ------------- done int64_t types, emit intptr types ------------
8718 if test "$ac_cv_type_uintptr_t" != yes; then
8719 sed 's/^ *//' >> tmp-stdint.h <<EOF
8721 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
8722 typedef u$acx_cv_type_intptr_t uintptr_t;
8723 typedef $acx_cv_type_intptr_t intptr_t;
8727 # ------------- done intptr types, emit int_least types ------------
8728 if test "$ac_cv_type_int_least32_t" != yes; then
8729 sed 's/^ *//' >> tmp-stdint.h <<EOF
8731 /* Define int_least types */
8732 typedef int8_t int_least8_t;
8733 typedef int16_t int_least16_t;
8734 typedef int32_t int_least32_t;
8735 #ifdef _INT64_T
8736 typedef int64_t int_least64_t;
8737 #endif
8739 typedef uint8_t uint_least8_t;
8740 typedef uint16_t uint_least16_t;
8741 typedef uint32_t uint_least32_t;
8742 #ifdef _UINT64_T
8743 typedef uint64_t uint_least64_t;
8744 #endif
8748 # ------------- done intptr types, emit int_fast types ------------
8749 if test "$ac_cv_type_int_fast32_t" != yes; then
8750 sed 's/^ *//' >> tmp-stdint.h <<EOF
8752 /* Define int_fast types. short is often slow */
8753 typedef int8_t int_fast8_t;
8754 typedef int int_fast16_t;
8755 typedef int32_t int_fast32_t;
8756 #ifdef _INT64_T
8757 typedef int64_t int_fast64_t;
8758 #endif
8760 typedef uint8_t uint_fast8_t;
8761 typedef unsigned int uint_fast16_t;
8762 typedef uint32_t uint_fast32_t;
8763 #ifdef _UINT64_T
8764 typedef uint64_t uint_fast64_t;
8765 #endif
8769 if test "$ac_cv_type_uintmax_t" != yes; then
8770 sed 's/^ *//' >> tmp-stdint.h <<EOF
8772 /* Define intmax based on what we found */
8773 #ifdef _INT64_T
8774 typedef int64_t intmax_t;
8775 #else
8776 typedef long intmax_t;
8777 #endif
8778 #ifdef _UINT64_T
8779 typedef uint64_t uintmax_t;
8780 #else
8781 typedef unsigned long uintmax_t;
8782 #endif
8786 sed 's/^ *//' >> tmp-stdint.h <<EOF
8788 #endif /* GCC_GENERATED_STDINT_H */
8791 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
8792 rm -f tmp-stdint.h
8793 else
8794 mv -f tmp-stdint.h gstdint.h
8798 esac
8799 done
8800 _ACEOF
8802 cat >>$CONFIG_STATUS <<\_ACEOF
8804 { (exit 0); exit 0; }
8805 _ACEOF
8806 chmod +x $CONFIG_STATUS
8807 ac_clean_files=$ac_clean_files_save
8810 # configure is writing to config.log, and then calls config.status.
8811 # config.status does its own redirection, appending to config.log.
8812 # Unfortunately, on DOS this fails, as config.log is still kept open
8813 # by configure, so config.status won't be able to write to it; its
8814 # output is simply discarded. So we exec the FD to /dev/null,
8815 # effectively closing config.log, so it can be properly (re)opened and
8816 # appended to by config.status. When coming back to configure, we
8817 # need to make the FD available again.
8818 if test "$no_create" != yes; then
8819 ac_cs_success=:
8820 ac_config_status_args=
8821 test "$silent" = yes &&
8822 ac_config_status_args="$ac_config_status_args --quiet"
8823 exec 5>/dev/null
8824 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8825 exec 5>>config.log
8826 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8827 # would make configure fail if this is the last instruction.
8828 $ac_cs_success || { (exit 1); exit 1; }