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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-6.8/] [libdecnumber/] [configure] - Blame information for rev 295

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

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

powered by: WebSVN 2.1.0

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