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