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