@ -195,7 +195,8 @@ test -x / || exit 1"
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
test \$(( 1 + 1 )) = 2 || exit 1"
if (eval "$as_required") 2>/dev/null; then :
as_have_required=yes
else
@ -584,7 +585,11 @@ PACKAGE_URL=''
ac_subst_vars='LTLIBOBJS
LIBOBJS
default_target
AWK
GSED
GAWK
BASH
FGREP
GREP
OBJEXT
EXEEXT
ac_ct_CC
@ -2568,26 +2573,157 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
for ac_prog in gawk mawk nawk awk
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
if ${ac_cv_path_GREP+:} false; then :
$as_echo_n "(cached) " >&6
else
if test -z "$GREP"; then
ac_path_GREP_found=false
# Loop through the user's path and test for each of PROGNAME-LIST
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_prog in grep ggrep; do
for ac_exec_ext in '' $ac_executable_extensions; do
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
as_fn_executable_p "$ac_path_GREP" || continue
# Check for GNU ac_path_GREP and select it if it is found.
# Check for GNU $ac_path_GREP
case `"$ac_path_GREP" --version 2>&1` in
*GNU*)
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
*)
ac_count=0
$as_echo_n 0123456789 >"conftest.in"
while :
do
cat "conftest.in" "conftest.in" >"conftest.tmp"
mv "conftest.tmp" "conftest.in"
cp "conftest.in" "conftest.nl"
$as_echo 'GREP' >> "conftest.nl"
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
as_fn_arith $ac_count + 1 && ac_count=$as_val
if test $ac_count -gt ${ac_path_GREP_max-0}; then
# Best one so far, save it but keep looking for a better one
ac_cv_path_GREP="$ac_path_GREP"
ac_path_GREP_max=$ac_count
fi
# 10*(2^10) chars as input seems more than enough
test $ac_count -gt 10 && break
done
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac
$ac_path_GREP_found && break 3
done
done
done
IFS=$as_save_IFS
if test -z "$ac_cv_path_GREP"; then
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
fi
else
ac_cv_path_GREP=$GREP
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
$as_echo "$ac_cv_path_GREP" >&6; }
GREP="$ac_cv_path_GREP"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
$as_echo_n "checking for fgrep... " >&6; }
if ${ac_cv_path_FGREP+:} false; then :
$as_echo_n "(cached) " >&6
else
if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
then ac_cv_path_FGREP="$GREP -F"
else
if test -z "$FGREP"; then
ac_path_FGREP_found=false
# Loop through the user's path and test for each of PROGNAME-LIST
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_prog in fgrep; do
for ac_exec_ext in '' $ac_executable_extensions; do
ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
as_fn_executable_p "$ac_path_FGREP" || continue
# Check for GNU ac_path_FGREP and select it if it is found.
# Check for GNU $ac_path_FGREP
case `"$ac_path_FGREP" --version 2>&1` in
*GNU*)
ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
*)
ac_count=0
$as_echo_n 0123456789 >"conftest.in"
while :
do
cat "conftest.in" "conftest.in" >"conftest.tmp"
mv "conftest.tmp" "conftest.in"
cp "conftest.in" "conftest.nl"
$as_echo 'FGREP' >> "conftest.nl"
"$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
as_fn_arith $ac_count + 1 && ac_count=$as_val
if test $ac_count -gt ${ac_path_FGREP_max-0}; then
# Best one so far, save it but keep looking for a better one
ac_cv_path_FGREP="$ac_path_FGREP"
ac_path_FGREP_max=$ac_count
fi
# 10*(2^10) chars as input seems more than enough
test $ac_count -gt 10 && break
done
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac
$ac_path_FGREP_found && break 3
done
done
done
IFS=$as_save_IFS
if test -z "$ac_cv_path_FGREP"; then
as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
fi
else
ac_cv_path_FGREP=$FGREP
fi
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
$as_echo "$ac_cv_path_FGREP" >&6; }
FGREP="$ac_cv_path_FGREP"
# Extract the first word of "bash", so it can be a program name with args.
set dummy bash; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_AWK+:} false; then :
if ${ac_cv_path_BASH +:} false; then :
$as_echo_n "(cached) " >&6
else
if test -n "$AWK"; then
ac_cv_prog_AWK="$AWK" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
case $BASH in
[\\/]* | ?:[\\/]*)
ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
;;
*)
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ac_cv_prog_AWK="$ac_prog"
ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext "
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
@ -2595,26 +2731,85 @@ done
done
IFS=$as_save_IFS
test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="as_fn_error $? "bash not found" "$LINENO" 5"
;;
esac
fi
fi
AWK=$ac_cv_prog_AWK
if test -n "$AWK"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
$as_echo "$AWK" >&6; }
BASH=$ac_cv_path_BASH
if test -n "$BASH"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
$as_echo "$BASH" >&6; }
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
test -n "$AWK" && break
done
if test -z "$GAWK"; then
ac_path_GAWK_found=false
# Loop through the user's path and test for each of PROGNAME-LIST
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_prog in gawk awk; do
for ac_exec_ext in '' $ac_executable_extensions; do
ac_path_GAWK="$as_dir/$ac_prog$ac_exec_ext"
as_fn_executable_p "$ac_path_GAWK" || continue
if $ac_path_GAWK --version 2>&1 | $FGREP GNU >/dev/null; then :
ac_cv_path_GAWK=$ac_path_GAWK ac_path_GAWK_found=:
fi
$ac_path_GAWK_found && break 3
done
done
done
IFS=$as_save_IFS
if test -z "$ac_cv_path_GAWK"; then
as_fn_error $? "GNU Awk not found" "$LINENO" 5
fi
else
ac_cv_path_GAWK=$GAWK
fi
GAWK=$ac_cv_path_GAWK
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_mul_si in -lgmp" >&5
$as_echo_n "checking for __gmpz_mul_si in -lgmp... " >&6; }
if ${ac_cv_lib_gmp___gmpz_mul_si+:} false; then :
if test -z "$GSED"; then
ac_path_GSED_found=false
# Loop through the user's path and test for each of PROGNAME-LIST
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_prog in gsed sed; do
for ac_exec_ext in '' $ac_executable_extensions; do
ac_path_GSED="$as_dir/$ac_prog$ac_exec_ext"
as_fn_executable_p "$ac_path_GSED" || continue
if $ac_path_GSED --version 2>&1 | $FGREP GNU >/dev/null; then :
ac_cv_path_GSED=$ac_path_GSED ac_path_GSED_found=:
fi
$ac_path_GSED_found && break 3
done
done
done
IFS=$as_save_IFS
if test -z "$ac_cv_path_GSED"; then
as_fn_error $? "GNU sed not found" "$LINENO" 5
fi
else
ac_cv_path_GSED=$GSED
fi
GSED=$ac_cv_path_GSED
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_init in -lgmp" >&5
$as_echo_n "checking for __gmpz_init in -lgmp... " >&6; }
if ${ac_cv_lib_gmp___gmpz_init+:} false; then :
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
@ -2628,27 +2823,27 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
#ifdef __cplusplus
extern "C"
#endif
char __gmpz_mul_s i ();
char __gmpz_init ();
int
main ()
{
return __gmpz_mul_s i ();
return __gmpz_init ();
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
ac_cv_lib_gmp___gmpz_mul_s i=yes
ac_cv_lib_gmp___gmpz_init =yes
else
ac_cv_lib_gmp___gmpz_mul_s i=no
ac_cv_lib_gmp___gmpz_init =no
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_mul_s i" >&5
$as_echo "$ac_cv_lib_gmp___gmpz_mul_s i" >&6; }
if test "x$ac_cv_lib_gmp___gmpz_mul_s i" = xyes; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_init " >&5
$as_echo "$ac_cv_lib_gmp___gmpz_init " >&6; }
if test "x$ac_cv_lib_gmp___gmpz_init " = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_LIBGMP 1
_ACEOF
@ -2656,14 +2851,13 @@ _ACEOF
LIBS="-lgmp $LIBS"
else
as_fn_error $? "GNU MP 3.1 or greater not found.
See http://gmplib.org" "$LINENO" 5
as_fn_error $? "GNU MP not found; see https://gmplib.org/" "$LINENO" 5
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpfr_add in -lmpfr" >&5
$as_echo_n "checking for mpfr_add in -lmpfr... " >&6; }
if ${ac_cv_lib_mpfr_mpfr_add +:} false; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpfr_init in -lmpfr" >&5
$as_echo_n "checking for mpfr_init in -lmpfr... " >&6; }
if ${ac_cv_lib_mpfr_mpfr_init +:} false; then :
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
@ -2677,27 +2871,27 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
#ifdef __cplusplus
extern "C"
#endif
char mpfr_add ();
char mpfr_init ();
int
main ()
{
return mpfr_add ();
return mpfr_init ();
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
ac_cv_lib_mpfr_mpfr_add =yes
ac_cv_lib_mpfr_mpfr_init =yes
else
ac_cv_lib_mpfr_mpfr_add =no
ac_cv_lib_mpfr_mpfr_init =no
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpfr_mpfr_add " >&5
$as_echo "$ac_cv_lib_mpfr_mpfr_add " >&6; }
if test "x$ac_cv_lib_mpfr_mpfr_add " = xyes; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpfr_mpfr_init " >&5
$as_echo "$ac_cv_lib_mpfr_mpfr_init " >&6; }
if test "x$ac_cv_lib_mpfr_mpfr_init " = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_LIBMPFR 1
_ACEOF
@ -2705,14 +2899,13 @@ _ACEOF
LIBS="-lmpfr $LIBS"
else
as_fn_error $? "MPFR 3.1 or greater not found.
See http://www.mpfr.org" "$LINENO" 5
as_fn_error $? "MPFR not found; see http://www.mpfr.org/" "$LINENO" 5
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpc_add in -lmpc" >&5
$as_echo_n "checking for mpc_add in -lmpc... " >&6; }
if ${ac_cv_lib_mpc_mpc_add +:} false; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpc_init2 in -lmpc" >&5
$as_echo_n "checking for mpc_init2 in -lmpc... " >&6; }
if ${ac_cv_lib_mpc_mpc_init2 +:} false; then :
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
@ -2726,27 +2919,27 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
#ifdef __cplusplus
extern "C"
#endif
char mpc_add ();
char mpc_init2 ();
int
main ()
{
return mpc_add ();
return mpc_init2 ();
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
ac_cv_lib_mpc_mpc_add =yes
ac_cv_lib_mpc_mpc_init2 =yes
else
ac_cv_lib_mpc_mpc_add =no
ac_cv_lib_mpc_mpc_init2 =no
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_mpc_add " >&5
$as_echo "$ac_cv_lib_mpc_mpc_add " >&6; }
if test "x$ac_cv_lib_mpc_mpc_add " = xyes; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_mpc_init2 " >&5
$as_echo "$ac_cv_lib_mpc_mpc_init2 " >&6; }
if test "x$ac_cv_lib_mpc_mpc_init2 " = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_LIBMPC 1
_ACEOF
@ -2754,8 +2947,7 @@ _ACEOF
LIBS="-lmpc $LIBS"
else
as_fn_error $? "MPC 0.8.1 or greater not found.
See http://www.multiprecision.org" "$LINENO" 5
as_fn_error $? "MPC not found; see http://www.multiprecision.org/" "$LINENO" 5
fi
@ -2772,6 +2964,11 @@ fi
ac_config_files="$ac_config_files Makefile"
ac_config_files="$ac_config_files scripts/wrapper/awk"
ac_config_files="$ac_config_files scripts/wrapper/sed"
cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
@ -3377,7 +3574,6 @@ gives unlimited permission to copy, distribute and modify it."
ac_pwd='$ac_pwd'
srcdir='$srcdir'
AWK='$AWK'
test -n "\$AWK" || AWK=awk
_ACEOF
@ -3479,6 +3675,8 @@ for ac_config_target in $ac_config_targets
do
case $ac_config_target in
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
"scripts/wrapper/awk") CONFIG_FILES="$CONFIG_FILES scripts/wrapper/awk" ;;
"scripts/wrapper/sed") CONFIG_FILES="$CONFIG_FILES scripts/wrapper/sed" ;;
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
esac
@ -3892,6 +4090,12 @@ which seems to be undefined. Please make sure it is defined" >&2;}
esac
case $ac_file$ac_mode in
"scripts/wrapper/awk":F) chmod +x scripts/wrapper/awk ;;
"scripts/wrapper/sed":F) chmod +x scripts/wrapper/sed ;;
esac
done # for ac_tag