OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [libdecnumber/] [configure] - Blame information for rev 822

Go to most recent revision | Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.