OSDN Git Service

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