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