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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gdb-7.2/] [libdecnumber/] [configure] - Blame information for rev 866

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

Line No. Rev Author Line
1 330 jeremybenn
#! /bin/sh
2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.64 for libdecnumber  .
4
#
5
# Report bugs to .
6
#
7
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9
# Foundation, Inc.
10
#
11
# This configure script is free software; the Free Software Foundation
12
# gives unlimited permission to copy, distribute and modify it.
13
## -------------------- ##
14
## M4sh Initialization. ##
15
## -------------------- ##
16
 
17
# Be more Bourne compatible
18
DUALCASE=1; export DUALCASE # for MKS sh
19
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20
  emulate sh
21
  NULLCMD=:
22
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23
  # is contrary to our usage.  Disable this feature.
24
  alias -g '${1+"$@"}'='"$@"'
25
  setopt NO_GLOB_SUBST
26
else
27
  case `(set -o) 2>/dev/null` in #(
28
  *posix*) :
29
    set -o posix ;; #(
30
  *) :
31
     ;;
32
esac
33
fi
34
 
35
 
36
as_nl='
37
'
38
export as_nl
39
# Printing a long string crashes Solaris 7 /usr/bin/printf.
40
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43
# Prefer a ksh shell builtin over an external printf program on Solaris,
44
# but without wasting forks for bash or zsh.
45
if test -z "$BASH_VERSION$ZSH_VERSION" \
46
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47
  as_echo='print -r --'
48
  as_echo_n='print -rn --'
49
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50
  as_echo='printf %s\n'
51
  as_echo_n='printf %s'
52
else
53
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55
    as_echo_n='/usr/ucb/echo -n'
56
  else
57
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58
    as_echo_n_body='eval
59
      arg=$1;
60
      case $arg in #(
61
      *"$as_nl"*)
62
        expr "X$arg" : "X\\(.*\\)$as_nl";
63
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64
      esac;
65
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66
    '
67
    export as_echo_n_body
68
    as_echo_n='sh -c $as_echo_n_body as_echo'
69
  fi
70
  export as_echo_body
71
  as_echo='sh -c $as_echo_body as_echo'
72
fi
73
 
74
# The user is always right.
75
if test "${PATH_SEPARATOR+set}" != set; then
76
  PATH_SEPARATOR=:
77
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79
      PATH_SEPARATOR=';'
80
  }
81
fi
82
 
83
 
84
# IFS
85
# We need space, tab and new line, in precisely that order.  Quoting is
86
# there to prevent editors from complaining about space-tab.
87
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88
# splitting by setting IFS to empty value.)
89
IFS=" ""        $as_nl"
90
 
91
# Find who we are.  Look in the path if we contain no directory separator.
92
case $0 in #((
93
  *[\\/]* ) as_myself=$0 ;;
94
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95
for as_dir in $PATH
96
do
97
  IFS=$as_save_IFS
98
  test -z "$as_dir" && as_dir=.
99
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100
  done
101
IFS=$as_save_IFS
102
 
103
     ;;
104
esac
105
# We did not find ourselves, most probably we were run as `sh COMMAND'
106
# in which case we are not to be found in the path.
107
if test "x$as_myself" = x; then
108
  as_myself=$0
109
fi
110
if test ! -f "$as_myself"; then
111
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112
  exit 1
113
fi
114
 
115
# Unset variables that we do not need and which cause bugs (e.g. in
116
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117
# suppresses any "Segmentation fault" message there.  '((' could
118
# trigger a bug in pdksh 5.2.14.
119
for as_var in BASH_ENV ENV MAIL MAILPATH
120
do eval test x\${$as_var+set} = xset \
121
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122
done
123
PS1='$ '
124
PS2='> '
125
PS4='+ '
126
 
127
# NLS nuisances.
128
LC_ALL=C
129
export LC_ALL
130
LANGUAGE=C
131
export LANGUAGE
132
 
133
# CDPATH.
134
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
 
136
if test "x$CONFIG_SHELL" = x; then
137
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138
  emulate sh
139
  NULLCMD=:
140
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141
  # is contrary to our usage.  Disable this feature.
142
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
143
  setopt NO_GLOB_SUBST
144
else
145
  case \`(set -o) 2>/dev/null\` in #(
146
  *posix*) :
147
    set -o posix ;; #(
148
  *) :
149
     ;;
150
esac
151
fi
152
"
153
  as_required="as_fn_return () { (exit \$1); }
154
as_fn_success () { as_fn_return 0; }
155
as_fn_failure () { as_fn_return 1; }
156
as_fn_ret_success () { return 0; }
157
as_fn_ret_failure () { return 1; }
158
 
159
exitcode=0
160
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
 
166
else
167
  exitcode=1; echo positional parameters were not saved.
168
fi
169
test x\$exitcode = x0 || exit 1"
170
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174
test \$(( 1 + 1 )) = 2 || exit 1"
175
  if (eval "$as_required") 2>/dev/null; then :
176
  as_have_required=yes
177
else
178
  as_have_required=no
179
fi
180
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
 
182
else
183
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184
as_found=false
185
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186
do
187
  IFS=$as_save_IFS
188
  test -z "$as_dir" && as_dir=.
189
  as_found=:
190
  case $as_dir in #(
191
         /*)
192
           for as_base in sh bash ksh sh5; do
193
             # Try only shells that exist, to save several forks.
194
             as_shell=$as_dir/$as_base
195
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197
  CONFIG_SHELL=$as_shell as_have_required=yes
198
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199
  break 2
200
fi
201
fi
202
           done;;
203
       esac
204
  as_found=false
205
done
206
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208
  CONFIG_SHELL=$SHELL as_have_required=yes
209
fi; }
210
IFS=$as_save_IFS
211
 
212
 
213
      if test "x$CONFIG_SHELL" != x; then :
214
  # We cannot yet assume a decent shell, so we have to provide a
215
        # neutralization value for shells without unset; and this also
216
        # works around shells that cannot unset nonexistent variables.
217
        BASH_ENV=/dev/null
218
        ENV=/dev/null
219
        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220
        export CONFIG_SHELL
221
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222
fi
223
 
224
    if test x$as_have_required = xno; then :
225
  $as_echo "$0: This script requires a shell more modern than all"
226
  $as_echo "$0: the shells that I found on your system."
227
  if test x${ZSH_VERSION+set} = xset ; then
228
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230
  else
231
    $as_echo "$0: Please tell bug-autoconf@gnu.org and
232
$0: gcc-bugs@gcc.gnu.org about your system, including any
233
$0: error possibly output before this message. Then install
234
$0: a modern shell, or manually run the script under such a
235
$0: shell if you do have one."
236
  fi
237
  exit 1
238
fi
239
fi
240
fi
241
SHELL=${CONFIG_SHELL-/bin/sh}
242
export SHELL
243
# Unset more variables known to interfere with behavior of common tools.
244
CLICOLOR_FORCE= GREP_OPTIONS=
245
unset CLICOLOR_FORCE GREP_OPTIONS
246
 
247
## --------------------- ##
248
## M4sh Shell Functions. ##
249
## --------------------- ##
250
# as_fn_unset VAR
251
# ---------------
252
# Portably unset VAR.
253
as_fn_unset ()
254
{
255
  { eval $1=; unset $1;}
256
}
257
as_unset=as_fn_unset
258
 
259
# as_fn_set_status STATUS
260
# -----------------------
261
# Set $? to STATUS, without forking.
262
as_fn_set_status ()
263
{
264
  return $1
265
} # as_fn_set_status
266
 
267
# as_fn_exit STATUS
268
# -----------------
269
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
270
as_fn_exit ()
271
{
272
  set +e
273
  as_fn_set_status $1
274
  exit $1
275
} # as_fn_exit
276
 
277
# as_fn_mkdir_p
278
# -------------
279
# Create "$as_dir" as a directory, including parents if necessary.
280
as_fn_mkdir_p ()
281
{
282
 
283
  case $as_dir in #(
284
  -*) as_dir=./$as_dir;;
285
  esac
286
  test -d "$as_dir" || eval $as_mkdir_p || {
287
    as_dirs=
288
    while :; do
289
      case $as_dir in #(
290
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
291
      *) as_qdir=$as_dir;;
292
      esac
293
      as_dirs="'$as_qdir' $as_dirs"
294
      as_dir=`$as_dirname -- "$as_dir" ||
295
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
296
         X"$as_dir" : 'X\(//\)[^/]' \| \
297
         X"$as_dir" : 'X\(//\)$' \| \
298
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
299
$as_echo X"$as_dir" |
300
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
301
            s//\1/
302
            q
303
          }
304
          /^X\(\/\/\)[^/].*/{
305
            s//\1/
306
            q
307
          }
308
          /^X\(\/\/\)$/{
309
            s//\1/
310
            q
311
          }
312
          /^X\(\/\).*/{
313
            s//\1/
314
            q
315
          }
316
          s/.*/./; q'`
317
      test -d "$as_dir" && break
318
    done
319
    test -z "$as_dirs" || eval "mkdir $as_dirs"
320
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
321
 
322
 
323
} # as_fn_mkdir_p
324
# as_fn_append VAR VALUE
325
# ----------------------
326
# Append the text in VALUE to the end of the definition contained in VAR. Take
327
# advantage of any shell optimizations that allow amortized linear growth over
328
# repeated appends, instead of the typical quadratic growth present in naive
329
# implementations.
330
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
331
  eval 'as_fn_append ()
332
  {
333
    eval $1+=\$2
334
  }'
335
else
336
  as_fn_append ()
337
  {
338
    eval $1=\$$1\$2
339
  }
340
fi # as_fn_append
341
 
342
# as_fn_arith ARG...
343
# ------------------
344
# Perform arithmetic evaluation on the ARGs, and store the result in the
345
# global $as_val. Take advantage of shells that can avoid forks. The arguments
346
# must be portable across $(()) and expr.
347
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
348
  eval 'as_fn_arith ()
349
  {
350
    as_val=$(( $* ))
351
  }'
352
else
353
  as_fn_arith ()
354
  {
355
    as_val=`expr "$@" || test $? -eq 1`
356
  }
357
fi # as_fn_arith
358
 
359
 
360
# as_fn_error ERROR [LINENO LOG_FD]
361
# ---------------------------------
362
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
363
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
364
# script with status $?, using 1 if that was 0.
365
as_fn_error ()
366
{
367
  as_status=$?; test $as_status -eq 0 && as_status=1
368
  if test "$3"; then
369
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
370
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371
  fi
372
  $as_echo "$as_me: error: $1" >&2
373
  as_fn_exit $as_status
374
} # as_fn_error
375
 
376
if expr a : '\(a\)' >/dev/null 2>&1 &&
377
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
378
  as_expr=expr
379
else
380
  as_expr=false
381
fi
382
 
383
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
384
  as_basename=basename
385
else
386
  as_basename=false
387
fi
388
 
389
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
390
  as_dirname=dirname
391
else
392
  as_dirname=false
393
fi
394
 
395
as_me=`$as_basename -- "$0" ||
396
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
397
         X"$0" : 'X\(//\)$' \| \
398
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399
$as_echo X/"$0" |
400
    sed '/^.*\/\([^/][^/]*\)\/*$/{
401
            s//\1/
402
            q
403
          }
404
          /^X\/\(\/\/\)$/{
405
            s//\1/
406
            q
407
          }
408
          /^X\/\(\/\).*/{
409
            s//\1/
410
            q
411
          }
412
          s/.*/./; q'`
413
 
414
# Avoid depending upon Character Ranges.
415
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
416
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
417
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
418
as_cr_digits='0123456789'
419
as_cr_alnum=$as_cr_Letters$as_cr_digits
420
 
421
 
422
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
423
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
424
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
425
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
426
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
427
  sed -n '
428
    p
429
    /[$]LINENO/=
430
  ' <$as_myself |
431
    sed '
432
      s/[$]LINENO.*/&-/
433
      t lineno
434
      b
435
      :lineno
436
      N
437
      :loop
438
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439
      t loop
440
      s/-\n.*//
441
    ' >$as_me.lineno &&
442
  chmod +x "$as_me.lineno" ||
443
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444
 
445
  # Don't try to exec as it changes $[0], causing all sort of problems
446
  # (the dirname of $[0] is not the place where we might find the
447
  # original and so on.  Autoconf is especially sensitive to this).
448
  . "./$as_me.lineno"
449
  # Exit status is that of the last command.
450
  exit
451
}
452
 
453
ECHO_C= ECHO_N= ECHO_T=
454
case `echo -n x` in #(((((
455
-n*)
456
  case `echo 'xy\c'` in
457
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
458
  xy)  ECHO_C='\c';;
459
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
460
       ECHO_T=' ';;
461
  esac;;
462
*)
463
  ECHO_N='-n';;
464
esac
465
 
466
rm -f conf$$ conf$$.exe conf$$.file
467
if test -d conf$$.dir; then
468
  rm -f conf$$.dir/conf$$.file
469
else
470
  rm -f conf$$.dir
471
  mkdir conf$$.dir 2>/dev/null
472
fi
473
if (echo >conf$$.file) 2>/dev/null; then
474
  if ln -s conf$$.file conf$$ 2>/dev/null; then
475
    as_ln_s='ln -s'
476
    # ... but there are two gotchas:
477
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
478
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
479
    # In both cases, we have to default to `cp -p'.
480
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
481
      as_ln_s='cp -p'
482
  elif ln conf$$.file conf$$ 2>/dev/null; then
483
    as_ln_s=ln
484
  else
485
    as_ln_s='cp -p'
486
  fi
487
else
488
  as_ln_s='cp -p'
489
fi
490
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
491
rmdir conf$$.dir 2>/dev/null
492
 
493
if mkdir -p . 2>/dev/null; then
494
  as_mkdir_p='mkdir -p "$as_dir"'
495
else
496
  test -d ./-p && rmdir ./-p
497
  as_mkdir_p=false
498
fi
499
 
500
if test -x / >/dev/null 2>&1; then
501
  as_test_x='test -x'
502
else
503
  if ls -dL / >/dev/null 2>&1; then
504
    as_ls_L_option=L
505
  else
506
    as_ls_L_option=
507
  fi
508
  as_test_x='
509
    eval sh -c '\''
510
      if test -d "$1"; then
511
        test -d "$1/.";
512
      else
513
        case $1 in #(
514
        -*)set "./$1";;
515
        esac;
516
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
517
        ???[sx]*):;;*)false;;esac;fi
518
    '\'' sh
519
  '
520
fi
521
as_executable_p=$as_test_x
522
 
523
# Sed expression to map a string onto a valid CPP name.
524
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525
 
526
# Sed expression to map a string onto a valid variable name.
527
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
528
 
529
 
530
exec 7<&0 &1
531
 
532
# Name of the host.
533
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534
# so uname gets run too.
535
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
 
537
#
538
# Initializations.
539
#
540
ac_default_prefix=/usr/local
541
ac_clean_files=
542
ac_config_libobj_dir=.
543
LIBOBJS=
544
cross_compiling=no
545
subdirs=
546
MFLAGS=
547
MAKEFLAGS=
548
 
549
# Identity of this package.
550
PACKAGE_NAME='libdecnumber'
551
PACKAGE_TARNAME='libdecnumber'
552
PACKAGE_VERSION=' '
553
PACKAGE_STRING='libdecnumber  '
554
PACKAGE_BUGREPORT='gcc-bugs@gcc.gnu.org'
555
PACKAGE_URL=''
556
 
557
ac_unique_file="decNumber.h"
558
# Factoring default headers for most tests.
559
ac_includes_default="\
560
#include 
561
#ifdef HAVE_SYS_TYPES_H
562
# include 
563
#endif
564
#ifdef HAVE_SYS_STAT_H
565
# include 
566
#endif
567
#ifdef STDC_HEADERS
568
# include 
569
# include 
570
#else
571
# ifdef HAVE_STDLIB_H
572
#  include 
573
# endif
574
#endif
575
#ifdef HAVE_STRING_H
576
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577
#  include 
578
# endif
579
# include 
580
#endif
581
#ifdef HAVE_STRINGS_H
582
# include 
583
#endif
584
#ifdef HAVE_INTTYPES_H
585
# include 
586
#endif
587
#ifdef HAVE_STDINT_H
588
# include 
589
#endif
590
#ifdef HAVE_UNISTD_H
591
# include 
592
#endif"
593
 
594
ac_subst_vars='LTLIBOBJS
595
LIBOBJS
596
ADDITIONAL_OBJS
597
enable_decimal_float
598
target_os
599
target_vendor
600
target_cpu
601
target
602
host_os
603
host_vendor
604
host_cpu
605
host
606
build_os
607
build_vendor
608
build_cpu
609
build
610
MAINT
611
EGREP
612
GREP
613
CPP
614
WERROR
615
WARN_PEDANTIC
616
WARN_CFLAGS
617
AUTOHEADER
618
AUTOCONF
619
ACLOCAL
620
RANLIB
621
OBJEXT
622
EXEEXT
623
ac_ct_CC
624
CPPFLAGS
625
LDFLAGS
626
CFLAGS
627
CC
628
SET_MAKE
629
target_alias
630
host_alias
631
build_alias
632
LIBS
633
ECHO_T
634
ECHO_N
635
ECHO_C
636
DEFS
637
mandir
638
localedir
639
libdir
640
psdir
641
pdfdir
642
dvidir
643
htmldir
644
infodir
645
docdir
646
oldincludedir
647
includedir
648
localstatedir
649
sharedstatedir
650
sysconfdir
651
datadir
652
datarootdir
653
libexecdir
654
sbindir
655
bindir
656
program_transform_name
657
prefix
658
exec_prefix
659
PACKAGE_URL
660
PACKAGE_BUGREPORT
661
PACKAGE_STRING
662
PACKAGE_VERSION
663
PACKAGE_TARNAME
664
PACKAGE_NAME
665
PATH_SEPARATOR
666
SHELL'
667
ac_subst_files=''
668
ac_user_opts='
669
enable_option_checking
670
enable_werror_always
671
enable_maintainer_mode
672
enable_decimal_float
673
'
674
      ac_precious_vars='build_alias
675
host_alias
676
target_alias
677
CC
678
CFLAGS
679
LDFLAGS
680
LIBS
681
CPPFLAGS
682
CPP'
683
 
684
 
685
# Initialize some variables set by options.
686
ac_init_help=
687
ac_init_version=false
688
ac_unrecognized_opts=
689
ac_unrecognized_sep=
690
# The variables have the same names as the options, with
691
# dashes changed to underlines.
692
cache_file=/dev/null
693
exec_prefix=NONE
694
no_create=
695
no_recursion=
696
prefix=NONE
697
program_prefix=NONE
698
program_suffix=NONE
699
program_transform_name=s,x,x,
700
silent=
701
site=
702
srcdir=
703
verbose=
704
x_includes=NONE
705
x_libraries=NONE
706
 
707
# Installation directory options.
708
# These are left unexpanded so users can "make install exec_prefix=/foo"
709
# and all the variables that are supposed to be based on exec_prefix
710
# by default will actually change.
711
# Use braces instead of parens because sh, perl, etc. also accept them.
712
# (The list follows the same order as the GNU Coding Standards.)
713
bindir='${exec_prefix}/bin'
714
sbindir='${exec_prefix}/sbin'
715
libexecdir='${exec_prefix}/libexec'
716
datarootdir='${prefix}/share'
717
datadir='${datarootdir}'
718
sysconfdir='${prefix}/etc'
719
sharedstatedir='${prefix}/com'
720
localstatedir='${prefix}/var'
721
includedir='${prefix}/include'
722
oldincludedir='/usr/include'
723
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
724
infodir='${datarootdir}/info'
725
htmldir='${docdir}'
726
dvidir='${docdir}'
727
pdfdir='${docdir}'
728
psdir='${docdir}'
729
libdir='${exec_prefix}/lib'
730
localedir='${datarootdir}/locale'
731
mandir='${datarootdir}/man'
732
 
733
ac_prev=
734
ac_dashdash=
735
for ac_option
736
do
737
  # If the previous option needs an argument, assign it.
738
  if test -n "$ac_prev"; then
739
    eval $ac_prev=\$ac_option
740
    ac_prev=
741
    continue
742
  fi
743
 
744
  case $ac_option in
745
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
746
  *)    ac_optarg=yes ;;
747
  esac
748
 
749
  # Accept the important Cygnus configure options, so we can diagnose typos.
750
 
751
  case $ac_dashdash$ac_option in
752
  --)
753
    ac_dashdash=yes ;;
754
 
755
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
756
    ac_prev=bindir ;;
757
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
758
    bindir=$ac_optarg ;;
759
 
760
  -build | --build | --buil | --bui | --bu)
761
    ac_prev=build_alias ;;
762
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
763
    build_alias=$ac_optarg ;;
764
 
765
  -cache-file | --cache-file | --cache-fil | --cache-fi \
766
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
767
    ac_prev=cache_file ;;
768
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
769
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
770
    cache_file=$ac_optarg ;;
771
 
772
  --config-cache | -C)
773
    cache_file=config.cache ;;
774
 
775
  -datadir | --datadir | --datadi | --datad)
776
    ac_prev=datadir ;;
777
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
778
    datadir=$ac_optarg ;;
779
 
780
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
781
  | --dataroo | --dataro | --datar)
782
    ac_prev=datarootdir ;;
783
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
784
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
785
    datarootdir=$ac_optarg ;;
786
 
787
  -disable-* | --disable-*)
788
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
789
    # Reject names that are not valid shell variable names.
790
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
791
      as_fn_error "invalid feature name: $ac_useropt"
792
    ac_useropt_orig=$ac_useropt
793
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
794
    case $ac_user_opts in
795
      *"
796
"enable_$ac_useropt"
797
"*) ;;
798
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
799
         ac_unrecognized_sep=', ';;
800
    esac
801
    eval enable_$ac_useropt=no ;;
802
 
803
  -docdir | --docdir | --docdi | --doc | --do)
804
    ac_prev=docdir ;;
805
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
806
    docdir=$ac_optarg ;;
807
 
808
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
809
    ac_prev=dvidir ;;
810
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
811
    dvidir=$ac_optarg ;;
812
 
813
  -enable-* | --enable-*)
814
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
815
    # Reject names that are not valid shell variable names.
816
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
817
      as_fn_error "invalid feature name: $ac_useropt"
818
    ac_useropt_orig=$ac_useropt
819
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
820
    case $ac_user_opts in
821
      *"
822
"enable_$ac_useropt"
823
"*) ;;
824
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
825
         ac_unrecognized_sep=', ';;
826
    esac
827
    eval enable_$ac_useropt=\$ac_optarg ;;
828
 
829
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
830
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
831
  | --exec | --exe | --ex)
832
    ac_prev=exec_prefix ;;
833
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
834
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
835
  | --exec=* | --exe=* | --ex=*)
836
    exec_prefix=$ac_optarg ;;
837
 
838
  -gas | --gas | --ga | --g)
839
    # Obsolete; use --with-gas.
840
    with_gas=yes ;;
841
 
842
  -help | --help | --hel | --he | -h)
843
    ac_init_help=long ;;
844
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
845
    ac_init_help=recursive ;;
846
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
847
    ac_init_help=short ;;
848
 
849
  -host | --host | --hos | --ho)
850
    ac_prev=host_alias ;;
851
  -host=* | --host=* | --hos=* | --ho=*)
852
    host_alias=$ac_optarg ;;
853
 
854
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
855
    ac_prev=htmldir ;;
856
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
857
  | --ht=*)
858
    htmldir=$ac_optarg ;;
859
 
860
  -includedir | --includedir | --includedi | --included | --include \
861
  | --includ | --inclu | --incl | --inc)
862
    ac_prev=includedir ;;
863
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
864
  | --includ=* | --inclu=* | --incl=* | --inc=*)
865
    includedir=$ac_optarg ;;
866
 
867
  -infodir | --infodir | --infodi | --infod | --info | --inf)
868
    ac_prev=infodir ;;
869
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
870
    infodir=$ac_optarg ;;
871
 
872
  -libdir | --libdir | --libdi | --libd)
873
    ac_prev=libdir ;;
874
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
875
    libdir=$ac_optarg ;;
876
 
877
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
878
  | --libexe | --libex | --libe)
879
    ac_prev=libexecdir ;;
880
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
881
  | --libexe=* | --libex=* | --libe=*)
882
    libexecdir=$ac_optarg ;;
883
 
884
  -localedir | --localedir | --localedi | --localed | --locale)
885
    ac_prev=localedir ;;
886
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
887
    localedir=$ac_optarg ;;
888
 
889
  -localstatedir | --localstatedir | --localstatedi | --localstated \
890
  | --localstate | --localstat | --localsta | --localst | --locals)
891
    ac_prev=localstatedir ;;
892
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
893
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
894
    localstatedir=$ac_optarg ;;
895
 
896
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
897
    ac_prev=mandir ;;
898
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
899
    mandir=$ac_optarg ;;
900
 
901
  -nfp | --nfp | --nf)
902
    # Obsolete; use --without-fp.
903
    with_fp=no ;;
904
 
905
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
906
  | --no-cr | --no-c | -n)
907
    no_create=yes ;;
908
 
909
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
910
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
911
    no_recursion=yes ;;
912
 
913
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
914
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
915
  | --oldin | --oldi | --old | --ol | --o)
916
    ac_prev=oldincludedir ;;
917
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
918
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
919
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
920
    oldincludedir=$ac_optarg ;;
921
 
922
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
923
    ac_prev=prefix ;;
924
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
925
    prefix=$ac_optarg ;;
926
 
927
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
928
  | --program-pre | --program-pr | --program-p)
929
    ac_prev=program_prefix ;;
930
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
931
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
932
    program_prefix=$ac_optarg ;;
933
 
934
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
935
  | --program-suf | --program-su | --program-s)
936
    ac_prev=program_suffix ;;
937
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
938
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
939
    program_suffix=$ac_optarg ;;
940
 
941
  -program-transform-name | --program-transform-name \
942
  | --program-transform-nam | --program-transform-na \
943
  | --program-transform-n | --program-transform- \
944
  | --program-transform | --program-transfor \
945
  | --program-transfo | --program-transf \
946
  | --program-trans | --program-tran \
947
  | --progr-tra | --program-tr | --program-t)
948
    ac_prev=program_transform_name ;;
949
  -program-transform-name=* | --program-transform-name=* \
950
  | --program-transform-nam=* | --program-transform-na=* \
951
  | --program-transform-n=* | --program-transform-=* \
952
  | --program-transform=* | --program-transfor=* \
953
  | --program-transfo=* | --program-transf=* \
954
  | --program-trans=* | --program-tran=* \
955
  | --progr-tra=* | --program-tr=* | --program-t=*)
956
    program_transform_name=$ac_optarg ;;
957
 
958
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
959
    ac_prev=pdfdir ;;
960
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
961
    pdfdir=$ac_optarg ;;
962
 
963
  -psdir | --psdir | --psdi | --psd | --ps)
964
    ac_prev=psdir ;;
965
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
966
    psdir=$ac_optarg ;;
967
 
968
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
969
  | -silent | --silent | --silen | --sile | --sil)
970
    silent=yes ;;
971
 
972
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
973
    ac_prev=sbindir ;;
974
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
975
  | --sbi=* | --sb=*)
976
    sbindir=$ac_optarg ;;
977
 
978
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
979
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
980
  | --sharedst | --shareds | --shared | --share | --shar \
981
  | --sha | --sh)
982
    ac_prev=sharedstatedir ;;
983
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
984
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
985
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
986
  | --sha=* | --sh=*)
987
    sharedstatedir=$ac_optarg ;;
988
 
989
  -site | --site | --sit)
990
    ac_prev=site ;;
991
  -site=* | --site=* | --sit=*)
992
    site=$ac_optarg ;;
993
 
994
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
995
    ac_prev=srcdir ;;
996
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
997
    srcdir=$ac_optarg ;;
998
 
999
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1000
  | --syscon | --sysco | --sysc | --sys | --sy)
1001
    ac_prev=sysconfdir ;;
1002
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1003
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1004
    sysconfdir=$ac_optarg ;;
1005
 
1006
  -target | --target | --targe | --targ | --tar | --ta | --t)
1007
    ac_prev=target_alias ;;
1008
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1009
    target_alias=$ac_optarg ;;
1010
 
1011
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1012
    verbose=yes ;;
1013
 
1014
  -version | --version | --versio | --versi | --vers | -V)
1015
    ac_init_version=: ;;
1016
 
1017
  -with-* | --with-*)
1018
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1019
    # Reject names that are not valid shell variable names.
1020
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1021
      as_fn_error "invalid package name: $ac_useropt"
1022
    ac_useropt_orig=$ac_useropt
1023
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1024
    case $ac_user_opts in
1025
      *"
1026
"with_$ac_useropt"
1027
"*) ;;
1028
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1029
         ac_unrecognized_sep=', ';;
1030
    esac
1031
    eval with_$ac_useropt=\$ac_optarg ;;
1032
 
1033
  -without-* | --without-*)
1034
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1035
    # Reject names that are not valid shell variable names.
1036
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1037
      as_fn_error "invalid package name: $ac_useropt"
1038
    ac_useropt_orig=$ac_useropt
1039
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1040
    case $ac_user_opts in
1041
      *"
1042
"with_$ac_useropt"
1043
"*) ;;
1044
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1045
         ac_unrecognized_sep=', ';;
1046
    esac
1047
    eval with_$ac_useropt=no ;;
1048
 
1049
  --x)
1050
    # Obsolete; use --with-x.
1051
    with_x=yes ;;
1052
 
1053
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1054
  | --x-incl | --x-inc | --x-in | --x-i)
1055
    ac_prev=x_includes ;;
1056
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1057
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1058
    x_includes=$ac_optarg ;;
1059
 
1060
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1061
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1062
    ac_prev=x_libraries ;;
1063
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1064
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1065
    x_libraries=$ac_optarg ;;
1066
 
1067
  -*) as_fn_error "unrecognized option: \`$ac_option'
1068
Try \`$0 --help' for more information."
1069
    ;;
1070
 
1071
  *=*)
1072
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1073
    # Reject names that are not valid shell variable names.
1074
    case $ac_envvar in #(
1075
      '' | [0-9]* | *[!_$as_cr_alnum]* )
1076
      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1077
    esac
1078
    eval $ac_envvar=\$ac_optarg
1079
    export $ac_envvar ;;
1080
 
1081
  *)
1082
    # FIXME: should be removed in autoconf 3.0.
1083
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1084
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1085
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1086
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1087
    ;;
1088
 
1089
  esac
1090
done
1091
 
1092
if test -n "$ac_prev"; then
1093
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1094
  as_fn_error "missing argument to $ac_option"
1095
fi
1096
 
1097
if test -n "$ac_unrecognized_opts"; then
1098
  case $enable_option_checking in
1099
    no) ;;
1100
    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1101
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1102
  esac
1103
fi
1104
 
1105
# Check all directory arguments for consistency.
1106
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1107
                datadir sysconfdir sharedstatedir localstatedir includedir \
1108
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1109
                libdir localedir mandir
1110
do
1111
  eval ac_val=\$$ac_var
1112
  # Remove trailing slashes.
1113
  case $ac_val in
1114
    */ )
1115
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1116
      eval $ac_var=\$ac_val;;
1117
  esac
1118
  # Be sure to have absolute directory names.
1119
  case $ac_val in
1120
    [\\/$]* | ?:[\\/]* )  continue;;
1121
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1122
  esac
1123
  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1124
done
1125
 
1126
# There might be people who depend on the old broken behavior: `$host'
1127
# used to hold the argument of --host etc.
1128
# FIXME: To remove some day.
1129
build=$build_alias
1130
host=$host_alias
1131
target=$target_alias
1132
 
1133
# FIXME: To remove some day.
1134
if test "x$host_alias" != x; then
1135
  if test "x$build_alias" = x; then
1136
    cross_compiling=maybe
1137
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1138
    If a cross compiler is detected then cross compile mode will be used." >&2
1139
  elif test "x$build_alias" != "x$host_alias"; then
1140
    cross_compiling=yes
1141
  fi
1142
fi
1143
 
1144
ac_tool_prefix=
1145
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1146
 
1147
test "$silent" = yes && exec 6>/dev/null
1148
 
1149
 
1150
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1151
ac_ls_di=`ls -di .` &&
1152
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1153
  as_fn_error "working directory cannot be determined"
1154
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1155
  as_fn_error "pwd does not report name of working directory"
1156
 
1157
 
1158
# Find the source files, if location was not specified.
1159
if test -z "$srcdir"; then
1160
  ac_srcdir_defaulted=yes
1161
  # Try the directory containing this script, then the parent directory.
1162
  ac_confdir=`$as_dirname -- "$as_myself" ||
1163
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1164
         X"$as_myself" : 'X\(//\)[^/]' \| \
1165
         X"$as_myself" : 'X\(//\)$' \| \
1166
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1167
$as_echo X"$as_myself" |
1168
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1169
            s//\1/
1170
            q
1171
          }
1172
          /^X\(\/\/\)[^/].*/{
1173
            s//\1/
1174
            q
1175
          }
1176
          /^X\(\/\/\)$/{
1177
            s//\1/
1178
            q
1179
          }
1180
          /^X\(\/\).*/{
1181
            s//\1/
1182
            q
1183
          }
1184
          s/.*/./; q'`
1185
  srcdir=$ac_confdir
1186
  if test ! -r "$srcdir/$ac_unique_file"; then
1187
    srcdir=..
1188
  fi
1189
else
1190
  ac_srcdir_defaulted=no
1191
fi
1192
if test ! -r "$srcdir/$ac_unique_file"; then
1193
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1194
  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1195
fi
1196
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1197
ac_abs_confdir=`(
1198
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1199
        pwd)`
1200
# When building in place, set srcdir=.
1201
if test "$ac_abs_confdir" = "$ac_pwd"; then
1202
  srcdir=.
1203
fi
1204
# Remove unnecessary trailing slashes from srcdir.
1205
# Double slashes in file names in object file debugging info
1206
# mess up M-x gdb in Emacs.
1207
case $srcdir in
1208
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1209
esac
1210
for ac_var in $ac_precious_vars; do
1211
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1212
  eval ac_env_${ac_var}_value=\$${ac_var}
1213
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1214
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1215
done
1216
 
1217
#
1218
# Report the --help message.
1219
#
1220
if test "$ac_init_help" = "long"; then
1221
  # Omit some internal or obsolete options to make the list less imposing.
1222
  # This message is too long to be a string in the A/UX 3.1 sh.
1223
  cat <<_ACEOF
1224
\`configure' configures libdecnumber   to adapt to many kinds of systems.
1225
 
1226
Usage: $0 [OPTION]... [VAR=VALUE]...
1227
 
1228
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1229
VAR=VALUE.  See below for descriptions of some of the useful variables.
1230
 
1231
Defaults for the options are specified in brackets.
1232
 
1233
Configuration:
1234
  -h, --help              display this help and exit
1235
      --help=short        display options specific to this package
1236
      --help=recursive    display the short help of all the included packages
1237
  -V, --version           display version information and exit
1238
  -q, --quiet, --silent   do not print \`checking...' messages
1239
      --cache-file=FILE   cache test results in FILE [disabled]
1240
  -C, --config-cache      alias for \`--cache-file=config.cache'
1241
  -n, --no-create         do not create output files
1242
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1243
 
1244
Installation directories:
1245
  --prefix=PREFIX         install architecture-independent files in PREFIX
1246
                          [$ac_default_prefix]
1247
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1248
                          [PREFIX]
1249
 
1250
By default, \`make install' will install all the files in
1251
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1252
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1253
for instance \`--prefix=\$HOME'.
1254
 
1255
For better control, use the options below.
1256
 
1257
Fine tuning of the installation directories:
1258
  --bindir=DIR            user executables [EPREFIX/bin]
1259
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1260
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1261
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1262
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1263
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1264
  --libdir=DIR            object code libraries [EPREFIX/lib]
1265
  --includedir=DIR        C header files [PREFIX/include]
1266
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1267
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1268
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1269
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1270
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1271
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1272
  --docdir=DIR            documentation root [DATAROOTDIR/doc/libdecnumber]
1273
  --htmldir=DIR           html documentation [DOCDIR]
1274
  --dvidir=DIR            dvi documentation [DOCDIR]
1275
  --pdfdir=DIR            pdf documentation [DOCDIR]
1276
  --psdir=DIR             ps documentation [DOCDIR]
1277
_ACEOF
1278
 
1279
  cat <<\_ACEOF
1280
 
1281
System types:
1282
  --build=BUILD     configure for building on BUILD [guessed]
1283
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1284
  --target=TARGET   configure for building compilers for TARGET [HOST]
1285
_ACEOF
1286
fi
1287
 
1288
if test -n "$ac_init_help"; then
1289
  case $ac_init_help in
1290
     short | recursive ) echo "Configuration of libdecnumber  :";;
1291
   esac
1292
  cat <<\_ACEOF
1293
 
1294
Optional Features:
1295
  --disable-option-checking  ignore unrecognized --enable/--with options
1296
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1297
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1298
  --enable-werror-always  enable -Werror despite compiler version
1299
  --enable-maintainer-mode enable rules only needed by maintainers
1300
  --enable-decimal-float={no,yes,bid,dpd}
1301
                        enable decimal float extension to C.  Selecting 'bid'
1302
                        or 'dpd' choses which decimal floating point format
1303
                        to use
1304
 
1305
Some influential environment variables:
1306
  CC          C compiler command
1307
  CFLAGS      C compiler flags
1308
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
1309
              nonstandard directory 
1310
  LIBS        libraries to pass to the linker, e.g. -l
1311
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I if
1312
              you have headers in a nonstandard directory 
1313
  CPP         C preprocessor
1314
 
1315
Use these variables to override the choices made by `configure' or to help
1316
it to find libraries and programs with nonstandard names/locations.
1317
 
1318
Report bugs to .
1319
_ACEOF
1320
ac_status=$?
1321
fi
1322
 
1323
if test "$ac_init_help" = "recursive"; then
1324
  # If there are subdirs, report their specific --help.
1325
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1326
    test -d "$ac_dir" ||
1327
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1328
      continue
1329
    ac_builddir=.
1330
 
1331
case "$ac_dir" in
1332
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1333
*)
1334
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1335
  # A ".." for each directory in $ac_dir_suffix.
1336
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1337
  case $ac_top_builddir_sub in
1338
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1339
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1340
  esac ;;
1341
esac
1342
ac_abs_top_builddir=$ac_pwd
1343
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1344
# for backward compatibility:
1345
ac_top_builddir=$ac_top_build_prefix
1346
 
1347
case $srcdir in
1348
  .)  # We are building in place.
1349
    ac_srcdir=.
1350
    ac_top_srcdir=$ac_top_builddir_sub
1351
    ac_abs_top_srcdir=$ac_pwd ;;
1352
  [\\/]* | ?:[\\/]* )  # Absolute name.
1353
    ac_srcdir=$srcdir$ac_dir_suffix;
1354
    ac_top_srcdir=$srcdir
1355
    ac_abs_top_srcdir=$srcdir ;;
1356
  *) # Relative name.
1357
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1358
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1359
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1360
esac
1361
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1362
 
1363
    cd "$ac_dir" || { ac_status=$?; continue; }
1364
    # Check for guested configure.
1365
    if test -f "$ac_srcdir/configure.gnu"; then
1366
      echo &&
1367
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1368
    elif test -f "$ac_srcdir/configure"; then
1369
      echo &&
1370
      $SHELL "$ac_srcdir/configure" --help=recursive
1371
    else
1372
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1373
    fi || ac_status=$?
1374
    cd "$ac_pwd" || { ac_status=$?; break; }
1375
  done
1376
fi
1377
 
1378
test -n "$ac_init_help" && exit $ac_status
1379
if $ac_init_version; then
1380
  cat <<\_ACEOF
1381
libdecnumber configure
1382
generated by GNU Autoconf 2.64
1383
 
1384
Copyright (C) 2009 Free Software Foundation, Inc.
1385
This configure script is free software; the Free Software Foundation
1386
gives unlimited permission to copy, distribute and modify it.
1387
_ACEOF
1388
  exit
1389
fi
1390
 
1391
## ------------------------ ##
1392
## Autoconf initialization. ##
1393
## ------------------------ ##
1394
 
1395
# ac_fn_c_try_compile LINENO
1396
# --------------------------
1397
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1398
ac_fn_c_try_compile ()
1399
{
1400
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1401
  rm -f conftest.$ac_objext
1402
  if { { ac_try="$ac_compile"
1403
case "(($ac_try" in
1404
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1405
  *) ac_try_echo=$ac_try;;
1406
esac
1407
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1408
$as_echo "$ac_try_echo"; } >&5
1409
  (eval "$ac_compile") 2>conftest.err
1410
  ac_status=$?
1411
  if test -s conftest.err; then
1412
    grep -v '^ *+' conftest.err >conftest.er1
1413
    cat conftest.er1 >&5
1414
    mv -f conftest.er1 conftest.err
1415
  fi
1416
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1417
  test $ac_status = 0; } && {
1418
         test -z "$ac_c_werror_flag" ||
1419
         test ! -s conftest.err
1420
       } && test -s conftest.$ac_objext; then :
1421
  ac_retval=0
1422
else
1423
  $as_echo "$as_me: failed program was:" >&5
1424
sed 's/^/| /' conftest.$ac_ext >&5
1425
 
1426
        ac_retval=1
1427
fi
1428
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1429
  return $ac_retval
1430
 
1431
} # ac_fn_c_try_compile
1432
 
1433
# ac_fn_c_try_cpp LINENO
1434
# ----------------------
1435
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1436
ac_fn_c_try_cpp ()
1437
{
1438
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1439
  if { { ac_try="$ac_cpp conftest.$ac_ext"
1440
case "(($ac_try" in
1441
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1442
  *) ac_try_echo=$ac_try;;
1443
esac
1444
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1445
$as_echo "$ac_try_echo"; } >&5
1446
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1447
  ac_status=$?
1448
  if test -s conftest.err; then
1449
    grep -v '^ *+' conftest.err >conftest.er1
1450
    cat conftest.er1 >&5
1451
    mv -f conftest.er1 conftest.err
1452
  fi
1453
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1454
  test $ac_status = 0; } >/dev/null && {
1455
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1456
         test ! -s conftest.err
1457
       }; then :
1458
  ac_retval=0
1459
else
1460
  $as_echo "$as_me: failed program was:" >&5
1461
sed 's/^/| /' conftest.$ac_ext >&5
1462
 
1463
    ac_retval=1
1464
fi
1465
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1466
  return $ac_retval
1467
 
1468
} # ac_fn_c_try_cpp
1469
 
1470
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1471
# -------------------------------------------------------
1472
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1473
# the include files in INCLUDES and setting the cache variable VAR
1474
# accordingly.
1475
ac_fn_c_check_header_mongrel ()
1476
{
1477
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1478
  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1479
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1480
$as_echo_n "checking for $2... " >&6; }
1481
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1482
  $as_echo_n "(cached) " >&6
1483
fi
1484
eval ac_res=\$$3
1485
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1486
$as_echo "$ac_res" >&6; }
1487
else
1488
  # Is the header compilable?
1489
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1490
$as_echo_n "checking $2 usability... " >&6; }
1491
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1492
/* end confdefs.h.  */
1493
$4
1494
#include <$2>
1495
_ACEOF
1496
if ac_fn_c_try_compile "$LINENO"; then :
1497
  ac_header_compiler=yes
1498
else
1499
  ac_header_compiler=no
1500
fi
1501
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1502
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1503
$as_echo "$ac_header_compiler" >&6; }
1504
 
1505
# Is the header present?
1506
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1507
$as_echo_n "checking $2 presence... " >&6; }
1508
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1509
/* end confdefs.h.  */
1510
#include <$2>
1511
_ACEOF
1512
if ac_fn_c_try_cpp "$LINENO"; then :
1513
  ac_header_preproc=yes
1514
else
1515
  ac_header_preproc=no
1516
fi
1517
rm -f conftest.err conftest.$ac_ext
1518
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1519
$as_echo "$ac_header_preproc" >&6; }
1520
 
1521
# So?  What about this header?
1522
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1523
  yes:no: )
1524
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1525
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1526
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1527
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1528
    ;;
1529
  no:yes:* )
1530
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1531
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1532
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1533
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1534
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1535
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1536
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1537
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1538
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1539
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1540
( cat <<\_ASBOX
1541
## ----------------------------------- ##
1542
## Report this to gcc-bugs@gcc.gnu.org ##
1543
## ----------------------------------- ##
1544
_ASBOX
1545
     ) | sed "s/^/$as_me: WARNING:     /" >&2
1546
    ;;
1547
esac
1548
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1549
$as_echo_n "checking for $2... " >&6; }
1550
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1551
  $as_echo_n "(cached) " >&6
1552
else
1553
  eval "$3=\$ac_header_compiler"
1554
fi
1555
eval ac_res=\$$3
1556
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1557
$as_echo "$ac_res" >&6; }
1558
fi
1559
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1560
 
1561
} # ac_fn_c_check_header_mongrel
1562
 
1563
# ac_fn_c_try_run LINENO
1564
# ----------------------
1565
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1566
# that executables *can* be run.
1567
ac_fn_c_try_run ()
1568
{
1569
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1570
  if { { ac_try="$ac_link"
1571
case "(($ac_try" in
1572
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1573
  *) ac_try_echo=$ac_try;;
1574
esac
1575
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1576
$as_echo "$ac_try_echo"; } >&5
1577
  (eval "$ac_link") 2>&5
1578
  ac_status=$?
1579
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1580
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1581
  { { case "(($ac_try" in
1582
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1583
  *) ac_try_echo=$ac_try;;
1584
esac
1585
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1586
$as_echo "$ac_try_echo"; } >&5
1587
  (eval "$ac_try") 2>&5
1588
  ac_status=$?
1589
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1590
  test $ac_status = 0; }; }; then :
1591
  ac_retval=0
1592
else
1593
  $as_echo "$as_me: program exited with status $ac_status" >&5
1594
       $as_echo "$as_me: failed program was:" >&5
1595
sed 's/^/| /' conftest.$ac_ext >&5
1596
 
1597
       ac_retval=$ac_status
1598
fi
1599
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1600
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1601
  return $ac_retval
1602
 
1603
} # ac_fn_c_try_run
1604
 
1605
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1606
# -------------------------------------------------------
1607
# Tests whether HEADER exists and can be compiled using the include files in
1608
# INCLUDES, setting the cache variable VAR accordingly.
1609
ac_fn_c_check_header_compile ()
1610
{
1611
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1612
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1613
$as_echo_n "checking for $2... " >&6; }
1614
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1615
  $as_echo_n "(cached) " >&6
1616
else
1617
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1618
/* end confdefs.h.  */
1619
$4
1620
#include <$2>
1621
_ACEOF
1622
if ac_fn_c_try_compile "$LINENO"; then :
1623
  eval "$3=yes"
1624
else
1625
  eval "$3=no"
1626
fi
1627
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1628
fi
1629
eval ac_res=\$$3
1630
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1631
$as_echo "$ac_res" >&6; }
1632
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1633
 
1634
} # ac_fn_c_check_header_compile
1635
 
1636
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1637
# -------------------------------------------
1638
# Tests whether TYPE exists after having included INCLUDES, setting cache
1639
# variable VAR accordingly.
1640
ac_fn_c_check_type ()
1641
{
1642
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1644
$as_echo_n "checking for $2... " >&6; }
1645
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1646
  $as_echo_n "(cached) " >&6
1647
else
1648
  eval "$3=no"
1649
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1650
/* end confdefs.h.  */
1651
$4
1652
int
1653
main ()
1654
{
1655
if (sizeof ($2))
1656
         return 0;
1657
  ;
1658
  return 0;
1659
}
1660
_ACEOF
1661
if ac_fn_c_try_compile "$LINENO"; then :
1662
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1663
/* end confdefs.h.  */
1664
$4
1665
int
1666
main ()
1667
{
1668
if (sizeof (($2)))
1669
            return 0;
1670
  ;
1671
  return 0;
1672
}
1673
_ACEOF
1674
if ac_fn_c_try_compile "$LINENO"; then :
1675
 
1676
else
1677
  eval "$3=yes"
1678
fi
1679
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1680
fi
1681
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1682
fi
1683
eval ac_res=\$$3
1684
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1685
$as_echo "$ac_res" >&6; }
1686
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1687
 
1688
} # ac_fn_c_check_type
1689
 
1690
# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1691
# --------------------------------------------
1692
# Tries to find the compile-time value of EXPR in a program that includes
1693
# INCLUDES, setting VAR accordingly. Returns whether the value could be
1694
# computed
1695
ac_fn_c_compute_int ()
1696
{
1697
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698
  if test "$cross_compiling" = yes; then
1699
    # Depending upon the size, compute the lo and hi bounds.
1700
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1701
/* end confdefs.h.  */
1702
$4
1703
int
1704
main ()
1705
{
1706
static int test_array [1 - 2 * !(($2) >= 0)];
1707
test_array [0] = 0
1708
 
1709
  ;
1710
  return 0;
1711
}
1712
_ACEOF
1713
if ac_fn_c_try_compile "$LINENO"; then :
1714
  ac_lo=0 ac_mid=0
1715
  while :; do
1716
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1717
/* end confdefs.h.  */
1718
$4
1719
int
1720
main ()
1721
{
1722
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1723
test_array [0] = 0
1724
 
1725
  ;
1726
  return 0;
1727
}
1728
_ACEOF
1729
if ac_fn_c_try_compile "$LINENO"; then :
1730
  ac_hi=$ac_mid; break
1731
else
1732
  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1733
                        if test $ac_lo -le $ac_mid; then
1734
                          ac_lo= ac_hi=
1735
                          break
1736
                        fi
1737
                        as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1738
fi
1739
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1740
  done
1741
else
1742
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1743
/* end confdefs.h.  */
1744
$4
1745
int
1746
main ()
1747
{
1748
static int test_array [1 - 2 * !(($2) < 0)];
1749
test_array [0] = 0
1750
 
1751
  ;
1752
  return 0;
1753
}
1754
_ACEOF
1755
if ac_fn_c_try_compile "$LINENO"; then :
1756
  ac_hi=-1 ac_mid=-1
1757
  while :; do
1758
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1759
/* end confdefs.h.  */
1760
$4
1761
int
1762
main ()
1763
{
1764
static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1765
test_array [0] = 0
1766
 
1767
  ;
1768
  return 0;
1769
}
1770
_ACEOF
1771
if ac_fn_c_try_compile "$LINENO"; then :
1772
  ac_lo=$ac_mid; break
1773
else
1774
  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1775
                        if test $ac_mid -le $ac_hi; then
1776
                          ac_lo= ac_hi=
1777
                          break
1778
                        fi
1779
                        as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1780
fi
1781
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1782
  done
1783
else
1784
  ac_lo= ac_hi=
1785
fi
1786
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1787
fi
1788
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1789
# Binary search between lo and hi bounds.
1790
while test "x$ac_lo" != "x$ac_hi"; do
1791
  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1792
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1793
/* end confdefs.h.  */
1794
$4
1795
int
1796
main ()
1797
{
1798
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1799
test_array [0] = 0
1800
 
1801
  ;
1802
  return 0;
1803
}
1804
_ACEOF
1805
if ac_fn_c_try_compile "$LINENO"; then :
1806
  ac_hi=$ac_mid
1807
else
1808
  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1809
fi
1810
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1811
done
1812
case $ac_lo in #((
1813
?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1814
'') ac_retval=1 ;;
1815
esac
1816
  else
1817
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1818
/* end confdefs.h.  */
1819
$4
1820
static long int longval () { return $2; }
1821
static unsigned long int ulongval () { return $2; }
1822
#include 
1823
#include 
1824
int
1825
main ()
1826
{
1827
 
1828
  FILE *f = fopen ("conftest.val", "w");
1829
  if (! f)
1830
    return 1;
1831
  if (($2) < 0)
1832
    {
1833
      long int i = longval ();
1834
      if (i != ($2))
1835
        return 1;
1836
      fprintf (f, "%ld", i);
1837
    }
1838
  else
1839
    {
1840
      unsigned long int i = ulongval ();
1841
      if (i != ($2))
1842
        return 1;
1843
      fprintf (f, "%lu", i);
1844
    }
1845
  /* Do not output a trailing newline, as this causes \r\n confusion
1846
     on some platforms.  */
1847
  return ferror (f) || fclose (f) != 0;
1848
 
1849
  ;
1850
  return 0;
1851
}
1852
_ACEOF
1853
if ac_fn_c_try_run "$LINENO"; then :
1854
  echo >>conftest.val; read $3 
1855
else
1856
  ac_retval=1
1857
fi
1858
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1859
  conftest.$ac_objext conftest.beam conftest.$ac_ext
1860
rm -f conftest.val
1861
 
1862
  fi
1863
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1864
  return $ac_retval
1865
 
1866
} # ac_fn_c_compute_int
1867
cat >config.log <<_ACEOF
1868
This file contains any messages produced by compilers while
1869
running configure, to aid debugging if configure makes a mistake.
1870
 
1871
It was created by libdecnumber $as_me  , which was
1872
generated by GNU Autoconf 2.64.  Invocation command line was
1873
 
1874
  $ $0 $@
1875
 
1876
_ACEOF
1877
exec 5>>config.log
1878
{
1879
cat <<_ASUNAME
1880
## --------- ##
1881
## Platform. ##
1882
## --------- ##
1883
 
1884
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1885
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1886
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1887
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1888
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1889
 
1890
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1891
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1892
 
1893
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1894
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1895
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1896
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1897
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1898
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1899
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1900
 
1901
_ASUNAME
1902
 
1903
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1904
for as_dir in $PATH
1905
do
1906
  IFS=$as_save_IFS
1907
  test -z "$as_dir" && as_dir=.
1908
    $as_echo "PATH: $as_dir"
1909
  done
1910
IFS=$as_save_IFS
1911
 
1912
} >&5
1913
 
1914
cat >&5 <<_ACEOF
1915
 
1916
 
1917
## ----------- ##
1918
## Core tests. ##
1919
## ----------- ##
1920
 
1921
_ACEOF
1922
 
1923
 
1924
# Keep a trace of the command line.
1925
# Strip out --no-create and --no-recursion so they do not pile up.
1926
# Strip out --silent because we don't want to record it for future runs.
1927
# Also quote any args containing shell meta-characters.
1928
# Make two passes to allow for proper duplicate-argument suppression.
1929
ac_configure_args=
1930
ac_configure_args0=
1931
ac_configure_args1=
1932
ac_must_keep_next=false
1933
for ac_pass in 1 2
1934
do
1935
  for ac_arg
1936
  do
1937
    case $ac_arg in
1938
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1939
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1940
    | -silent | --silent | --silen | --sile | --sil)
1941
      continue ;;
1942
    *\'*)
1943
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1944
    esac
1945
    case $ac_pass in
1946
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1947
    2)
1948
      as_fn_append ac_configure_args1 " '$ac_arg'"
1949
      if test $ac_must_keep_next = true; then
1950
        ac_must_keep_next=false # Got value, back to normal.
1951
      else
1952
        case $ac_arg in
1953
          *=* | --config-cache | -C | -disable-* | --disable-* \
1954
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1955
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1956
          | -with-* | --with-* | -without-* | --without-* | --x)
1957
            case "$ac_configure_args0 " in
1958
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1959
            esac
1960
            ;;
1961
          -* ) ac_must_keep_next=true ;;
1962
        esac
1963
      fi
1964
      as_fn_append ac_configure_args " '$ac_arg'"
1965
      ;;
1966
    esac
1967
  done
1968
done
1969
{ ac_configure_args0=; unset ac_configure_args0;}
1970
{ ac_configure_args1=; unset ac_configure_args1;}
1971
 
1972
# When interrupted or exit'd, cleanup temporary files, and complete
1973
# config.log.  We remove comments because anyway the quotes in there
1974
# would cause problems or look ugly.
1975
# WARNING: Use '\'' to represent an apostrophe within the trap.
1976
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1977
trap 'exit_status=$?
1978
  # Save into config.log some information that might help in debugging.
1979
  {
1980
    echo
1981
 
1982
    cat <<\_ASBOX
1983
## ---------------- ##
1984
## Cache variables. ##
1985
## ---------------- ##
1986
_ASBOX
1987
    echo
1988
    # The following way of writing the cache mishandles newlines in values,
1989
(
1990
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1991
    eval ac_val=\$$ac_var
1992
    case $ac_val in #(
1993
    *${as_nl}*)
1994
      case $ac_var in #(
1995
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1996
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1997
      esac
1998
      case $ac_var in #(
1999
      _ | IFS | as_nl) ;; #(
2000
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2001
      *) { eval $ac_var=; unset $ac_var;} ;;
2002
      esac ;;
2003
    esac
2004
  done
2005
  (set) 2>&1 |
2006
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2007
    *${as_nl}ac_space=\ *)
2008
      sed -n \
2009
        "s/'\''/'\''\\\\'\'''\''/g;
2010
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2011
      ;; #(
2012
    *)
2013
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2014
      ;;
2015
    esac |
2016
    sort
2017
)
2018
    echo
2019
 
2020
    cat <<\_ASBOX
2021
## ----------------- ##
2022
## Output variables. ##
2023
## ----------------- ##
2024
_ASBOX
2025
    echo
2026
    for ac_var in $ac_subst_vars
2027
    do
2028
      eval ac_val=\$$ac_var
2029
      case $ac_val in
2030
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2031
      esac
2032
      $as_echo "$ac_var='\''$ac_val'\''"
2033
    done | sort
2034
    echo
2035
 
2036
    if test -n "$ac_subst_files"; then
2037
      cat <<\_ASBOX
2038
## ------------------- ##
2039
## File substitutions. ##
2040
## ------------------- ##
2041
_ASBOX
2042
      echo
2043
      for ac_var in $ac_subst_files
2044
      do
2045
        eval ac_val=\$$ac_var
2046
        case $ac_val in
2047
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2048
        esac
2049
        $as_echo "$ac_var='\''$ac_val'\''"
2050
      done | sort
2051
      echo
2052
    fi
2053
 
2054
    if test -s confdefs.h; then
2055
      cat <<\_ASBOX
2056
## ----------- ##
2057
## confdefs.h. ##
2058
## ----------- ##
2059
_ASBOX
2060
      echo
2061
      cat confdefs.h
2062
      echo
2063
    fi
2064
    test "$ac_signal" != 0 &&
2065
      $as_echo "$as_me: caught signal $ac_signal"
2066
    $as_echo "$as_me: exit $exit_status"
2067
  } >&5
2068
  rm -f core *.core core.conftest.* &&
2069
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2070
    exit $exit_status
2071
' 0
2072
for ac_signal in 1 2 13 15; do
2073
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2074
done
2075
ac_signal=0
2076
 
2077
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2078
rm -f -r conftest* confdefs.h
2079
 
2080
$as_echo "/* confdefs.h */" > confdefs.h
2081
 
2082
# Predefined preprocessor variables.
2083
 
2084
cat >>confdefs.h <<_ACEOF
2085
#define PACKAGE_NAME "$PACKAGE_NAME"
2086
_ACEOF
2087
 
2088
cat >>confdefs.h <<_ACEOF
2089
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2090
_ACEOF
2091
 
2092
cat >>confdefs.h <<_ACEOF
2093
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2094
_ACEOF
2095
 
2096
cat >>confdefs.h <<_ACEOF
2097
#define PACKAGE_STRING "$PACKAGE_STRING"
2098
_ACEOF
2099
 
2100
cat >>confdefs.h <<_ACEOF
2101
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2102
_ACEOF
2103
 
2104
cat >>confdefs.h <<_ACEOF
2105
#define PACKAGE_URL "$PACKAGE_URL"
2106
_ACEOF
2107
 
2108
 
2109
# Let the site file select an alternate cache file if it wants to.
2110
# Prefer an explicitly selected file to automatically selected ones.
2111
ac_site_file1=NONE
2112
ac_site_file2=NONE
2113
if test -n "$CONFIG_SITE"; then
2114
  ac_site_file1=$CONFIG_SITE
2115
elif test "x$prefix" != xNONE; then
2116
  ac_site_file1=$prefix/share/config.site
2117
  ac_site_file2=$prefix/etc/config.site
2118
else
2119
  ac_site_file1=$ac_default_prefix/share/config.site
2120
  ac_site_file2=$ac_default_prefix/etc/config.site
2121
fi
2122
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2123
do
2124
  test "x$ac_site_file" = xNONE && continue
2125
  if test -r "$ac_site_file"; then
2126
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2127
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2128
    sed 's/^/| /' "$ac_site_file" >&5
2129
    . "$ac_site_file"
2130
  fi
2131
done
2132
 
2133
if test -r "$cache_file"; then
2134
  # Some versions of bash will fail to source /dev/null (special
2135
  # files actually), so we avoid doing that.
2136
  if test -f "$cache_file"; then
2137
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2138
$as_echo "$as_me: loading cache $cache_file" >&6;}
2139
    case $cache_file in
2140
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2141
      *)                      . "./$cache_file";;
2142
    esac
2143
  fi
2144
else
2145
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2146
$as_echo "$as_me: creating cache $cache_file" >&6;}
2147
  >$cache_file
2148
fi
2149
 
2150
# Check that the precious variables saved in the cache have kept the same
2151
# value.
2152
ac_cache_corrupted=false
2153
for ac_var in $ac_precious_vars; do
2154
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2155
  eval ac_new_set=\$ac_env_${ac_var}_set
2156
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2157
  eval ac_new_val=\$ac_env_${ac_var}_value
2158
  case $ac_old_set,$ac_new_set in
2159
    set,)
2160
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2161
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2162
      ac_cache_corrupted=: ;;
2163
    ,set)
2164
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2165
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2166
      ac_cache_corrupted=: ;;
2167
    ,);;
2168
    *)
2169
      if test "x$ac_old_val" != "x$ac_new_val"; then
2170
        # differences in whitespace do not lead to failure.
2171
        ac_old_val_w=`echo x $ac_old_val`
2172
        ac_new_val_w=`echo x $ac_new_val`
2173
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2174
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2175
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2176
          ac_cache_corrupted=:
2177
        else
2178
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2179
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2180
          eval $ac_var=\$ac_old_val
2181
        fi
2182
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2183
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2184
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2185
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2186
      fi;;
2187
  esac
2188
  # Pass precious variables to config.status.
2189
  if test "$ac_new_set" = set; then
2190
    case $ac_new_val in
2191
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2192
    *) ac_arg=$ac_var=$ac_new_val ;;
2193
    esac
2194
    case " $ac_configure_args " in
2195
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2196
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2197
    esac
2198
  fi
2199
done
2200
if $ac_cache_corrupted; then
2201
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2202
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2203
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2204
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2205
  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2206
fi
2207
## -------------------- ##
2208
## Main body of script. ##
2209
## -------------------- ##
2210
 
2211
ac_ext=c
2212
ac_cpp='$CPP $CPPFLAGS'
2213
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2214
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2215
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2216
 
2217
 
2218
 
2219
 
2220
 
2221
 
2222
 
2223
 
2224
# Checks for programs.
2225
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2226
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2227
set x ${MAKE-make}
2228
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2229
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2230
  $as_echo_n "(cached) " >&6
2231
else
2232
  cat >conftest.make <<\_ACEOF
2233
SHELL = /bin/sh
2234
all:
2235
        @echo '@@@%%%=$(MAKE)=@@@%%%'
2236
_ACEOF
2237
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2238
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2239
  *@@@%%%=?*=@@@%%%*)
2240
    eval ac_cv_prog_make_${ac_make}_set=yes;;
2241
  *)
2242
    eval ac_cv_prog_make_${ac_make}_set=no;;
2243
esac
2244
rm -f conftest.make
2245
fi
2246
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2247
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2248
$as_echo "yes" >&6; }
2249
  SET_MAKE=
2250
else
2251
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2252
$as_echo "no" >&6; }
2253
  SET_MAKE="MAKE=${MAKE-make}"
2254
fi
2255
 
2256
ac_ext=c
2257
ac_cpp='$CPP $CPPFLAGS'
2258
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2259
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2260
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2261
if test -n "$ac_tool_prefix"; then
2262
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2263
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2264
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2265
$as_echo_n "checking for $ac_word... " >&6; }
2266
if test "${ac_cv_prog_CC+set}" = set; then :
2267
  $as_echo_n "(cached) " >&6
2268
else
2269
  if test -n "$CC"; then
2270
  ac_cv_prog_CC="$CC" # Let the user override the test.
2271
else
2272
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2273
for as_dir in $PATH
2274
do
2275
  IFS=$as_save_IFS
2276
  test -z "$as_dir" && as_dir=.
2277
    for ac_exec_ext in '' $ac_executable_extensions; do
2278
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2279
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2280
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2281
    break 2
2282
  fi
2283
done
2284
  done
2285
IFS=$as_save_IFS
2286
 
2287
fi
2288
fi
2289
CC=$ac_cv_prog_CC
2290
if test -n "$CC"; then
2291
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2292
$as_echo "$CC" >&6; }
2293
else
2294
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2295
$as_echo "no" >&6; }
2296
fi
2297
 
2298
 
2299
fi
2300
if test -z "$ac_cv_prog_CC"; then
2301
  ac_ct_CC=$CC
2302
  # Extract the first word of "gcc", so it can be a program name with args.
2303
set dummy gcc; ac_word=$2
2304
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2305
$as_echo_n "checking for $ac_word... " >&6; }
2306
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2307
  $as_echo_n "(cached) " >&6
2308
else
2309
  if test -n "$ac_ct_CC"; then
2310
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2311
else
2312
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2313
for as_dir in $PATH
2314
do
2315
  IFS=$as_save_IFS
2316
  test -z "$as_dir" && as_dir=.
2317
    for ac_exec_ext in '' $ac_executable_extensions; do
2318
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2319
    ac_cv_prog_ac_ct_CC="gcc"
2320
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2321
    break 2
2322
  fi
2323
done
2324
  done
2325
IFS=$as_save_IFS
2326
 
2327
fi
2328
fi
2329
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2330
if test -n "$ac_ct_CC"; then
2331
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2332
$as_echo "$ac_ct_CC" >&6; }
2333
else
2334
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2335
$as_echo "no" >&6; }
2336
fi
2337
 
2338
  if test "x$ac_ct_CC" = x; then
2339
    CC=""
2340
  else
2341
    case $cross_compiling:$ac_tool_warned in
2342
yes:)
2343
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2344
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2345
ac_tool_warned=yes ;;
2346
esac
2347
    CC=$ac_ct_CC
2348
  fi
2349
else
2350
  CC="$ac_cv_prog_CC"
2351
fi
2352
 
2353
if test -z "$CC"; then
2354
          if test -n "$ac_tool_prefix"; then
2355
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2356
set dummy ${ac_tool_prefix}cc; ac_word=$2
2357
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2358
$as_echo_n "checking for $ac_word... " >&6; }
2359
if test "${ac_cv_prog_CC+set}" = set; then :
2360
  $as_echo_n "(cached) " >&6
2361
else
2362
  if test -n "$CC"; then
2363
  ac_cv_prog_CC="$CC" # Let the user override the test.
2364
else
2365
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2366
for as_dir in $PATH
2367
do
2368
  IFS=$as_save_IFS
2369
  test -z "$as_dir" && as_dir=.
2370
    for ac_exec_ext in '' $ac_executable_extensions; do
2371
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2372
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2373
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2374
    break 2
2375
  fi
2376
done
2377
  done
2378
IFS=$as_save_IFS
2379
 
2380
fi
2381
fi
2382
CC=$ac_cv_prog_CC
2383
if test -n "$CC"; then
2384
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2385
$as_echo "$CC" >&6; }
2386
else
2387
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2388
$as_echo "no" >&6; }
2389
fi
2390
 
2391
 
2392
  fi
2393
fi
2394
if test -z "$CC"; then
2395
  # Extract the first word of "cc", so it can be a program name with args.
2396
set dummy cc; ac_word=$2
2397
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2398
$as_echo_n "checking for $ac_word... " >&6; }
2399
if test "${ac_cv_prog_CC+set}" = set; then :
2400
  $as_echo_n "(cached) " >&6
2401
else
2402
  if test -n "$CC"; then
2403
  ac_cv_prog_CC="$CC" # Let the user override the test.
2404
else
2405
  ac_prog_rejected=no
2406
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2407
for as_dir in $PATH
2408
do
2409
  IFS=$as_save_IFS
2410
  test -z "$as_dir" && as_dir=.
2411
    for ac_exec_ext in '' $ac_executable_extensions; do
2412
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2413
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2414
       ac_prog_rejected=yes
2415
       continue
2416
     fi
2417
    ac_cv_prog_CC="cc"
2418
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2419
    break 2
2420
  fi
2421
done
2422
  done
2423
IFS=$as_save_IFS
2424
 
2425
if test $ac_prog_rejected = yes; then
2426
  # We found a bogon in the path, so make sure we never use it.
2427
  set dummy $ac_cv_prog_CC
2428
  shift
2429
  if test $# != 0; then
2430
    # We chose a different compiler from the bogus one.
2431
    # However, it has the same basename, so the bogon will be chosen
2432
    # first if we set CC to just the basename; use the full file name.
2433
    shift
2434
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2435
  fi
2436
fi
2437
fi
2438
fi
2439
CC=$ac_cv_prog_CC
2440
if test -n "$CC"; then
2441
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2442
$as_echo "$CC" >&6; }
2443
else
2444
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2445
$as_echo "no" >&6; }
2446
fi
2447
 
2448
 
2449
fi
2450
if test -z "$CC"; then
2451
  if test -n "$ac_tool_prefix"; then
2452
  for ac_prog in cl.exe
2453
  do
2454
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2455
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2456
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2457
$as_echo_n "checking for $ac_word... " >&6; }
2458
if test "${ac_cv_prog_CC+set}" = set; then :
2459
  $as_echo_n "(cached) " >&6
2460
else
2461
  if test -n "$CC"; then
2462
  ac_cv_prog_CC="$CC" # Let the user override the test.
2463
else
2464
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2465
for as_dir in $PATH
2466
do
2467
  IFS=$as_save_IFS
2468
  test -z "$as_dir" && as_dir=.
2469
    for ac_exec_ext in '' $ac_executable_extensions; do
2470
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2471
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2472
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2473
    break 2
2474
  fi
2475
done
2476
  done
2477
IFS=$as_save_IFS
2478
 
2479
fi
2480
fi
2481
CC=$ac_cv_prog_CC
2482
if test -n "$CC"; then
2483
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2484
$as_echo "$CC" >&6; }
2485
else
2486
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2487
$as_echo "no" >&6; }
2488
fi
2489
 
2490
 
2491
    test -n "$CC" && break
2492
  done
2493
fi
2494
if test -z "$CC"; then
2495
  ac_ct_CC=$CC
2496
  for ac_prog in cl.exe
2497
do
2498
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2499
set dummy $ac_prog; ac_word=$2
2500
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2501
$as_echo_n "checking for $ac_word... " >&6; }
2502
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2503
  $as_echo_n "(cached) " >&6
2504
else
2505
  if test -n "$ac_ct_CC"; then
2506
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2507
else
2508
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509
for as_dir in $PATH
2510
do
2511
  IFS=$as_save_IFS
2512
  test -z "$as_dir" && as_dir=.
2513
    for ac_exec_ext in '' $ac_executable_extensions; do
2514
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2515
    ac_cv_prog_ac_ct_CC="$ac_prog"
2516
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2517
    break 2
2518
  fi
2519
done
2520
  done
2521
IFS=$as_save_IFS
2522
 
2523
fi
2524
fi
2525
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2526
if test -n "$ac_ct_CC"; then
2527
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2528
$as_echo "$ac_ct_CC" >&6; }
2529
else
2530
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2531
$as_echo "no" >&6; }
2532
fi
2533
 
2534
 
2535
  test -n "$ac_ct_CC" && break
2536
done
2537
 
2538
  if test "x$ac_ct_CC" = x; then
2539
    CC=""
2540
  else
2541
    case $cross_compiling:$ac_tool_warned in
2542
yes:)
2543
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2544
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2545
ac_tool_warned=yes ;;
2546
esac
2547
    CC=$ac_ct_CC
2548
  fi
2549
fi
2550
 
2551
fi
2552
 
2553
 
2554
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2555
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2556
as_fn_error "no acceptable C compiler found in \$PATH
2557
See \`config.log' for more details." "$LINENO" 5; }
2558
 
2559
# Provide some information about the compiler.
2560
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2561
set X $ac_compile
2562
ac_compiler=$2
2563
for ac_option in --version -v -V -qversion; do
2564
  { { ac_try="$ac_compiler $ac_option >&5"
2565
case "(($ac_try" in
2566
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2567
  *) ac_try_echo=$ac_try;;
2568
esac
2569
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2570
$as_echo "$ac_try_echo"; } >&5
2571
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2572
  ac_status=$?
2573
  if test -s conftest.err; then
2574
    sed '10a\
2575
... rest of stderr output deleted ...
2576
         10q' conftest.err >conftest.er1
2577
    cat conftest.er1 >&5
2578
    rm -f conftest.er1 conftest.err
2579
  fi
2580
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2581
  test $ac_status = 0; }
2582
done
2583
 
2584
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2585
/* end confdefs.h.  */
2586
 
2587
int
2588
main ()
2589
{
2590
 
2591
  ;
2592
  return 0;
2593
}
2594
_ACEOF
2595
ac_clean_files_save=$ac_clean_files
2596
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2597
# Try to create an executable without -o first, disregard a.out.
2598
# It will help us diagnose broken compilers, and finding out an intuition
2599
# of exeext.
2600
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2601
$as_echo_n "checking for C compiler default output file name... " >&6; }
2602
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2603
 
2604
# The possible output files:
2605
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2606
 
2607
ac_rmfiles=
2608
for ac_file in $ac_files
2609
do
2610
  case $ac_file in
2611
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2612
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2613
  esac
2614
done
2615
rm -f $ac_rmfiles
2616
 
2617
if { { ac_try="$ac_link_default"
2618
case "(($ac_try" in
2619
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2620
  *) ac_try_echo=$ac_try;;
2621
esac
2622
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2623
$as_echo "$ac_try_echo"; } >&5
2624
  (eval "$ac_link_default") 2>&5
2625
  ac_status=$?
2626
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2627
  test $ac_status = 0; }; then :
2628
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2629
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2630
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2631
# so that the user can short-circuit this test for compilers unknown to
2632
# Autoconf.
2633
for ac_file in $ac_files ''
2634
do
2635
  test -f "$ac_file" || continue
2636
  case $ac_file in
2637
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2638
        ;;
2639
    [ab].out )
2640
        # We found the default executable, but exeext='' is most
2641
        # certainly right.
2642
        break;;
2643
    *.* )
2644
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2645
        then :; else
2646
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2647
        fi
2648
        # We set ac_cv_exeext here because the later test for it is not
2649
        # safe: cross compilers may not add the suffix if given an `-o'
2650
        # argument, so we may need to know it at that point already.
2651
        # Even if this section looks crufty: it has the advantage of
2652
        # actually working.
2653
        break;;
2654
    * )
2655
        break;;
2656
  esac
2657
done
2658
test "$ac_cv_exeext" = no && ac_cv_exeext=
2659
 
2660
else
2661
  ac_file=''
2662
fi
2663
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2664
$as_echo "$ac_file" >&6; }
2665
if test -z "$ac_file"; then :
2666
  $as_echo "$as_me: failed program was:" >&5
2667
sed 's/^/| /' conftest.$ac_ext >&5
2668
 
2669
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2670
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2671
{ as_fn_set_status 77
2672
as_fn_error "C compiler cannot create executables
2673
See \`config.log' for more details." "$LINENO" 5; }; }
2674
fi
2675
ac_exeext=$ac_cv_exeext
2676
 
2677
# Check that the compiler produces executables we can run.  If not, either
2678
# the compiler is broken, or we cross compile.
2679
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2680
$as_echo_n "checking whether the C compiler works... " >&6; }
2681
# If not cross compiling, check that we can run a simple program.
2682
if test "$cross_compiling" != yes; then
2683
  if { ac_try='./$ac_file'
2684
  { { case "(($ac_try" in
2685
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2686
  *) ac_try_echo=$ac_try;;
2687
esac
2688
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2689
$as_echo "$ac_try_echo"; } >&5
2690
  (eval "$ac_try") 2>&5
2691
  ac_status=$?
2692
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2693
  test $ac_status = 0; }; }; then
2694
    cross_compiling=no
2695
  else
2696
    if test "$cross_compiling" = maybe; then
2697
        cross_compiling=yes
2698
    else
2699
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2700
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2701
as_fn_error "cannot run C compiled programs.
2702
If you meant to cross compile, use \`--host'.
2703
See \`config.log' for more details." "$LINENO" 5; }
2704
    fi
2705
  fi
2706
fi
2707
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2708
$as_echo "yes" >&6; }
2709
 
2710
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2711
ac_clean_files=$ac_clean_files_save
2712
# Check that the compiler produces executables we can run.  If not, either
2713
# the compiler is broken, or we cross compile.
2714
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2715
$as_echo_n "checking whether we are cross compiling... " >&6; }
2716
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2717
$as_echo "$cross_compiling" >&6; }
2718
 
2719
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2720
$as_echo_n "checking for suffix of executables... " >&6; }
2721
if { { ac_try="$ac_link"
2722
case "(($ac_try" in
2723
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2724
  *) ac_try_echo=$ac_try;;
2725
esac
2726
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2727
$as_echo "$ac_try_echo"; } >&5
2728
  (eval "$ac_link") 2>&5
2729
  ac_status=$?
2730
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2731
  test $ac_status = 0; }; then :
2732
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2733
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2734
# work properly (i.e., refer to `conftest.exe'), while it won't with
2735
# `rm'.
2736
for ac_file in conftest.exe conftest conftest.*; do
2737
  test -f "$ac_file" || continue
2738
  case $ac_file in
2739
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2740
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2741
          break;;
2742
    * ) break;;
2743
  esac
2744
done
2745
else
2746
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2747
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2748
as_fn_error "cannot compute suffix of executables: cannot compile and link
2749
See \`config.log' for more details." "$LINENO" 5; }
2750
fi
2751
rm -f conftest$ac_cv_exeext
2752
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2753
$as_echo "$ac_cv_exeext" >&6; }
2754
 
2755
rm -f conftest.$ac_ext
2756
EXEEXT=$ac_cv_exeext
2757
ac_exeext=$EXEEXT
2758
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2759
$as_echo_n "checking for suffix of object files... " >&6; }
2760
if test "${ac_cv_objext+set}" = set; then :
2761
  $as_echo_n "(cached) " >&6
2762
else
2763
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2764
/* end confdefs.h.  */
2765
 
2766
int
2767
main ()
2768
{
2769
 
2770
  ;
2771
  return 0;
2772
}
2773
_ACEOF
2774
rm -f conftest.o conftest.obj
2775
if { { ac_try="$ac_compile"
2776
case "(($ac_try" in
2777
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778
  *) ac_try_echo=$ac_try;;
2779
esac
2780
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2781
$as_echo "$ac_try_echo"; } >&5
2782
  (eval "$ac_compile") 2>&5
2783
  ac_status=$?
2784
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2785
  test $ac_status = 0; }; then :
2786
  for ac_file in conftest.o conftest.obj conftest.*; do
2787
  test -f "$ac_file" || continue;
2788
  case $ac_file in
2789
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2790
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2791
       break;;
2792
  esac
2793
done
2794
else
2795
  $as_echo "$as_me: failed program was:" >&5
2796
sed 's/^/| /' conftest.$ac_ext >&5
2797
 
2798
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2799
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2800
as_fn_error "cannot compute suffix of object files: cannot compile
2801
See \`config.log' for more details." "$LINENO" 5; }
2802
fi
2803
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2804
fi
2805
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2806
$as_echo "$ac_cv_objext" >&6; }
2807
OBJEXT=$ac_cv_objext
2808
ac_objext=$OBJEXT
2809
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2810
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2811
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2812
  $as_echo_n "(cached) " >&6
2813
else
2814
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2815
/* end confdefs.h.  */
2816
 
2817
int
2818
main ()
2819
{
2820
#ifndef __GNUC__
2821
       choke me
2822
#endif
2823
 
2824
  ;
2825
  return 0;
2826
}
2827
_ACEOF
2828
if ac_fn_c_try_compile "$LINENO"; then :
2829
  ac_compiler_gnu=yes
2830
else
2831
  ac_compiler_gnu=no
2832
fi
2833
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2834
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2835
 
2836
fi
2837
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2838
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2839
if test $ac_compiler_gnu = yes; then
2840
  GCC=yes
2841
else
2842
  GCC=
2843
fi
2844
ac_test_CFLAGS=${CFLAGS+set}
2845
ac_save_CFLAGS=$CFLAGS
2846
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2847
$as_echo_n "checking whether $CC accepts -g... " >&6; }
2848
if test "${ac_cv_prog_cc_g+set}" = set; then :
2849
  $as_echo_n "(cached) " >&6
2850
else
2851
  ac_save_c_werror_flag=$ac_c_werror_flag
2852
   ac_c_werror_flag=yes
2853
   ac_cv_prog_cc_g=no
2854
   CFLAGS="-g"
2855
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2856
/* end confdefs.h.  */
2857
 
2858
int
2859
main ()
2860
{
2861
 
2862
  ;
2863
  return 0;
2864
}
2865
_ACEOF
2866
if ac_fn_c_try_compile "$LINENO"; then :
2867
  ac_cv_prog_cc_g=yes
2868
else
2869
  CFLAGS=""
2870
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2871
/* end confdefs.h.  */
2872
 
2873
int
2874
main ()
2875
{
2876
 
2877
  ;
2878
  return 0;
2879
}
2880
_ACEOF
2881
if ac_fn_c_try_compile "$LINENO"; then :
2882
 
2883
else
2884
  ac_c_werror_flag=$ac_save_c_werror_flag
2885
         CFLAGS="-g"
2886
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2887
/* end confdefs.h.  */
2888
 
2889
int
2890
main ()
2891
{
2892
 
2893
  ;
2894
  return 0;
2895
}
2896
_ACEOF
2897
if ac_fn_c_try_compile "$LINENO"; then :
2898
  ac_cv_prog_cc_g=yes
2899
fi
2900
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2901
fi
2902
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2903
fi
2904
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2905
   ac_c_werror_flag=$ac_save_c_werror_flag
2906
fi
2907
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2908
$as_echo "$ac_cv_prog_cc_g" >&6; }
2909
if test "$ac_test_CFLAGS" = set; then
2910
  CFLAGS=$ac_save_CFLAGS
2911
elif test $ac_cv_prog_cc_g = yes; then
2912
  if test "$GCC" = yes; then
2913
    CFLAGS="-g -O2"
2914
  else
2915
    CFLAGS="-g"
2916
  fi
2917
else
2918
  if test "$GCC" = yes; then
2919
    CFLAGS="-O2"
2920
  else
2921
    CFLAGS=
2922
  fi
2923
fi
2924
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2925
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2926
if test "${ac_cv_prog_cc_c89+set}" = set; then :
2927
  $as_echo_n "(cached) " >&6
2928
else
2929
  ac_cv_prog_cc_c89=no
2930
ac_save_CC=$CC
2931
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2932
/* end confdefs.h.  */
2933
#include 
2934
#include 
2935
#include 
2936
#include 
2937
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2938
struct buf { int x; };
2939
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2940
static char *e (p, i)
2941
     char **p;
2942
     int i;
2943
{
2944
  return p[i];
2945
}
2946
static char *f (char * (*g) (char **, int), char **p, ...)
2947
{
2948
  char *s;
2949
  va_list v;
2950
  va_start (v,p);
2951
  s = g (p, va_arg (v,int));
2952
  va_end (v);
2953
  return s;
2954
}
2955
 
2956
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2957
   function prototypes and stuff, but not '\xHH' hex character constants.
2958
   These don't provoke an error unfortunately, instead are silently treated
2959
   as 'x'.  The following induces an error, until -std is added to get
2960
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2961
   array size at least.  It's necessary to write '\x00'==0 to get something
2962
   that's true only with -std.  */
2963
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2964
 
2965
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2966
   inside strings and character constants.  */
2967
#define FOO(x) 'x'
2968
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2969
 
2970
int test (int i, double x);
2971
struct s1 {int (*f) (int a);};
2972
struct s2 {int (*f) (double a);};
2973
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2974
int argc;
2975
char **argv;
2976
int
2977
main ()
2978
{
2979
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2980
  ;
2981
  return 0;
2982
}
2983
_ACEOF
2984
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2985
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2986
do
2987
  CC="$ac_save_CC $ac_arg"
2988
  if ac_fn_c_try_compile "$LINENO"; then :
2989
  ac_cv_prog_cc_c89=$ac_arg
2990
fi
2991
rm -f core conftest.err conftest.$ac_objext
2992
  test "x$ac_cv_prog_cc_c89" != "xno" && break
2993
done
2994
rm -f conftest.$ac_ext
2995
CC=$ac_save_CC
2996
 
2997
fi
2998
# AC_CACHE_VAL
2999
case "x$ac_cv_prog_cc_c89" in
3000
  x)
3001
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3002
$as_echo "none needed" >&6; } ;;
3003
  xno)
3004
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3005
$as_echo "unsupported" >&6; } ;;
3006
  *)
3007
    CC="$CC $ac_cv_prog_cc_c89"
3008
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3009
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3010
esac
3011
if test "x$ac_cv_prog_cc_c89" != xno; then :
3012
 
3013
fi
3014
 
3015
ac_ext=c
3016
ac_cpp='$CPP $CPPFLAGS'
3017
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3018
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3019
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3020
 
3021
if test -n "$ac_tool_prefix"; then
3022
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3023
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3024
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3025
$as_echo_n "checking for $ac_word... " >&6; }
3026
if test "${ac_cv_prog_RANLIB+set}" = set; then :
3027
  $as_echo_n "(cached) " >&6
3028
else
3029
  if test -n "$RANLIB"; then
3030
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3031
else
3032
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3033
for as_dir in $PATH
3034
do
3035
  IFS=$as_save_IFS
3036
  test -z "$as_dir" && as_dir=.
3037
    for ac_exec_ext in '' $ac_executable_extensions; do
3038
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3039
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3040
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3041
    break 2
3042
  fi
3043
done
3044
  done
3045
IFS=$as_save_IFS
3046
 
3047
fi
3048
fi
3049
RANLIB=$ac_cv_prog_RANLIB
3050
if test -n "$RANLIB"; then
3051
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3052
$as_echo "$RANLIB" >&6; }
3053
else
3054
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3055
$as_echo "no" >&6; }
3056
fi
3057
 
3058
 
3059
fi
3060
if test -z "$ac_cv_prog_RANLIB"; then
3061
  ac_ct_RANLIB=$RANLIB
3062
  # Extract the first word of "ranlib", so it can be a program name with args.
3063
set dummy ranlib; ac_word=$2
3064
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3065
$as_echo_n "checking for $ac_word... " >&6; }
3066
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3067
  $as_echo_n "(cached) " >&6
3068
else
3069
  if test -n "$ac_ct_RANLIB"; then
3070
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3071
else
3072
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3073
for as_dir in $PATH
3074
do
3075
  IFS=$as_save_IFS
3076
  test -z "$as_dir" && as_dir=.
3077
    for ac_exec_ext in '' $ac_executable_extensions; do
3078
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3079
    ac_cv_prog_ac_ct_RANLIB="ranlib"
3080
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3081
    break 2
3082
  fi
3083
done
3084
  done
3085
IFS=$as_save_IFS
3086
 
3087
fi
3088
fi
3089
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3090
if test -n "$ac_ct_RANLIB"; then
3091
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3092
$as_echo "$ac_ct_RANLIB" >&6; }
3093
else
3094
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3095
$as_echo "no" >&6; }
3096
fi
3097
 
3098
  if test "x$ac_ct_RANLIB" = x; then
3099
    RANLIB=":"
3100
  else
3101
    case $cross_compiling:$ac_tool_warned in
3102
yes:)
3103
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3104
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3105
ac_tool_warned=yes ;;
3106
esac
3107
    RANLIB=$ac_ct_RANLIB
3108
  fi
3109
else
3110
  RANLIB="$ac_cv_prog_RANLIB"
3111
fi
3112
 
3113
 
3114
MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
3115
for ac_prog in aclocal
3116
do
3117
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3118
set dummy $ac_prog; ac_word=$2
3119
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3120
$as_echo_n "checking for $ac_word... " >&6; }
3121
if test "${ac_cv_prog_ACLOCAL+set}" = set; then :
3122
  $as_echo_n "(cached) " >&6
3123
else
3124
  if test -n "$ACLOCAL"; then
3125
  ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test.
3126
else
3127
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128
for as_dir in $PATH
3129
do
3130
  IFS=$as_save_IFS
3131
  test -z "$as_dir" && as_dir=.
3132
    for ac_exec_ext in '' $ac_executable_extensions; do
3133
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3134
    ac_cv_prog_ACLOCAL="$ac_prog"
3135
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3136
    break 2
3137
  fi
3138
done
3139
  done
3140
IFS=$as_save_IFS
3141
 
3142
fi
3143
fi
3144
ACLOCAL=$ac_cv_prog_ACLOCAL
3145
if test -n "$ACLOCAL"; then
3146
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
3147
$as_echo "$ACLOCAL" >&6; }
3148
else
3149
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3150
$as_echo "no" >&6; }
3151
fi
3152
 
3153
 
3154
  test -n "$ACLOCAL" && break
3155
done
3156
test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal"
3157
 
3158
for ac_prog in autoconf
3159
do
3160
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3161
set dummy $ac_prog; ac_word=$2
3162
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3163
$as_echo_n "checking for $ac_word... " >&6; }
3164
if test "${ac_cv_prog_AUTOCONF+set}" = set; then :
3165
  $as_echo_n "(cached) " >&6
3166
else
3167
  if test -n "$AUTOCONF"; then
3168
  ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
3169
else
3170
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3171
for as_dir in $PATH
3172
do
3173
  IFS=$as_save_IFS
3174
  test -z "$as_dir" && as_dir=.
3175
    for ac_exec_ext in '' $ac_executable_extensions; do
3176
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3177
    ac_cv_prog_AUTOCONF="$ac_prog"
3178
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3179
    break 2
3180
  fi
3181
done
3182
  done
3183
IFS=$as_save_IFS
3184
 
3185
fi
3186
fi
3187
AUTOCONF=$ac_cv_prog_AUTOCONF
3188
if test -n "$AUTOCONF"; then
3189
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
3190
$as_echo "$AUTOCONF" >&6; }
3191
else
3192
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3193
$as_echo "no" >&6; }
3194
fi
3195
 
3196
 
3197
  test -n "$AUTOCONF" && break
3198
done
3199
test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf"
3200
 
3201
for ac_prog in autoheader
3202
do
3203
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3204
set dummy $ac_prog; ac_word=$2
3205
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3206
$as_echo_n "checking for $ac_word... " >&6; }
3207
if test "${ac_cv_prog_AUTOHEADER+set}" = set; then :
3208
  $as_echo_n "(cached) " >&6
3209
else
3210
  if test -n "$AUTOHEADER"; then
3211
  ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test.
3212
else
3213
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3214
for as_dir in $PATH
3215
do
3216
  IFS=$as_save_IFS
3217
  test -z "$as_dir" && as_dir=.
3218
    for ac_exec_ext in '' $ac_executable_extensions; do
3219
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3220
    ac_cv_prog_AUTOHEADER="$ac_prog"
3221
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3222
    break 2
3223
  fi
3224
done
3225
  done
3226
IFS=$as_save_IFS
3227
 
3228
fi
3229
fi
3230
AUTOHEADER=$ac_cv_prog_AUTOHEADER
3231
if test -n "$AUTOHEADER"; then
3232
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
3233
$as_echo "$AUTOHEADER" >&6; }
3234
else
3235
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3236
$as_echo "no" >&6; }
3237
fi
3238
 
3239
 
3240
  test -n "$AUTOHEADER" && break
3241
done
3242
test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader"
3243
 
3244
 
3245
# Figure out what compiler warnings we can enable.
3246
# See config/warnings.m4 for details.
3247
 
3248
 
3249
WARN_CFLAGS=
3250
save_CFLAGS="$CFLAGS"
3251
for option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
3252
                          -Wmissing-prototypes -Wold-style-definition \
3253
                          -Wmissing-format-attribute -Wcast-qual; do
3254
  as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
3255
 
3256
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
3257
$as_echo_n "checking whether $CC supports $option... " >&6; }
3258
if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
3259
  $as_echo_n "(cached) " >&6
3260
else
3261
  CFLAGS="$option"
3262
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3263
/* end confdefs.h.  */
3264
 
3265
int
3266
main ()
3267
{
3268
 
3269
  ;
3270
  return 0;
3271
}
3272
_ACEOF
3273
if ac_fn_c_try_compile "$LINENO"; then :
3274
  eval "$as_acx_Woption=yes"
3275
else
3276
  eval "$as_acx_Woption=no"
3277
fi
3278
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3279
 
3280
fi
3281
eval ac_res=\$$as_acx_Woption
3282
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3283
$as_echo "$ac_res" >&6; }
3284
  if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
3285
  WARN_CFLAGS="$WARN_CFLAGS${WARN_CFLAGS:+ }$option"
3286
fi
3287
  done
3288
CFLAGS="$save_CFLAGS"
3289
 
3290
WARN_PEDANTIC=
3291
if test "$GCC" = yes; then :
3292
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long" >&5
3293
$as_echo_n "checking whether $CC supports -pedantic -Wno-long-long... " >&6; }
3294
if test "${acx_cv_prog_cc_pedantic__Wno_long_long+set}" = set; then :
3295
  $as_echo_n "(cached) " >&6
3296
else
3297
  save_CFLAGS="$CFLAGS"
3298
CFLAGS="-pedantic -Wno-long-long"
3299
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3300
/* end confdefs.h.  */
3301
 
3302
int
3303
main ()
3304
{
3305
 
3306
  ;
3307
  return 0;
3308
}
3309
_ACEOF
3310
if ac_fn_c_try_compile "$LINENO"; then :
3311
  acx_cv_prog_cc_pedantic__Wno_long_long=yes
3312
else
3313
  acx_cv_prog_cc_pedantic__Wno_long_long=no
3314
fi
3315
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3316
CFLAGS="$save_CFLAGS"
3317
fi
3318
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long" >&5
3319
$as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long" >&6; }
3320
if test $acx_cv_prog_cc_pedantic__Wno_long_long = yes; then :
3321
  WARN_PEDANTIC="$WARN_PEDANTIC${WARN_PEDANTIC:+ }-pedantic -Wno-long-long"
3322
fi
3323
 
3324
fi
3325
 
3326
 
3327
# Only enable with --enable-werror-always until existing warnings are
3328
# corrected.
3329
WERROR=
3330
# Check whether --enable-werror-always was given.
3331
if test "${enable_werror_always+set}" = set; then :
3332
  enableval=$enable_werror_always;
3333
else
3334
  enable_werror_always=no
3335
fi
3336
 
3337
if test $enable_werror_always = yes; then :
3338
  WERROR="$WERROR${WERROR:+ }-Werror"
3339
fi
3340
 
3341
 
3342
 
3343
# Checks for header files.
3344
ac_ext=c
3345
ac_cpp='$CPP $CPPFLAGS'
3346
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3347
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3348
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3349
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3350
$as_echo_n "checking how to run the C preprocessor... " >&6; }
3351
# On Suns, sometimes $CPP names a directory.
3352
if test -n "$CPP" && test -d "$CPP"; then
3353
  CPP=
3354
fi
3355
if test -z "$CPP"; then
3356
  if test "${ac_cv_prog_CPP+set}" = set; then :
3357
  $as_echo_n "(cached) " >&6
3358
else
3359
      # Double quotes because CPP needs to be expanded
3360
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3361
    do
3362
      ac_preproc_ok=false
3363
for ac_c_preproc_warn_flag in '' yes
3364
do
3365
  # Use a header file that comes with gcc, so configuring glibc
3366
  # with a fresh cross-compiler works.
3367
  # Prefer  to  if __STDC__ is defined, since
3368
  #  exists even on freestanding compilers.
3369
  # On the NeXT, cc -E runs the code through the compiler's parser,
3370
  # not just through cpp. "Syntax error" is here to catch this case.
3371
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3372
/* end confdefs.h.  */
3373
#ifdef __STDC__
3374
# include 
3375
#else
3376
# include 
3377
#endif
3378
                     Syntax error
3379
_ACEOF
3380
if ac_fn_c_try_cpp "$LINENO"; then :
3381
 
3382
else
3383
  # Broken: fails on valid input.
3384
continue
3385
fi
3386
rm -f conftest.err conftest.$ac_ext
3387
 
3388
  # OK, works on sane cases.  Now check whether nonexistent headers
3389
  # can be detected and how.
3390
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3391
/* end confdefs.h.  */
3392
#include 
3393
_ACEOF
3394
if ac_fn_c_try_cpp "$LINENO"; then :
3395
  # Broken: success on invalid input.
3396
continue
3397
else
3398
  # Passes both tests.
3399
ac_preproc_ok=:
3400
break
3401
fi
3402
rm -f conftest.err conftest.$ac_ext
3403
 
3404
done
3405
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3406
rm -f conftest.err conftest.$ac_ext
3407
if $ac_preproc_ok; then :
3408
  break
3409
fi
3410
 
3411
    done
3412
    ac_cv_prog_CPP=$CPP
3413
 
3414
fi
3415
  CPP=$ac_cv_prog_CPP
3416
else
3417
  ac_cv_prog_CPP=$CPP
3418
fi
3419
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3420
$as_echo "$CPP" >&6; }
3421
ac_preproc_ok=false
3422
for ac_c_preproc_warn_flag in '' yes
3423
do
3424
  # Use a header file that comes with gcc, so configuring glibc
3425
  # with a fresh cross-compiler works.
3426
  # Prefer  to  if __STDC__ is defined, since
3427
  #  exists even on freestanding compilers.
3428
  # On the NeXT, cc -E runs the code through the compiler's parser,
3429
  # not just through cpp. "Syntax error" is here to catch this case.
3430
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3431
/* end confdefs.h.  */
3432
#ifdef __STDC__
3433
# include 
3434
#else
3435
# include 
3436
#endif
3437
                     Syntax error
3438
_ACEOF
3439
if ac_fn_c_try_cpp "$LINENO"; then :
3440
 
3441
else
3442
  # Broken: fails on valid input.
3443
continue
3444
fi
3445
rm -f conftest.err conftest.$ac_ext
3446
 
3447
  # OK, works on sane cases.  Now check whether nonexistent headers
3448
  # can be detected and how.
3449
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3450
/* end confdefs.h.  */
3451
#include 
3452
_ACEOF
3453
if ac_fn_c_try_cpp "$LINENO"; then :
3454
  # Broken: success on invalid input.
3455
continue
3456
else
3457
  # Passes both tests.
3458
ac_preproc_ok=:
3459
break
3460
fi
3461
rm -f conftest.err conftest.$ac_ext
3462
 
3463
done
3464
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3465
rm -f conftest.err conftest.$ac_ext
3466
if $ac_preproc_ok; then :
3467
 
3468
else
3469
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3470
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3471
as_fn_error "C preprocessor \"$CPP\" fails sanity check
3472
See \`config.log' for more details." "$LINENO" 5; }
3473
fi
3474
 
3475
ac_ext=c
3476
ac_cpp='$CPP $CPPFLAGS'
3477
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3478
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3479
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3480
 
3481
 
3482
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3483
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3484
if test "${ac_cv_path_GREP+set}" = set; then :
3485
  $as_echo_n "(cached) " >&6
3486
else
3487
  if test -z "$GREP"; then
3488
  ac_path_GREP_found=false
3489
  # Loop through the user's path and test for each of PROGNAME-LIST
3490
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3491
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3492
do
3493
  IFS=$as_save_IFS
3494
  test -z "$as_dir" && as_dir=.
3495
    for ac_prog in grep ggrep; do
3496
    for ac_exec_ext in '' $ac_executable_extensions; do
3497
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3498
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3499
# Check for GNU ac_path_GREP and select it if it is found.
3500
  # Check for GNU $ac_path_GREP
3501
case `"$ac_path_GREP" --version 2>&1` in
3502
*GNU*)
3503
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3504
*)
3505
  ac_count=0
3506
  $as_echo_n 0123456789 >"conftest.in"
3507
  while :
3508
  do
3509
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3510
    mv "conftest.tmp" "conftest.in"
3511
    cp "conftest.in" "conftest.nl"
3512
    $as_echo 'GREP' >> "conftest.nl"
3513
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3514
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3515
    as_fn_arith $ac_count + 1 && ac_count=$as_val
3516
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3517
      # Best one so far, save it but keep looking for a better one
3518
      ac_cv_path_GREP="$ac_path_GREP"
3519
      ac_path_GREP_max=$ac_count
3520
    fi
3521
    # 10*(2^10) chars as input seems more than enough
3522
    test $ac_count -gt 10 && break
3523
  done
3524
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3525
esac
3526
 
3527
      $ac_path_GREP_found && break 3
3528
    done
3529
  done
3530
  done
3531
IFS=$as_save_IFS
3532
  if test -z "$ac_cv_path_GREP"; then
3533
    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3534
  fi
3535
else
3536
  ac_cv_path_GREP=$GREP
3537
fi
3538
 
3539
fi
3540
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3541
$as_echo "$ac_cv_path_GREP" >&6; }
3542
 GREP="$ac_cv_path_GREP"
3543
 
3544
 
3545
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3546
$as_echo_n "checking for egrep... " >&6; }
3547
if test "${ac_cv_path_EGREP+set}" = set; then :
3548
  $as_echo_n "(cached) " >&6
3549
else
3550
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3551
   then ac_cv_path_EGREP="$GREP -E"
3552
   else
3553
     if test -z "$EGREP"; then
3554
  ac_path_EGREP_found=false
3555
  # Loop through the user's path and test for each of PROGNAME-LIST
3556
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3557
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3558
do
3559
  IFS=$as_save_IFS
3560
  test -z "$as_dir" && as_dir=.
3561
    for ac_prog in egrep; do
3562
    for ac_exec_ext in '' $ac_executable_extensions; do
3563
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3564
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3565
# Check for GNU ac_path_EGREP and select it if it is found.
3566
  # Check for GNU $ac_path_EGREP
3567
case `"$ac_path_EGREP" --version 2>&1` in
3568
*GNU*)
3569
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3570
*)
3571
  ac_count=0
3572
  $as_echo_n 0123456789 >"conftest.in"
3573
  while :
3574
  do
3575
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3576
    mv "conftest.tmp" "conftest.in"
3577
    cp "conftest.in" "conftest.nl"
3578
    $as_echo 'EGREP' >> "conftest.nl"
3579
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3580
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3581
    as_fn_arith $ac_count + 1 && ac_count=$as_val
3582
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3583
      # Best one so far, save it but keep looking for a better one
3584
      ac_cv_path_EGREP="$ac_path_EGREP"
3585
      ac_path_EGREP_max=$ac_count
3586
    fi
3587
    # 10*(2^10) chars as input seems more than enough
3588
    test $ac_count -gt 10 && break
3589
  done
3590
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3591
esac
3592
 
3593
      $ac_path_EGREP_found && break 3
3594
    done
3595
  done
3596
  done
3597
IFS=$as_save_IFS
3598
  if test -z "$ac_cv_path_EGREP"; then
3599
    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3600
  fi
3601
else
3602
  ac_cv_path_EGREP=$EGREP
3603
fi
3604
 
3605
   fi
3606
fi
3607
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3608
$as_echo "$ac_cv_path_EGREP" >&6; }
3609
 EGREP="$ac_cv_path_EGREP"
3610
 
3611
 
3612
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3613
$as_echo_n "checking for ANSI C header files... " >&6; }
3614
if test "${ac_cv_header_stdc+set}" = set; then :
3615
  $as_echo_n "(cached) " >&6
3616
else
3617
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3618
/* end confdefs.h.  */
3619
#include 
3620
#include 
3621
#include 
3622
#include 
3623
 
3624
int
3625
main ()
3626
{
3627
 
3628
  ;
3629
  return 0;
3630
}
3631
_ACEOF
3632
if ac_fn_c_try_compile "$LINENO"; then :
3633
  ac_cv_header_stdc=yes
3634
else
3635
  ac_cv_header_stdc=no
3636
fi
3637
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3638
 
3639
if test $ac_cv_header_stdc = yes; then
3640
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3641
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3642
/* end confdefs.h.  */
3643
#include 
3644
 
3645
_ACEOF
3646
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3647
  $EGREP "memchr" >/dev/null 2>&1; then :
3648
 
3649
else
3650
  ac_cv_header_stdc=no
3651
fi
3652
rm -f conftest*
3653
 
3654
fi
3655
 
3656
if test $ac_cv_header_stdc = yes; then
3657
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3658
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3659
/* end confdefs.h.  */
3660
#include 
3661
 
3662
_ACEOF
3663
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3664
  $EGREP "free" >/dev/null 2>&1; then :
3665
 
3666
else
3667
  ac_cv_header_stdc=no
3668
fi
3669
rm -f conftest*
3670
 
3671
fi
3672
 
3673
if test $ac_cv_header_stdc = yes; then
3674
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3675
  if test "$cross_compiling" = yes; then :
3676
  :
3677
else
3678
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3679
/* end confdefs.h.  */
3680
#include 
3681
#include 
3682
#if ((' ' & 0x0FF) == 0x020)
3683
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3684
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3685
#else
3686
# define ISLOWER(c) \
3687
                   (('a' <= (c) && (c) <= 'i') \
3688
                     || ('j' <= (c) && (c) <= 'r') \
3689
                     || ('s' <= (c) && (c) <= 'z'))
3690
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3691
#endif
3692
 
3693
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3694
int
3695
main ()
3696
{
3697
  int i;
3698
  for (i = 0; i < 256; i++)
3699
    if (XOR (islower (i), ISLOWER (i))
3700
        || toupper (i) != TOUPPER (i))
3701
      return 2;
3702
  return 0;
3703
}
3704
_ACEOF
3705
if ac_fn_c_try_run "$LINENO"; then :
3706
 
3707
else
3708
  ac_cv_header_stdc=no
3709
fi
3710
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3711
  conftest.$ac_objext conftest.beam conftest.$ac_ext
3712
fi
3713
 
3714
fi
3715
fi
3716
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3717
$as_echo "$ac_cv_header_stdc" >&6; }
3718
if test $ac_cv_header_stdc = yes; then
3719
 
3720
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3721
 
3722
fi
3723
 
3724
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3725
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3726
                  inttypes.h stdint.h unistd.h
3727
do :
3728
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3729
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3730
"
3731
eval as_val=\$$as_ac_Header
3732
   if test "x$as_val" = x""yes; then :
3733
  cat >>confdefs.h <<_ACEOF
3734
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3735
_ACEOF
3736
 
3737
fi
3738
 
3739
done
3740
 
3741
 
3742
for ac_header in ctype.h stddef.h string.h stdio.h
3743
do :
3744
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3745
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
3746
eval as_val=\$$as_ac_Header
3747
   if test "x$as_val" = x""yes; then :
3748
  cat >>confdefs.h <<_ACEOF
3749
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3750
_ACEOF
3751
 
3752
fi
3753
 
3754
done
3755
 
3756
 
3757
 
3758
inttype_headers=`echo inttypes.h sys/inttypes.h  | sed -e 's/,/ /g'`
3759
 
3760
acx_cv_header_stdint=stddef.h
3761
acx_cv_header_stdint_kind="(already complete)"
3762
for i in stdint.h $inttype_headers; do
3763
  unset ac_cv_type_uintptr_t
3764
  unset ac_cv_type_uintmax_t
3765
  unset ac_cv_type_int_least32_t
3766
  unset ac_cv_type_int_fast32_t
3767
  unset ac_cv_type_uint64_t
3768
  $as_echo_n "looking for a compliant stdint.h in $i, " >&6
3769
  ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include 
3770
#include <$i>
3771
"
3772
if test "x$ac_cv_type_uintmax_t" = x""yes; then :
3773
  acx_cv_header_stdint=$i
3774
else
3775
  continue
3776
fi
3777
 
3778
  ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include 
3779
#include <$i>
3780
"
3781
if test "x$ac_cv_type_uintptr_t" = x""yes; then :
3782
 
3783
else
3784
  acx_cv_header_stdint_kind="(mostly complete)"
3785
fi
3786
 
3787
  ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include 
3788
#include <$i>
3789
"
3790
if test "x$ac_cv_type_int_least32_t" = x""yes; then :
3791
 
3792
else
3793
  acx_cv_header_stdint_kind="(mostly complete)"
3794
fi
3795
 
3796
  ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include 
3797
#include <$i>
3798
"
3799
if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
3800
 
3801
else
3802
  acx_cv_header_stdint_kind="(mostly complete)"
3803
fi
3804
 
3805
  ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include 
3806
#include <$i>
3807
"
3808
if test "x$ac_cv_type_uint64_t" = x""yes; then :
3809
 
3810
else
3811
  acx_cv_header_stdint_kind="(lacks uint64_t)"
3812
fi
3813
 
3814
  break
3815
done
3816
if test "$acx_cv_header_stdint" = stddef.h; then
3817
  acx_cv_header_stdint_kind="(lacks uintmax_t)"
3818
  for i in stdint.h $inttype_headers; do
3819
    unset ac_cv_type_uintptr_t
3820
    unset ac_cv_type_uint32_t
3821
    unset ac_cv_type_uint64_t
3822
    $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
3823
    ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include 
3824
#include <$i>
3825
"
3826
if test "x$ac_cv_type_uint32_t" = x""yes; then :
3827
  acx_cv_header_stdint=$i
3828
else
3829
  continue
3830
fi
3831
 
3832
    ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include 
3833
#include <$i>
3834
"
3835
if test "x$ac_cv_type_uint64_t" = x""yes; then :
3836
 
3837
fi
3838
 
3839
    ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include 
3840
#include <$i>
3841
"
3842
if test "x$ac_cv_type_uintptr_t" = x""yes; then :
3843
 
3844
fi
3845
 
3846
    break
3847
  done
3848
fi
3849
if test "$acx_cv_header_stdint" = stddef.h; then
3850
  acx_cv_header_stdint_kind="(u_intXX_t style)"
3851
  for i in sys/types.h $inttype_headers; do
3852
    unset ac_cv_type_u_int32_t
3853
    unset ac_cv_type_u_int64_t
3854
    $as_echo_n "looking for u_intXX_t types in $i, " >&6
3855
    ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include 
3856
#include <$i>
3857
"
3858
if test "x$ac_cv_type_u_int32_t" = x""yes; then :
3859
  acx_cv_header_stdint=$i
3860
else
3861
  continue
3862
fi
3863
 
3864
    ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include 
3865
#include <$i>
3866
"
3867
if test "x$ac_cv_type_u_int64_t" = x""yes; then :
3868
 
3869
fi
3870
 
3871
    break
3872
  done
3873
fi
3874
if test "$acx_cv_header_stdint" = stddef.h; then
3875
  acx_cv_header_stdint_kind="(using manual detection)"
3876
fi
3877
 
3878
test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
3879
test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
3880
test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
3881
test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
3882
test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
3883
 
3884
# ----------------- Summarize what we found so far
3885
 
3886
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
3887
$as_echo_n "checking what to include in gstdint.h... " >&6; }
3888
 
3889
case `$as_basename -- gstdint.h ||
3890
$as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
3891
         Xgstdint.h : 'X\(//\)$' \| \
3892
         Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
3893
$as_echo X/gstdint.h |
3894
    sed '/^.*\/\([^/][^/]*\)\/*$/{
3895
            s//\1/
3896
            q
3897
          }
3898
          /^X\/\(\/\/\)$/{
3899
            s//\1/
3900
            q
3901
          }
3902
          /^X\/\(\/\).*/{
3903
            s//\1/
3904
            q
3905
          }
3906
          s/.*/./; q'` in
3907
  stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
3908
$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
3909
  inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
3910
$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
3911
  *) ;;
3912
esac
3913
 
3914
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
3915
$as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
3916
 
3917
# ----------------- done included file, check C basic types --------
3918
 
3919
# Lacking an uintptr_t?  Test size of void *
3920
case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
3921
  stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
3922
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3923
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3924
# This bug is HP SR number 8606223364.
3925
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
3926
$as_echo_n "checking size of void *... " >&6; }
3927
if test "${ac_cv_sizeof_void_p+set}" = set; then :
3928
  $as_echo_n "(cached) " >&6
3929
else
3930
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
3931
 
3932
else
3933
  if test "$ac_cv_type_void_p" = yes; then
3934
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3935
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3936
{ as_fn_set_status 77
3937
as_fn_error "cannot compute sizeof (void *)
3938
See \`config.log' for more details." "$LINENO" 5; }; }
3939
   else
3940
     ac_cv_sizeof_void_p=0
3941
   fi
3942
fi
3943
 
3944
fi
3945
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
3946
$as_echo "$ac_cv_sizeof_void_p" >&6; }
3947
 
3948
 
3949
 
3950
cat >>confdefs.h <<_ACEOF
3951
#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3952
_ACEOF
3953
 
3954
 ;;
3955
esac
3956
 
3957
# Lacking an uint64_t?  Test size of long
3958
case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
3959
  stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
3960
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3961
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3962
# This bug is HP SR number 8606223364.
3963
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
3964
$as_echo_n "checking size of long... " >&6; }
3965
if test "${ac_cv_sizeof_long+set}" = set; then :
3966
  $as_echo_n "(cached) " >&6
3967
else
3968
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
3969
 
3970
else
3971
  if test "$ac_cv_type_long" = yes; then
3972
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3973
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3974
{ as_fn_set_status 77
3975
as_fn_error "cannot compute sizeof (long)
3976
See \`config.log' for more details." "$LINENO" 5; }; }
3977
   else
3978
     ac_cv_sizeof_long=0
3979
   fi
3980
fi
3981
 
3982
fi
3983
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
3984
$as_echo "$ac_cv_sizeof_long" >&6; }
3985
 
3986
 
3987
 
3988
cat >>confdefs.h <<_ACEOF
3989
#define SIZEOF_LONG $ac_cv_sizeof_long
3990
_ACEOF
3991
 
3992
 ;;
3993
esac
3994
 
3995
if test $acx_cv_header_stdint = stddef.h; then
3996
  # Lacking a good header?  Test size of everything and deduce all types.
3997
  # The cast to long int works around a bug in the HP C Compiler
3998
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3999
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4000
# This bug is HP SR number 8606223364.
4001
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
4002
$as_echo_n "checking size of int... " >&6; }
4003
if test "${ac_cv_sizeof_int+set}" = set; then :
4004
  $as_echo_n "(cached) " >&6
4005
else
4006
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
4007
 
4008
else
4009
  if test "$ac_cv_type_int" = yes; then
4010
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4011
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4012
{ as_fn_set_status 77
4013
as_fn_error "cannot compute sizeof (int)
4014
See \`config.log' for more details." "$LINENO" 5; }; }
4015
   else
4016
     ac_cv_sizeof_int=0
4017
   fi
4018
fi
4019
 
4020
fi
4021
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
4022
$as_echo "$ac_cv_sizeof_int" >&6; }
4023
 
4024
 
4025
 
4026
cat >>confdefs.h <<_ACEOF
4027
#define SIZEOF_INT $ac_cv_sizeof_int
4028
_ACEOF
4029
 
4030
 
4031
  # The cast to long int works around a bug in the HP C Compiler
4032
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4033
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4034
# This bug is HP SR number 8606223364.
4035
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
4036
$as_echo_n "checking size of short... " >&6; }
4037
if test "${ac_cv_sizeof_short+set}" = set; then :
4038
  $as_echo_n "(cached) " >&6
4039
else
4040
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
4041
 
4042
else
4043
  if test "$ac_cv_type_short" = yes; then
4044
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4045
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4046
{ as_fn_set_status 77
4047
as_fn_error "cannot compute sizeof (short)
4048
See \`config.log' for more details." "$LINENO" 5; }; }
4049
   else
4050
     ac_cv_sizeof_short=0
4051
   fi
4052
fi
4053
 
4054
fi
4055
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
4056
$as_echo "$ac_cv_sizeof_short" >&6; }
4057
 
4058
 
4059
 
4060
cat >>confdefs.h <<_ACEOF
4061
#define SIZEOF_SHORT $ac_cv_sizeof_short
4062
_ACEOF
4063
 
4064
 
4065
  # The cast to long int works around a bug in the HP C Compiler
4066
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4067
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4068
# This bug is HP SR number 8606223364.
4069
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
4070
$as_echo_n "checking size of char... " >&6; }
4071
if test "${ac_cv_sizeof_char+set}" = set; then :
4072
  $as_echo_n "(cached) " >&6
4073
else
4074
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
4075
 
4076
else
4077
  if test "$ac_cv_type_char" = yes; then
4078
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4079
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4080
{ as_fn_set_status 77
4081
as_fn_error "cannot compute sizeof (char)
4082
See \`config.log' for more details." "$LINENO" 5; }; }
4083
   else
4084
     ac_cv_sizeof_char=0
4085
   fi
4086
fi
4087
 
4088
fi
4089
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
4090
$as_echo "$ac_cv_sizeof_char" >&6; }
4091
 
4092
 
4093
 
4094
cat >>confdefs.h <<_ACEOF
4095
#define SIZEOF_CHAR $ac_cv_sizeof_char
4096
_ACEOF
4097
 
4098
 
4099
 
4100
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
4101
$as_echo_n "checking for type equivalent to int8_t... " >&6; }
4102
  case "$ac_cv_sizeof_char" in
4103
    1) acx_cv_type_int8_t=char ;;
4104
    *) { as_fn_set_status please report a bug
4105
as_fn_error "no 8-bit type" "$LINENO" 5; }
4106
  esac
4107
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
4108
$as_echo "$acx_cv_type_int8_t" >&6; }
4109
 
4110
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
4111
$as_echo_n "checking for type equivalent to int16_t... " >&6; }
4112
  case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
4113
    2:*) acx_cv_type_int16_t=int ;;
4114
    *:2) acx_cv_type_int16_t=short ;;
4115
    *) { as_fn_set_status please report a bug
4116
as_fn_error "no 16-bit type" "$LINENO" 5; }
4117
  esac
4118
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
4119
$as_echo "$acx_cv_type_int16_t" >&6; }
4120
 
4121
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
4122
$as_echo_n "checking for type equivalent to int32_t... " >&6; }
4123
  case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
4124
    4:*) acx_cv_type_int32_t=int ;;
4125
    *:4) acx_cv_type_int32_t=long ;;
4126
    *) { as_fn_set_status please report a bug
4127
as_fn_error "no 32-bit type" "$LINENO" 5; }
4128
  esac
4129
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
4130
$as_echo "$acx_cv_type_int32_t" >&6; }
4131
fi
4132
 
4133
# These tests are here to make the output prettier
4134
 
4135
if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
4136
  case "$ac_cv_sizeof_long" in
4137
    8) acx_cv_type_int64_t=long ;;
4138
  esac
4139
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
4140
$as_echo_n "checking for type equivalent to int64_t... " >&6; }
4141
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
4142
$as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
4143
fi
4144
 
4145
# Now we can use the above types
4146
 
4147
if test "$ac_cv_type_uintptr_t" != yes; then
4148
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
4149
$as_echo_n "checking for type equivalent to intptr_t... " >&6; }
4150
  case $ac_cv_sizeof_void_p in
4151
    2) acx_cv_type_intptr_t=int16_t ;;
4152
    4) acx_cv_type_intptr_t=int32_t ;;
4153
    8) acx_cv_type_intptr_t=int64_t ;;
4154
    *) { as_fn_set_status please report a bug
4155
as_fn_error "no equivalent for intptr_t" "$LINENO" 5; }
4156
  esac
4157
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
4158
$as_echo "$acx_cv_type_intptr_t" >&6; }
4159
fi
4160
 
4161
# ----------------- done all checks, emit header -------------
4162
ac_config_commands="$ac_config_commands gstdint.h"
4163
 
4164
 
4165
 
4166
 
4167
# Checks for typedefs, structures, and compiler characteristics.
4168
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4169
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4170
if test "${ac_cv_c_const+set}" = set; then :
4171
  $as_echo_n "(cached) " >&6
4172
else
4173
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4174
/* end confdefs.h.  */
4175
 
4176
int
4177
main ()
4178
{
4179
/* FIXME: Include the comments suggested by Paul. */
4180
#ifndef __cplusplus
4181
  /* Ultrix mips cc rejects this.  */
4182
  typedef int charset[2];
4183
  const charset cs;
4184
  /* SunOS 4.1.1 cc rejects this.  */
4185
  char const *const *pcpcc;
4186
  char **ppc;
4187
  /* NEC SVR4.0.2 mips cc rejects this.  */
4188
  struct point {int x, y;};
4189
  static struct point const zero = {0,0};
4190
  /* AIX XL C 1.02.0.0 rejects this.
4191
     It does not let you subtract one const X* pointer from another in
4192
     an arm of an if-expression whose if-part is not a constant
4193
     expression */
4194
  const char *g = "string";
4195
  pcpcc = &g + (g ? g-g : 0);
4196
  /* HPUX 7.0 cc rejects these. */
4197
  ++pcpcc;
4198
  ppc = (char**) pcpcc;
4199
  pcpcc = (char const *const *) ppc;
4200
  { /* SCO 3.2v4 cc rejects this.  */
4201
    char *t;
4202
    char const *s = 0 ? (char *) 0 : (char const *) 0;
4203
 
4204
    *t++ = 0;
4205
    if (s) return 0;
4206
  }
4207
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4208
    int x[] = {25, 17};
4209
    const int *foo = &x[0];
4210
    ++foo;
4211
  }
4212
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4213
    typedef const int *iptr;
4214
    iptr p = 0;
4215
    ++p;
4216
  }
4217
  { /* AIX XL C 1.02.0.0 rejects this saying
4218
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4219
    struct s { int j; const int *ap[3]; };
4220
    struct s *b; b->j = 5;
4221
  }
4222
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4223
    const int foo = 10;
4224
    if (!foo) return 0;
4225
  }
4226
  return !cs[0] && !zero.x;
4227
#endif
4228
 
4229
  ;
4230
  return 0;
4231
}
4232
_ACEOF
4233
if ac_fn_c_try_compile "$LINENO"; then :
4234
  ac_cv_c_const=yes
4235
else
4236
  ac_cv_c_const=no
4237
fi
4238
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4239
fi
4240
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4241
$as_echo "$ac_cv_c_const" >&6; }
4242
if test $ac_cv_c_const = no; then
4243
 
4244
$as_echo "#define const /**/" >>confdefs.h
4245
 
4246
fi
4247
 
4248
ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
4249
if test "x$ac_cv_type_off_t" = x""yes; then :
4250
 
4251
else
4252
 
4253
cat >>confdefs.h <<_ACEOF
4254
#define off_t long int
4255
_ACEOF
4256
 
4257
fi
4258
 
4259
# The cast to long int works around a bug in the HP C Compiler
4260
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4261
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4262
# This bug is HP SR number 8606223364.
4263
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
4264
$as_echo_n "checking size of int... " >&6; }
4265
if test "${ac_cv_sizeof_int+set}" = set; then :
4266
  $as_echo_n "(cached) " >&6
4267
else
4268
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
4269
 
4270
else
4271
  if test "$ac_cv_type_int" = yes; then
4272
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4273
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4274
{ as_fn_set_status 77
4275
as_fn_error "cannot compute sizeof (int)
4276
See \`config.log' for more details." "$LINENO" 5; }; }
4277
   else
4278
     ac_cv_sizeof_int=0
4279
   fi
4280
fi
4281
 
4282
fi
4283
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
4284
$as_echo "$ac_cv_sizeof_int" >&6; }
4285
 
4286
 
4287
 
4288
cat >>confdefs.h <<_ACEOF
4289
#define SIZEOF_INT $ac_cv_sizeof_int
4290
_ACEOF
4291
 
4292
 
4293
# The cast to long int works around a bug in the HP C Compiler
4294
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4295
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4296
# This bug is HP SR number 8606223364.
4297
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
4298
$as_echo_n "checking size of long... " >&6; }
4299
if test "${ac_cv_sizeof_long+set}" = set; then :
4300
  $as_echo_n "(cached) " >&6
4301
else
4302
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
4303
 
4304
else
4305
  if test "$ac_cv_type_long" = yes; then
4306
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4307
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4308
{ as_fn_set_status 77
4309
as_fn_error "cannot compute sizeof (long)
4310
See \`config.log' for more details." "$LINENO" 5; }; }
4311
   else
4312
     ac_cv_sizeof_long=0
4313
   fi
4314
fi
4315
 
4316
fi
4317
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
4318
$as_echo "$ac_cv_sizeof_long" >&6; }
4319
 
4320
 
4321
 
4322
cat >>confdefs.h <<_ACEOF
4323
#define SIZEOF_LONG $ac_cv_sizeof_long
4324
_ACEOF
4325
 
4326
 
4327
 
4328
# Checks for library functions.
4329
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4330
$as_echo_n "checking for ANSI C header files... " >&6; }
4331
if test "${ac_cv_header_stdc+set}" = set; then :
4332
  $as_echo_n "(cached) " >&6
4333
else
4334
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4335
/* end confdefs.h.  */
4336
#include 
4337
#include 
4338
#include 
4339
#include 
4340
 
4341
int
4342
main ()
4343
{
4344
 
4345
  ;
4346
  return 0;
4347
}
4348
_ACEOF
4349
if ac_fn_c_try_compile "$LINENO"; then :
4350
  ac_cv_header_stdc=yes
4351
else
4352
  ac_cv_header_stdc=no
4353
fi
4354
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4355
 
4356
if test $ac_cv_header_stdc = yes; then
4357
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4358
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4359
/* end confdefs.h.  */
4360
#include 
4361
 
4362
_ACEOF
4363
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4364
  $EGREP "memchr" >/dev/null 2>&1; then :
4365
 
4366
else
4367
  ac_cv_header_stdc=no
4368
fi
4369
rm -f conftest*
4370
 
4371
fi
4372
 
4373
if test $ac_cv_header_stdc = yes; then
4374
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4375
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4376
/* end confdefs.h.  */
4377
#include 
4378
 
4379
_ACEOF
4380
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4381
  $EGREP "free" >/dev/null 2>&1; then :
4382
 
4383
else
4384
  ac_cv_header_stdc=no
4385
fi
4386
rm -f conftest*
4387
 
4388
fi
4389
 
4390
if test $ac_cv_header_stdc = yes; then
4391
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4392
  if test "$cross_compiling" = yes; then :
4393
  :
4394
else
4395
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4396
/* end confdefs.h.  */
4397
#include 
4398
#include 
4399
#if ((' ' & 0x0FF) == 0x020)
4400
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4401
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4402
#else
4403
# define ISLOWER(c) \
4404
                   (('a' <= (c) && (c) <= 'i') \
4405
                     || ('j' <= (c) && (c) <= 'r') \
4406
                     || ('s' <= (c) && (c) <= 'z'))
4407
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4408
#endif
4409
 
4410
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4411
int
4412
main ()
4413
{
4414
  int i;
4415
  for (i = 0; i < 256; i++)
4416
    if (XOR (islower (i), ISLOWER (i))
4417
        || toupper (i) != TOUPPER (i))
4418
      return 2;
4419
  return 0;
4420
}
4421
_ACEOF
4422
if ac_fn_c_try_run "$LINENO"; then :
4423
 
4424
else
4425
  ac_cv_header_stdc=no
4426
fi
4427
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4428
  conftest.$ac_objext conftest.beam conftest.$ac_ext
4429
fi
4430
 
4431
fi
4432
fi
4433
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4434
$as_echo "$ac_cv_header_stdc" >&6; }
4435
if test $ac_cv_header_stdc = yes; then
4436
 
4437
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4438
 
4439
fi
4440
 
4441
 
4442
# Check whether --enable-maintainer-mode was given.
4443
if test "${enable_maintainer_mode+set}" = set; then :
4444
  enableval=$enable_maintainer_mode;
4445
else
4446
  enable_maintainer_mode=no
4447
fi
4448
 
4449
 
4450
if test "x$enable_maintainer_mode" = xno; then
4451
  MAINT='#'
4452
else
4453
  MAINT=
4454
fi
4455
 
4456
 
4457
ac_aux_dir=
4458
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4459
  for ac_t in install-sh install.sh shtool; do
4460
    if test -f "$ac_dir/$ac_t"; then
4461
      ac_aux_dir=$ac_dir
4462
      ac_install_sh="$ac_aux_dir/$ac_t -c"
4463
      break 2
4464
    fi
4465
  done
4466
done
4467
if test -z "$ac_aux_dir"; then
4468
  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4469
fi
4470
 
4471
# These three variables are undocumented and unsupported,
4472
# and are intended to be withdrawn in a future Autoconf release.
4473
# They can cause serious problems if a builder's source tree is in a directory
4474
# whose full name contains unusual characters.
4475
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
4476
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
4477
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
4478
 
4479
 
4480
# Make sure we can run config.sub.
4481
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4482
  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4483
 
4484
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4485
$as_echo_n "checking build system type... " >&6; }
4486
if test "${ac_cv_build+set}" = set; then :
4487
  $as_echo_n "(cached) " >&6
4488
else
4489
  ac_build_alias=$build_alias
4490
test "x$ac_build_alias" = x &&
4491
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4492
test "x$ac_build_alias" = x &&
4493
  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4494
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4495
  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4496
 
4497
fi
4498
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4499
$as_echo "$ac_cv_build" >&6; }
4500
case $ac_cv_build in
4501
*-*-*) ;;
4502
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4503
esac
4504
build=$ac_cv_build
4505
ac_save_IFS=$IFS; IFS='-'
4506
set x $ac_cv_build
4507
shift
4508
build_cpu=$1
4509
build_vendor=$2
4510
shift; shift
4511
# Remember, the first character of IFS is used to create $*,
4512
# except with old shells:
4513
build_os=$*
4514
IFS=$ac_save_IFS
4515
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4516
 
4517
 
4518
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4519
$as_echo_n "checking host system type... " >&6; }
4520
if test "${ac_cv_host+set}" = set; then :
4521
  $as_echo_n "(cached) " >&6
4522
else
4523
  if test "x$host_alias" = x; then
4524
  ac_cv_host=$ac_cv_build
4525
else
4526
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4527
    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4528
fi
4529
 
4530
fi
4531
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4532
$as_echo "$ac_cv_host" >&6; }
4533
case $ac_cv_host in
4534
*-*-*) ;;
4535
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4536
esac
4537
host=$ac_cv_host
4538
ac_save_IFS=$IFS; IFS='-'
4539
set x $ac_cv_host
4540
shift
4541
host_cpu=$1
4542
host_vendor=$2
4543
shift; shift
4544
# Remember, the first character of IFS is used to create $*,
4545
# except with old shells:
4546
host_os=$*
4547
IFS=$ac_save_IFS
4548
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4549
 
4550
 
4551
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4552
$as_echo_n "checking target system type... " >&6; }
4553
if test "${ac_cv_target+set}" = set; then :
4554
  $as_echo_n "(cached) " >&6
4555
else
4556
  if test "x$target_alias" = x; then
4557
  ac_cv_target=$ac_cv_host
4558
else
4559
  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4560
    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4561
fi
4562
 
4563
fi
4564
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4565
$as_echo "$ac_cv_target" >&6; }
4566
case $ac_cv_target in
4567
*-*-*) ;;
4568
*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4569
esac
4570
target=$ac_cv_target
4571
ac_save_IFS=$IFS; IFS='-'
4572
set x $ac_cv_target
4573
shift
4574
target_cpu=$1
4575
target_vendor=$2
4576
shift; shift
4577
# Remember, the first character of IFS is used to create $*,
4578
# except with old shells:
4579
target_os=$*
4580
IFS=$ac_save_IFS
4581
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4582
 
4583
 
4584
# The aliases save the names the user supplied, while $host etc.
4585
# will get canonicalized.
4586
test -n "$target_alias" &&
4587
  test "$program_prefix$program_suffix$program_transform_name" = \
4588
    NONENONEs,x,x, &&
4589
  program_prefix=${target_alias}-
4590
 
4591
# Default decimal format
4592
# If you change the defaults here, be sure to change them in the GCC directory also
4593
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for decimal floating point" >&5
4594
$as_echo_n "checking for decimal floating point... " >&6; }
4595
# Check whether --enable-decimal-float was given.
4596
if test "${enable_decimal_float+set}" = set; then :
4597
  enableval=$enable_decimal_float;
4598
  case $enable_decimal_float in
4599
    yes | no | bid | dpd) ;;
4600
    *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
4601
Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
4602
  esac
4603
 
4604
else
4605
 
4606
  case $target in
4607
    powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
4608
      enable_decimal_float=yes
4609
      ;;
4610
    *)
4611
      enable_decimal_float=no
4612
      ;;
4613
  esac
4614
 
4615
fi
4616
 
4617
 
4618
# x86's use BID format instead of DPD
4619
# In theory --enable-decimal-float=no should not compile anything
4620
# For the sake of simplicity, just use the default format in this directory
4621
if test x$enable_decimal_float = xyes -o x$enable_decimal_float = xno; then
4622
  case $target in
4623
    i?86*-*-linux* | x86_64*-*-linux*)
4624
      enable_decimal_float=bid
4625
      ;;
4626
    *)
4627
      enable_decimal_float=dpd
4628
      ;;
4629
  esac
4630
fi
4631
 
4632
# If BID is being used, additional objects should be linked in.
4633
if test x$enable_decimal_float = xbid; then
4634
  ADDITIONAL_OBJS="$ADDITIONAL_OBJS \$(bid_OBJS)"
4635
else
4636
  ADDITIONAL_OBJS=
4637
fi
4638
 
4639
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_decimal_float" >&5
4640
$as_echo "$enable_decimal_float" >&6; }
4641
 
4642
 
4643
 
4644
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4645
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4646
if test "${ac_cv_c_bigendian+set}" = set; then :
4647
  $as_echo_n "(cached) " >&6
4648
else
4649
  ac_cv_c_bigendian=unknown
4650
    # See if we're dealing with a universal compiler.
4651
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4652
/* end confdefs.h.  */
4653
#ifndef __APPLE_CC__
4654
               not a universal capable compiler
4655
             #endif
4656
             typedef int dummy;
4657
 
4658
_ACEOF
4659
if ac_fn_c_try_compile "$LINENO"; then :
4660
 
4661
        # Check for potential -arch flags.  It is not universal unless
4662
        # there are at least two -arch flags with different values.
4663
        ac_arch=
4664
        ac_prev=
4665
        for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4666
         if test -n "$ac_prev"; then
4667
           case $ac_word in
4668
             i?86 | x86_64 | ppc | ppc64)
4669
               if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4670
                 ac_arch=$ac_word
4671
               else
4672
                 ac_cv_c_bigendian=universal
4673
                 break
4674
               fi
4675
               ;;
4676
           esac
4677
           ac_prev=
4678
         elif test "x$ac_word" = "x-arch"; then
4679
           ac_prev=arch
4680
         fi
4681
       done
4682
fi
4683
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4684
    if test $ac_cv_c_bigendian = unknown; then
4685
      # See if sys/param.h defines the BYTE_ORDER macro.
4686
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4687
/* end confdefs.h.  */
4688
#include 
4689
             #include 
4690
 
4691
int
4692
main ()
4693
{
4694
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4695
                     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4696
                     && LITTLE_ENDIAN)
4697
              bogus endian macros
4698
             #endif
4699
 
4700
  ;
4701
  return 0;
4702
}
4703
_ACEOF
4704
if ac_fn_c_try_compile "$LINENO"; then :
4705
  # It does; now see whether it defined to BIG_ENDIAN or not.
4706
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4707
/* end confdefs.h.  */
4708
#include 
4709
                #include 
4710
 
4711
int
4712
main ()
4713
{
4714
#if BYTE_ORDER != BIG_ENDIAN
4715
                 not big endian
4716
                #endif
4717
 
4718
  ;
4719
  return 0;
4720
}
4721
_ACEOF
4722
if ac_fn_c_try_compile "$LINENO"; then :
4723
  ac_cv_c_bigendian=yes
4724
else
4725
  ac_cv_c_bigendian=no
4726
fi
4727
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4728
fi
4729
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4730
    fi
4731
    if test $ac_cv_c_bigendian = unknown; then
4732
      # See if  defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4733
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4734
/* end confdefs.h.  */
4735
#include 
4736
 
4737
int
4738
main ()
4739
{
4740
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4741
              bogus endian macros
4742
             #endif
4743
 
4744
  ;
4745
  return 0;
4746
}
4747
_ACEOF
4748
if ac_fn_c_try_compile "$LINENO"; then :
4749
  # It does; now see whether it defined to _BIG_ENDIAN or not.
4750
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4751
/* end confdefs.h.  */
4752
#include 
4753
 
4754
int
4755
main ()
4756
{
4757
#ifndef _BIG_ENDIAN
4758
                 not big endian
4759
                #endif
4760
 
4761
  ;
4762
  return 0;
4763
}
4764
_ACEOF
4765
if ac_fn_c_try_compile "$LINENO"; then :
4766
  ac_cv_c_bigendian=yes
4767
else
4768
  ac_cv_c_bigendian=no
4769
fi
4770
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4771
fi
4772
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4773
    fi
4774
    if test $ac_cv_c_bigendian = unknown; then
4775
      # Compile a test program.
4776
      if test "$cross_compiling" = yes; then :
4777
  # Try to guess by grepping values from an object file.
4778
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4779
/* end confdefs.h.  */
4780
short int ascii_mm[] =
4781
                  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4782
                short int ascii_ii[] =
4783
                  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4784
                int use_ascii (int i) {
4785
                  return ascii_mm[i] + ascii_ii[i];
4786
                }
4787
                short int ebcdic_ii[] =
4788
                  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4789
                short int ebcdic_mm[] =
4790
                  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4791
                int use_ebcdic (int i) {
4792
                  return ebcdic_mm[i] + ebcdic_ii[i];
4793
                }
4794
                extern int foo;
4795
 
4796
int
4797
main ()
4798
{
4799
return use_ascii (foo) == use_ebcdic (foo);
4800
  ;
4801
  return 0;
4802
}
4803
_ACEOF
4804
if ac_fn_c_try_compile "$LINENO"; then :
4805
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4806
              ac_cv_c_bigendian=yes
4807
            fi
4808
            if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4809
              if test "$ac_cv_c_bigendian" = unknown; then
4810
                ac_cv_c_bigendian=no
4811
              else
4812
                # finding both strings is unlikely to happen, but who knows?
4813
                ac_cv_c_bigendian=unknown
4814
              fi
4815
            fi
4816
fi
4817
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4818
else
4819
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4820
/* end confdefs.h.  */
4821
$ac_includes_default
4822
int
4823
main ()
4824
{
4825
 
4826
             /* Are we little or big endian?  From Harbison&Steele.  */
4827
             union
4828
             {
4829
               long int l;
4830
               char c[sizeof (long int)];
4831
             } u;
4832
             u.l = 1;
4833
             return u.c[sizeof (long int) - 1] == 1;
4834
 
4835
  ;
4836
  return 0;
4837
}
4838
_ACEOF
4839
if ac_fn_c_try_run "$LINENO"; then :
4840
  ac_cv_c_bigendian=no
4841
else
4842
  ac_cv_c_bigendian=yes
4843
fi
4844
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4845
  conftest.$ac_objext conftest.beam conftest.$ac_ext
4846
fi
4847
 
4848
    fi
4849
fi
4850
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4851
$as_echo "$ac_cv_c_bigendian" >&6; }
4852
 case $ac_cv_c_bigendian in #(
4853
   yes)
4854
     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4855
;; #(
4856
   no)
4857
      ;; #(
4858
   universal)
4859
 
4860
$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4861
 
4862
     ;; #(
4863
   *)
4864
     as_fn_error "unknown endianness
4865
 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4866
 esac
4867
 
4868
 
4869
# Output.
4870
 
4871
ac_config_headers="$ac_config_headers config.h:config.in"
4872
 
4873
ac_config_files="$ac_config_files Makefile"
4874
 
4875
cat >confcache <<\_ACEOF
4876
# This file is a shell script that caches the results of configure
4877
# tests run on this system so they can be shared between configure
4878
# scripts and configure runs, see configure's option --config-cache.
4879
# It is not useful on other systems.  If it contains results you don't
4880
# want to keep, you may remove or edit it.
4881
#
4882
# config.status only pays attention to the cache file if you give it
4883
# the --recheck option to rerun configure.
4884
#
4885
# `ac_cv_env_foo' variables (set or unset) will be overridden when
4886
# loading this file, other *unset* `ac_cv_foo' will be assigned the
4887
# following values.
4888
 
4889
_ACEOF
4890
 
4891
# The following way of writing the cache mishandles newlines in values,
4892
# but we know of no workaround that is simple, portable, and efficient.
4893
# So, we kill variables containing newlines.
4894
# Ultrix sh set writes to stderr and can't be redirected directly,
4895
# and sets the high bit in the cache file unless we assign to the vars.
4896
(
4897
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4898
    eval ac_val=\$$ac_var
4899
    case $ac_val in #(
4900
    *${as_nl}*)
4901
      case $ac_var in #(
4902
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4903
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4904
      esac
4905
      case $ac_var in #(
4906
      _ | IFS | as_nl) ;; #(
4907
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4908
      *) { eval $ac_var=; unset $ac_var;} ;;
4909
      esac ;;
4910
    esac
4911
  done
4912
 
4913
  (set) 2>&1 |
4914
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
4915
    *${as_nl}ac_space=\ *)
4916
      # `set' does not quote correctly, so add quotes: double-quote
4917
      # substitution turns \\\\ into \\, and sed turns \\ into \.
4918
      sed -n \
4919
        "s/'/'\\\\''/g;
4920
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4921
      ;; #(
4922
    *)
4923
      # `set' quotes correctly as required by POSIX, so do not add quotes.
4924
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4925
      ;;
4926
    esac |
4927
    sort
4928
) |
4929
  sed '
4930
     /^ac_cv_env_/b end
4931
     t clear
4932
     :clear
4933
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4934
     t end
4935
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4936
     :end' >>confcache
4937
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4938
  if test -w "$cache_file"; then
4939
    test "x$cache_file" != "x/dev/null" &&
4940
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4941
$as_echo "$as_me: updating cache $cache_file" >&6;}
4942
    cat confcache >$cache_file
4943
  else
4944
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4945
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4946
  fi
4947
fi
4948
rm -f confcache
4949
 
4950
test "x$prefix" = xNONE && prefix=$ac_default_prefix
4951
# Let make expand exec_prefix.
4952
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4953
 
4954
DEFS=-DHAVE_CONFIG_H
4955
 
4956
ac_libobjs=
4957
ac_ltlibobjs=
4958
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4959
  # 1. Remove the extension, and $U if already installed.
4960
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4961
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4962
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
4963
  #    will be set to the directory where LIBOBJS objects are built.
4964
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4965
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4966
done
4967
LIBOBJS=$ac_libobjs
4968
 
4969
LTLIBOBJS=$ac_ltlibobjs
4970
 
4971
 
4972
 
4973
 
4974
: ${CONFIG_STATUS=./config.status}
4975
ac_write_fail=0
4976
ac_clean_files_save=$ac_clean_files
4977
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4978
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4979
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4980
as_write_fail=0
4981
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4982
#! $SHELL
4983
# Generated by $as_me.
4984
# Run this file to recreate the current configuration.
4985
# Compiler output produced by configure, useful for debugging
4986
# configure, is in config.log if it exists.
4987
 
4988
debug=false
4989
ac_cs_recheck=false
4990
ac_cs_silent=false
4991
 
4992
SHELL=\${CONFIG_SHELL-$SHELL}
4993
export SHELL
4994
_ASEOF
4995
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4996
## -------------------- ##
4997
## M4sh Initialization. ##
4998
## -------------------- ##
4999
 
5000
# Be more Bourne compatible
5001
DUALCASE=1; export DUALCASE # for MKS sh
5002
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5003
  emulate sh
5004
  NULLCMD=:
5005
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5006
  # is contrary to our usage.  Disable this feature.
5007
  alias -g '${1+"$@"}'='"$@"'
5008
  setopt NO_GLOB_SUBST
5009
else
5010
  case `(set -o) 2>/dev/null` in #(
5011
  *posix*) :
5012
    set -o posix ;; #(
5013
  *) :
5014
     ;;
5015
esac
5016
fi
5017
 
5018
 
5019
as_nl='
5020
'
5021
export as_nl
5022
# Printing a long string crashes Solaris 7 /usr/bin/printf.
5023
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5024
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5025
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5026
# Prefer a ksh shell builtin over an external printf program on Solaris,
5027
# but without wasting forks for bash or zsh.
5028
if test -z "$BASH_VERSION$ZSH_VERSION" \
5029
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5030
  as_echo='print -r --'
5031
  as_echo_n='print -rn --'
5032
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5033
  as_echo='printf %s\n'
5034
  as_echo_n='printf %s'
5035
else
5036
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5037
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5038
    as_echo_n='/usr/ucb/echo -n'
5039
  else
5040
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5041
    as_echo_n_body='eval
5042
      arg=$1;
5043
      case $arg in #(
5044
      *"$as_nl"*)
5045
        expr "X$arg" : "X\\(.*\\)$as_nl";
5046
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5047
      esac;
5048
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5049
    '
5050
    export as_echo_n_body
5051
    as_echo_n='sh -c $as_echo_n_body as_echo'
5052
  fi
5053
  export as_echo_body
5054
  as_echo='sh -c $as_echo_body as_echo'
5055
fi
5056
 
5057
# The user is always right.
5058
if test "${PATH_SEPARATOR+set}" != set; then
5059
  PATH_SEPARATOR=:
5060
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5061
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5062
      PATH_SEPARATOR=';'
5063
  }
5064
fi
5065
 
5066
 
5067
# IFS
5068
# We need space, tab and new line, in precisely that order.  Quoting is
5069
# there to prevent editors from complaining about space-tab.
5070
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
5071
# splitting by setting IFS to empty value.)
5072
IFS=" ""        $as_nl"
5073
 
5074
# Find who we are.  Look in the path if we contain no directory separator.
5075
case $0 in #((
5076
  *[\\/]* ) as_myself=$0 ;;
5077
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5078
for as_dir in $PATH
5079
do
5080
  IFS=$as_save_IFS
5081
  test -z "$as_dir" && as_dir=.
5082
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5083
  done
5084
IFS=$as_save_IFS
5085
 
5086
     ;;
5087
esac
5088
# We did not find ourselves, most probably we were run as `sh COMMAND'
5089
# in which case we are not to be found in the path.
5090
if test "x$as_myself" = x; then
5091
  as_myself=$0
5092
fi
5093
if test ! -f "$as_myself"; then
5094
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5095
  exit 1
5096
fi
5097
 
5098
# Unset variables that we do not need and which cause bugs (e.g. in
5099
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
5100
# suppresses any "Segmentation fault" message there.  '((' could
5101
# trigger a bug in pdksh 5.2.14.
5102
for as_var in BASH_ENV ENV MAIL MAILPATH
5103
do eval test x\${$as_var+set} = xset \
5104
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5105
done
5106
PS1='$ '
5107
PS2='> '
5108
PS4='+ '
5109
 
5110
# NLS nuisances.
5111
LC_ALL=C
5112
export LC_ALL
5113
LANGUAGE=C
5114
export LANGUAGE
5115
 
5116
# CDPATH.
5117
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5118
 
5119
 
5120
# as_fn_error ERROR [LINENO LOG_FD]
5121
# ---------------------------------
5122
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5123
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5124
# script with status $?, using 1 if that was 0.
5125
as_fn_error ()
5126
{
5127
  as_status=$?; test $as_status -eq 0 && as_status=1
5128
  if test "$3"; then
5129
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5130
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
5131
  fi
5132
  $as_echo "$as_me: error: $1" >&2
5133
  as_fn_exit $as_status
5134
} # as_fn_error
5135
 
5136
 
5137
# as_fn_set_status STATUS
5138
# -----------------------
5139
# Set $? to STATUS, without forking.
5140
as_fn_set_status ()
5141
{
5142
  return $1
5143
} # as_fn_set_status
5144
 
5145
# as_fn_exit STATUS
5146
# -----------------
5147
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5148
as_fn_exit ()
5149
{
5150
  set +e
5151
  as_fn_set_status $1
5152
  exit $1
5153
} # as_fn_exit
5154
 
5155
# as_fn_unset VAR
5156
# ---------------
5157
# Portably unset VAR.
5158
as_fn_unset ()
5159
{
5160
  { eval $1=; unset $1;}
5161
}
5162
as_unset=as_fn_unset
5163
# as_fn_append VAR VALUE
5164
# ----------------------
5165
# Append the text in VALUE to the end of the definition contained in VAR. Take
5166
# advantage of any shell optimizations that allow amortized linear growth over
5167
# repeated appends, instead of the typical quadratic growth present in naive
5168
# implementations.
5169
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5170
  eval 'as_fn_append ()
5171
  {
5172
    eval $1+=\$2
5173
  }'
5174
else
5175
  as_fn_append ()
5176
  {
5177
    eval $1=\$$1\$2
5178
  }
5179
fi # as_fn_append
5180
 
5181
# as_fn_arith ARG...
5182
# ------------------
5183
# Perform arithmetic evaluation on the ARGs, and store the result in the
5184
# global $as_val. Take advantage of shells that can avoid forks. The arguments
5185
# must be portable across $(()) and expr.
5186
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5187
  eval 'as_fn_arith ()
5188
  {
5189
    as_val=$(( $* ))
5190
  }'
5191
else
5192
  as_fn_arith ()
5193
  {
5194
    as_val=`expr "$@" || test $? -eq 1`
5195
  }
5196
fi # as_fn_arith
5197
 
5198
 
5199
if expr a : '\(a\)' >/dev/null 2>&1 &&
5200
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
5201
  as_expr=expr
5202
else
5203
  as_expr=false
5204
fi
5205
 
5206
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5207
  as_basename=basename
5208
else
5209
  as_basename=false
5210
fi
5211
 
5212
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5213
  as_dirname=dirname
5214
else
5215
  as_dirname=false
5216
fi
5217
 
5218
as_me=`$as_basename -- "$0" ||
5219
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5220
         X"$0" : 'X\(//\)$' \| \
5221
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5222
$as_echo X/"$0" |
5223
    sed '/^.*\/\([^/][^/]*\)\/*$/{
5224
            s//\1/
5225
            q
5226
          }
5227
          /^X\/\(\/\/\)$/{
5228
            s//\1/
5229
            q
5230
          }
5231
          /^X\/\(\/\).*/{
5232
            s//\1/
5233
            q
5234
          }
5235
          s/.*/./; q'`
5236
 
5237
# Avoid depending upon Character Ranges.
5238
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5239
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5240
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5241
as_cr_digits='0123456789'
5242
as_cr_alnum=$as_cr_Letters$as_cr_digits
5243
 
5244
ECHO_C= ECHO_N= ECHO_T=
5245
case `echo -n x` in #(((((
5246
-n*)
5247
  case `echo 'xy\c'` in
5248
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
5249
  xy)  ECHO_C='\c';;
5250
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
5251
       ECHO_T=' ';;
5252
  esac;;
5253
*)
5254
  ECHO_N='-n';;
5255
esac
5256
 
5257
rm -f conf$$ conf$$.exe conf$$.file
5258
if test -d conf$$.dir; then
5259
  rm -f conf$$.dir/conf$$.file
5260
else
5261
  rm -f conf$$.dir
5262
  mkdir conf$$.dir 2>/dev/null
5263
fi
5264
if (echo >conf$$.file) 2>/dev/null; then
5265
  if ln -s conf$$.file conf$$ 2>/dev/null; then
5266
    as_ln_s='ln -s'
5267
    # ... but there are two gotchas:
5268
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5269
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5270
    # In both cases, we have to default to `cp -p'.
5271
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5272
      as_ln_s='cp -p'
5273
  elif ln conf$$.file conf$$ 2>/dev/null; then
5274
    as_ln_s=ln
5275
  else
5276
    as_ln_s='cp -p'
5277
  fi
5278
else
5279
  as_ln_s='cp -p'
5280
fi
5281
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5282
rmdir conf$$.dir 2>/dev/null
5283
 
5284
 
5285
# as_fn_mkdir_p
5286
# -------------
5287
# Create "$as_dir" as a directory, including parents if necessary.
5288
as_fn_mkdir_p ()
5289
{
5290
 
5291
  case $as_dir in #(
5292
  -*) as_dir=./$as_dir;;
5293
  esac
5294
  test -d "$as_dir" || eval $as_mkdir_p || {
5295
    as_dirs=
5296
    while :; do
5297
      case $as_dir in #(
5298
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5299
      *) as_qdir=$as_dir;;
5300
      esac
5301
      as_dirs="'$as_qdir' $as_dirs"
5302
      as_dir=`$as_dirname -- "$as_dir" ||
5303
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5304
         X"$as_dir" : 'X\(//\)[^/]' \| \
5305
         X"$as_dir" : 'X\(//\)$' \| \
5306
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5307
$as_echo X"$as_dir" |
5308
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5309
            s//\1/
5310
            q
5311
          }
5312
          /^X\(\/\/\)[^/].*/{
5313
            s//\1/
5314
            q
5315
          }
5316
          /^X\(\/\/\)$/{
5317
            s//\1/
5318
            q
5319
          }
5320
          /^X\(\/\).*/{
5321
            s//\1/
5322
            q
5323
          }
5324
          s/.*/./; q'`
5325
      test -d "$as_dir" && break
5326
    done
5327
    test -z "$as_dirs" || eval "mkdir $as_dirs"
5328
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
5329
 
5330
 
5331
} # as_fn_mkdir_p
5332
if mkdir -p . 2>/dev/null; then
5333
  as_mkdir_p='mkdir -p "$as_dir"'
5334
else
5335
  test -d ./-p && rmdir ./-p
5336
  as_mkdir_p=false
5337
fi
5338
 
5339
if test -x / >/dev/null 2>&1; then
5340
  as_test_x='test -x'
5341
else
5342
  if ls -dL / >/dev/null 2>&1; then
5343
    as_ls_L_option=L
5344
  else
5345
    as_ls_L_option=
5346
  fi
5347
  as_test_x='
5348
    eval sh -c '\''
5349
      if test -d "$1"; then
5350
        test -d "$1/.";
5351
      else
5352
        case $1 in #(
5353
        -*)set "./$1";;
5354
        esac;
5355
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5356
        ???[sx]*):;;*)false;;esac;fi
5357
    '\'' sh
5358
  '
5359
fi
5360
as_executable_p=$as_test_x
5361
 
5362
# Sed expression to map a string onto a valid CPP name.
5363
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5364
 
5365
# Sed expression to map a string onto a valid variable name.
5366
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5367
 
5368
 
5369
exec 6>&1
5370
## ----------------------------------- ##
5371
## Main body of $CONFIG_STATUS script. ##
5372
## ----------------------------------- ##
5373
_ASEOF
5374
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5375
 
5376
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5377
# Save the log message, to keep $0 and so on meaningful, and to
5378
# report actual input values of CONFIG_FILES etc. instead of their
5379
# values after options handling.
5380
ac_log="
5381
This file was extended by libdecnumber $as_me  , which was
5382
generated by GNU Autoconf 2.64.  Invocation command line was
5383
 
5384
  CONFIG_FILES    = $CONFIG_FILES
5385
  CONFIG_HEADERS  = $CONFIG_HEADERS
5386
  CONFIG_LINKS    = $CONFIG_LINKS
5387
  CONFIG_COMMANDS = $CONFIG_COMMANDS
5388
  $ $0 $@
5389
 
5390
on `(hostname || uname -n) 2>/dev/null | sed 1q`
5391
"
5392
 
5393
_ACEOF
5394
 
5395
case $ac_config_files in *"
5396
"*) set x $ac_config_files; shift; ac_config_files=$*;;
5397
esac
5398
 
5399
case $ac_config_headers in *"
5400
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5401
esac
5402
 
5403
 
5404
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5405
# Files that config.status was made for.
5406
config_files="$ac_config_files"
5407
config_headers="$ac_config_headers"
5408
config_commands="$ac_config_commands"
5409
 
5410
_ACEOF
5411
 
5412
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5413
ac_cs_usage="\
5414
\`$as_me' instantiates files and other configuration actions
5415
from templates according to the current configuration.  Unless the files
5416
and actions are specified as TAGs, all are instantiated by default.
5417
 
5418
Usage: $0 [OPTION]... [TAG]...
5419
 
5420
  -h, --help       print this help, then exit
5421
  -V, --version    print version number and configuration settings, then exit
5422
  -q, --quiet, --silent
5423
                   do not print progress messages
5424
  -d, --debug      don't remove temporary files
5425
      --recheck    update $as_me by reconfiguring in the same conditions
5426
      --file=FILE[:TEMPLATE]
5427
                   instantiate the configuration file FILE
5428
      --header=FILE[:TEMPLATE]
5429
                   instantiate the configuration header FILE
5430
 
5431
Configuration files:
5432
$config_files
5433
 
5434
Configuration headers:
5435
$config_headers
5436
 
5437
Configuration commands:
5438
$config_commands
5439
 
5440
Report bugs to ."
5441
 
5442
_ACEOF
5443
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5444
ac_cs_version="\\
5445
libdecnumber config.status
5446
configured by $0, generated by GNU Autoconf 2.64,
5447
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
5448
 
5449
Copyright (C) 2009 Free Software Foundation, Inc.
5450
This config.status script is free software; the Free Software Foundation
5451
gives unlimited permission to copy, distribute and modify it."
5452
 
5453
ac_pwd='$ac_pwd'
5454
srcdir='$srcdir'
5455
test -n "\$AWK" || AWK=awk
5456
_ACEOF
5457
 
5458
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5459
# The default lists apply if the user does not specify any file.
5460
ac_need_defaults=:
5461
while test $# != 0
5462
do
5463
  case $1 in
5464
  --*=*)
5465
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
5466
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5467
    ac_shift=:
5468
    ;;
5469
  *)
5470
    ac_option=$1
5471
    ac_optarg=$2
5472
    ac_shift=shift
5473
    ;;
5474
  esac
5475
 
5476
  case $ac_option in
5477
  # Handling of the options.
5478
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5479
    ac_cs_recheck=: ;;
5480
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5481
    $as_echo "$ac_cs_version"; exit ;;
5482
  --debug | --debu | --deb | --de | --d | -d )
5483
    debug=: ;;
5484
  --file | --fil | --fi | --f )
5485
    $ac_shift
5486
    case $ac_optarg in
5487
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5488
    esac
5489
    as_fn_append CONFIG_FILES " '$ac_optarg'"
5490
    ac_need_defaults=false;;
5491
  --header | --heade | --head | --hea )
5492
    $ac_shift
5493
    case $ac_optarg in
5494
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5495
    esac
5496
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5497
    ac_need_defaults=false;;
5498
  --he | --h)
5499
    # Conflict between --help and --header
5500
    as_fn_error "ambiguous option: \`$1'
5501
Try \`$0 --help' for more information.";;
5502
  --help | --hel | -h )
5503
    $as_echo "$ac_cs_usage"; exit ;;
5504
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5505
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
5506
    ac_cs_silent=: ;;
5507
 
5508
  # This is an error.
5509
  -*) as_fn_error "unrecognized option: \`$1'
5510
Try \`$0 --help' for more information." ;;
5511
 
5512
  *) as_fn_append ac_config_targets " $1"
5513
     ac_need_defaults=false ;;
5514
 
5515
  esac
5516
  shift
5517
done
5518
 
5519
ac_configure_extra_args=
5520
 
5521
if $ac_cs_silent; then
5522
  exec 6>/dev/null
5523
  ac_configure_extra_args="$ac_configure_extra_args --silent"
5524
fi
5525
 
5526
_ACEOF
5527
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5528
if \$ac_cs_recheck; then
5529
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5530
  shift
5531
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5532
  CONFIG_SHELL='$SHELL'
5533
  export CONFIG_SHELL
5534
  exec "\$@"
5535
fi
5536
 
5537
_ACEOF
5538
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5539
exec 5>>config.log
5540
{
5541
  echo
5542
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5543
## Running $as_me. ##
5544
_ASBOX
5545
  $as_echo "$ac_log"
5546
} >&5
5547
 
5548
_ACEOF
5549
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5550
#
5551
# INIT-COMMANDS
5552
#
5553
 
5554
GCC="$GCC"
5555
CC="$CC"
5556
acx_cv_header_stdint="$acx_cv_header_stdint"
5557
acx_cv_type_int8_t="$acx_cv_type_int8_t"
5558
acx_cv_type_int16_t="$acx_cv_type_int16_t"
5559
acx_cv_type_int32_t="$acx_cv_type_int32_t"
5560
acx_cv_type_int64_t="$acx_cv_type_int64_t"
5561
acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
5562
ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
5563
ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
5564
ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
5565
ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
5566
ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
5567
ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
5568
ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
5569
ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
5570
 
5571
 
5572
_ACEOF
5573
 
5574
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5575
 
5576
# Handling of arguments.
5577
for ac_config_target in $ac_config_targets
5578
do
5579
  case $ac_config_target in
5580
    "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
5581
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
5582
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5583
 
5584
  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5585
  esac
5586
done
5587
 
5588
 
5589
# If the user did not use the arguments to specify the items to instantiate,
5590
# then the envvar interface is used.  Set only those that are not.
5591
# We use the long form for the default assignment because of an extremely
5592
# bizarre bug on SunOS 4.1.3.
5593
if $ac_need_defaults; then
5594
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5595
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5596
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5597
fi
5598
 
5599
# Have a temporary directory for convenience.  Make it in the build tree
5600
# simply because there is no reason against having it here, and in addition,
5601
# creating and moving files from /tmp can sometimes cause problems.
5602
# Hook for its removal unless debugging.
5603
# Note that there is a small window in which the directory will not be cleaned:
5604
# after its creation but before its name has been assigned to `$tmp'.
5605
$debug ||
5606
{
5607
  tmp=
5608
  trap 'exit_status=$?
5609
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5610
' 0
5611
  trap 'as_fn_exit 1' 1 2 13 15
5612
}
5613
# Create a (secure) tmp directory for tmp files.
5614
 
5615
{
5616
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5617
  test -n "$tmp" && test -d "$tmp"
5618
}  ||
5619
{
5620
  tmp=./conf$$-$RANDOM
5621
  (umask 077 && mkdir "$tmp")
5622
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
5623
 
5624
# Set up the scripts for CONFIG_FILES section.
5625
# No need to generate them if there are no CONFIG_FILES.
5626
# This happens for instance with `./config.status config.h'.
5627
if test -n "$CONFIG_FILES"; then
5628
 
5629
 
5630
ac_cr=`echo X | tr X '\015'`
5631
# On cygwin, bash can eat \r inside `` if the user requested igncr.
5632
# But we know of no other shell where ac_cr would be empty at this
5633
# point, so we can use a bashism as a fallback.
5634
if test "x$ac_cr" = x; then
5635
  eval ac_cr=\$\'\\r\'
5636
fi
5637
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null`
5638
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5639
  ac_cs_awk_cr='\r'
5640
else
5641
  ac_cs_awk_cr=$ac_cr
5642
fi
5643
 
5644
echo 'BEGIN {' >"$tmp/subs1.awk" &&
5645
_ACEOF
5646
 
5647
 
5648
{
5649
  echo "cat >conf$$subs.awk <<_ACEOF" &&
5650
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5651
  echo "_ACEOF"
5652
} >conf$$subs.sh ||
5653
  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5654
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
5655
ac_delim='%!_!# '
5656
for ac_last_try in false false false false false :; do
5657
  . ./conf$$subs.sh ||
5658
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5659
 
5660
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5661
  if test $ac_delim_n = $ac_delim_num; then
5662
    break
5663
  elif $ac_last_try; then
5664
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5665
  else
5666
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5667
  fi
5668
done
5669
rm -f conf$$subs.sh
5670
 
5671
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5672
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
5673
_ACEOF
5674
sed -n '
5675
h
5676
s/^/S["/; s/!.*/"]=/
5677
p
5678
g
5679
s/^[^!]*!//
5680
:repl
5681
t repl
5682
s/'"$ac_delim"'$//
5683
t delim
5684
:nl
5685
h
5686
s/\(.\{148\}\).*/\1/
5687
t more1
5688
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5689
p
5690
n
5691
b repl
5692
:more1
5693
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5694
p
5695
g
5696
s/.\{148\}//
5697
t nl
5698
:delim
5699
h
5700
s/\(.\{148\}\).*/\1/
5701
t more2
5702
s/["\\]/\\&/g; s/^/"/; s/$/"/
5703
p
5704
b
5705
:more2
5706
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5707
p
5708
g
5709
s/.\{148\}//
5710
t delim
5711
' 
5712
/^[^""]/{
5713
  N
5714
  s/\n//
5715
}
5716
' >>$CONFIG_STATUS || ac_write_fail=1
5717
rm -f conf$$subs.awk
5718
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5719
_ACAWK
5720
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
5721
  for (key in S) S_is_set[key] = 1
5722
  FS = ""
5723
 
5724
}
5725
{
5726
  line = $ 0
5727
  nfields = split(line, field, "@")
5728
  substed = 0
5729
  len = length(field[1])
5730
  for (i = 2; i < nfields; i++) {
5731
    key = field[i]
5732
    keylen = length(key)
5733
    if (S_is_set[key]) {
5734
      value = S[key]
5735
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5736
      len += length(value) + length(field[++i])
5737
      substed = 1
5738
    } else
5739
      len += 1 + keylen
5740
  }
5741
 
5742
  print line
5743
}
5744
 
5745
_ACAWK
5746
_ACEOF
5747
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5748
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5749
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5750
else
5751
  cat
5752
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
5753
  || as_fn_error "could not setup config files machinery" "$LINENO" 5
5754
_ACEOF
5755
 
5756
# VPATH may cause trouble with some makes, so we remove $(srcdir),
5757
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5758
# trailing colons and then remove the whole line if VPATH becomes empty
5759
# (actually we leave an empty line to preserve line numbers).
5760
if test "x$srcdir" = x.; then
5761
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
5762
s/:*\$(srcdir):*/:/
5763
s/:*\${srcdir}:*/:/
5764
s/:*@srcdir@:*/:/
5765
s/^\([^=]*=[     ]*\):*/\1/
5766
s/:*$//
5767
s/^[^=]*=[       ]*$//
5768
}'
5769
fi
5770
 
5771
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5772
fi # test -n "$CONFIG_FILES"
5773
 
5774
# Set up the scripts for CONFIG_HEADERS section.
5775
# No need to generate them if there are no CONFIG_HEADERS.
5776
# This happens for instance with `./config.status Makefile'.
5777
if test -n "$CONFIG_HEADERS"; then
5778
cat >"$tmp/defines.awk" <<\_ACAWK ||
5779
BEGIN {
5780
_ACEOF
5781
 
5782
# Transform confdefs.h into an awk script `defines.awk', embedded as
5783
# here-document in config.status, that substitutes the proper values into
5784
# config.h.in to produce config.h.
5785
 
5786
# Create a delimiter string that does not exist in confdefs.h, to ease
5787
# handling of long lines.
5788
ac_delim='%!_!# '
5789
for ac_last_try in false false :; do
5790
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
5791
  if test -z "$ac_t"; then
5792
    break
5793
  elif $ac_last_try; then
5794
    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
5795
  else
5796
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5797
  fi
5798
done
5799
 
5800
# For the awk script, D is an array of macro values keyed by name,
5801
# likewise P contains macro parameters if any.  Preserve backslash
5802
# newline sequences.
5803
 
5804
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5805
sed -n '
5806
s/.\{148\}/&'"$ac_delim"'/g
5807
t rset
5808
:rset
5809
s/^[     ]*#[    ]*define[       ][      ]*/ /
5810
t def
5811
d
5812
:def
5813
s/\\$//
5814
t bsnl
5815
s/["\\]/\\&/g
5816
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
5817
D["\1"]=" \3"/p
5818
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
5819
d
5820
:bsnl
5821
s/["\\]/\\&/g
5822
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
5823
D["\1"]=" \3\\\\\\n"\\/p
5824
t cont
5825
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5826
t cont
5827
d
5828
:cont
5829
n
5830
s/.\{148\}/&'"$ac_delim"'/g
5831
t clear
5832
:clear
5833
s/\\$//
5834
t bsnlc
5835
s/["\\]/\\&/g; s/^/"/; s/$/"/p
5836
d
5837
:bsnlc
5838
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5839
b cont
5840
' 
5841
s/'"$ac_delim"'/"\\\
5842
"/g' >>$CONFIG_STATUS || ac_write_fail=1
5843
 
5844
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5845
  for (key in D) D_is_set[key] = 1
5846
  FS = ""
5847
}
5848
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5849
  line = \$ 0
5850
  split(line, arg, " ")
5851
  if (arg[1] == "#") {
5852
    defundef = arg[2]
5853
    mac1 = arg[3]
5854
  } else {
5855
    defundef = substr(arg[1], 2)
5856
    mac1 = arg[2]
5857
  }
5858
  split(mac1, mac2, "(") #)
5859
  macro = mac2[1]
5860
  prefix = substr(line, 1, index(line, defundef) - 1)
5861
  if (D_is_set[macro]) {
5862
    # Preserve the white space surrounding the "#".
5863
    print prefix "define", macro P[macro] D[macro]
5864
    next
5865
  } else {
5866
    # Replace #undef with comments.  This is necessary, for example,
5867
    # in the case of _POSIX_SOURCE, which is predefined and required
5868
    # on some systems where configure will not decide to define it.
5869
    if (defundef == "undef") {
5870
      print "/*", prefix defundef, macro, "*/"
5871
      next
5872
    }
5873
  }
5874
}
5875
{ print }
5876
_ACAWK
5877
_ACEOF
5878
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5879
  as_fn_error "could not setup config headers machinery" "$LINENO" 5
5880
fi # test -n "$CONFIG_HEADERS"
5881
 
5882
 
5883
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
5884
shift
5885
for ac_tag
5886
do
5887
  case $ac_tag in
5888
  :[FHLC]) ac_mode=$ac_tag; continue;;
5889
  esac
5890
  case $ac_mode$ac_tag in
5891
  :[FHL]*:*);;
5892
  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
5893
  :[FH]-) ac_tag=-:-;;
5894
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5895
  esac
5896
  ac_save_IFS=$IFS
5897
  IFS=:
5898
  set x $ac_tag
5899
  IFS=$ac_save_IFS
5900
  shift
5901
  ac_file=$1
5902
  shift
5903
 
5904
  case $ac_mode in
5905
  :L) ac_source=$1;;
5906
  :[FH])
5907
    ac_file_inputs=
5908
    for ac_f
5909
    do
5910
      case $ac_f in
5911
      -) ac_f="$tmp/stdin";;
5912
      *) # Look for the file first in the build tree, then in the source tree
5913
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
5914
         # because $ac_f cannot contain `:'.
5915
         test -f "$ac_f" ||
5916
           case $ac_f in
5917
           [\\/$]*) false;;
5918
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5919
           esac ||
5920
           as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5921
      esac
5922
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5923
      as_fn_append ac_file_inputs " '$ac_f'"
5924
    done
5925
 
5926
    # Let's still pretend it is `configure' which instantiates (i.e., don't
5927
    # use $as_me), people would be surprised to read:
5928
    #    /* config.h.  Generated by config.status.  */
5929
    configure_input='Generated from '`
5930
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5931
        `' by configure.'
5932
    if test x"$ac_file" != x-; then
5933
      configure_input="$ac_file.  $configure_input"
5934
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5935
$as_echo "$as_me: creating $ac_file" >&6;}
5936
    fi
5937
    # Neutralize special characters interpreted by sed in replacement strings.
5938
    case $configure_input in #(
5939
    *\&* | *\|* | *\\* )
5940
       ac_sed_conf_input=`$as_echo "$configure_input" |
5941
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
5942
    *) ac_sed_conf_input=$configure_input;;
5943
    esac
5944
 
5945
    case $ac_tag in
5946
    *:-:* | *:-) cat >"$tmp/stdin" \
5947
      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
5948
    esac
5949
    ;;
5950
  esac
5951
 
5952
  ac_dir=`$as_dirname -- "$ac_file" ||
5953
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5954
         X"$ac_file" : 'X\(//\)[^/]' \| \
5955
         X"$ac_file" : 'X\(//\)$' \| \
5956
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5957
$as_echo X"$ac_file" |
5958
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5959
            s//\1/
5960
            q
5961
          }
5962
          /^X\(\/\/\)[^/].*/{
5963
            s//\1/
5964
            q
5965
          }
5966
          /^X\(\/\/\)$/{
5967
            s//\1/
5968
            q
5969
          }
5970
          /^X\(\/\).*/{
5971
            s//\1/
5972
            q
5973
          }
5974
          s/.*/./; q'`
5975
  as_dir="$ac_dir"; as_fn_mkdir_p
5976
  ac_builddir=.
5977
 
5978
case "$ac_dir" in
5979
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5980
*)
5981
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5982
  # A ".." for each directory in $ac_dir_suffix.
5983
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5984
  case $ac_top_builddir_sub in
5985
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5986
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5987
  esac ;;
5988
esac
5989
ac_abs_top_builddir=$ac_pwd
5990
ac_abs_builddir=$ac_pwd$ac_dir_suffix
5991
# for backward compatibility:
5992
ac_top_builddir=$ac_top_build_prefix
5993
 
5994
case $srcdir in
5995
  .)  # We are building in place.
5996
    ac_srcdir=.
5997
    ac_top_srcdir=$ac_top_builddir_sub
5998
    ac_abs_top_srcdir=$ac_pwd ;;
5999
  [\\/]* | ?:[\\/]* )  # Absolute name.
6000
    ac_srcdir=$srcdir$ac_dir_suffix;
6001
    ac_top_srcdir=$srcdir
6002
    ac_abs_top_srcdir=$srcdir ;;
6003
  *) # Relative name.
6004
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6005
    ac_top_srcdir=$ac_top_build_prefix$srcdir
6006
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6007
esac
6008
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6009
 
6010
 
6011
  case $ac_mode in
6012
  :F)
6013
  #
6014
  # CONFIG_FILE
6015
  #
6016
 
6017
_ACEOF
6018
 
6019
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6020
# If the template does not know about datarootdir, expand it.
6021
# FIXME: This hack should be removed a few years after 2.60.
6022
ac_datarootdir_hack=; ac_datarootdir_seen=
6023
ac_sed_dataroot='
6024
/datarootdir/ {
6025
  p
6026
  q
6027
}
6028
/@datadir@/p
6029
/@docdir@/p
6030
/@infodir@/p
6031
/@localedir@/p
6032
/@mandir@/p'
6033
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6034
*datarootdir*) ac_datarootdir_seen=yes;;
6035
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6036
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6037
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6038
_ACEOF
6039
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6040
  ac_datarootdir_hack='
6041
  s&@datadir@&$datadir&g
6042
  s&@docdir@&$docdir&g
6043
  s&@infodir@&$infodir&g
6044
  s&@localedir@&$localedir&g
6045
  s&@mandir@&$mandir&g
6046
  s&\\\${datarootdir}&$datarootdir&g' ;;
6047
esac
6048
_ACEOF
6049
 
6050
# Neutralize VPATH when `$srcdir' = `.'.
6051
# Shell code in configure.ac might set extrasub.
6052
# FIXME: do we really want to maintain this feature?
6053
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6054
ac_sed_extra="$ac_vpsub
6055
$extrasub
6056
_ACEOF
6057
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6058
:t
6059
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6060
s|@configure_input@|$ac_sed_conf_input|;t t
6061
s&@top_builddir@&$ac_top_builddir_sub&;t t
6062
s&@top_build_prefix@&$ac_top_build_prefix&;t t
6063
s&@srcdir@&$ac_srcdir&;t t
6064
s&@abs_srcdir@&$ac_abs_srcdir&;t t
6065
s&@top_srcdir@&$ac_top_srcdir&;t t
6066
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6067
s&@builddir@&$ac_builddir&;t t
6068
s&@abs_builddir@&$ac_abs_builddir&;t t
6069
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6070
$ac_datarootdir_hack
6071
"
6072
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
6073
  || as_fn_error "could not create $ac_file" "$LINENO" 5
6074
 
6075
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6076
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6077
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6078
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6079
which seems to be undefined.  Please make sure it is defined." >&5
6080
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6081
which seems to be undefined.  Please make sure it is defined." >&2;}
6082
 
6083
  rm -f "$tmp/stdin"
6084
  case $ac_file in
6085
  -) cat "$tmp/out" && rm -f "$tmp/out";;
6086
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
6087
  esac \
6088
  || as_fn_error "could not create $ac_file" "$LINENO" 5
6089
 ;;
6090
  :H)
6091
  #
6092
  # CONFIG_HEADER
6093
  #
6094
  if test x"$ac_file" != x-; then
6095
    {
6096
      $as_echo "/* $configure_input  */" \
6097
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
6098
    } >"$tmp/config.h" \
6099
      || as_fn_error "could not create $ac_file" "$LINENO" 5
6100
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
6101
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6102
$as_echo "$as_me: $ac_file is unchanged" >&6;}
6103
    else
6104
      rm -f "$ac_file"
6105
      mv "$tmp/config.h" "$ac_file" \
6106
        || as_fn_error "could not create $ac_file" "$LINENO" 5
6107
    fi
6108
  else
6109
    $as_echo "/* $configure_input  */" \
6110
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
6111
      || as_fn_error "could not create -" "$LINENO" 5
6112
  fi
6113
 ;;
6114
 
6115
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6116
$as_echo "$as_me: executing $ac_file commands" >&6;}
6117
 ;;
6118
  esac
6119
 
6120
 
6121
  case $ac_file$ac_mode in
6122
    "gstdint.h":C)
6123
if test "$GCC" = yes; then
6124
  echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
6125
else
6126
  echo "/* generated for $CC */" > tmp-stdint.h
6127
fi
6128
 
6129
sed 's/^ *//' >> tmp-stdint.h <
6130
 
6131
  #ifndef GCC_GENERATED_STDINT_H
6132
  #define GCC_GENERATED_STDINT_H 1
6133
 
6134
  #include 
6135
EOF
6136
 
6137
if test "$acx_cv_header_stdint" != stdint.h; then
6138
  echo "#include " >> tmp-stdint.h
6139
fi
6140
if test "$acx_cv_header_stdint" != stddef.h; then
6141
  echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
6142
fi
6143
 
6144
sed 's/^ *//' >> tmp-stdint.h <
6145
  /* glibc uses these symbols as guards to prevent redefinitions.  */
6146
  #ifdef __int8_t_defined
6147
  #define _INT8_T
6148
  #define _INT16_T
6149
  #define _INT32_T
6150
  #endif
6151
  #ifdef __uint32_t_defined
6152
  #define _UINT32_T
6153
  #endif
6154
 
6155
EOF
6156
 
6157
# ----------------- done header, emit basic int types -------------
6158
if test "$acx_cv_header_stdint" = stddef.h; then
6159
  sed 's/^ *//' >> tmp-stdint.h <
6160
 
6161
    #ifndef _UINT8_T
6162
    #define _UINT8_T
6163
    #ifndef __uint8_t_defined
6164
    #define __uint8_t_defined
6165
    #ifndef uint8_t
6166
    typedef unsigned $acx_cv_type_int8_t uint8_t;
6167
    #endif
6168
    #endif
6169
    #endif
6170
 
6171
    #ifndef _UINT16_T
6172
    #define _UINT16_T
6173
    #ifndef __uint16_t_defined
6174
    #define __uint16_t_defined
6175
    #ifndef uint16_t
6176
    typedef unsigned $acx_cv_type_int16_t uint16_t;
6177
    #endif
6178
    #endif
6179
    #endif
6180
 
6181
    #ifndef _UINT32_T
6182
    #define _UINT32_T
6183
    #ifndef __uint32_t_defined
6184
    #define __uint32_t_defined
6185
    #ifndef uint32_t
6186
    typedef unsigned $acx_cv_type_int32_t uint32_t;
6187
    #endif
6188
    #endif
6189
    #endif
6190
 
6191
    #ifndef _INT8_T
6192
    #define _INT8_T
6193
    #ifndef __int8_t_defined
6194
    #define __int8_t_defined
6195
    #ifndef int8_t
6196
    typedef $acx_cv_type_int8_t int8_t;
6197
    #endif
6198
    #endif
6199
    #endif
6200
 
6201
    #ifndef _INT16_T
6202
    #define _INT16_T
6203
    #ifndef __int16_t_defined
6204
    #define __int16_t_defined
6205
    #ifndef int16_t
6206
    typedef $acx_cv_type_int16_t int16_t;
6207
    #endif
6208
    #endif
6209
    #endif
6210
 
6211
    #ifndef _INT32_T
6212
    #define _INT32_T
6213
    #ifndef __int32_t_defined
6214
    #define __int32_t_defined
6215
    #ifndef int32_t
6216
    typedef $acx_cv_type_int32_t int32_t;
6217
    #endif
6218
    #endif
6219
    #endif
6220
EOF
6221
elif test "$ac_cv_type_u_int32_t" = yes; then
6222
  sed 's/^ *//' >> tmp-stdint.h <
6223
 
6224
    /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
6225
    #ifndef _INT8_T
6226
    #define _INT8_T
6227
    #endif
6228
    #ifndef _INT16_T
6229
    #define _INT16_T
6230
    #endif
6231
    #ifndef _INT32_T
6232
    #define _INT32_T
6233
    #endif
6234
 
6235
    #ifndef _UINT8_T
6236
    #define _UINT8_T
6237
    #ifndef __uint8_t_defined
6238
    #define __uint8_t_defined
6239
    #ifndef uint8_t
6240
    typedef u_int8_t uint8_t;
6241
    #endif
6242
    #endif
6243
    #endif
6244
 
6245
    #ifndef _UINT16_T
6246
    #define _UINT16_T
6247
    #ifndef __uint16_t_defined
6248
    #define __uint16_t_defined
6249
    #ifndef uint16_t
6250
    typedef u_int16_t uint16_t;
6251
    #endif
6252
    #endif
6253
    #endif
6254
 
6255
    #ifndef _UINT32_T
6256
    #define _UINT32_T
6257
    #ifndef __uint32_t_defined
6258
    #define __uint32_t_defined
6259
    #ifndef uint32_t
6260
    typedef u_int32_t uint32_t;
6261
    #endif
6262
    #endif
6263
    #endif
6264
EOF
6265
else
6266
  sed 's/^ *//' >> tmp-stdint.h <
6267
 
6268
    /* Some systems have guard macros to prevent redefinitions, define them.  */
6269
    #ifndef _INT8_T
6270
    #define _INT8_T
6271
    #endif
6272
    #ifndef _INT16_T
6273
    #define _INT16_T
6274
    #endif
6275
    #ifndef _INT32_T
6276
    #define _INT32_T
6277
    #endif
6278
    #ifndef _UINT8_T
6279
    #define _UINT8_T
6280
    #endif
6281
    #ifndef _UINT16_T
6282
    #define _UINT16_T
6283
    #endif
6284
    #ifndef _UINT32_T
6285
    #define _UINT32_T
6286
    #endif
6287
EOF
6288
fi
6289
 
6290
# ------------- done basic int types, emit int64_t types ------------
6291
if test "$ac_cv_type_uint64_t" = yes; then
6292
  sed 's/^ *//' >> tmp-stdint.h <
6293
 
6294
    /* system headers have good uint64_t and int64_t */
6295
    #ifndef _INT64_T
6296
    #define _INT64_T
6297
    #endif
6298
    #ifndef _UINT64_T
6299
    #define _UINT64_T
6300
    #endif
6301
EOF
6302
elif test "$ac_cv_type_u_int64_t" = yes; then
6303
  sed 's/^ *//' >> tmp-stdint.h <
6304
 
6305
    /* system headers have an u_int64_t (and int64_t) */
6306
    #ifndef _INT64_T
6307
    #define _INT64_T
6308
    #endif
6309
    #ifndef _UINT64_T
6310
    #define _UINT64_T
6311
    #ifndef __uint64_t_defined
6312
    #define __uint64_t_defined
6313
    #ifndef uint64_t
6314
    typedef u_int64_t uint64_t;
6315
    #endif
6316
    #endif
6317
    #endif
6318
EOF
6319
elif test -n "$acx_cv_type_int64_t"; then
6320
  sed 's/^ *//' >> tmp-stdint.h <
6321
 
6322
    /* architecture has a 64-bit type, $acx_cv_type_int64_t */
6323
    #ifndef _INT64_T
6324
    #define _INT64_T
6325
    #ifndef int64_t
6326
    typedef $acx_cv_type_int64_t int64_t;
6327
    #endif
6328
    #endif
6329
    #ifndef _UINT64_T
6330
    #define _UINT64_T
6331
    #ifndef __uint64_t_defined
6332
    #define __uint64_t_defined
6333
    #ifndef uint64_t
6334
    typedef unsigned $acx_cv_type_int64_t uint64_t;
6335
    #endif
6336
    #endif
6337
    #endif
6338
EOF
6339
else
6340
  sed 's/^ *//' >> tmp-stdint.h <
6341
 
6342
    /* some common heuristics for int64_t, using compiler-specific tests */
6343
    #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
6344
    #ifndef _INT64_T
6345
    #define _INT64_T
6346
    #ifndef __int64_t_defined
6347
    #ifndef int64_t
6348
    typedef long long int64_t;
6349
    #endif
6350
    #endif
6351
    #endif
6352
    #ifndef _UINT64_T
6353
    #define _UINT64_T
6354
    #ifndef uint64_t
6355
    typedef unsigned long long uint64_t;
6356
    #endif
6357
    #endif
6358
 
6359
    #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
6360
    /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
6361
       does not implement __extension__.  But that compiler doesn't define
6362
       __GNUC_MINOR__.  */
6363
    # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
6364
    # define __extension__
6365
    # endif
6366
 
6367
    # ifndef _INT64_T
6368
    # define _INT64_T
6369
    # ifndef int64_t
6370
    __extension__ typedef long long int64_t;
6371
    # endif
6372
    # endif
6373
    # ifndef _UINT64_T
6374
    # define _UINT64_T
6375
    # ifndef uint64_t
6376
    __extension__ typedef unsigned long long uint64_t;
6377
    # endif
6378
    # endif
6379
 
6380
    #elif !defined __STRICT_ANSI__
6381
    # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
6382
 
6383
    #  ifndef _INT64_T
6384
    #  define _INT64_T
6385
    #  ifndef int64_t
6386
    typedef __int64 int64_t;
6387
    #  endif
6388
    #  endif
6389
    #  ifndef _UINT64_T
6390
    #  define _UINT64_T
6391
    #  ifndef uint64_t
6392
    typedef unsigned __int64 uint64_t;
6393
    #  endif
6394
    #  endif
6395
    # endif /* compiler */
6396
 
6397
    #endif /* ANSI version */
6398
EOF
6399
fi
6400
 
6401
# ------------- done int64_t types, emit intptr types ------------
6402
if test "$ac_cv_type_uintptr_t" != yes; then
6403
  sed 's/^ *//' >> tmp-stdint.h <
6404
 
6405
    /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
6406
    #ifndef __uintptr_t_defined
6407
    #ifndef uintptr_t
6408
    typedef u$acx_cv_type_intptr_t uintptr_t;
6409
    #endif
6410
    #endif
6411
    #ifndef __intptr_t_defined
6412
    #ifndef intptr_t
6413
    typedef $acx_cv_type_intptr_t  intptr_t;
6414
    #endif
6415
    #endif
6416
EOF
6417
fi
6418
 
6419
# ------------- done intptr types, emit int_least types ------------
6420
if test "$ac_cv_type_int_least32_t" != yes; then
6421
  sed 's/^ *//' >> tmp-stdint.h <
6422
 
6423
    /* Define int_least types */
6424
    typedef int8_t     int_least8_t;
6425
    typedef int16_t    int_least16_t;
6426
    typedef int32_t    int_least32_t;
6427
    #ifdef _INT64_T
6428
    typedef int64_t    int_least64_t;
6429
    #endif
6430
 
6431
    typedef uint8_t    uint_least8_t;
6432
    typedef uint16_t   uint_least16_t;
6433
    typedef uint32_t   uint_least32_t;
6434
    #ifdef _UINT64_T
6435
    typedef uint64_t   uint_least64_t;
6436
    #endif
6437
EOF
6438
fi
6439
 
6440
# ------------- done intptr types, emit int_fast types ------------
6441
if test "$ac_cv_type_int_fast32_t" != yes; then
6442
      sed 's/^ *//' >> tmp-stdint.h <
6443
 
6444
    /* Define int_fast types.  short is often slow */
6445
    typedef int8_t       int_fast8_t;
6446
    typedef int          int_fast16_t;
6447
    typedef int32_t      int_fast32_t;
6448
    #ifdef _INT64_T
6449
    typedef int64_t      int_fast64_t;
6450
    #endif
6451
 
6452
    typedef uint8_t      uint_fast8_t;
6453
    typedef unsigned int uint_fast16_t;
6454
    typedef uint32_t     uint_fast32_t;
6455
    #ifdef _UINT64_T
6456
    typedef uint64_t     uint_fast64_t;
6457
    #endif
6458
EOF
6459
fi
6460
 
6461
if test "$ac_cv_type_uintmax_t" != yes; then
6462
  sed 's/^ *//' >> tmp-stdint.h <
6463
 
6464
    /* Define intmax based on what we found */
6465
    #ifndef intmax_t
6466
    #ifdef _INT64_T
6467
    typedef int64_t       intmax_t;
6468
    #else
6469
    typedef long          intmax_t;
6470
    #endif
6471
    #endif
6472
    #ifndef uintmax_t
6473
    #ifdef _UINT64_T
6474
    typedef uint64_t      uintmax_t;
6475
    #else
6476
    typedef unsigned long uintmax_t;
6477
    #endif
6478
    #endif
6479
EOF
6480
fi
6481
 
6482
sed 's/^ *//' >> tmp-stdint.h <
6483
 
6484
  #endif /* GCC_GENERATED_STDINT_H */
6485
EOF
6486
 
6487
if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
6488
  rm -f tmp-stdint.h
6489
else
6490
  mv -f tmp-stdint.h gstdint.h
6491
fi
6492
 
6493
 ;;
6494
    "config.h":H) echo timestamp > stamp-h1 ;;
6495
 
6496
  esac
6497
done # for ac_tag
6498
 
6499
 
6500
as_fn_exit 0
6501
_ACEOF
6502
ac_clean_files=$ac_clean_files_save
6503
 
6504
test $ac_write_fail = 0 ||
6505
  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
6506
 
6507
 
6508
# configure is writing to config.log, and then calls config.status.
6509
# config.status does its own redirection, appending to config.log.
6510
# Unfortunately, on DOS this fails, as config.log is still kept open
6511
# by configure, so config.status won't be able to write to it; its
6512
# output is simply discarded.  So we exec the FD to /dev/null,
6513
# effectively closing config.log, so it can be properly (re)opened and
6514
# appended to by config.status.  When coming back to configure, we
6515
# need to make the FD available again.
6516
if test "$no_create" != yes; then
6517
  ac_cs_success=:
6518
  ac_config_status_args=
6519
  test "$silent" = yes &&
6520
    ac_config_status_args="$ac_config_status_args --quiet"
6521
  exec 5>/dev/null
6522
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6523
  exec 5>>config.log
6524
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6525
  # would make configure fail if this is the last instruction.
6526
  $ac_cs_success || as_fn_exit $?
6527
fi
6528
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6529
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6530
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6531
fi
6532
 

powered by: WebSVN 2.1.0

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