diff -Naur gmp-4.0/ChangeLog gmp-4.0.1/ChangeLog --- gmp-4.0/ChangeLog Sat Dec 1 01:22:44 2001 +++ gmp-4.0.1/ChangeLog Tue Jan 22 01:24:15 2002 @@ -1,5 +1,5 @@ -Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999 2000, 2001 -Free Software Foundation, Inc. +Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, +2002 Free Software Foundation, Inc. . This file is part of the GNU MP Library. . @@ -18,6 +18,111 @@ the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +2002-01-22 Kevin Ryde + + * Version 4.0.1 released. + +2002-01-20 Kevin Ryde + + * gmp.texi (Contributors): Bump release version. + + * acinclude.m4 (GMP_FUNC_VSNPRINTF): Use %n to better detect sparc + solaris 2.7 problems. + +2002-01-17 Kevin Ryde + + * tests/refmpn.c (refmpn_divmod_1c): Avoid a bug in i386 gcc 3.0. + +2002-01-15 Kevin Ryde + + * printf/Makefile.am: libdummy.la should be in EXTRA_LTLIBRARIES. + + * mpf/out_str.c: Use MPF_SIGNIFICANT_DIGITS, so mpf_out_str and + mpf_get_str give the same for ndigits==0. + +2002-01-06 Kevin Ryde + + * gmp-h.in (mpn_divexact_by3c): Remove variables from prototype, to + keep out of application namespace. + + * mpbsd/mtox.c: Add TMP_FREE to avoid memory leak in malloc methods. + +2002-01-04 Kevin Ryde + + * gmp-h.in (__GNU_MP_VERSION_PATCHLEVEL): Bump to 4.0.1. + * Makefile.am (*_LT_REVISION): Bump for implementation changes. + +2001-12-28 Kevin Ryde + + * acinclude.m4 (GMP_PROG_CC_WORKS): For a native compile, demand + executables will run, per AC_PROG_CC. This detects ABI=64 is unusable + in a native sparc solaris 7 build with the kernel in 32-bit mode. + * gmp.texi (ABI and ISA): Add notes on this, add an example configure + setting an ABI. + +2001-12-18 Kevin Ryde + + * gmp-h.in (operator<<, operator>>): Remove parameter names from + prototypes, to keep out of user namespace. + +2001-12-15 Kevin Ryde + + * gmp-h.in (mpn_add, mpn_add_1, mpn_cmp, mpn_sub, mpn_sub_1): Follow + __GMP_INLINE_PROTOTYPES for whether to give prototype with inline. + +2001-12-12 Kevin Ryde + + * acinclude.m4 (GMP_PROG_CC_WORKS): Detect cmov problems with gcc + -march=pentiumpro on solaris 2.8. + + * tune/common.c, tune/speed.h: Allow for commas in count_leading_zeros + and count_trailing_zeros macros. + + * demos/expr/Makefile.am: Distribute exprfr.c and exprfra.c. + + * tune/Makefile.am (speed_ext_SOURCES): Should be speed-ext.c. + +2001-12-07 Kevin Ryde + + * gmp-h.in, mp-h.in, gmp-impl.h: __GMP_DECLSPEC at start of + prototypes, for the benefit of Microsoft C. + + * gmp.texi (Introduction to GMP): Mention ABI and ISA section. + (Known Build Problems): Recommend GNU sed on solaris 2.6. + (Assigning Integers): Direct feedback to bug-gmp. + (References): Typo Knuth vol 2 is from 1998. + + * gmpxx.h (gmp_randclass): Add initializers for gmp_randinit_default + and gmp_randinit_lc_2exp_size. + gmp.texi (C++ Interface Random Numbers): Describe them. + + * tests/misc/t-locale.c, tests/cxx/t-locale.cc: Ensure mpf_clear is + done when the localconv override doesn't work. Reported by Mike + Jetzer. + + * printf/doprnti.c: Don't showbase on a zero mpq denominator. + * tests/misc/t-printf.c, tests/cxx/t-ostream.c: Add test cases. + +2001-12-04 Kevin Ryde + + * gmp.texi (Known Build Problems): Update to gmp_randinit_lc_2exp_size + for the sparc solaris 2.7 problem. + (Reentrancy): SCO ctype.h affects all text-based input functions. + (Formatted Output Strings): Correction to the mpf example. + (Single Limb Division): Correction, should be q-1 not q+1. + (Extended GCD): Clarify why single-limb is inferior. + (Raw Output Internals): Clarify size is twos complement, note limb + order means _mp_d doesn't get directly read or written. + (Contributors): Clarify mpz_jacobi. + And a couple of formatting tweaks elsewhere. + + * tests/cxx/t-headers.cc: New file. + * tests/cxx/Makefile.am: Add it. + + * gmpxx.h: Add , needed by mpf_class::get_str2. + + * gmp-h.in (mpq_inp_str, mpn_hamdist): Add __GMP_DECLSPEC. 2001-12-01 Torbjorn Granlund diff -Naur gmp-4.0/Makefile.am gmp-4.0.1/Makefile.am --- gmp-4.0/Makefile.am Fri Nov 30 23:37:22 2001 +++ gmp-4.0.1/Makefile.am Fri Jan 4 00:59:24 2002 @@ -1,8 +1,8 @@ ## Process this file with automake to generate Makefile.in -# Copyright 1991, 1993, 1994, 1996, 1997, 1999, 2000, 2001 Free Software -# Foundation, Inc. +# Copyright 1991, 1993, 1994, 1996, 1997, 1999, 2000, 2001, 2002 Free +# Software Foundation, Inc. # # This file is part of the GNU MP Library. # @@ -42,6 +42,7 @@ # 3.1 4:0:1 - 4:0:1 # 3.1.1 4:1:1 - 4:1:1 # 4.0 5:0:2 3:0:0 4:2:1 +# 4.0.1 5:1:2 3:1:0 4:3:1 # # Starting at 3:0:0 is a slight abuse of the versioning system, but it # ensures we're past soname libgmp.so.2, which was used on Debian GNU/Linux @@ -49,15 +50,15 @@ # gmp 3 mean 3:0:0 is right. LIBGMP_LT_CURRENT = 5 -LIBGMP_LT_REVISION = 0 +LIBGMP_LT_REVISION = 1 LIBGMP_LT_AGE = 2 LIBGMPXX_LT_CURRENT = 3 -LIBGMPXX_LT_REVISION = 0 +LIBGMPXX_LT_REVISION = 1 LIBGMPXX_LT_AGE = 0 LIBMP_LT_CURRENT = 4 -LIBMP_LT_REVISION = 2 +LIBMP_LT_REVISION = 3 LIBMP_LT_AGE = 1 diff -Naur gmp-4.0/Makefile.in gmp-4.0.1/Makefile.in --- gmp-4.0/Makefile.in Sat Dec 1 01:23:55 2001 +++ gmp-4.0.1/Makefile.in Tue Jan 22 01:19:12 2002 @@ -13,8 +13,8 @@ @SET_MAKE@ -# Copyright 1991, 1993, 1994, 1996, 1997, 1999, 2000, 2001 Free Software -# Foundation, Inc. +# Copyright 1991, 1993, 1994, 1996, 1997, 1999, 2000, 2001, 2002 Free +# Software Foundation, Inc. # # This file is part of the GNU MP Library. # @@ -53,6 +53,7 @@ # 3.1 4:0:1 - 4:0:1 # 3.1.1 4:1:1 - 4:1:1 # 4.0 5:0:2 3:0:0 4:2:1 +# 4.0.1 5:1:2 3:1:0 4:3:1 # # Starting at 3:0:0 is a slight abuse of the versioning system, but it # ensures we're past soname libgmp.so.2, which was used on Debian GNU/Linux @@ -155,15 +156,15 @@ mpn_objs_in_libmp = @mpn_objs_in_libmp@ LIBGMP_LT_CURRENT = 5 -LIBGMP_LT_REVISION = 0 +LIBGMP_LT_REVISION = 1 LIBGMP_LT_AGE = 2 LIBGMPXX_LT_CURRENT = 3 -LIBGMPXX_LT_REVISION = 0 +LIBGMPXX_LT_REVISION = 1 LIBGMPXX_LT_AGE = 0 LIBMP_LT_CURRENT = 4 -LIBMP_LT_REVISION = 2 +LIBMP_LT_REVISION = 3 LIBMP_LT_AGE = 1 AUTOMAKE_OPTIONS = gnu no-dependencies ansi2knr diff -Naur gmp-4.0/NEWS gmp-4.0.1/NEWS --- gmp-4.0/NEWS Sat Dec 1 00:27:53 2001 +++ gmp-4.0.1/NEWS Wed Jan 16 23:33:23 2002 @@ -1,4 +1,4 @@ -Copyright 1996, 1999, 2000, 2001 Free Software Foundation, Inc. +Copyright 1996, 1999, 2000, 2001, 2002 Free Software Foundation, Inc. This file is part of the GNU MP Library. @@ -16,6 +16,11 @@ along with the GNU MP Library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +Changes between MP version 4.0 and 4.0.1 + +* Bug fixes. Changes between MP version 3.1.1 and 4.0 diff -Naur gmp-4.0/acinclude.m4 gmp-4.0.1/acinclude.m4 --- gmp-4.0/acinclude.m4 Sat Nov 24 21:57:03 2001 +++ gmp-4.0.1/acinclude.m4 Tue Jan 22 01:19:00 2002 @@ -1,7 +1,7 @@ dnl GMP specific autoconf macros -dnl Copyright 2000, 2001 Free Software Foundation, Inc. +dnl Copyright 2000, 2001, 2002 Free Software Foundation, Inc. dnl dnl This file is part of the GNU MP Library. dnl @@ -339,25 +339,51 @@ dnl dnl This test is designed to be run repeatedly with different cc+cflags dnl selections, so the result is not cached. +dnl +dnl For a native build, meaning $cross_compiling == no, we require that the +dnl generated program will run. This is the same as AC_PROG_CC does in +dnl _AC_COMPILER_EXEEXT_WORKS, and checking here will ensure we don't pass +dnl a CC/CFLAGS combination that it rejects. +dnl +dnl sparc-*-solaris2.7 can compile ABI=64 but won't run it if the kernel +dnl was booted in 32-bit mode. The effect of requiring the compiler output +dnl will run is that a plain native "./configure" falls back on ABI=32, but +dnl ABI=64 is still available as a cross-compile. AC_DEFUN(GMP_PROG_CC_WORKS, [AC_MSG_CHECKING([compiler $1]) cat >conftest.c <= 0 ? n : 0); } + int main () { return 0; } EOF -gmp_compile="$1 conftest.c -o conftest >&AC_FD_CC" +gmp_prog_cc_works=no +gmp_compile="$1 conftest.c >&AC_FD_CC" if AC_TRY_EVAL(gmp_compile); then - rm -f conftest* - AC_MSG_RESULT(yes) + if test "$cross_compiling" = no; then + if AC_TRY_COMMAND([./a.out || ./a.exe || ./conftest]); then + gmp_prog_cc_works=yes + fi + else + gmp_prog_cc_works=yes + fi +fi +rm -f conftest* a.out a.exe +AC_MSG_RESULT($gmp_prog_cc_works) +if test $gmp_prog_cc_works = yes; then ifelse([$2],,:,[$2]) else - rm -f conftest* - AC_MSG_RESULT(no) ifelse([$3],,:,[$3]) fi ]) @@ -1871,8 +1897,15 @@ dnl ------------------ dnl Check whether vsnprintf exists, and works properly. dnl -dnl Sparc Solaris 2.7 in 64-bit mode doesn't truncate, so vsnprintf is just -dnl like vsprintf, which is completely useless. +dnl Sparc Solaris 2.7 in 64-bit mode doesn't always truncate, making +dnl vsnprintf like vsprintf, and hence completely useless. On one system a +dnl literal string is enough to provoke the problem, on another a "%n" was +dnl needed. There seems to be something weird going on with the optimizer +dnl or something, since on the first system adding a second check with +dnl "%n", or even just an initialized local variable, makes it work. In +dnl any case, without bothering to get to the bottom of this, the two +dnl program runs in the code below end up successfully detecting the +dnl problem. dnl dnl glibc 2.0.x returns either -1 or bufsize-1 for an overflow (both seen, dnl not sure which 2.0.x does which), but still puts the correct null @@ -1888,13 +1921,19 @@ else AC_CACHE_CHECK([whether vsnprintf works], gmp_cv_func_vsnprintf, - [AC_TRY_RUN([ + [gmp_cv_func_vsnprintf=yes + for i in 'check ("hello world");' 'int n; check ("%nhello world", &n);'; do + AC_TRY_RUN([ +#include /* for strcmp */ +#include /* for vsnprintf */ + #if HAVE_STDARG #include #else #include #endif +int #if HAVE_STDARG check (const char *fmt, ...) #else @@ -1922,18 +1961,21 @@ /* allowed return values */ if (ret != -1 && ret != 3 && ret != 11) exit (2); + + return 0; } int main () { - check ("hello world"); +$i exit (0); } ], - [gmp_cv_func_vsnprintf=yes], - [gmp_cv_func_vsnprintf=no], - [gmp_cv_func_vsnprintf=probably]) + [:], + [gmp_cv_func_vsnprintf=no; break], + [gmp_cv_func_vsnprintf=probably; break]) + done ]) if test "$gmp_cv_func_vsnprintf" = probably; then AC_MSG_WARN([cannot check for properly working vsnprintf when cross compiling, will assume it's ok]) diff -Naur gmp-4.0/aclocal.m4 gmp-4.0.1/aclocal.m4 --- gmp-4.0/aclocal.m4 Sat Dec 1 01:23:54 2001 +++ gmp-4.0.1/aclocal.m4 Tue Jan 22 01:19:11 2002 @@ -14,7 +14,7 @@ dnl GMP specific autoconf macros -dnl Copyright 2000, 2001 Free Software Foundation, Inc. +dnl Copyright 2000, 2001, 2002 Free Software Foundation, Inc. dnl dnl This file is part of the GNU MP Library. dnl @@ -352,25 +352,51 @@ dnl dnl This test is designed to be run repeatedly with different cc+cflags dnl selections, so the result is not cached. +dnl +dnl For a native build, meaning $cross_compiling == no, we require that the +dnl generated program will run. This is the same as AC_PROG_CC does in +dnl _AC_COMPILER_EXEEXT_WORKS, and checking here will ensure we don't pass +dnl a CC/CFLAGS combination that it rejects. +dnl +dnl sparc-*-solaris2.7 can compile ABI=64 but won't run it if the kernel +dnl was booted in 32-bit mode. The effect of requiring the compiler output +dnl will run is that a plain native "./configure" falls back on ABI=32, but +dnl ABI=64 is still available as a cross-compile. AC_DEFUN(GMP_PROG_CC_WORKS, [AC_MSG_CHECKING([compiler $1]) cat >conftest.c <= 0 ? n : 0); } + int main () { return 0; } EOF -gmp_compile="$1 conftest.c -o conftest >&AC_FD_CC" +gmp_prog_cc_works=no +gmp_compile="$1 conftest.c >&AC_FD_CC" if AC_TRY_EVAL(gmp_compile); then - rm -f conftest* - AC_MSG_RESULT(yes) + if test "$cross_compiling" = no; then + if AC_TRY_COMMAND([./a.out || ./a.exe || ./conftest]); then + gmp_prog_cc_works=yes + fi + else + gmp_prog_cc_works=yes + fi +fi +rm -f conftest* a.out a.exe +AC_MSG_RESULT($gmp_prog_cc_works) +if test $gmp_prog_cc_works = yes; then ifelse([$2],,:,[$2]) else - rm -f conftest* - AC_MSG_RESULT(no) ifelse([$3],,:,[$3]) fi ]) @@ -1884,8 +1910,15 @@ dnl ------------------ dnl Check whether vsnprintf exists, and works properly. dnl -dnl Sparc Solaris 2.7 in 64-bit mode doesn't truncate, so vsnprintf is just -dnl like vsprintf, which is completely useless. +dnl Sparc Solaris 2.7 in 64-bit mode doesn't always truncate, making +dnl vsnprintf like vsprintf, and hence completely useless. On one system a +dnl literal string is enough to provoke the problem, on another a "%n" was +dnl needed. There seems to be something weird going on with the optimizer +dnl or something, since on the first system adding a second check with +dnl "%n", or even just an initialized local variable, makes it work. In +dnl any case, without bothering to get to the bottom of this, the two +dnl program runs in the code below end up successfully detecting the +dnl problem. dnl dnl glibc 2.0.x returns either -1 or bufsize-1 for an overflow (both seen, dnl not sure which 2.0.x does which), but still puts the correct null @@ -1901,13 +1934,19 @@ else AC_CACHE_CHECK([whether vsnprintf works], gmp_cv_func_vsnprintf, - [AC_TRY_RUN([ + [gmp_cv_func_vsnprintf=yes + for i in 'check ("hello world");' 'int n; check ("%nhello world", &n);'; do + AC_TRY_RUN([ +#include /* for strcmp */ +#include /* for vsnprintf */ + #if HAVE_STDARG #include #else #include #endif +int #if HAVE_STDARG check (const char *fmt, ...) #else @@ -1935,18 +1974,21 @@ /* allowed return values */ if (ret != -1 && ret != 3 && ret != 11) exit (2); + + return 0; } int main () { - check ("hello world"); +$i exit (0); } ], - [gmp_cv_func_vsnprintf=yes], - [gmp_cv_func_vsnprintf=no], - [gmp_cv_func_vsnprintf=probably]) + [:], + [gmp_cv_func_vsnprintf=no; break], + [gmp_cv_func_vsnprintf=probably; break]) + done ]) if test "$gmp_cv_func_vsnprintf" = probably; then AC_MSG_WARN([cannot check for properly working vsnprintf when cross compiling, will assume it's ok]) diff -Naur gmp-4.0/configure gmp-4.0.1/configure --- gmp-4.0/configure Sat Dec 1 01:23:58 2001 +++ gmp-4.0.1/configure Tue Jan 22 01:19:16 2002 @@ -1532,7 +1532,7 @@ # Define the identity of the package. PACKAGE=gmp -VERSION=4.0 +VERSION=4.0.1 cat >>confdefs.h <&5 echo $ECHO_N "checking compiler $cc $cflags $cppflags... $ECHO_C" >&6 cat >conftest.c <= 0 ? n : 0); } + int main () { return 0; } EOF -gmp_compile="$cc $cflags $cppflags conftest.c -o conftest >&5" -if { (eval echo "$as_me:2605: \"$gmp_compile\"") >&5 +gmp_prog_cc_works=no +gmp_compile="$cc $cflags $cppflags conftest.c >&5" +if { (eval echo "$as_me:2614: \"$gmp_compile\"") >&5 (eval $gmp_compile) 2>&5 ac_status=$? - echo "$as_me:2608: \$? = $ac_status" >&5 + echo "$as_me:2617: \$? = $ac_status" >&5 (exit $ac_status); }; then - rm -f conftest* - echo "$as_me:2611: result: yes" >&5 -echo "${ECHO_T}yes" >&6 + if test "$cross_compiling" = no; then + if { ac_try='./a.out || ./a.exe || ./conftest' + { (eval echo "$as_me:2621: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:2624: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + gmp_prog_cc_works=yes + fi + else + gmp_prog_cc_works=yes + fi +fi +rm -f conftest* a.out a.exe +echo "$as_me:2633: result: $gmp_prog_cc_works" >&5 +echo "${ECHO_T}$gmp_prog_cc_works" >&6 +if test $gmp_prog_cc_works = yes; then : else - rm -f conftest* - echo "$as_me:2616: result: no" >&5 -echo "${ECHO_T}no" >&6 continue fi @@ -2625,7 +2645,7 @@ testlist_pass=yes for tst in $testlist; do case $tst in - hpc-hppa-2-0) echo "$as_me:2628: checking whether HP compiler $cc is good for 64-bits" >&5 + hpc-hppa-2-0) echo "$as_me:2648: checking whether HP compiler $cc is good for 64-bits" >&5 echo $ECHO_N "checking whether HP compiler $cc is good for 64-bits... $ECHO_C" >&6 # Bad compiler output: # ccom: HP92453-01 G.10.32.05 HP C Compiler @@ -2668,7 +2688,7 @@ gmp_hpc_64bit=$gmp_compare_ge fi -echo "$as_me:2671: result: $gmp_hpc_64bit" >&5 +echo "$as_me:2691: result: $gmp_hpc_64bit" >&5 echo "${ECHO_T}$gmp_hpc_64bit" >&6 if test $gmp_hpc_64bit = yes; then : @@ -2676,7 +2696,7 @@ testlist_pass=no fi ;; - gcc-arm-umodsi) echo "$as_me:2679: checking whether gcc unsigned division works" >&5 + gcc-arm-umodsi) echo "$as_me:2699: checking whether gcc unsigned division works" >&5 echo $ECHO_N "checking whether gcc unsigned division works... $ECHO_C" >&6 tmp_version=`($cc --version) 2>&5` echo "$cc --version '$tmp_version'" >&5 @@ -2691,7 +2711,7 @@ echo " subminor '$subminor'" >&5 if test -z "$major"; then - { echo "$as_me:2694: WARNING: unrecognised gcc version string: $tmp_version" >&5 + { echo "$as_me:2714: WARNING: unrecognised gcc version string: $tmp_version" >&5 echo "$as_me: WARNING: unrecognised gcc version string: $tmp_version" >&2;} gmp_compare_ge=error else @@ -2728,7 +2748,7 @@ testlist_pass=no gmp_gcc_arm_umodsi_result="no, gcc <= 2.95.3" ;; esac -echo "$as_me:2731: result: $gmp_gcc_arm_umodsi_result" >&5 +echo "$as_me:2751: result: $gmp_gcc_arm_umodsi_result" >&5 echo "${ECHO_T}$gmp_gcc_arm_umodsi_result" >&6 ;; esac @@ -2761,7 +2781,7 @@ # C on MS-DOS systems). # if test $found_compiler = no && test -n "$path"; then - { { echo "$as_me:2764: error: could not find a working compiler" >&5 + { { echo "$as_me:2784: error: could not find a working compiler" >&5 echo "$as_me: error: could not find a working compiler" >&2;} { (exit 1); exit 1; }; } fi @@ -2784,7 +2804,7 @@ case $flag in -march=pentiumpro) # tickles stack slot bugs on some gcc, exclude as necessary - echo "$as_me:2787: checking whether gcc -march=pentiumpro is good" >&5 + echo "$as_me:2807: checking whether gcc -march=pentiumpro is good" >&5 echo $ECHO_N "checking whether gcc -march=pentiumpro is good... $ECHO_C" >&6 if test "${gmp_cv_gcc_march_pentiumpro+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -2802,7 +2822,7 @@ echo " subminor '$subminor'" >&5 if test -z "$major"; then - { echo "$as_me:2805: WARNING: unrecognised gcc version string: $tmp_version" >&5 + { echo "$as_me:2825: WARNING: unrecognised gcc version string: $tmp_version" >&5 echo "$as_me: WARNING: unrecognised gcc version string: $tmp_version" >&2;} gmp_compare_ge=error else @@ -2836,7 +2856,7 @@ error|*) gmp_cv_gcc_march_pentiumpro=no ;; esac fi -echo "$as_me:2839: result: $gmp_cv_gcc_march_pentiumpro" >&5 +echo "$as_me:2859: result: $gmp_cv_gcc_march_pentiumpro" >&5 echo "${ECHO_T}$gmp_cv_gcc_march_pentiumpro" >&6 if test $gmp_cv_gcc_march_pentiumpro = yes; then : @@ -2861,17 +2881,17 @@ -no-cpp-precomp) # special check, avoiding a warning if test "$ccbase" = gcc; then - echo "$as_me:2864: checking compiler $cc $cflags -no-cpp-precomp" >&5 + echo "$as_me:2884: checking compiler $cc $cflags -no-cpp-precomp" >&5 echo $ECHO_N "checking compiler $cc $cflags -no-cpp-precomp... $ECHO_C" >&6 result=no cat >conftest.c <&5 + if { (eval echo "$as_me:2891: \"$gmp_compile\"") >&5 (eval $gmp_compile) 2>&5 ac_status=$? - echo "$as_me:2874: \$? = $ac_status" >&5 + echo "$as_me:2894: \$? = $ac_status" >&5 (exit $ac_status); }; then if grep "unrecognized option.*-no-cpp-precomp" conftest.out >/dev/null; then : ; else @@ -2880,7 +2900,7 @@ fi cat conftest.out >&5 rm -f conftest* a.out - echo "$as_me:2883: result: $result" >&5 + echo "$as_me:2903: result: $result" >&5 echo "${ECHO_T}$result" >&6 if test "$result" = yes; then cflags="$cflags $flag" @@ -2893,31 +2913,51 @@ ;; esac - echo "$as_me:2896: checking compiler $cc $cflags $cppflags $flag" >&5 + echo "$as_me:2916: checking compiler $cc $cflags $cppflags $flag" >&5 echo $ECHO_N "checking compiler $cc $cflags $cppflags $flag... $ECHO_C" >&6 cat >conftest.c <= 0 ? n : 0); } + int main () { return 0; } EOF -gmp_compile="$cc $cflags $cppflags $flag conftest.c -o conftest >&5" -if { (eval echo "$as_me:2907: \"$gmp_compile\"") >&5 +gmp_prog_cc_works=no +gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5" +if { (eval echo "$as_me:2936: \"$gmp_compile\"") >&5 (eval $gmp_compile) 2>&5 ac_status=$? - echo "$as_me:2910: \$? = $ac_status" >&5 + echo "$as_me:2939: \$? = $ac_status" >&5 (exit $ac_status); }; then - rm -f conftest* - echo "$as_me:2913: result: yes" >&5 -echo "${ECHO_T}yes" >&6 + if test "$cross_compiling" = no; then + if { ac_try='./a.out || ./a.exe || ./conftest' + { (eval echo "$as_me:2943: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:2946: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + gmp_prog_cc_works=yes + fi + else + gmp_prog_cc_works=yes + fi +fi +rm -f conftest* a.out a.exe +echo "$as_me:2955: result: $gmp_prog_cc_works" >&5 +echo "${ECHO_T}$gmp_prog_cc_works" >&6 +if test $gmp_prog_cc_works = yes; then cflags="$cflags $flag" break else - rm -f conftest* - echo "$as_me:2919: result: no" >&5 -echo "${ECHO_T}no" >&6 : fi @@ -3008,7 +3048,7 @@ if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 -echo "$as_me:3011: checking for $ac_word" >&5 +echo "$as_me:3051: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -3023,7 +3063,7 @@ test -z "$ac_dir" && ac_dir=. $as_executable_p "$ac_dir/$ac_word" || continue ac_cv_prog_CC="${ac_tool_prefix}gcc" -echo "$as_me:3026: found $ac_dir/$ac_word" >&5 +echo "$as_me:3066: found $ac_dir/$ac_word" >&5 break done @@ -3031,10 +3071,10 @@ fi CC=$ac_cv_prog_CC if test -n "$CC"; then - echo "$as_me:3034: result: $CC" >&5 + echo "$as_me:3074: result: $CC" >&5 echo "${ECHO_T}$CC" >&6 else - echo "$as_me:3037: result: no" >&5 + echo "$as_me:3077: result: no" >&5 echo "${ECHO_T}no" >&6 fi @@ -3043,7 +3083,7 @@ ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 -echo "$as_me:3046: checking for $ac_word" >&5 +echo "$as_me:3086: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -3058,7 +3098,7 @@ test -z "$ac_dir" && ac_dir=. $as_executable_p "$ac_dir/$ac_word" || continue ac_cv_prog_ac_ct_CC="gcc" -echo "$as_me:3061: found $ac_dir/$ac_word" >&5 +echo "$as_me:3101: found $ac_dir/$ac_word" >&5 break done @@ -3066,10 +3106,10 @@ fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then - echo "$as_me:3069: result: $ac_ct_CC" >&5 + echo "$as_me:3109: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6 else - echo "$as_me:3072: result: no" >&5 + echo "$as_me:3112: result: no" >&5 echo "${ECHO_T}no" >&6 fi @@ -3082,7 +3122,7 @@ if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 -echo "$as_me:3085: checking for $ac_word" >&5 +echo "$as_me:3125: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -3097,7 +3137,7 @@ test -z "$ac_dir" && ac_dir=. $as_executable_p "$ac_dir/$ac_word" || continue ac_cv_prog_CC="${ac_tool_prefix}cc" -echo "$as_me:3100: found $ac_dir/$ac_word" >&5 +echo "$as_me:3140: found $ac_dir/$ac_word" >&5 break done @@ -3105,10 +3145,10 @@ fi CC=$ac_cv_prog_CC if test -n "$CC"; then - echo "$as_me:3108: result: $CC" >&5 + echo "$as_me:3148: result: $CC" >&5 echo "${ECHO_T}$CC" >&6 else - echo "$as_me:3111: result: no" >&5 + echo "$as_me:3151: result: no" >&5 echo "${ECHO_T}no" >&6 fi @@ -3117,7 +3157,7 @@ ac_ct_CC=$CC # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 -echo "$as_me:3120: checking for $ac_word" >&5 +echo "$as_me:3160: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -3132,7 +3172,7 @@ test -z "$ac_dir" && ac_dir=. $as_executable_p "$ac_dir/$ac_word" || continue ac_cv_prog_ac_ct_CC="cc" -echo "$as_me:3135: found $ac_dir/$ac_word" >&5 +echo "$as_me:3175: found $ac_dir/$ac_word" >&5 break done @@ -3140,10 +3180,10 @@ fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then - echo "$as_me:3143: result: $ac_ct_CC" >&5 + echo "$as_me:3183: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6 else - echo "$as_me:3146: result: no" >&5 + echo "$as_me:3186: result: no" >&5 echo "${ECHO_T}no" >&6 fi @@ -3156,7 +3196,7 @@ if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 -echo "$as_me:3159: checking for $ac_word" >&5 +echo "$as_me:3199: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -3176,7 +3216,7 @@ continue fi ac_cv_prog_CC="cc" -echo "$as_me:3179: found $ac_dir/$ac_word" >&5 +echo "$as_me:3219: found $ac_dir/$ac_word" >&5 break done @@ -3198,10 +3238,10 @@ fi CC=$ac_cv_prog_CC if test -n "$CC"; then - echo "$as_me:3201: result: $CC" >&5 + echo "$as_me:3241: result: $CC" >&5 echo "${ECHO_T}$CC" >&6 else - echo "$as_me:3204: result: no" >&5 + echo "$as_me:3244: result: no" >&5 echo "${ECHO_T}no" >&6 fi @@ -3212,7 +3252,7 @@ do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -echo "$as_me:3215: checking for $ac_word" >&5 +echo "$as_me:3255: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -3227,7 +3267,7 @@ test -z "$ac_dir" && ac_dir=. $as_executable_p "$ac_dir/$ac_word" || continue ac_cv_prog_CC="$ac_tool_prefix$ac_prog" -echo "$as_me:3230: found $ac_dir/$ac_word" >&5 +echo "$as_me:3270: found $ac_dir/$ac_word" >&5 break done @@ -3235,10 +3275,10 @@ fi CC=$ac_cv_prog_CC if test -n "$CC"; then - echo "$as_me:3238: result: $CC" >&5 + echo "$as_me:3278: result: $CC" >&5 echo "${ECHO_T}$CC" >&6 else - echo "$as_me:3241: result: no" >&5 + echo "$as_me:3281: result: no" >&5 echo "${ECHO_T}no" >&6 fi @@ -3251,7 +3291,7 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -echo "$as_me:3254: checking for $ac_word" >&5 +echo "$as_me:3294: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -3266,7 +3306,7 @@ test -z "$ac_dir" && ac_dir=. $as_executable_p "$ac_dir/$ac_word" || continue ac_cv_prog_ac_ct_CC="$ac_prog" -echo "$as_me:3269: found $ac_dir/$ac_word" >&5 +echo "$as_me:3309: found $ac_dir/$ac_word" >&5 break done @@ -3274,10 +3314,10 @@ fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then - echo "$as_me:3277: result: $ac_ct_CC" >&5 + echo "$as_me:3317: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6 else - echo "$as_me:3280: result: no" >&5 + echo "$as_me:3320: result: no" >&5 echo "${ECHO_T}no" >&6 fi @@ -3289,32 +3329,32 @@ fi -test -z "$CC" && { { echo "$as_me:3292: error: no acceptable cc found in \$PATH" >&5 +test -z "$CC" && { { echo "$as_me:3332: error: no acceptable cc found in \$PATH" >&5 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} { (exit 1); exit 1; }; } # Provide some information about the compiler. -echo "$as_me:3297:" \ +echo "$as_me:3337:" \ "checking for C compiler version" >&5 ac_compiler=`set X $ac_compile; echo $2` -{ (eval echo "$as_me:3300: \"$ac_compiler --version &5\"") >&5 +{ (eval echo "$as_me:3340: \"$ac_compiler --version &5\"") >&5 (eval $ac_compiler --version &5) 2>&5 ac_status=$? - echo "$as_me:3303: \$? = $ac_status" >&5 + echo "$as_me:3343: \$? = $ac_status" >&5 (exit $ac_status); } -{ (eval echo "$as_me:3305: \"$ac_compiler -v &5\"") >&5 +{ (eval echo "$as_me:3345: \"$ac_compiler -v &5\"") >&5 (eval $ac_compiler -v &5) 2>&5 ac_status=$? - echo "$as_me:3308: \$? = $ac_status" >&5 + echo "$as_me:3348: \$? = $ac_status" >&5 (exit $ac_status); } -{ (eval echo "$as_me:3310: \"$ac_compiler -V &5\"") >&5 +{ (eval echo "$as_me:3350: \"$ac_compiler -V &5\"") >&5 (eval $ac_compiler -V &5) 2>&5 ac_status=$? - echo "$as_me:3313: \$? = $ac_status" >&5 + echo "$as_me:3353: \$? = $ac_status" >&5 (exit $ac_status); } cat >conftest.$ac_ext <<_ACEOF -#line 3317 "configure" +#line 3357 "configure" #include "confdefs.h" int @@ -3330,13 +3370,13 @@ # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. -echo "$as_me:3333: checking for C compiler default output" >&5 +echo "$as_me:3373: checking for C compiler default output" >&5 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` -if { (eval echo "$as_me:3336: \"$ac_link_default\"") >&5 +if { (eval echo "$as_me:3376: \"$ac_link_default\"") >&5 (eval $ac_link_default) 2>&5 ac_status=$? - echo "$as_me:3339: \$? = $ac_status" >&5 + echo "$as_me:3379: \$? = $ac_status" >&5 (exit $ac_status); }; then # Find the output, starting from the most likely. This scheme is # not robust to junk in `.', hence go to wildcards (a.*) only as a last @@ -3359,34 +3399,34 @@ else echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 -{ { echo "$as_me:3362: error: C compiler cannot create executables" >&5 +{ { echo "$as_me:3402: error: C compiler cannot create executables" >&5 echo "$as_me: error: C compiler cannot create executables" >&2;} { (exit 77); exit 77; }; } fi ac_exeext=$ac_cv_exeext -echo "$as_me:3368: result: $ac_file" >&5 +echo "$as_me:3408: result: $ac_file" >&5 echo "${ECHO_T}$ac_file" >&6 # Check the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. -echo "$as_me:3373: checking whether the C compiler works" >&5 +echo "$as_me:3413: checking whether the C compiler works" >&5 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 # If not cross compiling, check that we can run a simple program. if test "$cross_compiling" != yes; then if { ac_try='./$ac_file' - { (eval echo "$as_me:3379: \"$ac_try\"") >&5 + { (eval echo "$as_me:3419: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:3382: \$? = $ac_status" >&5 + echo "$as_me:3422: \$? = $ac_status" >&5 (exit $ac_status); }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else - { { echo "$as_me:3389: error: cannot run C compiled programs. + { { echo "$as_me:3429: error: cannot run C compiled programs. If you meant to cross compile, use \`--host'." >&5 echo "$as_me: error: cannot run C compiled programs. If you meant to cross compile, use \`--host'." >&2;} @@ -3394,24 +3434,24 @@ fi fi fi -echo "$as_me:3397: result: yes" >&5 +echo "$as_me:3437: result: yes" >&5 echo "${ECHO_T}yes" >&6 rm -f a.out a.exe conftest$ac_cv_exeext ac_clean_files=$ac_clean_files_save # Check the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. -echo "$as_me:3404: checking whether we are cross compiling" >&5 +echo "$as_me:3444: checking whether we are cross compiling" >&5 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 -echo "$as_me:3406: result: $cross_compiling" >&5 +echo "$as_me:3446: result: $cross_compiling" >&5 echo "${ECHO_T}$cross_compiling" >&6 -echo "$as_me:3409: checking for executable suffix" >&5 +echo "$as_me:3449: checking for executable suffix" >&5 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 -if { (eval echo "$as_me:3411: \"$ac_link\"") >&5 +if { (eval echo "$as_me:3451: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:3414: \$? = $ac_status" >&5 + echo "$as_me:3454: \$? = $ac_status" >&5 (exit $ac_status); }; then # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will @@ -3427,25 +3467,25 @@ esac done else - { { echo "$as_me:3430: error: cannot compute EXEEXT: cannot compile and link" >&5 + { { echo "$as_me:3470: error: cannot compute EXEEXT: cannot compile and link" >&5 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} { (exit 1); exit 1; }; } fi rm -f conftest$ac_cv_exeext -echo "$as_me:3436: result: $ac_cv_exeext" >&5 +echo "$as_me:3476: result: $ac_cv_exeext" >&5 echo "${ECHO_T}$ac_cv_exeext" >&6 rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT -echo "$as_me:3442: checking for object suffix" >&5 +echo "$as_me:3482: checking for object suffix" >&5 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 if test "${ac_cv_objext+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 3448 "configure" +#line 3488 "configure" #include "confdefs.h" int @@ -3457,10 +3497,10 @@ } _ACEOF rm -f conftest.o conftest.obj -if { (eval echo "$as_me:3460: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:3500: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:3463: \$? = $ac_status" >&5 + echo "$as_me:3503: \$? = $ac_status" >&5 (exit $ac_status); }; then for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do case $ac_file in @@ -3472,24 +3512,24 @@ else echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 -{ { echo "$as_me:3475: error: cannot compute OBJEXT: cannot compile" >&5 +{ { echo "$as_me:3515: error: cannot compute OBJEXT: cannot compile" >&5 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} { (exit 1); exit 1; }; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi -echo "$as_me:3482: result: $ac_cv_objext" >&5 +echo "$as_me:3522: result: $ac_cv_objext" >&5 echo "${ECHO_T}$ac_cv_objext" >&6 OBJEXT=$ac_cv_objext ac_objext=$OBJEXT -echo "$as_me:3486: checking whether we are using the GNU C compiler" >&5 +echo "$as_me:3526: checking whether we are using the GNU C compiler" >&5 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 if test "${ac_cv_c_compiler_gnu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 3492 "configure" +#line 3532 "configure" #include "confdefs.h" int @@ -3504,16 +3544,16 @@ } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:3507: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:3547: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:3510: \$? = $ac_status" >&5 + echo "$as_me:3550: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:3513: \"$ac_try\"") >&5 + { (eval echo "$as_me:3553: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:3516: \$? = $ac_status" >&5 + echo "$as_me:3556: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_compiler_gnu=yes else @@ -3525,19 +3565,19 @@ ac_cv_c_compiler_gnu=$ac_compiler_gnu fi -echo "$as_me:3528: result: $ac_cv_c_compiler_gnu" >&5 +echo "$as_me:3568: result: $ac_cv_c_compiler_gnu" >&5 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 GCC=`test $ac_compiler_gnu = yes && echo yes` ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS CFLAGS="-g" -echo "$as_me:3534: checking whether $CC accepts -g" >&5 +echo "$as_me:3574: checking whether $CC accepts -g" >&5 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 if test "${ac_cv_prog_cc_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 3540 "configure" +#line 3580 "configure" #include "confdefs.h" int @@ -3549,16 +3589,16 @@ } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:3552: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:3592: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:3555: \$? = $ac_status" >&5 + echo "$as_me:3595: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:3558: \"$ac_try\"") >&5 + { (eval echo "$as_me:3598: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:3561: \$? = $ac_status" >&5 + echo "$as_me:3601: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_prog_cc_g=yes else @@ -3568,7 +3608,7 @@ fi rm -f conftest.$ac_objext conftest.$ac_ext fi -echo "$as_me:3571: result: $ac_cv_prog_cc_g" >&5 +echo "$as_me:3611: result: $ac_cv_prog_cc_g" >&5 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS @@ -3595,16 +3635,16 @@ #endif _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:3598: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:3638: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:3601: \$? = $ac_status" >&5 + echo "$as_me:3641: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:3604: \"$ac_try\"") >&5 + { (eval echo "$as_me:3644: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:3607: \$? = $ac_status" >&5 + echo "$as_me:3647: \$? = $ac_status" >&5 (exit $ac_status); }; }; then for ac_declaration in \ ''\ @@ -3616,7 +3656,7 @@ 'void exit (int);' do cat >conftest.$ac_ext <<_ACEOF -#line 3619 "configure" +#line 3659 "configure" #include "confdefs.h" #include $ac_declaration @@ -3629,16 +3669,16 @@ } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:3632: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:3672: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:3635: \$? = $ac_status" >&5 + echo "$as_me:3675: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:3638: \"$ac_try\"") >&5 + { (eval echo "$as_me:3678: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:3641: \$? = $ac_status" >&5 + echo "$as_me:3681: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else @@ -3648,7 +3688,7 @@ fi rm -f conftest.$ac_objext conftest.$ac_ext cat >conftest.$ac_ext <<_ACEOF -#line 3651 "configure" +#line 3691 "configure" #include "confdefs.h" $ac_declaration int @@ -3660,16 +3700,16 @@ } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:3663: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:3703: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:3666: \$? = $ac_status" >&5 + echo "$as_me:3706: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:3669: \"$ac_try\"") >&5 + { (eval echo "$as_me:3709: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:3672: \$? = $ac_status" >&5 + echo "$as_me:3712: \$? = $ac_status" >&5 (exit $ac_status); }; }; then break else @@ -3704,7 +3744,7 @@ @echo done END # If we don't find an include directive, just comment out the code. -echo "$as_me:3707: checking for style of include used by $am_make" >&5 +echo "$as_me:3747: checking for style of include used by $am_make" >&5 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 am__include='#' am__quote= @@ -3731,13 +3771,13 @@ fi fi -echo "$as_me:3734: result: $_am_result" >&5 +echo "$as_me:3774: result: $_am_result" >&5 echo "${ECHO_T}$_am_result" >&6 rm -f confinc confmf depcc="$CC" am_compiler_list= -echo "$as_me:3740: checking dependency style of $depcc" >&5 +echo "$as_me:3780: checking dependency style of $depcc" >&5 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -3799,11 +3839,11 @@ fi fi -echo "$as_me:3802: result: $am_cv_CC_dependencies_compiler_type" >&5 +echo "$as_me:3842: result: $am_cv_CC_dependencies_compiler_type" >&5 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type" -echo "$as_me:3806: checking for $CC option to accept ANSI C" >&5 +echo "$as_me:3846: checking for $CC option to accept ANSI C" >&5 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 if test "${ac_cv_prog_cc_stdc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -3811,7 +3851,7 @@ ac_cv_prog_cc_stdc=no ac_save_CC=$CC cat >conftest.$ac_ext <<_ACEOF -#line 3814 "configure" +#line 3854 "configure" #include "confdefs.h" #include #include @@ -3860,16 +3900,16 @@ do CC="$ac_save_CC $ac_arg" rm -f conftest.$ac_objext -if { (eval echo "$as_me:3863: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:3903: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:3866: \$? = $ac_status" >&5 + echo "$as_me:3906: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:3869: \"$ac_try\"") >&5 + { (eval echo "$as_me:3909: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:3872: \$? = $ac_status" >&5 + echo "$as_me:3912: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_prog_cc_stdc=$ac_arg break @@ -3886,10 +3926,10 @@ case "x$ac_cv_prog_cc_stdc" in x|xno) - echo "$as_me:3889: result: none needed" >&5 + echo "$as_me:3929: result: none needed" >&5 echo "${ECHO_T}none needed" >&6 ;; *) - echo "$as_me:3892: result: $ac_cv_prog_cc_stdc" >&5 + echo "$as_me:3932: result: $ac_cv_prog_cc_stdc" >&5 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 CC="$CC $ac_cv_prog_cc_stdc" ;; esac @@ -3899,7 +3939,7 @@ 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 -echo "$as_me:3902: checking how to run the C preprocessor" >&5 +echo "$as_me:3942: checking how to run the C preprocessor" >&5 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then @@ -3920,18 +3960,18 @@ # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF -#line 3923 "configure" +#line 3963 "configure" #include "confdefs.h" #include Syntax error _ACEOF -if { (eval echo "$as_me:3928: \"$ac_cpp conftest.$ac_ext\"") >&5 +if { (eval echo "$as_me:3968: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? egrep -v '^ *\+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - echo "$as_me:3934: \$? = $ac_status" >&5 + echo "$as_me:3974: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag @@ -3954,17 +3994,17 @@ # OK, works on sane cases. Now check whether non-existent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF -#line 3957 "configure" +#line 3997 "configure" #include "confdefs.h" #include _ACEOF -if { (eval echo "$as_me:3961: \"$ac_cpp conftest.$ac_ext\"") >&5 +if { (eval echo "$as_me:4001: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? egrep -v '^ *\+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - echo "$as_me:3967: \$? = $ac_status" >&5 + echo "$as_me:4007: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag @@ -4001,7 +4041,7 @@ else ac_cv_prog_CPP=$CPP fi -echo "$as_me:4004: result: $CPP" >&5 +echo "$as_me:4044: result: $CPP" >&5 echo "${ECHO_T}$CPP" >&6 ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes @@ -4011,18 +4051,18 @@ # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF -#line 4014 "configure" +#line 4054 "configure" #include "confdefs.h" #include Syntax error _ACEOF -if { (eval echo "$as_me:4019: \"$ac_cpp conftest.$ac_ext\"") >&5 +if { (eval echo "$as_me:4059: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? egrep -v '^ *\+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - echo "$as_me:4025: \$? = $ac_status" >&5 + echo "$as_me:4065: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag @@ -4045,17 +4085,17 @@ # OK, works on sane cases. Now check whether non-existent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF -#line 4048 "configure" +#line 4088 "configure" #include "confdefs.h" #include _ACEOF -if { (eval echo "$as_me:4052: \"$ac_cpp conftest.$ac_ext\"") >&5 +if { (eval echo "$as_me:4092: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? egrep -v '^ *\+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - echo "$as_me:4058: \$? = $ac_status" >&5 + echo "$as_me:4098: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag @@ -4083,7 +4123,7 @@ if $ac_preproc_ok; then : else - { { echo "$as_me:4086: error: C preprocessor \"$CPP\" fails sanity check" >&5 + { { echo "$as_me:4126: error: C preprocessor \"$CPP\" fails sanity check" >&5 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} { (exit 1); exit 1; }; } fi @@ -4099,7 +4139,7 @@ ;; *) cat >conftest.$ac_ext <<_ACEOF -#line 4102 "configure" +#line 4142 "configure" #include "confdefs.h" #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */ #define __GMP_BITS_PER_MP_LIMB 123 /* dummy for mpf_get_prec etc inlines */ @@ -4119,22 +4159,22 @@ } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:4122: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:4162: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:4125: \$? = $ac_status" >&5 + echo "$as_me:4165: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:4128: \"$ac_try\"") >&5 + { (eval echo "$as_me:4168: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:4131: \$? = $ac_status" >&5 + echo "$as_me:4171: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 -{ echo "$as_me:4137: WARNING: gmp.h doesnt recognise compiler as ANSI, prototypes and \"const\" will be unavailable" >&5 +{ echo "$as_me:4177: WARNING: gmp.h doesnt recognise compiler as ANSI, prototypes and \"const\" will be unavailable" >&5 echo "$as_me: WARNING: gmp.h doesnt recognise compiler as ANSI, prototypes and \"const\" will be unavailable" >&2;} fi rm -f conftest.$ac_objext conftest.$ac_ext @@ -4155,7 +4195,7 @@ do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -echo "$as_me:4158: checking for $ac_word" >&5 +echo "$as_me:4198: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -4170,7 +4210,7 @@ test -z "$ac_dir" && ac_dir=. $as_executable_p "$ac_dir/$ac_word" || continue ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" -echo "$as_me:4173: found $ac_dir/$ac_word" >&5 +echo "$as_me:4213: found $ac_dir/$ac_word" >&5 break done @@ -4178,10 +4218,10 @@ fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then - echo "$as_me:4181: result: $CXX" >&5 + echo "$as_me:4221: result: $CXX" >&5 echo "${ECHO_T}$CXX" >&6 else - echo "$as_me:4184: result: no" >&5 + echo "$as_me:4224: result: no" >&5 echo "${ECHO_T}no" >&6 fi @@ -4194,7 +4234,7 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -echo "$as_me:4197: checking for $ac_word" >&5 +echo "$as_me:4237: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -4209,7 +4249,7 @@ test -z "$ac_dir" && ac_dir=. $as_executable_p "$ac_dir/$ac_word" || continue ac_cv_prog_ac_ct_CXX="$ac_prog" -echo "$as_me:4212: found $ac_dir/$ac_word" >&5 +echo "$as_me:4252: found $ac_dir/$ac_word" >&5 break done @@ -4217,10 +4257,10 @@ fi ac_ct_CXX=$ac_cv_prog_ac_ct_CXX if test -n "$ac_ct_CXX"; then - echo "$as_me:4220: result: $ac_ct_CXX" >&5 + echo "$as_me:4260: result: $ac_ct_CXX" >&5 echo "${ECHO_T}$ac_ct_CXX" >&6 else - echo "$as_me:4223: result: no" >&5 + echo "$as_me:4263: result: no" >&5 echo "${ECHO_T}no" >&6 fi @@ -4232,32 +4272,32 @@ fi # Provide some information about the compiler. -echo "$as_me:4235:" \ +echo "$as_me:4275:" \ "checking for C++ compiler version" >&5 ac_compiler=`set X $ac_compile; echo $2` -{ (eval echo "$as_me:4238: \"$ac_compiler --version &5\"") >&5 +{ (eval echo "$as_me:4278: \"$ac_compiler --version &5\"") >&5 (eval $ac_compiler --version &5) 2>&5 ac_status=$? - echo "$as_me:4241: \$? = $ac_status" >&5 + echo "$as_me:4281: \$? = $ac_status" >&5 (exit $ac_status); } -{ (eval echo "$as_me:4243: \"$ac_compiler -v &5\"") >&5 +{ (eval echo "$as_me:4283: \"$ac_compiler -v &5\"") >&5 (eval $ac_compiler -v &5) 2>&5 ac_status=$? - echo "$as_me:4246: \$? = $ac_status" >&5 + echo "$as_me:4286: \$? = $ac_status" >&5 (exit $ac_status); } -{ (eval echo "$as_me:4248: \"$ac_compiler -V &5\"") >&5 +{ (eval echo "$as_me:4288: \"$ac_compiler -V &5\"") >&5 (eval $ac_compiler -V &5) 2>&5 ac_status=$? - echo "$as_me:4251: \$? = $ac_status" >&5 + echo "$as_me:4291: \$? = $ac_status" >&5 (exit $ac_status); } -echo "$as_me:4254: checking whether we are using the GNU C++ compiler" >&5 +echo "$as_me:4294: checking whether we are using the GNU C++ compiler" >&5 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 4260 "configure" +#line 4300 "configure" #include "confdefs.h" int @@ -4272,16 +4312,16 @@ } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:4275: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:4315: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:4278: \$? = $ac_status" >&5 + echo "$as_me:4318: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:4281: \"$ac_try\"") >&5 + { (eval echo "$as_me:4321: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:4284: \$? = $ac_status" >&5 + echo "$as_me:4324: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_compiler_gnu=yes else @@ -4293,19 +4333,19 @@ ac_cv_cxx_compiler_gnu=$ac_compiler_gnu fi -echo "$as_me:4296: result: $ac_cv_cxx_compiler_gnu" >&5 +echo "$as_me:4336: result: $ac_cv_cxx_compiler_gnu" >&5 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 GXX=`test $ac_compiler_gnu = yes && echo yes` ac_test_CXXFLAGS=${CXXFLAGS+set} ac_save_CXXFLAGS=$CXXFLAGS CXXFLAGS="-g" -echo "$as_me:4302: checking whether $CXX accepts -g" >&5 +echo "$as_me:4342: checking whether $CXX accepts -g" >&5 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 if test "${ac_cv_prog_cxx_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 4308 "configure" +#line 4348 "configure" #include "confdefs.h" int @@ -4317,16 +4357,16 @@ } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:4320: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:4360: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:4323: \$? = $ac_status" >&5 + echo "$as_me:4363: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:4326: \"$ac_try\"") >&5 + { (eval echo "$as_me:4366: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:4329: \$? = $ac_status" >&5 + echo "$as_me:4369: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_prog_cxx_g=yes else @@ -4336,7 +4376,7 @@ fi rm -f conftest.$ac_objext conftest.$ac_ext fi -echo "$as_me:4339: result: $ac_cv_prog_cxx_g" >&5 +echo "$as_me:4379: result: $ac_cv_prog_cxx_g" >&5 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 if test "$ac_test_CXXFLAGS" = set; then CXXFLAGS=$ac_save_CXXFLAGS @@ -4363,7 +4403,7 @@ 'void exit (int);' do cat >conftest.$ac_ext <<_ACEOF -#line 4366 "configure" +#line 4406 "configure" #include "confdefs.h" #include $ac_declaration @@ -4376,16 +4416,16 @@ } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:4379: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:4419: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:4382: \$? = $ac_status" >&5 + echo "$as_me:4422: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:4385: \"$ac_try\"") >&5 + { (eval echo "$as_me:4425: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:4388: \$? = $ac_status" >&5 + echo "$as_me:4428: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else @@ -4395,7 +4435,7 @@ fi rm -f conftest.$ac_objext conftest.$ac_ext cat >conftest.$ac_ext <<_ACEOF -#line 4398 "configure" +#line 4438 "configure" #include "confdefs.h" $ac_declaration int @@ -4407,16 +4447,16 @@ } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:4410: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:4450: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:4413: \$? = $ac_status" >&5 + echo "$as_me:4453: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:4416: \"$ac_try\"") >&5 + { (eval echo "$as_me:4456: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:4419: \$? = $ac_status" >&5 + echo "$as_me:4459: \$? = $ac_status" >&5 (exit $ac_status); }; }; then break else @@ -4440,7 +4480,7 @@ depcc="$CXX" am_compiler_list= -echo "$as_me:4443: checking dependency style of $depcc" >&5 +echo "$as_me:4483: checking dependency style of $depcc" >&5 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -4502,7 +4542,7 @@ fi fi -echo "$as_me:4505: result: $am_cv_CXX_dependencies_compiler_type" >&5 +echo "$as_me:4545: result: $am_cv_CXX_dependencies_compiler_type" >&5 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 CXXDEPMODE="depmode=$am_cv_CXX_dependencies_compiler_type" @@ -4530,7 +4570,7 @@ # for cxxflags_choice in $cxxflags_list; do eval CXXFLAGS=\"\$cxxflags_$cxxflags_choice\" - echo "$as_me:4533: checking C++ compiler $CXX $CXXFLAGS" >&5 + echo "$as_me:4573: checking C++ compiler $CXX $CXXFLAGS" >&5 echo $ECHO_N "checking C++ compiler $CXX $CXXFLAGS... $ECHO_C" >&6 cat >conftest.cc < @@ -4545,19 +4585,19 @@ EOF gmp_cxxcompile="$CXX $CXXFLAGS conftest.cc -o conftest >&5" -if { (eval echo "$as_me:4548: \"$gmp_cxxcompile\"") >&5 +if { (eval echo "$as_me:4588: \"$gmp_cxxcompile\"") >&5 (eval $gmp_cxxcompile) 2>&5 ac_status=$? - echo "$as_me:4551: \$? = $ac_status" >&5 + echo "$as_me:4591: \$? = $ac_status" >&5 (exit $ac_status); }; then rm -f conftest* - echo "$as_me:4554: result: yes" >&5 + echo "$as_me:4594: result: yes" >&5 echo "${ECHO_T}yes" >&6 want_cxx=yes break else rm -f conftest* - echo "$as_me:4560: result: no" >&5 + echo "$as_me:4600: result: no" >&5 echo "${ECHO_T}no" >&6 : fi @@ -4566,7 +4606,7 @@ # If --enable-cxx=yes but a C++ compiler can't be found, then abort. if test $want_cxx = no && test $enable_cxx = yes; then - { { echo "$as_me:4569: error: C++ compiler not available" >&5 + { { echo "$as_me:4609: error: C++ compiler not available" >&5 echo "$as_me: error: C++ compiler not available" >&2;} { (exit 1); exit 1; }; } fi @@ -4591,7 +4631,7 @@ ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -echo "$as_me:4594: checking how to run the C++ preprocessor" >&5 +echo "$as_me:4634: checking how to run the C++ preprocessor" >&5 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 if test -z "$CXXCPP"; then if test "${ac_cv_prog_CXXCPP+set}" = set; then @@ -4608,18 +4648,18 @@ # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF -#line 4611 "configure" +#line 4651 "configure" #include "confdefs.h" #include Syntax error _ACEOF -if { (eval echo "$as_me:4616: \"$ac_cpp conftest.$ac_ext\"") >&5 +if { (eval echo "$as_me:4656: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? egrep -v '^ *\+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - echo "$as_me:4622: \$? = $ac_status" >&5 + echo "$as_me:4662: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_cxx_preproc_warn_flag @@ -4642,17 +4682,17 @@ # OK, works on sane cases. Now check whether non-existent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF -#line 4645 "configure" +#line 4685 "configure" #include "confdefs.h" #include _ACEOF -if { (eval echo "$as_me:4649: \"$ac_cpp conftest.$ac_ext\"") >&5 +if { (eval echo "$as_me:4689: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? egrep -v '^ *\+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - echo "$as_me:4655: \$? = $ac_status" >&5 + echo "$as_me:4695: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_cxx_preproc_warn_flag @@ -4689,7 +4729,7 @@ else ac_cv_prog_CXXCPP=$CXXCPP fi -echo "$as_me:4692: result: $CXXCPP" >&5 +echo "$as_me:4732: result: $CXXCPP" >&5 echo "${ECHO_T}$CXXCPP" >&6 ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes @@ -4699,18 +4739,18 @@ # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF -#line 4702 "configure" +#line 4742 "configure" #include "confdefs.h" #include Syntax error _ACEOF -if { (eval echo "$as_me:4707: \"$ac_cpp conftest.$ac_ext\"") >&5 +if { (eval echo "$as_me:4747: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? egrep -v '^ *\+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - echo "$as_me:4713: \$? = $ac_status" >&5 + echo "$as_me:4753: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_cxx_preproc_warn_flag @@ -4733,17 +4773,17 @@ # OK, works on sane cases. Now check whether non-existent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF -#line 4736 "configure" +#line 4776 "configure" #include "confdefs.h" #include _ACEOF -if { (eval echo "$as_me:4740: \"$ac_cpp conftest.$ac_ext\"") >&5 +if { (eval echo "$as_me:4780: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? egrep -v '^ *\+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - echo "$as_me:4746: \$? = $ac_status" >&5 + echo "$as_me:4786: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_cxx_preproc_warn_flag @@ -4771,7 +4811,7 @@ if $ac_preproc_ok; then : else - { { echo "$as_me:4774: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5 + { { echo "$as_me:4814: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;} { (exit 1); exit 1; }; } fi @@ -4808,7 +4848,7 @@ c90 | t90) cat >conftest.$ac_ext <<_ACEOF -#line 4811 "configure" +#line 4851 "configure" #include "confdefs.h" #ifdef _CRAYIEEE yes @@ -4833,7 +4873,7 @@ # Automake ansi2knr support. -echo "$as_me:4836: checking for ${CC-cc} option to accept ANSI C" >&5 +echo "$as_me:4876: checking for ${CC-cc} option to accept ANSI C" >&5 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6 if test "${am_cv_prog_cc_stdc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -4851,7 +4891,7 @@ do CC="$ac_save_CC $ac_arg" cat >conftest.$ac_ext <<_ACEOF -#line 4854 "configure" +#line 4894 "configure" #include "confdefs.h" #include #include @@ -4893,16 +4933,16 @@ } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:4896: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:4936: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:4899: \$? = $ac_status" >&5 + echo "$as_me:4939: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:4902: \"$ac_try\"") >&5 + { (eval echo "$as_me:4942: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:4905: \$? = $ac_status" >&5 + echo "$as_me:4945: \$? = $ac_status" >&5 (exit $ac_status); }; }; then am_cv_prog_cc_stdc="$ac_arg"; break else @@ -4916,10 +4956,10 @@ fi if test -z "$am_cv_prog_cc_stdc"; then - echo "$as_me:4919: result: none needed" >&5 + echo "$as_me:4959: result: none needed" >&5 echo "${ECHO_T}none needed" >&6 else - echo "$as_me:4922: result: $am_cv_prog_cc_stdc" >&5 + echo "$as_me:4962: result: $am_cv_prog_cc_stdc" >&5 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6 fi case "x$am_cv_prog_cc_stdc" in @@ -4927,10 +4967,10 @@ *) CC="$CC $am_cv_prog_cc_stdc" ;; esac -echo "$as_me:4930: checking for function prototypes" >&5 +echo "$as_me:4970: checking for function prototypes" >&5 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6 if test "$am_cv_prog_cc_stdc" != no; then - echo "$as_me:4933: result: yes" >&5 + echo "$as_me:4973: result: yes" >&5 echo "${ECHO_T}yes" >&6 cat >>confdefs.h <<\EOF @@ -4939,18 +4979,18 @@ U= ANSI2KNR= else - echo "$as_me:4942: result: no" >&5 + echo "$as_me:4982: result: no" >&5 echo "${ECHO_T}no" >&6 U=_ ANSI2KNR=./ansi2knr fi # Ensure some checks needed by ansi2knr itself. -echo "$as_me:4947: checking for ANSI C header files" >&5 +echo "$as_me:4987: checking for ANSI C header files" >&5 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 if test "${ac_cv_header_stdc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 4953 "configure" +#line 4993 "configure" #include "confdefs.h" #include #include @@ -4958,13 +4998,13 @@ #include _ACEOF -if { (eval echo "$as_me:4961: \"$ac_cpp conftest.$ac_ext\"") >&5 +if { (eval echo "$as_me:5001: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? egrep -v '^ *\+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - echo "$as_me:4967: \$? = $ac_status" >&5 + echo "$as_me:5007: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag @@ -4986,7 +5026,7 @@ if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF -#line 4989 "configure" +#line 5029 "configure" #include "confdefs.h" #include @@ -5004,7 +5044,7 @@ if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF -#line 5007 "configure" +#line 5047 "configure" #include "confdefs.h" #include @@ -5025,7 +5065,7 @@ : else cat >conftest.$ac_ext <<_ACEOF -#line 5028 "configure" +#line 5068 "configure" #include "confdefs.h" #include #if ((' ' & 0x0FF) == 0x020) @@ -5051,15 +5091,15 @@ } _ACEOF rm -f conftest$ac_exeext -if { (eval echo "$as_me:5054: \"$ac_link\"") >&5 +if { (eval echo "$as_me:5094: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:5057: \$? = $ac_status" >&5 + echo "$as_me:5097: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (eval echo "$as_me:5059: \"$ac_try\"") >&5 + { (eval echo "$as_me:5099: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:5062: \$? = $ac_status" >&5 + echo "$as_me:5102: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else @@ -5072,7 +5112,7 @@ fi fi fi -echo "$as_me:5075: result: $ac_cv_header_stdc" >&5 +echo "$as_me:5115: result: $ac_cv_header_stdc" >&5 echo "${ECHO_T}$ac_cv_header_stdc" >&6 if test $ac_cv_header_stdc = yes; then @@ -5085,23 +5125,23 @@ for ac_header in string.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -echo "$as_me:5088: checking for $ac_header" >&5 +echo "$as_me:5128: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 if eval "test \"\${$as_ac_Header+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 5094 "configure" +#line 5134 "configure" #include "confdefs.h" #include <$ac_header> _ACEOF -if { (eval echo "$as_me:5098: \"$ac_cpp conftest.$ac_ext\"") >&5 +if { (eval echo "$as_me:5138: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? egrep -v '^ *\+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - echo "$as_me:5104: \$? = $ac_status" >&5 + echo "$as_me:5144: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag @@ -5120,7 +5160,7 @@ fi rm -f conftest.err conftest.$ac_ext fi -echo "$as_me:5123: result: `eval echo '${'$as_ac_Header'}'`" >&5 +echo "$as_me:5163: result: `eval echo '${'$as_ac_Header'}'`" >&5 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <&5 +echo "$as_me:5177: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_AR+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -5149,7 +5189,7 @@ test -z "$ac_dir" && ac_dir=. $as_executable_p "$ac_dir/$ac_word" || continue ac_cv_prog_AR="${ac_tool_prefix}ar" -echo "$as_me:5152: found $ac_dir/$ac_word" >&5 +echo "$as_me:5192: found $ac_dir/$ac_word" >&5 break done @@ -5157,10 +5197,10 @@ fi AR=$ac_cv_prog_AR if test -n "$AR"; then - echo "$as_me:5160: result: $AR" >&5 + echo "$as_me:5200: result: $AR" >&5 echo "${ECHO_T}$AR" >&6 else - echo "$as_me:5163: result: no" >&5 + echo "$as_me:5203: result: no" >&5 echo "${ECHO_T}no" >&6 fi @@ -5169,7 +5209,7 @@ ac_ct_AR=$AR # Extract the first word of "ar", so it can be a program name with args. set dummy ar; ac_word=$2 -echo "$as_me:5172: checking for $ac_word" >&5 +echo "$as_me:5212: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -5184,7 +5224,7 @@ test -z "$ac_dir" && ac_dir=. $as_executable_p "$ac_dir/$ac_word" || continue ac_cv_prog_ac_ct_AR="ar" -echo "$as_me:5187: found $ac_dir/$ac_word" >&5 +echo "$as_me:5227: found $ac_dir/$ac_word" >&5 break done @@ -5193,10 +5233,10 @@ fi ac_ct_AR=$ac_cv_prog_ac_ct_AR if test -n "$ac_ct_AR"; then - echo "$as_me:5196: result: $ac_ct_AR" >&5 + echo "$as_me:5236: result: $ac_ct_AR" >&5 echo "${ECHO_T}$ac_ct_AR" >&6 else - echo "$as_me:5199: result: no" >&5 + echo "$as_me:5239: result: no" >&5 echo "${ECHO_T}no" >&6 fi @@ -5209,10 +5249,10 @@ eval arflags=\"\$ar${abi1}_flags\" test -n "$arflags" || eval arflags=\"\$ar${abi2}_flags\" if test -n "$arflags"; then - echo "$as_me:5212: checking for extra ar flags" >&5 + echo "$as_me:5252: checking for extra ar flags" >&5 echo $ECHO_N "checking for extra ar flags... $ECHO_C" >&6 AR="$AR $arflags" - echo "$as_me:5215: result: $arflags" >&5 + echo "$as_me:5255: result: $arflags" >&5 echo "${ECHO_T}$arflags" >&6 fi fi @@ -5221,7 +5261,7 @@ fi gmp_user_NM=$NM -echo "$as_me:5224: checking for BSD-compatible nm" >&5 +echo "$as_me:5264: checking for BSD-compatible nm" >&5 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 if test "${lt_cv_path_NM+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -5256,7 +5296,7 @@ test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm fi fi -echo "$as_me:5259: result: $lt_cv_path_NM" >&5 +echo "$as_me:5299: result: $lt_cv_path_NM" >&5 echo "${ECHO_T}$lt_cv_path_NM" >&6 NM="$lt_cv_path_NM" @@ -5264,10 +5304,10 @@ eval nmflags=\"\$nm${abi1}_flags\" test -n "$nmflags" || eval nmflags=\"\$nm${abi2}_flags\" if test -n "$nmflags"; then - echo "$as_me:5267: checking for extra nm flags" >&5 + echo "$as_me:5307: checking for extra nm flags" >&5 echo $ECHO_N "checking for extra nm flags... $ECHO_C" >&6 NM="$NM $nmflags" - echo "$as_me:5270: result: $nmflags" >&5 + echo "$as_me:5310: result: $nmflags" >&5 echo "${ECHO_T}$nmflags" >&6 fi fi @@ -5296,7 +5336,7 @@ enable_shared=no fi if test "$enable_shared" != no && test "$enable_static" != no; then - { { echo "$as_me:5299: error: cannot build both static and DLL, since gmp.h is different for each. + { { echo "$as_me:5339: error: cannot build both static and DLL, since gmp.h is different for each. Use \"--disable-static --enable-shared\" to build just a DLL." >&5 echo "$as_me: error: cannot build both static and DLL, since gmp.h is different for each. Use \"--disable-static --enable-shared\" to build just a DLL." >&2;} @@ -5345,7 +5385,7 @@ case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32*) -echo "$as_me:5348: checking for HOST_CC build system compiler" >&5 +echo "$as_me:5388: checking for HOST_CC build system compiler" >&5 echo $ECHO_N "checking for HOST_CC build system compiler... $ECHO_C" >&6 if test "${gmp_cv_prog_host_cc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -5370,7 +5410,7 @@ done rm -f conftest* if test -z "$gmp_cv_prog_host_cc"; then - { { echo "$as_me:5373: error: cannot find a build system compiler" >&5 + { { echo "$as_me:5413: error: cannot find a build system compiler" >&5 echo "$as_me: error: cannot find a build system compiler" >&2;} { (exit 1); exit 1; }; } fi @@ -5378,7 +5418,7 @@ fi fi -echo "$as_me:5381: result: $gmp_cv_prog_host_cc" >&5 +echo "$as_me:5421: result: $gmp_cv_prog_host_cc" >&5 echo "${ECHO_T}$gmp_cv_prog_host_cc" >&6 HOST_CC=$gmp_cv_prog_host_cc @@ -5484,7 +5524,7 @@ ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. - echo "$as_me:5487: checking for ld used by GCC" >&5 + echo "$as_me:5527: checking for ld used by GCC" >&5 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 case $host in *-*-mingw*) @@ -5514,10 +5554,10 @@ ;; esac elif test "$with_gnu_ld" = yes; then - echo "$as_me:5517: checking for GNU ld" >&5 + echo "$as_me:5557: checking for GNU ld" >&5 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 else - echo "$as_me:5520: checking for non-GNU ld" >&5 + echo "$as_me:5560: checking for non-GNU ld" >&5 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 fi if test "${lt_cv_path_LD+set}" = set; then @@ -5548,16 +5588,16 @@ LD="$lt_cv_path_LD" if test -n "$LD"; then - echo "$as_me:5551: result: $LD" >&5 + echo "$as_me:5591: result: $LD" >&5 echo "${ECHO_T}$LD" >&6 else - echo "$as_me:5554: result: no" >&5 + echo "$as_me:5594: result: no" >&5 echo "${ECHO_T}no" >&6 fi -test -z "$LD" && { { echo "$as_me:5557: error: no acceptable ld found in \$PATH" >&5 +test -z "$LD" && { { echo "$as_me:5597: error: no acceptable ld found in \$PATH" >&5 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} { (exit 1); exit 1; }; } -echo "$as_me:5560: checking if the linker ($LD) is GNU ld" >&5 +echo "$as_me:5600: checking if the linker ($LD) is GNU ld" >&5 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 if test "${lt_cv_prog_gnu_ld+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -5569,18 +5609,18 @@ lt_cv_prog_gnu_ld=no fi fi -echo "$as_me:5572: result: $lt_cv_prog_gnu_ld" >&5 +echo "$as_me:5612: result: $lt_cv_prog_gnu_ld" >&5 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 with_gnu_ld=$lt_cv_prog_gnu_ld -echo "$as_me:5576: checking for $LD option to reload object files" >&5 +echo "$as_me:5616: checking for $LD option to reload object files" >&5 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 if test "${lt_cv_ld_reload_flag+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_ld_reload_flag='-r' fi -echo "$as_me:5583: result: $lt_cv_ld_reload_flag" >&5 +echo "$as_me:5623: result: $lt_cv_ld_reload_flag" >&5 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 reload_flag=$lt_cv_ld_reload_flag case $reload_flag in @@ -5589,18 +5629,18 @@ esac reload_cmds='$LD$reload_flag -o $output$reload_objs' -echo "$as_me:5592: checking whether ln -s works" >&5 +echo "$as_me:5632: checking whether ln -s works" >&5 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 LN_S=$as_ln_s if test "$LN_S" = "ln -s"; then - echo "$as_me:5596: result: yes" >&5 + echo "$as_me:5636: result: yes" >&5 echo "${ECHO_T}yes" >&6 else - echo "$as_me:5599: result: no, using $LN_S" >&5 + echo "$as_me:5639: result: no, using $LN_S" >&5 echo "${ECHO_T}no, using $LN_S" >&6 fi -echo "$as_me:5603: checking how to recognise dependant libraries" >&5 +echo "$as_me:5643: checking how to recognise dependant libraries" >&5 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6 if test "${lt_cv_deplibs_check_method+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -5787,7 +5827,7 @@ esac fi -echo "$as_me:5790: result: $lt_cv_deplibs_check_method" >&5 +echo "$as_me:5830: result: $lt_cv_deplibs_check_method" >&5 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 file_magic_cmd=$lt_cv_file_magic_cmd deplibs_check_method=$lt_cv_deplibs_check_method @@ -5813,10 +5853,10 @@ ia64-*-hpux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext - if { (eval echo "$as_me:5816: \"$ac_compile\"") >&5 + if { (eval echo "$as_me:5856: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:5819: \$? = $ac_status" >&5 + echo "$as_me:5859: \$? = $ac_status" >&5 (exit $ac_status); }; then case `/usr/bin/file conftest.$ac_objext` in *ELF-32*) @@ -5831,11 +5871,11 @@ ;; *-*-irix6*) # Find out which ABI we are using. - echo '#line 5834 "configure"' > conftest.$ac_ext - if { (eval echo "$as_me:5835: \"$ac_compile\"") >&5 + echo '#line 5874 "configure"' > conftest.$ac_ext + if { (eval echo "$as_me:5875: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:5838: \$? = $ac_status" >&5 + echo "$as_me:5878: \$? = $ac_status" >&5 (exit $ac_status); }; then case `/usr/bin/file conftest.$ac_objext` in *32-bit*) @@ -5856,7 +5896,7 @@ # On SCO OpenServer 5, we need -belf to get full-featured binaries. SAVE_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -belf" - echo "$as_me:5859: checking whether the C compiler needs -belf" >&5 + echo "$as_me:5899: checking whether the C compiler needs -belf" >&5 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 if test "${lt_cv_cc_needs_belf+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -5868,7 +5908,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu cat >conftest.$ac_ext <<_ACEOF -#line 5871 "configure" +#line 5911 "configure" #include "confdefs.h" int @@ -5880,16 +5920,16 @@ } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:5883: \"$ac_link\"") >&5 +if { (eval echo "$as_me:5923: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:5886: \$? = $ac_status" >&5 + echo "$as_me:5926: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:5889: \"$ac_try\"") >&5 + { (eval echo "$as_me:5929: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:5892: \$? = $ac_status" >&5 + echo "$as_me:5932: \$? = $ac_status" >&5 (exit $ac_status); }; }; then lt_cv_cc_needs_belf=yes else @@ -5905,7 +5945,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi -echo "$as_me:5908: result: $lt_cv_cc_needs_belf" >&5 +echo "$as_me:5948: result: $lt_cv_cc_needs_belf" >&5 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 if test x"$lt_cv_cc_needs_belf" != x"yes"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf @@ -5916,7 +5956,7 @@ if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. set dummy ${ac_tool_prefix}dlltool; ac_word=$2 -echo "$as_me:5919: checking for $ac_word" >&5 +echo "$as_me:5959: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_DLLTOOL+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -5931,7 +5971,7 @@ test -z "$ac_dir" && ac_dir=. $as_executable_p "$ac_dir/$ac_word" || continue ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" -echo "$as_me:5934: found $ac_dir/$ac_word" >&5 +echo "$as_me:5974: found $ac_dir/$ac_word" >&5 break done @@ -5939,10 +5979,10 @@ fi DLLTOOL=$ac_cv_prog_DLLTOOL if test -n "$DLLTOOL"; then - echo "$as_me:5942: result: $DLLTOOL" >&5 + echo "$as_me:5982: result: $DLLTOOL" >&5 echo "${ECHO_T}$DLLTOOL" >&6 else - echo "$as_me:5945: result: no" >&5 + echo "$as_me:5985: result: no" >&5 echo "${ECHO_T}no" >&6 fi @@ -5951,7 +5991,7 @@ ac_ct_DLLTOOL=$DLLTOOL # Extract the first word of "dlltool", so it can be a program name with args. set dummy dlltool; ac_word=$2 -echo "$as_me:5954: checking for $ac_word" >&5 +echo "$as_me:5994: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -5966,7 +6006,7 @@ test -z "$ac_dir" && ac_dir=. $as_executable_p "$ac_dir/$ac_word" || continue ac_cv_prog_ac_ct_DLLTOOL="dlltool" -echo "$as_me:5969: found $ac_dir/$ac_word" >&5 +echo "$as_me:6009: found $ac_dir/$ac_word" >&5 break done @@ -5975,10 +6015,10 @@ fi ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL if test -n "$ac_ct_DLLTOOL"; then - echo "$as_me:5978: result: $ac_ct_DLLTOOL" >&5 + echo "$as_me:6018: result: $ac_ct_DLLTOOL" >&5 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6 else - echo "$as_me:5981: result: no" >&5 + echo "$as_me:6021: result: no" >&5 echo "${ECHO_T}no" >&6 fi @@ -5990,7 +6030,7 @@ if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. set dummy ${ac_tool_prefix}as; ac_word=$2 -echo "$as_me:5993: checking for $ac_word" >&5 +echo "$as_me:6033: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_AS+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -6005,7 +6045,7 @@ test -z "$ac_dir" && ac_dir=. $as_executable_p "$ac_dir/$ac_word" || continue ac_cv_prog_AS="${ac_tool_prefix}as" -echo "$as_me:6008: found $ac_dir/$ac_word" >&5 +echo "$as_me:6048: found $ac_dir/$ac_word" >&5 break done @@ -6013,10 +6053,10 @@ fi AS=$ac_cv_prog_AS if test -n "$AS"; then - echo "$as_me:6016: result: $AS" >&5 + echo "$as_me:6056: result: $AS" >&5 echo "${ECHO_T}$AS" >&6 else - echo "$as_me:6019: result: no" >&5 + echo "$as_me:6059: result: no" >&5 echo "${ECHO_T}no" >&6 fi @@ -6025,7 +6065,7 @@ ac_ct_AS=$AS # Extract the first word of "as", so it can be a program name with args. set dummy as; ac_word=$2 -echo "$as_me:6028: checking for $ac_word" >&5 +echo "$as_me:6068: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -6040,7 +6080,7 @@ test -z "$ac_dir" && ac_dir=. $as_executable_p "$ac_dir/$ac_word" || continue ac_cv_prog_ac_ct_AS="as" -echo "$as_me:6043: found $ac_dir/$ac_word" >&5 +echo "$as_me:6083: found $ac_dir/$ac_word" >&5 break done @@ -6049,10 +6089,10 @@ fi ac_ct_AS=$ac_cv_prog_ac_ct_AS if test -n "$ac_ct_AS"; then - echo "$as_me:6052: result: $ac_ct_AS" >&5 + echo "$as_me:6092: result: $ac_ct_AS" >&5 echo "${ECHO_T}$ac_ct_AS" >&6 else - echo "$as_me:6055: result: no" >&5 + echo "$as_me:6095: result: no" >&5 echo "${ECHO_T}no" >&6 fi @@ -6064,7 +6104,7 @@ if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. set dummy ${ac_tool_prefix}objdump; ac_word=$2 -echo "$as_me:6067: checking for $ac_word" >&5 +echo "$as_me:6107: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_OBJDUMP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -6079,7 +6119,7 @@ test -z "$ac_dir" && ac_dir=. $as_executable_p "$ac_dir/$ac_word" || continue ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" -echo "$as_me:6082: found $ac_dir/$ac_word" >&5 +echo "$as_me:6122: found $ac_dir/$ac_word" >&5 break done @@ -6087,10 +6127,10 @@ fi OBJDUMP=$ac_cv_prog_OBJDUMP if test -n "$OBJDUMP"; then - echo "$as_me:6090: result: $OBJDUMP" >&5 + echo "$as_me:6130: result: $OBJDUMP" >&5 echo "${ECHO_T}$OBJDUMP" >&6 else - echo "$as_me:6093: result: no" >&5 + echo "$as_me:6133: result: no" >&5 echo "${ECHO_T}no" >&6 fi @@ -6099,7 +6139,7 @@ ac_ct_OBJDUMP=$OBJDUMP # Extract the first word of "objdump", so it can be a program name with args. set dummy objdump; ac_word=$2 -echo "$as_me:6102: checking for $ac_word" >&5 +echo "$as_me:6142: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -6114,7 +6154,7 @@ test -z "$ac_dir" && ac_dir=. $as_executable_p "$ac_dir/$ac_word" || continue ac_cv_prog_ac_ct_OBJDUMP="objdump" -echo "$as_me:6117: found $ac_dir/$ac_word" >&5 +echo "$as_me:6157: found $ac_dir/$ac_word" >&5 break done @@ -6123,10 +6163,10 @@ fi ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP if test -n "$ac_ct_OBJDUMP"; then - echo "$as_me:6126: result: $ac_ct_OBJDUMP" >&5 + echo "$as_me:6166: result: $ac_ct_OBJDUMP" >&5 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6 else - echo "$as_me:6129: result: no" >&5 + echo "$as_me:6169: result: no" >&5 echo "${ECHO_T}no" >&6 fi @@ -6137,13 +6177,13 @@ # recent cygwin and mingw systems supply a stub DllMain which the user # can override, but on older systems we have to supply one - echo "$as_me:6140: checking if libtool should supply DllMain function" >&5 + echo "$as_me:6180: checking if libtool should supply DllMain function" >&5 echo $ECHO_N "checking if libtool should supply DllMain function... $ECHO_C" >&6 if test "${lt_cv_need_dllmain+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 6146 "configure" +#line 6186 "configure" #include "confdefs.h" int @@ -6156,16 +6196,16 @@ } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:6159: \"$ac_link\"") >&5 +if { (eval echo "$as_me:6199: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:6162: \$? = $ac_status" >&5 + echo "$as_me:6202: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:6165: \"$ac_try\"") >&5 + { (eval echo "$as_me:6205: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:6168: \$? = $ac_status" >&5 + echo "$as_me:6208: \$? = $ac_status" >&5 (exit $ac_status); }; }; then lt_cv_need_dllmain=no else @@ -6175,7 +6215,7 @@ fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext fi -echo "$as_me:6178: result: $lt_cv_need_dllmain" >&5 +echo "$as_me:6218: result: $lt_cv_need_dllmain" >&5 echo "${ECHO_T}$lt_cv_need_dllmain" >&6 case $host/$CC in @@ -6184,13 +6224,13 @@ # require "-mdll" SAVE_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -mdll" - echo "$as_me:6187: checking how to link DLLs" >&5 + echo "$as_me:6227: checking how to link DLLs" >&5 echo $ECHO_N "checking how to link DLLs... $ECHO_C" >&6 if test "${lt_cv_cc_dll_switch+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 6193 "configure" +#line 6233 "configure" #include "confdefs.h" int @@ -6202,16 +6242,16 @@ } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:6205: \"$ac_link\"") >&5 +if { (eval echo "$as_me:6245: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:6208: \$? = $ac_status" >&5 + echo "$as_me:6248: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:6211: \"$ac_try\"") >&5 + { (eval echo "$as_me:6251: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:6214: \$? = $ac_status" >&5 + echo "$as_me:6254: \$? = $ac_status" >&5 (exit $ac_status); }; }; then lt_cv_cc_dll_switch=-mdll else @@ -6221,7 +6261,7 @@ fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext fi -echo "$as_me:6224: result: $lt_cv_cc_dll_switch" >&5 +echo "$as_me:6264: result: $lt_cv_cc_dll_switch" >&5 echo "${ECHO_T}$lt_cv_cc_dll_switch" >&6 CFLAGS="$SAVE_CFLAGS" ;; *-*-cygwin* | *-*-pw32*) @@ -6238,23 +6278,23 @@ for ac_header in dlfcn.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -echo "$as_me:6241: checking for $ac_header" >&5 +echo "$as_me:6281: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 if eval "test \"\${$as_ac_Header+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 6247 "configure" +#line 6287 "configure" #include "confdefs.h" #include <$ac_header> _ACEOF -if { (eval echo "$as_me:6251: \"$ac_cpp conftest.$ac_ext\"") >&5 +if { (eval echo "$as_me:6291: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? egrep -v '^ *\+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - echo "$as_me:6257: \$? = $ac_status" >&5 + echo "$as_me:6297: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag @@ -6273,7 +6313,7 @@ fi rm -f conftest.err conftest.$ac_ext fi -echo "$as_me:6276: result: `eval echo '${'$as_ac_Header'}'`" >&5 +echo "$as_me:6316: result: `eval echo '${'$as_ac_Header'}'`" >&5 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <&5 +echo "$as_me:6329: checking the maximum length of command line arguments" >&5 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 if test "${lt_cv_sys_max_cmd_len+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -6335,15 +6375,15 @@ fi if test -n $lt_cv_sys_max_cmd_len ; then - echo "$as_me:6338: result: $lt_cv_sys_max_cmd_len" >&5 + echo "$as_me:6378: result: $lt_cv_sys_max_cmd_len" >&5 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 else - echo "$as_me:6341: result: none" >&5 + echo "$as_me:6381: result: none" >&5 echo "${ECHO_T}none" >&6 fi # Check for command to grab the raw symbol name followed by C symbol from nm. -echo "$as_me:6346: checking command to parse $NM output from $compiler object" >&5 +echo "$as_me:6386: checking command to parse $NM output from $compiler object" >&5 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -6428,17 +6468,17 @@ int main(){nm_test_var='a';nm_test_func();return(0);} EOF - if { (eval echo "$as_me:6431: \"$ac_compile\"") >&5 + if { (eval echo "$as_me:6471: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:6434: \$? = $ac_status" >&5 + echo "$as_me:6474: \$? = $ac_status" >&5 (exit $ac_status); }; then # Now try to grab the symbols. nlist=conftest.nm - if { (eval echo "$as_me:6438: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 + if { (eval echo "$as_me:6478: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 ac_status=$? - echo "$as_me:6441: \$? = $ac_status" >&5 + echo "$as_me:6481: \$? = $ac_status" >&5 (exit $ac_status); } && test -s "$nlist"; then # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then @@ -6490,10 +6530,10 @@ lt_save_CFLAGS="$CFLAGS" LIBS="conftstm.$ac_objext" CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" - if { (eval echo "$as_me:6493: \"$ac_link\"") >&5 + if { (eval echo "$as_me:6533: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:6496: \$? = $ac_status" >&5 + echo "$as_me:6536: \$? = $ac_status" >&5 (exit $ac_status); } && test -s conftest${ac_exeext}; then pipe_works=yes fi @@ -6528,14 +6568,14 @@ lt_cv_sys_global_symbol_to_cdecl= fi if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then - echo "$as_me:6531: result: failed" >&5 + echo "$as_me:6571: result: failed" >&5 echo "${ECHO_T}failed" >&6 else - echo "$as_me:6534: result: ok" >&5 + echo "$as_me:6574: result: ok" >&5 echo "${ECHO_T}ok" >&6 fi -echo "$as_me:6538: checking for objdir" >&5 +echo "$as_me:6578: checking for objdir" >&5 echo $ECHO_N "checking for objdir... $ECHO_C" >&6 if test "${lt_cv_objdir+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -6550,7 +6590,7 @@ fi rmdir .libs 2>/dev/null fi -echo "$as_me:6553: result: $lt_cv_objdir" >&5 +echo "$as_me:6593: result: $lt_cv_objdir" >&5 echo "${ECHO_T}$lt_cv_objdir" >&6 objdir=$lt_cv_objdir @@ -6598,7 +6638,7 @@ if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. set dummy ${ac_tool_prefix}ranlib; ac_word=$2 -echo "$as_me:6601: checking for $ac_word" >&5 +echo "$as_me:6641: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_RANLIB+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -6613,7 +6653,7 @@ test -z "$ac_dir" && ac_dir=. $as_executable_p "$ac_dir/$ac_word" || continue ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" -echo "$as_me:6616: found $ac_dir/$ac_word" >&5 +echo "$as_me:6656: found $ac_dir/$ac_word" >&5 break done @@ -6621,10 +6661,10 @@ fi RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then - echo "$as_me:6624: result: $RANLIB" >&5 + echo "$as_me:6664: result: $RANLIB" >&5 echo "${ECHO_T}$RANLIB" >&6 else - echo "$as_me:6627: result: no" >&5 + echo "$as_me:6667: result: no" >&5 echo "${ECHO_T}no" >&6 fi @@ -6633,7 +6673,7 @@ ac_ct_RANLIB=$RANLIB # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 -echo "$as_me:6636: checking for $ac_word" >&5 +echo "$as_me:6676: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -6648,7 +6688,7 @@ test -z "$ac_dir" && ac_dir=. $as_executable_p "$ac_dir/$ac_word" || continue ac_cv_prog_ac_ct_RANLIB="ranlib" -echo "$as_me:6651: found $ac_dir/$ac_word" >&5 +echo "$as_me:6691: found $ac_dir/$ac_word" >&5 break done @@ -6657,10 +6697,10 @@ fi ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB if test -n "$ac_ct_RANLIB"; then - echo "$as_me:6660: result: $ac_ct_RANLIB" >&5 + echo "$as_me:6700: result: $ac_ct_RANLIB" >&5 echo "${ECHO_T}$ac_ct_RANLIB" >&6 else - echo "$as_me:6663: result: no" >&5 + echo "$as_me:6703: result: no" >&5 echo "${ECHO_T}no" >&6 fi @@ -6672,7 +6712,7 @@ if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 -echo "$as_me:6675: checking for $ac_word" >&5 +echo "$as_me:6715: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_STRIP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -6687,7 +6727,7 @@ test -z "$ac_dir" && ac_dir=. $as_executable_p "$ac_dir/$ac_word" || continue ac_cv_prog_STRIP="${ac_tool_prefix}strip" -echo "$as_me:6690: found $ac_dir/$ac_word" >&5 +echo "$as_me:6730: found $ac_dir/$ac_word" >&5 break done @@ -6695,10 +6735,10 @@ fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then - echo "$as_me:6698: result: $STRIP" >&5 + echo "$as_me:6738: result: $STRIP" >&5 echo "${ECHO_T}$STRIP" >&6 else - echo "$as_me:6701: result: no" >&5 + echo "$as_me:6741: result: no" >&5 echo "${ECHO_T}no" >&6 fi @@ -6707,7 +6747,7 @@ ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 -echo "$as_me:6710: checking for $ac_word" >&5 +echo "$as_me:6750: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -6722,7 +6762,7 @@ test -z "$ac_dir" && ac_dir=. $as_executable_p "$ac_dir/$ac_word" || continue ac_cv_prog_ac_ct_STRIP="strip" -echo "$as_me:6725: found $ac_dir/$ac_word" >&5 +echo "$as_me:6765: found $ac_dir/$ac_word" >&5 break done @@ -6731,10 +6771,10 @@ fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then - echo "$as_me:6734: result: $ac_ct_STRIP" >&5 + echo "$as_me:6774: result: $ac_ct_STRIP" >&5 echo "${ECHO_T}$ac_ct_STRIP" >&6 else - echo "$as_me:6737: result: no" >&5 + echo "$as_me:6777: result: no" >&5 echo "${ECHO_T}no" >&6 fi @@ -6783,7 +6823,7 @@ case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then - echo "$as_me:6786: checking for ${ac_tool_prefix}file" >&5 + echo "$as_me:6826: checking for ${ac_tool_prefix}file" >&5 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -6836,16 +6876,16 @@ MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then - echo "$as_me:6839: result: $MAGIC_CMD" >&5 + echo "$as_me:6879: result: $MAGIC_CMD" >&5 echo "${ECHO_T}$MAGIC_CMD" >&6 else - echo "$as_me:6842: result: no" >&5 + echo "$as_me:6882: result: no" >&5 echo "${ECHO_T}no" >&6 fi if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then - echo "$as_me:6848: checking for file" >&5 + echo "$as_me:6888: checking for file" >&5 echo $ECHO_N "checking for file... $ECHO_C" >&6 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -6898,10 +6938,10 @@ MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then - echo "$as_me:6901: result: $MAGIC_CMD" >&5 + echo "$as_me:6941: result: $MAGIC_CMD" >&5 echo "${ECHO_T}$MAGIC_CMD" >&6 else - echo "$as_me:6904: result: no" >&5 + echo "$as_me:6944: result: no" >&5 echo "${ECHO_T}no" >&6 fi @@ -6974,11 +7014,11 @@ esac fi if test -n "$lt_prog_cc_shlib"; then - { echo "$as_me:6977: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 + { echo "$as_me:7017: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : else - { echo "$as_me:6981: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 + { echo "$as_me:7021: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} lt_cv_prog_cc_can_build_shared=no fi @@ -6987,7 +7027,7 @@ # # Check to make sure the static flag actually works. # -echo "$as_me:6990: checking if $compiler static flag $lt_prog_compiler_static works" >&5 +echo "$as_me:7030: checking if $compiler static flag $lt_prog_compiler_static works" >&5 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 if test "${lt_prog_compiler_static_works+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -7010,7 +7050,7 @@ LDFLAGS="$save_LDFLAGS" fi -echo "$as_me:7013: result: $lt_prog_compiler_static_works" >&5 +echo "$as_me:7053: result: $lt_prog_compiler_static_works" >&5 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 if test x"$lt_prog_compiler_static_works" = xyes; then @@ -7024,7 +7064,7 @@ if test "$GCC" = yes; then lt_prog_compiler_no_builtin_flag=' -fno-builtin' - echo "$as_me:7027: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 + echo "$as_me:7067: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -7049,7 +7089,7 @@ CFLAGS="$save_CFLAGS" fi -echo "$as_me:7052: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 +echo "$as_me:7092: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then @@ -7064,7 +7104,7 @@ lt_prog_compiler_pic= lt_prog_compiler_static= -echo "$as_me:7067: checking for $compiler option to produce PIC" >&5 +echo "$as_me:7107: checking for $compiler option to produce PIC" >&5 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 if test "$GCC" = yes; then @@ -7217,14 +7257,14 @@ esac fi -echo "$as_me:7220: result: $lt_prog_compiler_pic" >&5 +echo "$as_me:7260: result: $lt_prog_compiler_pic" >&5 echo "${ECHO_T}$lt_prog_compiler_pic" >&6 # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic"; then - echo "$as_me:7227: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 + echo "$as_me:7267: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 if test "${lt_prog_compiler_pic_works+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -7249,7 +7289,7 @@ CFLAGS="$save_CFLAGS" fi -echo "$as_me:7252: result: $lt_prog_compiler_pic_works" >&5 +echo "$as_me:7292: result: $lt_prog_compiler_pic_works" >&5 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 if test x"$lt_prog_compiler_pic_works" = xyes; then @@ -7273,7 +7313,7 @@ ;; esac -echo "$as_me:7276: checking if $compiler supports -c -o file.$ac_objext" >&5 +echo "$as_me:7316: checking if $compiler supports -c -o file.$ac_objext" >&5 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 if test "${lt_cv_prog_compiler_c_o+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -7314,13 +7354,13 @@ $rm conftest* fi -echo "$as_me:7317: result: $lt_cv_prog_compiler_c_o" >&5 +echo "$as_me:7357: result: $lt_cv_prog_compiler_c_o" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 hard_links="nottested" if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user - echo "$as_me:7323: checking if we can lock with hard links" >&5 + echo "$as_me:7363: checking if we can lock with hard links" >&5 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 hard_links=yes $rm conftest* @@ -7328,10 +7368,10 @@ touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no - echo "$as_me:7331: result: $hard_links" >&5 + echo "$as_me:7371: result: $hard_links" >&5 echo "${ECHO_T}$hard_links" >&6 if test "$hard_links" = no; then - { echo "$as_me:7334: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 + { echo "$as_me:7374: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} need_locks=warn fi @@ -7339,7 +7379,7 @@ need_locks=no fi -echo "$as_me:7342: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +echo "$as_me:7382: checking whether the $compiler linker ($LD) supports shared libraries" >&5 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 runpath_var= @@ -7689,7 +7729,7 @@ allow_undefined_flag='-berok' # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF -#line 7692 "configure" +#line 7732 "configure" #include "confdefs.h" int @@ -7701,16 +7741,16 @@ } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:7704: \"$ac_link\"") >&5 +if { (eval echo "$as_me:7744: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:7707: \$? = $ac_status" >&5 + echo "$as_me:7747: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:7710: \"$ac_try\"") >&5 + { (eval echo "$as_me:7750: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:7713: \$? = $ac_status" >&5 + echo "$as_me:7753: \$? = $ac_status" >&5 (exit $ac_status); }; }; then aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } @@ -7735,7 +7775,7 @@ else # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF -#line 7738 "configure" +#line 7778 "configure" #include "confdefs.h" int @@ -7747,16 +7787,16 @@ } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:7750: \"$ac_link\"") >&5 +if { (eval echo "$as_me:7790: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:7753: \$? = $ac_status" >&5 + echo "$as_me:7793: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:7756: \"$ac_try\"") >&5 + { (eval echo "$as_me:7796: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:7759: \$? = $ac_status" >&5 + echo "$as_me:7799: \$? = $ac_status" >&5 (exit $ac_status); }; }; then aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } @@ -8123,7 +8163,7 @@ esac fi -echo "$as_me:8126: result: $ld_shlibs" >&5 +echo "$as_me:8166: result: $ld_shlibs" >&5 echo "${ECHO_T}$ld_shlibs" >&6 test "$ld_shlibs" = no && can_build_shared=no @@ -8145,15 +8185,15 @@ # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. - echo "$as_me:8148: checking whether -lc should be explicitly linked in" >&5 + echo "$as_me:8188: checking whether -lc should be explicitly linked in" >&5 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 $rm conftest* echo 'static int dummy;' > conftest.$ac_ext - if { (eval echo "$as_me:8153: \"$ac_compile\"") >&5 + if { (eval echo "$as_me:8193: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:8156: \$? = $ac_status" >&5 + echo "$as_me:8196: \$? = $ac_status" >&5 (exit $ac_status); } 2>conftest.err; then soname=conftest lib=conftest @@ -8167,10 +8207,10 @@ libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag allow_undefined_flag= - if { (eval echo "$as_me:8170: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 + if { (eval echo "$as_me:8210: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? - echo "$as_me:8173: \$? = $ac_status" >&5 + echo "$as_me:8213: \$? = $ac_status" >&5 (exit $ac_status); } then archive_cmds_need_lc=no @@ -8182,13 +8222,13 @@ cat conftest.err 1>&5 fi $rm conftest* - echo "$as_me:8185: result: $archive_cmds_need_lc" >&5 + echo "$as_me:8225: result: $archive_cmds_need_lc" >&5 echo "${ECHO_T}$archive_cmds_need_lc" >&6 ;; esac fi -echo "$as_me:8191: checking how to hardcode library paths into programs" >&5 +echo "$as_me:8231: checking how to hardcode library paths into programs" >&5 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 hardcode_action= if test -n "$hardcode_libdir_flag_spec" || \ @@ -8212,7 +8252,7 @@ # directories. hardcode_action=unsupported fi -echo "$as_me:8215: result: $hardcode_action" >&5 +echo "$as_me:8255: result: $hardcode_action" >&5 echo "${ECHO_T}$hardcode_action" >&6 if test "$hardcode_action" = relink; then @@ -8226,19 +8266,19 @@ striplib= old_striplib= -echo "$as_me:8229: checking whether stripping libraries is possible" >&5 +echo "$as_me:8269: checking whether stripping libraries is possible" >&5 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" test -z "$striplib" && striplib="$STRIP --strip-unneeded" - echo "$as_me:8234: result: yes" >&5 + echo "$as_me:8274: result: yes" >&5 echo "${ECHO_T}yes" >&6 else - echo "$as_me:8237: result: no" >&5 + echo "$as_me:8277: result: no" >&5 echo "${ECHO_T}no" >&6 fi -echo "$as_me:8241: checking dynamic linker characteristics" >&5 +echo "$as_me:8281: checking dynamic linker characteristics" >&5 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 library_names_spec= libname_spec='lib$name' @@ -8677,7 +8717,7 @@ dynamic_linker=no ;; esac -echo "$as_me:8680: result: $dynamic_linker" >&5 +echo "$as_me:8720: result: $dynamic_linker" >&5 echo "${ECHO_T}$dynamic_linker" >&6 test "$dynamic_linker" = no && can_build_shared=no @@ -8702,13 +8742,13 @@ ;; *) - echo "$as_me:8705: checking for shl_load" >&5 + echo "$as_me:8745: checking for shl_load" >&5 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 if test "${ac_cv_func_shl_load+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 8711 "configure" +#line 8751 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char shl_load (); below. */ @@ -8739,16 +8779,16 @@ } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:8742: \"$ac_link\"") >&5 +if { (eval echo "$as_me:8782: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:8745: \$? = $ac_status" >&5 + echo "$as_me:8785: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:8748: \"$ac_try\"") >&5 + { (eval echo "$as_me:8788: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:8751: \$? = $ac_status" >&5 + echo "$as_me:8791: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_func_shl_load=yes else @@ -8758,12 +8798,12 @@ fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext fi -echo "$as_me:8761: result: $ac_cv_func_shl_load" >&5 +echo "$as_me:8801: result: $ac_cv_func_shl_load" >&5 echo "${ECHO_T}$ac_cv_func_shl_load" >&6 if test $ac_cv_func_shl_load = yes; then lt_cv_dlopen="shl_load" else - echo "$as_me:8766: checking for shl_load in -ldld" >&5 + echo "$as_me:8806: checking for shl_load in -ldld" >&5 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 if test "${ac_cv_lib_dld_shl_load+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -8771,7 +8811,7 @@ ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat >conftest.$ac_ext <<_ACEOF -#line 8774 "configure" +#line 8814 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ @@ -8790,16 +8830,16 @@ } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:8793: \"$ac_link\"") >&5 +if { (eval echo "$as_me:8833: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:8796: \$? = $ac_status" >&5 + echo "$as_me:8836: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:8799: \"$ac_try\"") >&5 + { (eval echo "$as_me:8839: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:8802: \$? = $ac_status" >&5 + echo "$as_me:8842: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_dld_shl_load=yes else @@ -8810,18 +8850,18 @@ rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -echo "$as_me:8813: result: $ac_cv_lib_dld_shl_load" >&5 +echo "$as_me:8853: result: $ac_cv_lib_dld_shl_load" >&5 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 if test $ac_cv_lib_dld_shl_load = yes; then lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" else - echo "$as_me:8818: checking for dlopen" >&5 + echo "$as_me:8858: checking for dlopen" >&5 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 if test "${ac_cv_func_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 8824 "configure" +#line 8864 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char dlopen (); below. */ @@ -8852,16 +8892,16 @@ } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:8855: \"$ac_link\"") >&5 +if { (eval echo "$as_me:8895: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:8858: \$? = $ac_status" >&5 + echo "$as_me:8898: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:8861: \"$ac_try\"") >&5 + { (eval echo "$as_me:8901: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:8864: \$? = $ac_status" >&5 + echo "$as_me:8904: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_func_dlopen=yes else @@ -8871,12 +8911,12 @@ fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext fi -echo "$as_me:8874: result: $ac_cv_func_dlopen" >&5 +echo "$as_me:8914: result: $ac_cv_func_dlopen" >&5 echo "${ECHO_T}$ac_cv_func_dlopen" >&6 if test $ac_cv_func_dlopen = yes; then lt_cv_dlopen="dlopen" else - echo "$as_me:8879: checking for dlopen in -ldl" >&5 + echo "$as_me:8919: checking for dlopen in -ldl" >&5 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 if test "${ac_cv_lib_dl_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -8884,7 +8924,7 @@ ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat >conftest.$ac_ext <<_ACEOF -#line 8887 "configure" +#line 8927 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ @@ -8903,16 +8943,16 @@ } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:8906: \"$ac_link\"") >&5 +if { (eval echo "$as_me:8946: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:8909: \$? = $ac_status" >&5 + echo "$as_me:8949: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:8912: \"$ac_try\"") >&5 + { (eval echo "$as_me:8952: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:8915: \$? = $ac_status" >&5 + echo "$as_me:8955: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_dl_dlopen=yes else @@ -8923,12 +8963,12 @@ rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -echo "$as_me:8926: result: $ac_cv_lib_dl_dlopen" >&5 +echo "$as_me:8966: result: $ac_cv_lib_dl_dlopen" >&5 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 if test $ac_cv_lib_dl_dlopen = yes; then lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" else - echo "$as_me:8931: checking for dlopen in -lsvld" >&5 + echo "$as_me:8971: checking for dlopen in -lsvld" >&5 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 if test "${ac_cv_lib_svld_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -8936,7 +8976,7 @@ ac_check_lib_save_LIBS=$LIBS LIBS="-lsvld $LIBS" cat >conftest.$ac_ext <<_ACEOF -#line 8939 "configure" +#line 8979 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ @@ -8955,16 +8995,16 @@ } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:8958: \"$ac_link\"") >&5 +if { (eval echo "$as_me:8998: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:8961: \$? = $ac_status" >&5 + echo "$as_me:9001: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:8964: \"$ac_try\"") >&5 + { (eval echo "$as_me:9004: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:8967: \$? = $ac_status" >&5 + echo "$as_me:9007: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_svld_dlopen=yes else @@ -8975,12 +9015,12 @@ rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -echo "$as_me:8978: result: $ac_cv_lib_svld_dlopen" >&5 +echo "$as_me:9018: result: $ac_cv_lib_svld_dlopen" >&5 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 if test $ac_cv_lib_svld_dlopen = yes; then lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" else - echo "$as_me:8983: checking for dld_link in -ldld" >&5 + echo "$as_me:9023: checking for dld_link in -ldld" >&5 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 if test "${ac_cv_lib_dld_dld_link+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -8988,7 +9028,7 @@ ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat >conftest.$ac_ext <<_ACEOF -#line 8991 "configure" +#line 9031 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ @@ -9007,16 +9047,16 @@ } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:9010: \"$ac_link\"") >&5 +if { (eval echo "$as_me:9050: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:9013: \$? = $ac_status" >&5 + echo "$as_me:9053: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:9016: \"$ac_try\"") >&5 + { (eval echo "$as_me:9056: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:9019: \$? = $ac_status" >&5 + echo "$as_me:9059: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_dld_dld_link=yes else @@ -9027,7 +9067,7 @@ rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -echo "$as_me:9030: result: $ac_cv_lib_dld_dld_link" >&5 +echo "$as_me:9070: result: $ac_cv_lib_dld_dld_link" >&5 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 if test $ac_cv_lib_dld_dld_link = yes; then lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" @@ -9063,7 +9103,7 @@ save_LIBS="$LIBS" LIBS="$lt_cv_dlopen_libs $LIBS" - echo "$as_me:9066: checking whether a program can dlopen itself" >&5 + echo "$as_me:9106: checking whether a program can dlopen itself" >&5 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 if test "${lt_cv_dlopen_self+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -9074,7 +9114,7 @@ lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <&5 + if { (eval echo "$as_me:9178: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:9141: \$? = $ac_status" >&5 + echo "$as_me:9181: \$? = $ac_status" >&5 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) 2>/dev/null lt_status=$? @@ -9155,12 +9195,12 @@ rm -fr conftest* fi -echo "$as_me:9158: result: $lt_cv_dlopen_self" >&5 +echo "$as_me:9198: result: $lt_cv_dlopen_self" >&5 echo "${ECHO_T}$lt_cv_dlopen_self" >&6 if test "x$lt_cv_dlopen_self" = xyes; then LDFLAGS="$LDFLAGS $link_static_flag" - echo "$as_me:9163: checking whether a statically linked program can dlopen itself" >&5 + echo "$as_me:9203: checking whether a statically linked program can dlopen itself" >&5 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 if test "${lt_cv_dlopen_self_static+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -9171,7 +9211,7 @@ lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <&5 + if { (eval echo "$as_me:9275: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:9238: \$? = $ac_status" >&5 + echo "$as_me:9278: \$? = $ac_status" >&5 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) 2>/dev/null lt_status=$? @@ -9252,7 +9292,7 @@ rm -fr conftest* fi -echo "$as_me:9255: result: $lt_cv_dlopen_self_static" >&5 +echo "$as_me:9295: result: $lt_cv_dlopen_self_static" >&5 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 fi @@ -9274,12 +9314,12 @@ fi # Report which librarie types wil actually be built -echo "$as_me:9277: checking if libtool supports shared libraries" >&5 +echo "$as_me:9317: checking if libtool supports shared libraries" >&5 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 -echo "$as_me:9279: result: $can_build_shared" >&5 +echo "$as_me:9319: result: $can_build_shared" >&5 echo "${ECHO_T}$can_build_shared" >&6 -echo "$as_me:9282: checking whether to build shared libraries" >&5 +echo "$as_me:9322: checking whether to build shared libraries" >&5 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 test "$can_build_shared" = "no" && enable_shared=no @@ -9300,14 +9340,14 @@ fi ;; esac -echo "$as_me:9303: result: $enable_shared" >&5 +echo "$as_me:9343: result: $enable_shared" >&5 echo "${ECHO_T}$enable_shared" >&6 -echo "$as_me:9306: checking whether to build static libraries" >&5 +echo "$as_me:9346: checking whether to build static libraries" >&5 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes -echo "$as_me:9310: result: $enable_static" >&5 +echo "$as_me:9350: result: $enable_static" >&5 echo "${ECHO_T}$enable_static" >&6 # The else clause should only fire when bootstrapping the @@ -9387,7 +9427,7 @@ cfgfile="${ofile}T" trap "$rm \"$cfgfile\"; exit 1" 1 2 15 $rm -f "$cfgfile" - { echo "$as_me:9390: creating $ofile" >&5 + { echo "$as_me:9430: creating $ofile" >&5 echo "$as_me: creating $ofile" >&6;} cat <<__EOF__ >> "$cfgfile" @@ -9945,17 +9985,17 @@ if test -f "$ltmain" && test -n "$tagnames"; then if test ! -f "${ofile}"; then - { echo "$as_me:9948: WARNING: output file \`$ofile' does not exist" >&5 + { echo "$as_me:9988: WARNING: output file \`$ofile' does not exist" >&5 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} fi if test -z "$LTCC"; then eval "`$SHELL ${ofile} --config | grep '^LTCC='`" if test -z "$LTCC"; then - { echo "$as_me:9955: WARNING: output file \`$ofile' does not look like a libtool script" >&5 + { echo "$as_me:9995: WARNING: output file \`$ofile' does not look like a libtool script" >&5 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} else - { echo "$as_me:9958: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 + { echo "$as_me:9998: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} fi fi @@ -9970,7 +10010,7 @@ # Check whether tagname contains only valid characters case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in "") ;; - *) { { echo "$as_me:9973: error: invalid tag name: $tagname" >&5 + *) { { echo "$as_me:10013: error: invalid tag name: $tagname" >&5 echo "$as_me: error: invalid tag name: $tagname" >&2;} { (exit 1); exit 1; }; } ;; @@ -9978,7 +10018,7 @@ if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null then - { { echo "$as_me:9981: error: tag name \"$tagname\" already exists" >&5 + { { echo "$as_me:10021: error: tag name \"$tagname\" already exists" >&5 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} { (exit 1); exit 1; }; } fi @@ -10105,7 +10145,7 @@ fi # PORTME: fill in a description of your system's C++ link characteristics -echo "$as_me:10108: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +echo "$as_me:10148: checking whether the $compiler linker ($LD) supports shared libraries" >&5 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 ld_shlibs_CXX=yes case $host_os in @@ -10196,7 +10236,7 @@ allow_undefined_flag_CXX='-berok' # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF -#line 10199 "configure" +#line 10239 "configure" #include "confdefs.h" int @@ -10208,16 +10248,16 @@ } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:10211: \"$ac_link\"") >&5 +if { (eval echo "$as_me:10251: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:10214: \$? = $ac_status" >&5 + echo "$as_me:10254: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:10217: \"$ac_try\"") >&5 + { (eval echo "$as_me:10257: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:10220: \$? = $ac_status" >&5 + echo "$as_me:10260: \$? = $ac_status" >&5 (exit $ac_status); }; }; then aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } @@ -10243,7 +10283,7 @@ else # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF -#line 10246 "configure" +#line 10286 "configure" #include "confdefs.h" int @@ -10255,16 +10295,16 @@ } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:10258: \"$ac_link\"") >&5 +if { (eval echo "$as_me:10298: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:10261: \$? = $ac_status" >&5 + echo "$as_me:10301: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:10264: \"$ac_try\"") >&5 + { (eval echo "$as_me:10304: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:10267: \$? = $ac_status" >&5 + echo "$as_me:10307: \$? = $ac_status" >&5 (exit $ac_status); }; }; then aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } @@ -10762,7 +10802,7 @@ ld_shlibs_CXX=no ;; esac -echo "$as_me:10765: result: $ld_shlibs_CXX" >&5 +echo "$as_me:10805: result: $ld_shlibs_CXX" >&5 echo "${ECHO_T}$ld_shlibs_CXX" >&6 test "$ld_shlibs_CXX" = no && can_build_shared=no @@ -10778,10 +10818,10 @@ }; EOF -if { (eval echo "$as_me:10781: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:10821: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:10784: \$? = $ac_status" >&5 + echo "$as_me:10824: \$? = $ac_status" >&5 (exit $ac_status); }; then # Parse the compiler output and extract the necessary # objects, libraries and library flags. @@ -10881,7 +10921,7 @@ lt_prog_compiler_pic_CXX= lt_prog_compiler_static_CXX= -echo "$as_me:10884: checking for $compiler option to produce PIC" >&5 +echo "$as_me:10924: checking for $compiler option to produce PIC" >&5 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 # C++ specific cases for pic, static, wl, etc. @@ -11117,14 +11157,14 @@ esac fi -echo "$as_me:11120: result: $lt_prog_compiler_pic_CXX" >&5 +echo "$as_me:11160: result: $lt_prog_compiler_pic_CXX" >&5 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic_CXX"; then - echo "$as_me:11127: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 + echo "$as_me:11167: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -11149,7 +11189,7 @@ CFLAGS="$save_CFLAGS" fi -echo "$as_me:11152: result: $lt_prog_compiler_pic_works_CXX" >&5 +echo "$as_me:11192: result: $lt_prog_compiler_pic_works_CXX" >&5 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then @@ -11173,7 +11213,7 @@ ;; esac -echo "$as_me:11176: checking if $compiler supports -c -o file.$ac_objext" >&5 +echo "$as_me:11216: checking if $compiler supports -c -o file.$ac_objext" >&5 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -11214,13 +11254,13 @@ $rm conftest* fi -echo "$as_me:11217: result: $lt_cv_prog_compiler_c_o_CXX" >&5 +echo "$as_me:11257: result: $lt_cv_prog_compiler_c_o_CXX" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 hard_links="nottested" if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user - echo "$as_me:11223: checking if we can lock with hard links" >&5 + echo "$as_me:11263: checking if we can lock with hard links" >&5 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 hard_links=yes $rm conftest* @@ -11228,10 +11268,10 @@ touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no - echo "$as_me:11231: result: $hard_links" >&5 + echo "$as_me:11271: result: $hard_links" >&5 echo "${ECHO_T}$hard_links" >&6 if test "$hard_links" = no; then - { echo "$as_me:11234: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 + { echo "$as_me:11274: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} need_locks=warn fi @@ -11239,7 +11279,7 @@ need_locks=no fi -echo "$as_me:11242: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +echo "$as_me:11282: checking whether the $compiler linker ($LD) supports shared libraries" >&5 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' @@ -11261,7 +11301,7 @@ ;; esac -echo "$as_me:11264: result: $ld_shlibs_CXX" >&5 +echo "$as_me:11304: result: $ld_shlibs_CXX" >&5 echo "${ECHO_T}$ld_shlibs_CXX" >&6 test "$ld_shlibs_CXX" = no && can_build_shared=no @@ -11283,15 +11323,15 @@ # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. - echo "$as_me:11286: checking whether -lc should be explicitly linked in" >&5 + echo "$as_me:11326: checking whether -lc should be explicitly linked in" >&5 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 $rm conftest* echo 'static int dummy;' > conftest.$ac_ext - if { (eval echo "$as_me:11291: \"$ac_compile\"") >&5 + if { (eval echo "$as_me:11331: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:11294: \$? = $ac_status" >&5 + echo "$as_me:11334: \$? = $ac_status" >&5 (exit $ac_status); } 2>conftest.err; then soname=conftest lib=conftest @@ -11305,10 +11345,10 @@ libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag_CXX allow_undefined_flag_CXX= - if { (eval echo "$as_me:11308: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 + if { (eval echo "$as_me:11348: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? - echo "$as_me:11311: \$? = $ac_status" >&5 + echo "$as_me:11351: \$? = $ac_status" >&5 (exit $ac_status); } then archive_cmds_need_lc_CXX=no @@ -11320,13 +11360,13 @@ cat conftest.err 1>&5 fi $rm conftest* - echo "$as_me:11323: result: $archive_cmds_need_lc_CXX" >&5 + echo "$as_me:11363: result: $archive_cmds_need_lc_CXX" >&5 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 ;; esac fi -echo "$as_me:11329: checking how to hardcode library paths into programs" >&5 +echo "$as_me:11369: checking how to hardcode library paths into programs" >&5 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 hardcode_action_CXX= if test -n "$hardcode_libdir_flag_spec_CXX" || \ @@ -11350,7 +11390,7 @@ # directories. hardcode_action_CXX=unsupported fi -echo "$as_me:11353: result: $hardcode_action_CXX" >&5 +echo "$as_me:11393: result: $hardcode_action_CXX" >&5 echo "${ECHO_T}$hardcode_action_CXX" >&6 if test "$hardcode_action_CXX" = relink; then @@ -11364,19 +11404,19 @@ striplib= old_striplib= -echo "$as_me:11367: checking whether stripping libraries is possible" >&5 +echo "$as_me:11407: checking whether stripping libraries is possible" >&5 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" test -z "$striplib" && striplib="$STRIP --strip-unneeded" - echo "$as_me:11372: result: yes" >&5 + echo "$as_me:11412: result: yes" >&5 echo "${ECHO_T}yes" >&6 else - echo "$as_me:11375: result: no" >&5 + echo "$as_me:11415: result: no" >&5 echo "${ECHO_T}no" >&6 fi -echo "$as_me:11379: checking dynamic linker characteristics" >&5 +echo "$as_me:11419: checking dynamic linker characteristics" >&5 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 library_names_spec= libname_spec='lib$name' @@ -11815,7 +11855,7 @@ dynamic_linker=no ;; esac -echo "$as_me:11818: result: $dynamic_linker" >&5 +echo "$as_me:11858: result: $dynamic_linker" >&5 echo "${ECHO_T}$dynamic_linker" >&6 test "$dynamic_linker" = no && can_build_shared=no @@ -11840,13 +11880,13 @@ ;; *) - echo "$as_me:11843: checking for shl_load" >&5 + echo "$as_me:11883: checking for shl_load" >&5 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 if test "${ac_cv_func_shl_load+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 11849 "configure" +#line 11889 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char shl_load (); below. */ @@ -11877,16 +11917,16 @@ } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:11880: \"$ac_link\"") >&5 +if { (eval echo "$as_me:11920: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:11883: \$? = $ac_status" >&5 + echo "$as_me:11923: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:11886: \"$ac_try\"") >&5 + { (eval echo "$as_me:11926: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:11889: \$? = $ac_status" >&5 + echo "$as_me:11929: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_func_shl_load=yes else @@ -11896,12 +11936,12 @@ fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext fi -echo "$as_me:11899: result: $ac_cv_func_shl_load" >&5 +echo "$as_me:11939: result: $ac_cv_func_shl_load" >&5 echo "${ECHO_T}$ac_cv_func_shl_load" >&6 if test $ac_cv_func_shl_load = yes; then lt_cv_dlopen="shl_load" else - echo "$as_me:11904: checking for shl_load in -ldld" >&5 + echo "$as_me:11944: checking for shl_load in -ldld" >&5 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 if test "${ac_cv_lib_dld_shl_load+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -11909,7 +11949,7 @@ ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat >conftest.$ac_ext <<_ACEOF -#line 11912 "configure" +#line 11952 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ @@ -11928,16 +11968,16 @@ } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:11931: \"$ac_link\"") >&5 +if { (eval echo "$as_me:11971: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:11934: \$? = $ac_status" >&5 + echo "$as_me:11974: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:11937: \"$ac_try\"") >&5 + { (eval echo "$as_me:11977: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:11940: \$? = $ac_status" >&5 + echo "$as_me:11980: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_dld_shl_load=yes else @@ -11948,18 +11988,18 @@ rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -echo "$as_me:11951: result: $ac_cv_lib_dld_shl_load" >&5 +echo "$as_me:11991: result: $ac_cv_lib_dld_shl_load" >&5 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 if test $ac_cv_lib_dld_shl_load = yes; then lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" else - echo "$as_me:11956: checking for dlopen" >&5 + echo "$as_me:11996: checking for dlopen" >&5 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 if test "${ac_cv_func_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 11962 "configure" +#line 12002 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char dlopen (); below. */ @@ -11990,16 +12030,16 @@ } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:11993: \"$ac_link\"") >&5 +if { (eval echo "$as_me:12033: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:11996: \$? = $ac_status" >&5 + echo "$as_me:12036: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:11999: \"$ac_try\"") >&5 + { (eval echo "$as_me:12039: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:12002: \$? = $ac_status" >&5 + echo "$as_me:12042: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_func_dlopen=yes else @@ -12009,12 +12049,12 @@ fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext fi -echo "$as_me:12012: result: $ac_cv_func_dlopen" >&5 +echo "$as_me:12052: result: $ac_cv_func_dlopen" >&5 echo "${ECHO_T}$ac_cv_func_dlopen" >&6 if test $ac_cv_func_dlopen = yes; then lt_cv_dlopen="dlopen" else - echo "$as_me:12017: checking for dlopen in -ldl" >&5 + echo "$as_me:12057: checking for dlopen in -ldl" >&5 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 if test "${ac_cv_lib_dl_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -12022,7 +12062,7 @@ ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat >conftest.$ac_ext <<_ACEOF -#line 12025 "configure" +#line 12065 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ @@ -12041,16 +12081,16 @@ } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:12044: \"$ac_link\"") >&5 +if { (eval echo "$as_me:12084: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:12047: \$? = $ac_status" >&5 + echo "$as_me:12087: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:12050: \"$ac_try\"") >&5 + { (eval echo "$as_me:12090: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:12053: \$? = $ac_status" >&5 + echo "$as_me:12093: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_dl_dlopen=yes else @@ -12061,12 +12101,12 @@ rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -echo "$as_me:12064: result: $ac_cv_lib_dl_dlopen" >&5 +echo "$as_me:12104: result: $ac_cv_lib_dl_dlopen" >&5 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 if test $ac_cv_lib_dl_dlopen = yes; then lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" else - echo "$as_me:12069: checking for dlopen in -lsvld" >&5 + echo "$as_me:12109: checking for dlopen in -lsvld" >&5 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 if test "${ac_cv_lib_svld_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -12074,7 +12114,7 @@ ac_check_lib_save_LIBS=$LIBS LIBS="-lsvld $LIBS" cat >conftest.$ac_ext <<_ACEOF -#line 12077 "configure" +#line 12117 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ @@ -12093,16 +12133,16 @@ } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:12096: \"$ac_link\"") >&5 +if { (eval echo "$as_me:12136: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:12099: \$? = $ac_status" >&5 + echo "$as_me:12139: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:12102: \"$ac_try\"") >&5 + { (eval echo "$as_me:12142: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:12105: \$? = $ac_status" >&5 + echo "$as_me:12145: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_svld_dlopen=yes else @@ -12113,12 +12153,12 @@ rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -echo "$as_me:12116: result: $ac_cv_lib_svld_dlopen" >&5 +echo "$as_me:12156: result: $ac_cv_lib_svld_dlopen" >&5 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 if test $ac_cv_lib_svld_dlopen = yes; then lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" else - echo "$as_me:12121: checking for dld_link in -ldld" >&5 + echo "$as_me:12161: checking for dld_link in -ldld" >&5 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 if test "${ac_cv_lib_dld_dld_link+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -12126,7 +12166,7 @@ ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat >conftest.$ac_ext <<_ACEOF -#line 12129 "configure" +#line 12169 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ @@ -12145,16 +12185,16 @@ } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:12148: \"$ac_link\"") >&5 +if { (eval echo "$as_me:12188: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:12151: \$? = $ac_status" >&5 + echo "$as_me:12191: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:12154: \"$ac_try\"") >&5 + { (eval echo "$as_me:12194: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:12157: \$? = $ac_status" >&5 + echo "$as_me:12197: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_dld_dld_link=yes else @@ -12165,7 +12205,7 @@ rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -echo "$as_me:12168: result: $ac_cv_lib_dld_dld_link" >&5 +echo "$as_me:12208: result: $ac_cv_lib_dld_dld_link" >&5 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 if test $ac_cv_lib_dld_dld_link = yes; then lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" @@ -12201,7 +12241,7 @@ save_LIBS="$LIBS" LIBS="$lt_cv_dlopen_libs $LIBS" - echo "$as_me:12204: checking whether a program can dlopen itself" >&5 + echo "$as_me:12244: checking whether a program can dlopen itself" >&5 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 if test "${lt_cv_dlopen_self+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -12212,7 +12252,7 @@ lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <&5 + if { (eval echo "$as_me:12316: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:12279: \$? = $ac_status" >&5 + echo "$as_me:12319: \$? = $ac_status" >&5 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) 2>/dev/null lt_status=$? @@ -12293,12 +12333,12 @@ rm -fr conftest* fi -echo "$as_me:12296: result: $lt_cv_dlopen_self" >&5 +echo "$as_me:12336: result: $lt_cv_dlopen_self" >&5 echo "${ECHO_T}$lt_cv_dlopen_self" >&6 if test "x$lt_cv_dlopen_self" = xyes; then LDFLAGS="$LDFLAGS $link_static_flag" - echo "$as_me:12301: checking whether a statically linked program can dlopen itself" >&5 + echo "$as_me:12341: checking whether a statically linked program can dlopen itself" >&5 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 if test "${lt_cv_dlopen_self_static+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -12309,7 +12349,7 @@ lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <&5 + if { (eval echo "$as_me:12413: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:12376: \$? = $ac_status" >&5 + echo "$as_me:12416: \$? = $ac_status" >&5 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) 2>/dev/null lt_status=$? @@ -12390,7 +12430,7 @@ rm -fr conftest* fi -echo "$as_me:12393: result: $lt_cv_dlopen_self_static" >&5 +echo "$as_me:12433: result: $lt_cv_dlopen_self_static" >&5 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 fi @@ -12823,7 +12863,7 @@ if test "$GCC" = yes; then lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' - echo "$as_me:12826: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 + echo "$as_me:12866: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -12848,7 +12888,7 @@ CFLAGS="$save_CFLAGS" fi -echo "$as_me:12851: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 +echo "$as_me:12891: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then @@ -12863,7 +12903,7 @@ lt_prog_compiler_pic_GCJ= lt_prog_compiler_static_GCJ= -echo "$as_me:12866: checking for $compiler option to produce PIC" >&5 +echo "$as_me:12906: checking for $compiler option to produce PIC" >&5 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 if test "$GCC" = yes; then @@ -13016,14 +13056,14 @@ esac fi -echo "$as_me:13019: result: $lt_prog_compiler_pic_GCJ" >&5 +echo "$as_me:13059: result: $lt_prog_compiler_pic_GCJ" >&5 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic_GCJ"; then - echo "$as_me:13026: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 + echo "$as_me:13066: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -13048,7 +13088,7 @@ CFLAGS="$save_CFLAGS" fi -echo "$as_me:13051: result: $lt_prog_compiler_pic_works_GCJ" >&5 +echo "$as_me:13091: result: $lt_prog_compiler_pic_works_GCJ" >&5 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then @@ -13072,7 +13112,7 @@ ;; esac -echo "$as_me:13075: checking if $compiler supports -c -o file.$ac_objext" >&5 +echo "$as_me:13115: checking if $compiler supports -c -o file.$ac_objext" >&5 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -13113,13 +13153,13 @@ $rm conftest* fi -echo "$as_me:13116: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 +echo "$as_me:13156: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 hard_links="nottested" if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user - echo "$as_me:13122: checking if we can lock with hard links" >&5 + echo "$as_me:13162: checking if we can lock with hard links" >&5 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 hard_links=yes $rm conftest* @@ -13127,10 +13167,10 @@ touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no - echo "$as_me:13130: result: $hard_links" >&5 + echo "$as_me:13170: result: $hard_links" >&5 echo "${ECHO_T}$hard_links" >&6 if test "$hard_links" = no; then - { echo "$as_me:13133: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 + { echo "$as_me:13173: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} need_locks=warn fi @@ -13138,7 +13178,7 @@ need_locks=no fi -echo "$as_me:13141: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +echo "$as_me:13181: checking whether the $compiler linker ($LD) supports shared libraries" >&5 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 runpath_var= @@ -13488,7 +13528,7 @@ allow_undefined_flag_GCJ='-berok' # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF -#line 13491 "configure" +#line 13531 "configure" #include "confdefs.h" int @@ -13500,16 +13540,16 @@ } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:13503: \"$ac_link\"") >&5 +if { (eval echo "$as_me:13543: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:13506: \$? = $ac_status" >&5 + echo "$as_me:13546: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:13509: \"$ac_try\"") >&5 + { (eval echo "$as_me:13549: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:13512: \$? = $ac_status" >&5 + echo "$as_me:13552: \$? = $ac_status" >&5 (exit $ac_status); }; }; then aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } @@ -13534,7 +13574,7 @@ else # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF -#line 13537 "configure" +#line 13577 "configure" #include "confdefs.h" int @@ -13546,16 +13586,16 @@ } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:13549: \"$ac_link\"") >&5 +if { (eval echo "$as_me:13589: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:13552: \$? = $ac_status" >&5 + echo "$as_me:13592: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:13555: \"$ac_try\"") >&5 + { (eval echo "$as_me:13595: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:13558: \$? = $ac_status" >&5 + echo "$as_me:13598: \$? = $ac_status" >&5 (exit $ac_status); }; }; then aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } @@ -13922,7 +13962,7 @@ esac fi -echo "$as_me:13925: result: $ld_shlibs_GCJ" >&5 +echo "$as_me:13965: result: $ld_shlibs_GCJ" >&5 echo "${ECHO_T}$ld_shlibs_GCJ" >&6 test "$ld_shlibs_GCJ" = no && can_build_shared=no @@ -13944,15 +13984,15 @@ # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. - echo "$as_me:13947: checking whether -lc should be explicitly linked in" >&5 + echo "$as_me:13987: checking whether -lc should be explicitly linked in" >&5 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 $rm conftest* echo 'static int dummy;' > conftest.$ac_ext - if { (eval echo "$as_me:13952: \"$ac_compile\"") >&5 + if { (eval echo "$as_me:13992: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:13955: \$? = $ac_status" >&5 + echo "$as_me:13995: \$? = $ac_status" >&5 (exit $ac_status); } 2>conftest.err; then soname=conftest lib=conftest @@ -13966,10 +14006,10 @@ libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ allow_undefined_flag_GCJ= - if { (eval echo "$as_me:13969: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 + if { (eval echo "$as_me:14009: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? - echo "$as_me:13972: \$? = $ac_status" >&5 + echo "$as_me:14012: \$? = $ac_status" >&5 (exit $ac_status); } then archive_cmds_need_lc_GCJ=no @@ -13981,13 +14021,13 @@ cat conftest.err 1>&5 fi $rm conftest* - echo "$as_me:13984: result: $archive_cmds_need_lc_GCJ" >&5 + echo "$as_me:14024: result: $archive_cmds_need_lc_GCJ" >&5 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 ;; esac fi -echo "$as_me:13990: checking how to hardcode library paths into programs" >&5 +echo "$as_me:14030: checking how to hardcode library paths into programs" >&5 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 hardcode_action_GCJ= if test -n "$hardcode_libdir_flag_spec_GCJ" || \ @@ -14011,7 +14051,7 @@ # directories. hardcode_action_GCJ=unsupported fi -echo "$as_me:14014: result: $hardcode_action_GCJ" >&5 +echo "$as_me:14054: result: $hardcode_action_GCJ" >&5 echo "${ECHO_T}$hardcode_action_GCJ" >&6 if test "$hardcode_action_GCJ" = relink; then @@ -14025,19 +14065,19 @@ striplib= old_striplib= -echo "$as_me:14028: checking whether stripping libraries is possible" >&5 +echo "$as_me:14068: checking whether stripping libraries is possible" >&5 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" test -z "$striplib" && striplib="$STRIP --strip-unneeded" - echo "$as_me:14033: result: yes" >&5 + echo "$as_me:14073: result: yes" >&5 echo "${ECHO_T}yes" >&6 else - echo "$as_me:14036: result: no" >&5 + echo "$as_me:14076: result: no" >&5 echo "${ECHO_T}no" >&6 fi -echo "$as_me:14040: checking dynamic linker characteristics" >&5 +echo "$as_me:14080: checking dynamic linker characteristics" >&5 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 library_names_spec= libname_spec='lib$name' @@ -14476,7 +14516,7 @@ dynamic_linker=no ;; esac -echo "$as_me:14479: result: $dynamic_linker" >&5 +echo "$as_me:14519: result: $dynamic_linker" >&5 echo "${ECHO_T}$dynamic_linker" >&6 test "$dynamic_linker" = no && can_build_shared=no @@ -14501,13 +14541,13 @@ ;; *) - echo "$as_me:14504: checking for shl_load" >&5 + echo "$as_me:14544: checking for shl_load" >&5 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 if test "${ac_cv_func_shl_load+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 14510 "configure" +#line 14550 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char shl_load (); below. */ @@ -14538,16 +14578,16 @@ } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:14541: \"$ac_link\"") >&5 +if { (eval echo "$as_me:14581: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:14544: \$? = $ac_status" >&5 + echo "$as_me:14584: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:14547: \"$ac_try\"") >&5 + { (eval echo "$as_me:14587: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:14550: \$? = $ac_status" >&5 + echo "$as_me:14590: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_func_shl_load=yes else @@ -14557,12 +14597,12 @@ fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext fi -echo "$as_me:14560: result: $ac_cv_func_shl_load" >&5 +echo "$as_me:14600: result: $ac_cv_func_shl_load" >&5 echo "${ECHO_T}$ac_cv_func_shl_load" >&6 if test $ac_cv_func_shl_load = yes; then lt_cv_dlopen="shl_load" else - echo "$as_me:14565: checking for shl_load in -ldld" >&5 + echo "$as_me:14605: checking for shl_load in -ldld" >&5 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 if test "${ac_cv_lib_dld_shl_load+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -14570,7 +14610,7 @@ ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat >conftest.$ac_ext <<_ACEOF -#line 14573 "configure" +#line 14613 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ @@ -14589,16 +14629,16 @@ } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:14592: \"$ac_link\"") >&5 +if { (eval echo "$as_me:14632: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:14595: \$? = $ac_status" >&5 + echo "$as_me:14635: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:14598: \"$ac_try\"") >&5 + { (eval echo "$as_me:14638: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:14601: \$? = $ac_status" >&5 + echo "$as_me:14641: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_dld_shl_load=yes else @@ -14609,18 +14649,18 @@ rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -echo "$as_me:14612: result: $ac_cv_lib_dld_shl_load" >&5 +echo "$as_me:14652: result: $ac_cv_lib_dld_shl_load" >&5 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 if test $ac_cv_lib_dld_shl_load = yes; then lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" else - echo "$as_me:14617: checking for dlopen" >&5 + echo "$as_me:14657: checking for dlopen" >&5 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 if test "${ac_cv_func_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 14623 "configure" +#line 14663 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char dlopen (); below. */ @@ -14651,16 +14691,16 @@ } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:14654: \"$ac_link\"") >&5 +if { (eval echo "$as_me:14694: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:14657: \$? = $ac_status" >&5 + echo "$as_me:14697: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:14660: \"$ac_try\"") >&5 + { (eval echo "$as_me:14700: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:14663: \$? = $ac_status" >&5 + echo "$as_me:14703: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_func_dlopen=yes else @@ -14670,12 +14710,12 @@ fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext fi -echo "$as_me:14673: result: $ac_cv_func_dlopen" >&5 +echo "$as_me:14713: result: $ac_cv_func_dlopen" >&5 echo "${ECHO_T}$ac_cv_func_dlopen" >&6 if test $ac_cv_func_dlopen = yes; then lt_cv_dlopen="dlopen" else - echo "$as_me:14678: checking for dlopen in -ldl" >&5 + echo "$as_me:14718: checking for dlopen in -ldl" >&5 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 if test "${ac_cv_lib_dl_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -14683,7 +14723,7 @@ ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat >conftest.$ac_ext <<_ACEOF -#line 14686 "configure" +#line 14726 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ @@ -14702,16 +14742,16 @@ } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:14705: \"$ac_link\"") >&5 +if { (eval echo "$as_me:14745: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:14708: \$? = $ac_status" >&5 + echo "$as_me:14748: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:14711: \"$ac_try\"") >&5 + { (eval echo "$as_me:14751: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:14714: \$? = $ac_status" >&5 + echo "$as_me:14754: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_dl_dlopen=yes else @@ -14722,12 +14762,12 @@ rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -echo "$as_me:14725: result: $ac_cv_lib_dl_dlopen" >&5 +echo "$as_me:14765: result: $ac_cv_lib_dl_dlopen" >&5 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 if test $ac_cv_lib_dl_dlopen = yes; then lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" else - echo "$as_me:14730: checking for dlopen in -lsvld" >&5 + echo "$as_me:14770: checking for dlopen in -lsvld" >&5 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 if test "${ac_cv_lib_svld_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -14735,7 +14775,7 @@ ac_check_lib_save_LIBS=$LIBS LIBS="-lsvld $LIBS" cat >conftest.$ac_ext <<_ACEOF -#line 14738 "configure" +#line 14778 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ @@ -14754,16 +14794,16 @@ } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:14757: \"$ac_link\"") >&5 +if { (eval echo "$as_me:14797: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:14760: \$? = $ac_status" >&5 + echo "$as_me:14800: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:14763: \"$ac_try\"") >&5 + { (eval echo "$as_me:14803: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:14766: \$? = $ac_status" >&5 + echo "$as_me:14806: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_svld_dlopen=yes else @@ -14774,12 +14814,12 @@ rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -echo "$as_me:14777: result: $ac_cv_lib_svld_dlopen" >&5 +echo "$as_me:14817: result: $ac_cv_lib_svld_dlopen" >&5 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 if test $ac_cv_lib_svld_dlopen = yes; then lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" else - echo "$as_me:14782: checking for dld_link in -ldld" >&5 + echo "$as_me:14822: checking for dld_link in -ldld" >&5 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 if test "${ac_cv_lib_dld_dld_link+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -14787,7 +14827,7 @@ ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat >conftest.$ac_ext <<_ACEOF -#line 14790 "configure" +#line 14830 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ @@ -14806,16 +14846,16 @@ } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:14809: \"$ac_link\"") >&5 +if { (eval echo "$as_me:14849: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:14812: \$? = $ac_status" >&5 + echo "$as_me:14852: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:14815: \"$ac_try\"") >&5 + { (eval echo "$as_me:14855: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:14818: \$? = $ac_status" >&5 + echo "$as_me:14858: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_dld_dld_link=yes else @@ -14826,7 +14866,7 @@ rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -echo "$as_me:14829: result: $ac_cv_lib_dld_dld_link" >&5 +echo "$as_me:14869: result: $ac_cv_lib_dld_dld_link" >&5 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 if test $ac_cv_lib_dld_dld_link = yes; then lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" @@ -14862,7 +14902,7 @@ save_LIBS="$LIBS" LIBS="$lt_cv_dlopen_libs $LIBS" - echo "$as_me:14865: checking whether a program can dlopen itself" >&5 + echo "$as_me:14905: checking whether a program can dlopen itself" >&5 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 if test "${lt_cv_dlopen_self+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -14873,7 +14913,7 @@ lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <&5 + if { (eval echo "$as_me:14977: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:14940: \$? = $ac_status" >&5 + echo "$as_me:14980: \$? = $ac_status" >&5 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) 2>/dev/null lt_status=$? @@ -14954,12 +14994,12 @@ rm -fr conftest* fi -echo "$as_me:14957: result: $lt_cv_dlopen_self" >&5 +echo "$as_me:14997: result: $lt_cv_dlopen_self" >&5 echo "${ECHO_T}$lt_cv_dlopen_self" >&6 if test "x$lt_cv_dlopen_self" = xyes; then LDFLAGS="$LDFLAGS $link_static_flag" - echo "$as_me:14962: checking whether a statically linked program can dlopen itself" >&5 + echo "$as_me:15002: checking whether a statically linked program can dlopen itself" >&5 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 if test "${lt_cv_dlopen_self_static+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -14970,7 +15010,7 @@ lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <&5 + if { (eval echo "$as_me:15074: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:15037: \$? = $ac_status" >&5 + echo "$as_me:15077: \$? = $ac_status" >&5 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) 2>/dev/null lt_status=$? @@ -15051,7 +15091,7 @@ rm -fr conftest* fi -echo "$as_me:15054: result: $lt_cv_dlopen_self_static" >&5 +echo "$as_me:15094: result: $lt_cv_dlopen_self_static" >&5 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 fi @@ -15851,7 +15891,7 @@ ;; *) - { { echo "$as_me:15854: error: Unsupported tag name: $tagname" >&5 + { { echo "$as_me:15894: error: Unsupported tag name: $tagname" >&5 echo "$as_me: error: Unsupported tag name: $tagname" >&2;} { (exit 1); exit 1; }; } ;; @@ -15869,7 +15909,7 @@ chmod +x "$ofile" else rm -f "${ofile}T" - { { echo "$as_me:15872: error: unable to update list of available tagged configurations." >&5 + { { echo "$as_me:15912: error: unable to update list of available tagged configurations." >&5 echo "$as_me: error: unable to update list of available tagged configurations." >&2;} { (exit 1); exit 1; }; } fi @@ -15890,7 +15930,7 @@ if test "$enable_shared" = yes && test "$enable_static" = yes; then case $library_names_spec in *libname.a*) - { { echo "$as_me:15893: error: cannot create both shared and static libraries on this system, --disable one of the two" >&5 + { { echo "$as_me:15933: error: cannot create both shared and static libraries on this system, --disable one of the two" >&5 echo "$as_me: error: cannot create both shared and static libraries on this system, --disable one of the two" >&2;} { (exit 1); exit 1; }; } ;; @@ -15921,7 +15961,7 @@ # If there's any sse2 or mmx in the path, check whether the assembler # supports it, and remove if not. case "$path" in - *mmx*) echo "$as_me:15924: checking if the assembler knows about MMX instructions" >&5 + *mmx*) echo "$as_me:15964: checking if the assembler knows about MMX instructions" >&5 echo $ECHO_N "checking if the assembler knows about MMX instructions... $ECHO_C" >&6 if test "${gmp_cv_asm_x86_mmx+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -15931,10 +15971,10 @@ movq %mm0, %mm1 EOF gmp_assemble="$CCAS $CFLAGS conftest.s >conftest.out 2>&1" -if { (eval echo "$as_me:15934: \"$gmp_assemble\"") >&5 +if { (eval echo "$as_me:15974: \"$gmp_assemble\"") >&5 (eval $gmp_assemble) 2>&5 ac_status=$? - echo "$as_me:15937: \$? = $ac_status" >&5 + echo "$as_me:15977: \$? = $ac_status" >&5 (exit $ac_status); }; then cat conftest.out >&5 gmp_cv_asm_x86_mmx=yes @@ -15945,7 +15985,7 @@ gmp_cv_asm_x86_mmx=movq-bug fi else - { echo "$as_me:15948: WARNING: \"dis\" not available to check for \"as\" movq bug" >&5 + { echo "$as_me:15988: WARNING: \"dis\" not available to check for \"as\" movq bug" >&5 echo "$as_me: WARNING: \"dis\" not available to check for \"as\" movq bug" >&2;} fi esac @@ -15958,44 +15998,44 @@ rm -f conftest* fi -echo "$as_me:15961: result: $gmp_cv_asm_x86_mmx" >&5 +echo "$as_me:16001: result: $gmp_cv_asm_x86_mmx" >&5 echo "${ECHO_T}$gmp_cv_asm_x86_mmx" >&6 case $gmp_cv_asm_x86_mmx in movq-bug) - { echo "$as_me:15966: WARNING: +----------------------------------------------------------" >&5 + { echo "$as_me:16006: WARNING: +----------------------------------------------------------" >&5 echo "$as_me: WARNING: +----------------------------------------------------------" >&2;} - { echo "$as_me:15968: WARNING: | WARNING WARNING WARNING" >&5 + { echo "$as_me:16008: WARNING: | WARNING WARNING WARNING" >&5 echo "$as_me: WARNING: | WARNING WARNING WARNING" >&2;} - { echo "$as_me:15970: WARNING: | Host CPU has MMX code, but the assembler" >&5 + { echo "$as_me:16010: WARNING: | Host CPU has MMX code, but the assembler" >&5 echo "$as_me: WARNING: | Host CPU has MMX code, but the assembler" >&2;} - { echo "$as_me:15972: WARNING: | $CCAS $CFLAGS" >&5 + { echo "$as_me:16012: WARNING: | $CCAS $CFLAGS" >&5 echo "$as_me: WARNING: | $CCAS $CFLAGS" >&2;} - { echo "$as_me:15974: WARNING: | has the Solaris 2.6 and 2.7 bug where register to register" >&5 + { echo "$as_me:16014: WARNING: | has the Solaris 2.6 and 2.7 bug where register to register" >&5 echo "$as_me: WARNING: | has the Solaris 2.6 and 2.7 bug where register to register" >&2;} - { echo "$as_me:15976: WARNING: | movq operands are reversed." >&5 + { echo "$as_me:16016: WARNING: | movq operands are reversed." >&5 echo "$as_me: WARNING: | movq operands are reversed." >&2;} - { echo "$as_me:15978: WARNING: | Non-MMX replacements will be used." >&5 + { echo "$as_me:16018: WARNING: | Non-MMX replacements will be used." >&5 echo "$as_me: WARNING: | Non-MMX replacements will be used." >&2;} - { echo "$as_me:15980: WARNING: | This will be an inferior build." >&5 + { echo "$as_me:16020: WARNING: | This will be an inferior build." >&5 echo "$as_me: WARNING: | This will be an inferior build." >&2;} - { echo "$as_me:15982: WARNING: +----------------------------------------------------------" >&5 + { echo "$as_me:16022: WARNING: +----------------------------------------------------------" >&5 echo "$as_me: WARNING: +----------------------------------------------------------" >&2;} ;; no) - { echo "$as_me:15986: WARNING: +----------------------------------------------------------" >&5 + { echo "$as_me:16026: WARNING: +----------------------------------------------------------" >&5 echo "$as_me: WARNING: +----------------------------------------------------------" >&2;} - { echo "$as_me:15988: WARNING: | WARNING WARNING WARNING" >&5 + { echo "$as_me:16028: WARNING: | WARNING WARNING WARNING" >&5 echo "$as_me: WARNING: | WARNING WARNING WARNING" >&2;} - { echo "$as_me:15990: WARNING: | Host CPU has MMX code, but it can't be assembled by" >&5 + { echo "$as_me:16030: WARNING: | Host CPU has MMX code, but it can't be assembled by" >&5 echo "$as_me: WARNING: | Host CPU has MMX code, but it can't be assembled by" >&2;} - { echo "$as_me:15992: WARNING: | $CCAS $CFLAGS" >&5 + { echo "$as_me:16032: WARNING: | $CCAS $CFLAGS" >&5 echo "$as_me: WARNING: | $CCAS $CFLAGS" >&2;} - { echo "$as_me:15994: WARNING: | Non-MMX replacements will be used." >&5 + { echo "$as_me:16034: WARNING: | Non-MMX replacements will be used." >&5 echo "$as_me: WARNING: | Non-MMX replacements will be used." >&2;} - { echo "$as_me:15996: WARNING: | This will be an inferior build." >&5 + { echo "$as_me:16036: WARNING: | This will be an inferior build." >&5 echo "$as_me: WARNING: | This will be an inferior build." >&2;} - { echo "$as_me:15998: WARNING: +----------------------------------------------------------" >&5 + { echo "$as_me:16038: WARNING: +----------------------------------------------------------" >&5 echo "$as_me: WARNING: +----------------------------------------------------------" >&2;} ;; esac @@ -16015,7 +16055,7 @@ ;; esac case "$path" in - *sse2*) echo "$as_me:16018: checking if the assembler knows about SSE2 instructions" >&5 + *sse2*) echo "$as_me:16058: checking if the assembler knows about SSE2 instructions" >&5 echo $ECHO_N "checking if the assembler knows about SSE2 instructions... $ECHO_C" >&6 if test "${gmp_cv_asm_x86_sse2+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -16025,10 +16065,10 @@ paddq %mm0, %mm1 EOF gmp_assemble="$CCAS $CFLAGS conftest.s >conftest.out 2>&1" -if { (eval echo "$as_me:16028: \"$gmp_assemble\"") >&5 +if { (eval echo "$as_me:16068: \"$gmp_assemble\"") >&5 (eval $gmp_assemble) 2>&5 ac_status=$? - echo "$as_me:16031: \$? = $ac_status" >&5 + echo "$as_me:16071: \$? = $ac_status" >&5 (exit $ac_status); }; then cat conftest.out >&5 gmp_cv_asm_x86_sse2=yes @@ -16041,26 +16081,26 @@ rm -f conftest* fi -echo "$as_me:16044: result: $gmp_cv_asm_x86_sse2" >&5 +echo "$as_me:16084: result: $gmp_cv_asm_x86_sse2" >&5 echo "${ECHO_T}$gmp_cv_asm_x86_sse2" >&6 case $gmp_cv_asm_x86_sse2 in yes) : ;; *) - { echo "$as_me:16051: WARNING: +----------------------------------------------------------" >&5 + { echo "$as_me:16091: WARNING: +----------------------------------------------------------" >&5 echo "$as_me: WARNING: +----------------------------------------------------------" >&2;} - { echo "$as_me:16053: WARNING: | WARNING WARNING WARNING" >&5 + { echo "$as_me:16093: WARNING: | WARNING WARNING WARNING" >&5 echo "$as_me: WARNING: | WARNING WARNING WARNING" >&2;} - { echo "$as_me:16055: WARNING: | Host CPU has SSE2 code, but it can't be assembled by" >&5 + { echo "$as_me:16095: WARNING: | Host CPU has SSE2 code, but it can't be assembled by" >&5 echo "$as_me: WARNING: | Host CPU has SSE2 code, but it can't be assembled by" >&2;} - { echo "$as_me:16057: WARNING: | $CCAS $CFLAGS" >&5 + { echo "$as_me:16097: WARNING: | $CCAS $CFLAGS" >&5 echo "$as_me: WARNING: | $CCAS $CFLAGS" >&2;} - { echo "$as_me:16059: WARNING: | Non-SSE2 replacements will be used." >&5 + { echo "$as_me:16099: WARNING: | Non-SSE2 replacements will be used." >&5 echo "$as_me: WARNING: | Non-SSE2 replacements will be used." >&2;} - { echo "$as_me:16061: WARNING: | This will be an inferior build." >&5 + { echo "$as_me:16101: WARNING: | This will be an inferior build." >&5 echo "$as_me: WARNING: | This will be an inferior build." >&2;} - { echo "$as_me:16063: WARNING: +----------------------------------------------------------" >&5 + { echo "$as_me:16103: WARNING: +----------------------------------------------------------" >&5 echo "$as_me: WARNING: +----------------------------------------------------------" >&2;} tmp_path= for i in $path; do @@ -16081,13 +16121,13 @@ # The library and header checks are mostly for the benefit of supplementary # programs. libgmp doesn't use anything too weird. -echo "$as_me:16084: checking for ANSI C header files" >&5 +echo "$as_me:16124: checking for ANSI C header files" >&5 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 if test "${ac_cv_header_stdc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 16090 "configure" +#line 16130 "configure" #include "confdefs.h" #include #include @@ -16095,13 +16135,13 @@ #include _ACEOF -if { (eval echo "$as_me:16098: \"$ac_cpp conftest.$ac_ext\"") >&5 +if { (eval echo "$as_me:16138: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? egrep -v '^ *\+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - echo "$as_me:16104: \$? = $ac_status" >&5 + echo "$as_me:16144: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag @@ -16123,7 +16163,7 @@ if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF -#line 16126 "configure" +#line 16166 "configure" #include "confdefs.h" #include @@ -16141,7 +16181,7 @@ if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF -#line 16144 "configure" +#line 16184 "configure" #include "confdefs.h" #include @@ -16162,7 +16202,7 @@ : else cat >conftest.$ac_ext <<_ACEOF -#line 16165 "configure" +#line 16205 "configure" #include "confdefs.h" #include #if ((' ' & 0x0FF) == 0x020) @@ -16188,15 +16228,15 @@ } _ACEOF rm -f conftest$ac_exeext -if { (eval echo "$as_me:16191: \"$ac_link\"") >&5 +if { (eval echo "$as_me:16231: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:16194: \$? = $ac_status" >&5 + echo "$as_me:16234: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (eval echo "$as_me:16196: \"$ac_try\"") >&5 + { (eval echo "$as_me:16236: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:16199: \$? = $ac_status" >&5 + echo "$as_me:16239: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else @@ -16209,7 +16249,7 @@ fi fi fi -echo "$as_me:16212: result: $ac_cv_header_stdc" >&5 +echo "$as_me:16252: result: $ac_cv_header_stdc" >&5 echo "${ECHO_T}$ac_cv_header_stdc" >&6 if test $ac_cv_header_stdc = yes; then @@ -16219,13 +16259,13 @@ fi -echo "$as_me:16222: checking whether time.h and sys/time.h may both be included" >&5 +echo "$as_me:16262: checking whether time.h and sys/time.h may both be included" >&5 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 if test "${ac_cv_header_time+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 16228 "configure" +#line 16268 "configure" #include "confdefs.h" #include #include @@ -16241,16 +16281,16 @@ } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:16244: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:16284: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:16247: \$? = $ac_status" >&5 + echo "$as_me:16287: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:16250: \"$ac_try\"") >&5 + { (eval echo "$as_me:16290: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:16253: \$? = $ac_status" >&5 + echo "$as_me:16293: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_header_time=yes else @@ -16260,7 +16300,7 @@ fi rm -f conftest.$ac_objext conftest.$ac_ext fi -echo "$as_me:16263: result: $ac_cv_header_time" >&5 +echo "$as_me:16303: result: $ac_cv_header_time" >&5 echo "${ECHO_T}$ac_cv_header_time" >&6 if test $ac_cv_header_time = yes; then @@ -16276,23 +16316,23 @@ for ac_header in locale.h sys/mman.h sys/param.h sys/processor.h sys/resource.h sys/sysctl.h sys/systemcfg.h sys/time.h sys/times.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -echo "$as_me:16279: checking for $ac_header" >&5 +echo "$as_me:16319: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 if eval "test \"\${$as_ac_Header+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 16285 "configure" +#line 16325 "configure" #include "confdefs.h" #include <$ac_header> _ACEOF -if { (eval echo "$as_me:16289: \"$ac_cpp conftest.$ac_ext\"") >&5 +if { (eval echo "$as_me:16329: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? egrep -v '^ *\+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - echo "$as_me:16295: \$? = $ac_status" >&5 + echo "$as_me:16335: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag @@ -16311,7 +16351,7 @@ fi rm -f conftest.err conftest.$ac_ext fi -echo "$as_me:16314: result: `eval echo '${'$as_ac_Header'}'`" >&5 +echo "$as_me:16354: result: `eval echo '${'$as_ac_Header'}'`" >&5 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <&5 +echo "$as_me:16371: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 if eval "test \"\${$as_ac_Header+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 16337 "configure" +#line 16377 "configure" #include "confdefs.h" $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:16343: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:16383: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:16346: \$? = $ac_status" >&5 + echo "$as_me:16386: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:16349: \"$ac_try\"") >&5 + { (eval echo "$as_me:16389: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:16352: \$? = $ac_status" >&5 + echo "$as_me:16392: \$? = $ac_status" >&5 (exit $ac_status); }; }; then eval "$as_ac_Header=yes" else @@ -16359,7 +16399,7 @@ fi rm -f conftest.$ac_objext conftest.$ac_ext fi -echo "$as_me:16362: result: `eval echo '${'$as_ac_Header'}'`" >&5 +echo "$as_me:16402: result: `eval echo '${'$as_ac_Header'}'`" >&5 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <&5 +echo "$as_me:16412: checking whether fgetc is declared" >&5 echo $ECHO_N "checking whether fgetc is declared... $ECHO_C" >&6 if test "${ac_cv_have_decl_fgetc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 16378 "configure" +#line 16418 "configure" #include "confdefs.h" $ac_includes_default int @@ -16390,16 +16430,16 @@ } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:16393: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:16433: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:16396: \$? = $ac_status" >&5 + echo "$as_me:16436: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:16399: \"$ac_try\"") >&5 + { (eval echo "$as_me:16439: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:16402: \$? = $ac_status" >&5 + echo "$as_me:16442: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_have_decl_fgetc=yes else @@ -16409,7 +16449,7 @@ fi rm -f conftest.$ac_objext conftest.$ac_ext fi -echo "$as_me:16412: result: $ac_cv_have_decl_fgetc" >&5 +echo "$as_me:16452: result: $ac_cv_have_decl_fgetc" >&5 echo "${ECHO_T}$ac_cv_have_decl_fgetc" >&6 if test $ac_cv_have_decl_fgetc = yes; then @@ -16423,13 +16463,13 @@ EOF fi -echo "$as_me:16426: checking whether fscanf is declared" >&5 +echo "$as_me:16466: checking whether fscanf is declared" >&5 echo $ECHO_N "checking whether fscanf is declared... $ECHO_C" >&6 if test "${ac_cv_have_decl_fscanf+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 16432 "configure" +#line 16472 "configure" #include "confdefs.h" $ac_includes_default int @@ -16444,16 +16484,16 @@ } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:16447: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:16487: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:16450: \$? = $ac_status" >&5 + echo "$as_me:16490: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:16453: \"$ac_try\"") >&5 + { (eval echo "$as_me:16493: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:16456: \$? = $ac_status" >&5 + echo "$as_me:16496: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_have_decl_fscanf=yes else @@ -16463,7 +16503,7 @@ fi rm -f conftest.$ac_objext conftest.$ac_ext fi -echo "$as_me:16466: result: $ac_cv_have_decl_fscanf" >&5 +echo "$as_me:16506: result: $ac_cv_have_decl_fscanf" >&5 echo "${ECHO_T}$ac_cv_have_decl_fscanf" >&6 if test $ac_cv_have_decl_fscanf = yes; then @@ -16477,13 +16517,13 @@ EOF fi -echo "$as_me:16480: checking whether optarg is declared" >&5 +echo "$as_me:16520: checking whether optarg is declared" >&5 echo $ECHO_N "checking whether optarg is declared... $ECHO_C" >&6 if test "${ac_cv_have_decl_optarg+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 16486 "configure" +#line 16526 "configure" #include "confdefs.h" $ac_includes_default int @@ -16498,16 +16538,16 @@ } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:16501: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:16541: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:16504: \$? = $ac_status" >&5 + echo "$as_me:16544: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:16507: \"$ac_try\"") >&5 + { (eval echo "$as_me:16547: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:16510: \$? = $ac_status" >&5 + echo "$as_me:16550: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_have_decl_optarg=yes else @@ -16517,7 +16557,7 @@ fi rm -f conftest.$ac_objext conftest.$ac_ext fi -echo "$as_me:16520: result: $ac_cv_have_decl_optarg" >&5 +echo "$as_me:16560: result: $ac_cv_have_decl_optarg" >&5 echo "${ECHO_T}$ac_cv_have_decl_optarg" >&6 if test $ac_cv_have_decl_optarg = yes; then @@ -16531,13 +16571,13 @@ EOF fi -echo "$as_me:16534: checking whether ungetc is declared" >&5 +echo "$as_me:16574: checking whether ungetc is declared" >&5 echo $ECHO_N "checking whether ungetc is declared... $ECHO_C" >&6 if test "${ac_cv_have_decl_ungetc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 16540 "configure" +#line 16580 "configure" #include "confdefs.h" $ac_includes_default int @@ -16552,16 +16592,16 @@ } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:16555: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:16595: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:16558: \$? = $ac_status" >&5 + echo "$as_me:16598: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:16561: \"$ac_try\"") >&5 + { (eval echo "$as_me:16601: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:16564: \$? = $ac_status" >&5 + echo "$as_me:16604: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_have_decl_ungetc=yes else @@ -16571,7 +16611,7 @@ fi rm -f conftest.$ac_objext conftest.$ac_ext fi -echo "$as_me:16574: result: $ac_cv_have_decl_ungetc" >&5 +echo "$as_me:16614: result: $ac_cv_have_decl_ungetc" >&5 echo "${ECHO_T}$ac_cv_have_decl_ungetc" >&6 if test $ac_cv_have_decl_ungetc = yes; then @@ -16585,13 +16625,13 @@ EOF fi -echo "$as_me:16588: checking whether vfprintf is declared" >&5 +echo "$as_me:16628: checking whether vfprintf is declared" >&5 echo $ECHO_N "checking whether vfprintf is declared... $ECHO_C" >&6 if test "${ac_cv_have_decl_vfprintf+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 16594 "configure" +#line 16634 "configure" #include "confdefs.h" $ac_includes_default int @@ -16606,16 +16646,16 @@ } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:16609: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:16649: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:16612: \$? = $ac_status" >&5 + echo "$as_me:16652: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:16615: \"$ac_try\"") >&5 + { (eval echo "$as_me:16655: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:16618: \$? = $ac_status" >&5 + echo "$as_me:16658: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_have_decl_vfprintf=yes else @@ -16625,7 +16665,7 @@ fi rm -f conftest.$ac_objext conftest.$ac_ext fi -echo "$as_me:16628: result: $ac_cv_have_decl_vfprintf" >&5 +echo "$as_me:16668: result: $ac_cv_have_decl_vfprintf" >&5 echo "${ECHO_T}$ac_cv_have_decl_vfprintf" >&6 if test $ac_cv_have_decl_vfprintf = yes; then @@ -16640,13 +16680,13 @@ fi -echo "$as_me:16643: checking return type of signal handlers" >&5 +echo "$as_me:16683: checking return type of signal handlers" >&5 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 if test "${ac_cv_type_signal+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 16649 "configure" +#line 16689 "configure" #include "confdefs.h" #include #include @@ -16668,16 +16708,16 @@ } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:16671: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:16711: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:16674: \$? = $ac_status" >&5 + echo "$as_me:16714: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:16677: \"$ac_try\"") >&5 + { (eval echo "$as_me:16717: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:16680: \$? = $ac_status" >&5 + echo "$as_me:16720: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_type_signal=void else @@ -16687,7 +16727,7 @@ fi rm -f conftest.$ac_objext conftest.$ac_ext fi -echo "$as_me:16690: result: $ac_cv_type_signal" >&5 +echo "$as_me:16730: result: $ac_cv_type_signal" >&5 echo "${ECHO_T}$ac_cv_type_signal" >&6 cat >>confdefs.h <&5 +echo "$as_me:16738: checking for intmax_t" >&5 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6 if test "${ac_cv_type_intmax_t+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 16704 "configure" +#line 16744 "configure" #include "confdefs.h" $ac_includes_default int @@ -16716,16 +16756,16 @@ } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:16719: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:16759: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:16722: \$? = $ac_status" >&5 + echo "$as_me:16762: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:16725: \"$ac_try\"") >&5 + { (eval echo "$as_me:16765: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:16728: \$? = $ac_status" >&5 + echo "$as_me:16768: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_type_intmax_t=yes else @@ -16735,7 +16775,7 @@ fi rm -f conftest.$ac_objext conftest.$ac_ext fi -echo "$as_me:16738: result: $ac_cv_type_intmax_t" >&5 +echo "$as_me:16778: result: $ac_cv_type_intmax_t" >&5 echo "${ECHO_T}$ac_cv_type_intmax_t" >&6 if test $ac_cv_type_intmax_t = yes; then @@ -16744,13 +16784,13 @@ EOF fi -echo "$as_me:16747: checking for long double" >&5 +echo "$as_me:16787: checking for long double" >&5 echo $ECHO_N "checking for long double... $ECHO_C" >&6 if test "${ac_cv_type_long_double+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 16753 "configure" +#line 16793 "configure" #include "confdefs.h" $ac_includes_default int @@ -16765,16 +16805,16 @@ } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:16768: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:16808: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:16771: \$? = $ac_status" >&5 + echo "$as_me:16811: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:16774: \"$ac_try\"") >&5 + { (eval echo "$as_me:16814: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:16777: \$? = $ac_status" >&5 + echo "$as_me:16817: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_type_long_double=yes else @@ -16784,7 +16824,7 @@ fi rm -f conftest.$ac_objext conftest.$ac_ext fi -echo "$as_me:16787: result: $ac_cv_type_long_double" >&5 +echo "$as_me:16827: result: $ac_cv_type_long_double" >&5 echo "${ECHO_T}$ac_cv_type_long_double" >&6 if test $ac_cv_type_long_double = yes; then @@ -16793,13 +16833,13 @@ EOF fi -echo "$as_me:16796: checking for long long" >&5 +echo "$as_me:16836: checking for long long" >&5 echo $ECHO_N "checking for long long... $ECHO_C" >&6 if test "${ac_cv_type_long_long+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 16802 "configure" +#line 16842 "configure" #include "confdefs.h" $ac_includes_default int @@ -16814,16 +16854,16 @@ } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:16817: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:16857: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:16820: \$? = $ac_status" >&5 + echo "$as_me:16860: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:16823: \"$ac_try\"") >&5 + { (eval echo "$as_me:16863: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:16826: \$? = $ac_status" >&5 + echo "$as_me:16866: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_type_long_long=yes else @@ -16833,7 +16873,7 @@ fi rm -f conftest.$ac_objext conftest.$ac_ext fi -echo "$as_me:16836: result: $ac_cv_type_long_long" >&5 +echo "$as_me:16876: result: $ac_cv_type_long_long" >&5 echo "${ECHO_T}$ac_cv_type_long_long" >&6 if test $ac_cv_type_long_long = yes; then @@ -16842,13 +16882,13 @@ EOF fi -echo "$as_me:16845: checking for ptrdiff_t" >&5 +echo "$as_me:16885: checking for ptrdiff_t" >&5 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6 if test "${ac_cv_type_ptrdiff_t+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 16851 "configure" +#line 16891 "configure" #include "confdefs.h" $ac_includes_default int @@ -16863,16 +16903,16 @@ } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:16866: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:16906: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:16869: \$? = $ac_status" >&5 + echo "$as_me:16909: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:16872: \"$ac_try\"") >&5 + { (eval echo "$as_me:16912: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:16875: \$? = $ac_status" >&5 + echo "$as_me:16915: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_type_ptrdiff_t=yes else @@ -16882,7 +16922,7 @@ fi rm -f conftest.$ac_objext conftest.$ac_ext fi -echo "$as_me:16885: result: $ac_cv_type_ptrdiff_t" >&5 +echo "$as_me:16925: result: $ac_cv_type_ptrdiff_t" >&5 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6 if test $ac_cv_type_ptrdiff_t = yes; then @@ -16891,13 +16931,13 @@ EOF fi -echo "$as_me:16894: checking for quad_t" >&5 +echo "$as_me:16934: checking for quad_t" >&5 echo $ECHO_N "checking for quad_t... $ECHO_C" >&6 if test "${ac_cv_type_quad_t+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 16900 "configure" +#line 16940 "configure" #include "confdefs.h" $ac_includes_default int @@ -16912,16 +16952,16 @@ } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:16915: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:16955: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:16918: \$? = $ac_status" >&5 + echo "$as_me:16958: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:16921: \"$ac_try\"") >&5 + { (eval echo "$as_me:16961: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:16924: \$? = $ac_status" >&5 + echo "$as_me:16964: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_type_quad_t=yes else @@ -16931,7 +16971,7 @@ fi rm -f conftest.$ac_objext conftest.$ac_ext fi -echo "$as_me:16934: result: $ac_cv_type_quad_t" >&5 +echo "$as_me:16974: result: $ac_cv_type_quad_t" >&5 echo "${ECHO_T}$ac_cv_type_quad_t" >&6 if test $ac_cv_type_quad_t = yes; then @@ -16941,13 +16981,13 @@ fi -echo "$as_me:16944: checking for preprocessor stringizing operator" >&5 +echo "$as_me:16984: checking for preprocessor stringizing operator" >&5 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6 if test "${ac_cv_c_stringize+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 16950 "configure" +#line 16990 "configure" #include "confdefs.h" #define x(y) #y @@ -16962,7 +17002,7 @@ rm -f conftest* fi -echo "$as_me:16965: result: $ac_cv_c_stringize" >&5 +echo "$as_me:17005: result: $ac_cv_c_stringize" >&5 echo "${ECHO_T}$ac_cv_c_stringize" >&6 if test $ac_cv_c_stringize = yes; then @@ -16972,13 +17012,13 @@ fi -echo "$as_me:16975: checking whether exists and works" >&5 +echo "$as_me:17015: checking whether exists and works" >&5 echo $ECHO_N "checking whether exists and works... $ECHO_C" >&6 if test "${gmp_cv_c_stdarg+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 16981 "configure" +#line 17021 "configure" #include "confdefs.h" #include int foo (int x, ...) @@ -16999,16 +17039,16 @@ } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:17002: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:17042: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:17005: \$? = $ac_status" >&5 + echo "$as_me:17045: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:17008: \"$ac_try\"") >&5 + { (eval echo "$as_me:17048: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:17011: \$? = $ac_status" >&5 + echo "$as_me:17051: \$? = $ac_status" >&5 (exit $ac_status); }; }; then gmp_cv_c_stdarg=yes else @@ -17019,7 +17059,7 @@ rm -f conftest.$ac_objext conftest.$ac_ext fi -echo "$as_me:17022: result: $gmp_cv_c_stdarg" >&5 +echo "$as_me:17062: result: $gmp_cv_c_stdarg" >&5 echo "${ECHO_T}$gmp_cv_c_stdarg" >&6 if test $gmp_cv_c_stdarg = yes; then @@ -17029,13 +17069,13 @@ fi -echo "$as_me:17032: checking whether gcc __attribute__ ((const)) works" >&5 +echo "$as_me:17072: checking whether gcc __attribute__ ((const)) works" >&5 echo $ECHO_N "checking whether gcc __attribute__ ((const)) works... $ECHO_C" >&6 if test "${gmp_cv_c_attribute_const+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 17038 "configure" +#line 17078 "configure" #include "confdefs.h" int foo (int x) __attribute__ ((const)); int @@ -17047,16 +17087,16 @@ } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:17050: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:17090: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:17053: \$? = $ac_status" >&5 + echo "$as_me:17093: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:17056: \"$ac_try\"") >&5 + { (eval echo "$as_me:17096: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:17059: \$? = $ac_status" >&5 + echo "$as_me:17099: \$? = $ac_status" >&5 (exit $ac_status); }; }; then gmp_cv_c_attribute_const=yes else @@ -17067,7 +17107,7 @@ rm -f conftest.$ac_objext conftest.$ac_ext fi -echo "$as_me:17070: result: $gmp_cv_c_attribute_const" >&5 +echo "$as_me:17110: result: $gmp_cv_c_attribute_const" >&5 echo "${ECHO_T}$gmp_cv_c_attribute_const" >&6 if test $gmp_cv_c_attribute_const = yes; then @@ -17077,7 +17117,7 @@ fi -echo "$as_me:17080: checking whether gcc __attribute__ ((malloc)) works" >&5 +echo "$as_me:17120: checking whether gcc __attribute__ ((malloc)) works" >&5 echo $ECHO_N "checking whether gcc __attribute__ ((malloc)) works... $ECHO_C" >&6 if test "${gmp_cv_c_attribute_malloc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -17086,10 +17126,10 @@ void *foo (int x) __attribute__ ((malloc)); EOF gmp_compile="$CC $CFLAGS $CPPFLAGS -c conftest.c >conftest.out 2>&1" -if { (eval echo "$as_me:17089: \"$gmp_compile\"") >&5 +if { (eval echo "$as_me:17129: \"$gmp_compile\"") >&5 (eval $gmp_compile) 2>&5 ac_status=$? - echo "$as_me:17092: \$? = $ac_status" >&5 + echo "$as_me:17132: \$? = $ac_status" >&5 (exit $ac_status); }; then if grep "attribute directive ignored" conftest.out >/dev/null; then gmp_cv_c_attribute_malloc=no @@ -17103,7 +17143,7 @@ rm -f conftest* fi -echo "$as_me:17106: result: $gmp_cv_c_attribute_malloc" >&5 +echo "$as_me:17146: result: $gmp_cv_c_attribute_malloc" >&5 echo "${ECHO_T}$gmp_cv_c_attribute_malloc" >&6 if test $gmp_cv_c_attribute_malloc = yes; then @@ -17113,13 +17153,13 @@ fi -echo "$as_me:17116: checking whether gcc __attribute__ ((mode (XX))) works" >&5 +echo "$as_me:17156: checking whether gcc __attribute__ ((mode (XX))) works" >&5 echo $ECHO_N "checking whether gcc __attribute__ ((mode (XX))) works... $ECHO_C" >&6 if test "${gmp_cv_c_attribute_mode+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 17122 "configure" +#line 17162 "configure" #include "confdefs.h" typedef int SItype __attribute__ ((mode (SI))); int @@ -17131,16 +17171,16 @@ } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:17134: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:17174: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:17137: \$? = $ac_status" >&5 + echo "$as_me:17177: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:17140: \"$ac_try\"") >&5 + { (eval echo "$as_me:17180: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:17143: \$? = $ac_status" >&5 + echo "$as_me:17183: \$? = $ac_status" >&5 (exit $ac_status); }; }; then gmp_cv_c_attribute_mode=yes else @@ -17151,7 +17191,7 @@ rm -f conftest.$ac_objext conftest.$ac_ext fi -echo "$as_me:17154: result: $gmp_cv_c_attribute_mode" >&5 +echo "$as_me:17194: result: $gmp_cv_c_attribute_mode" >&5 echo "${ECHO_T}$gmp_cv_c_attribute_mode" >&6 if test $gmp_cv_c_attribute_mode = yes; then @@ -17161,13 +17201,13 @@ fi -echo "$as_me:17164: checking whether gcc __attribute__ ((noreturn)) works" >&5 +echo "$as_me:17204: checking whether gcc __attribute__ ((noreturn)) works" >&5 echo $ECHO_N "checking whether gcc __attribute__ ((noreturn)) works... $ECHO_C" >&6 if test "${gmp_cv_c_attribute_noreturn+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 17170 "configure" +#line 17210 "configure" #include "confdefs.h" void foo (int x) __attribute__ ((noreturn)); int @@ -17179,16 +17219,16 @@ } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:17182: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:17222: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:17185: \$? = $ac_status" >&5 + echo "$as_me:17225: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:17188: \"$ac_try\"") >&5 + { (eval echo "$as_me:17228: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:17191: \$? = $ac_status" >&5 + echo "$as_me:17231: \$? = $ac_status" >&5 (exit $ac_status); }; }; then gmp_cv_c_attribute_noreturn=yes else @@ -17199,7 +17239,7 @@ rm -f conftest.$ac_objext conftest.$ac_ext fi -echo "$as_me:17202: result: $gmp_cv_c_attribute_noreturn" >&5 +echo "$as_me:17242: result: $gmp_cv_c_attribute_noreturn" >&5 echo "${ECHO_T}$gmp_cv_c_attribute_noreturn" >&6 if test $gmp_cv_c_attribute_noreturn = yes; then @@ -17209,7 +17249,7 @@ fi -echo "$as_me:17212: checking for inline" >&5 +echo "$as_me:17252: checking for inline" >&5 echo $ECHO_N "checking for inline... $ECHO_C" >&6 if test "${ac_cv_c_inline+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -17217,7 +17257,7 @@ ac_cv_c_inline=no for ac_kw in inline __inline__ __inline; do cat >conftest.$ac_ext <<_ACEOF -#line 17220 "configure" +#line 17260 "configure" #include "confdefs.h" #ifndef __cplusplus static $ac_kw int static_foo () {return 0; } @@ -17226,16 +17266,16 @@ _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:17229: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:17269: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:17232: \$? = $ac_status" >&5 + echo "$as_me:17272: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:17235: \"$ac_try\"") >&5 + { (eval echo "$as_me:17275: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:17238: \$? = $ac_status" >&5 + echo "$as_me:17278: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_c_inline=$ac_kw; break else @@ -17246,7 +17286,7 @@ done fi -echo "$as_me:17249: result: $ac_cv_c_inline" >&5 +echo "$as_me:17289: result: $ac_cv_c_inline" >&5 echo "${ECHO_T}$ac_cv_c_inline" >&6 case $ac_cv_c_inline in inline | yes) ;; @@ -17265,7 +17305,7 @@ no) ;; *) cat >conftest.$ac_ext <<_ACEOF -#line 17268 "configure" +#line 17308 "configure" #include "confdefs.h" #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */ #define __GMP_BITS_PER_MP_LIMB 123 /* dummy for mpf_get_prec etc inlines */ @@ -17285,16 +17325,16 @@ } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:17288: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:17328: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:17291: \$? = $ac_status" >&5 + echo "$as_me:17331: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:17294: \"$ac_try\"") >&5 + { (eval echo "$as_me:17334: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:17297: \$? = $ac_status" >&5 + echo "$as_me:17337: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else @@ -17304,7 +17344,7 @@ "") tmp_inline=inline ;; *) tmp_inline=$ac_cv_c_inline ;; esac - { echo "$as_me:17307: WARNING: gmp.h doesnt recognise compiler \"$tmp_inline\", inlines will be unavailable" >&5 + { echo "$as_me:17347: WARNING: gmp.h doesnt recognise compiler \"$tmp_inline\", inlines will be unavailable" >&5 echo "$as_me: WARNING: gmp.h doesnt recognise compiler \"$tmp_inline\", inlines will be unavailable" >&2;} fi rm -f conftest.$ac_objext conftest.$ac_ext @@ -17318,7 +17358,7 @@ # These system don't have libm ;; *-ncr-sysv4.3*) - echo "$as_me:17321: checking for _mwvalidcheckl in -lmw" >&5 + echo "$as_me:17361: checking for _mwvalidcheckl in -lmw" >&5 echo $ECHO_N "checking for _mwvalidcheckl in -lmw... $ECHO_C" >&6 if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -17326,7 +17366,7 @@ ac_check_lib_save_LIBS=$LIBS LIBS="-lmw $LIBS" cat >conftest.$ac_ext <<_ACEOF -#line 17329 "configure" +#line 17369 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ @@ -17345,16 +17385,16 @@ } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:17348: \"$ac_link\"") >&5 +if { (eval echo "$as_me:17388: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:17351: \$? = $ac_status" >&5 + echo "$as_me:17391: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:17354: \"$ac_try\"") >&5 + { (eval echo "$as_me:17394: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:17357: \$? = $ac_status" >&5 + echo "$as_me:17397: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_mw__mwvalidcheckl=yes else @@ -17365,13 +17405,13 @@ rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -echo "$as_me:17368: result: $ac_cv_lib_mw__mwvalidcheckl" >&5 +echo "$as_me:17408: result: $ac_cv_lib_mw__mwvalidcheckl" >&5 echo "${ECHO_T}$ac_cv_lib_mw__mwvalidcheckl" >&6 if test $ac_cv_lib_mw__mwvalidcheckl = yes; then LIBM="-lmw" fi - echo "$as_me:17374: checking for main in -lm" >&5 + echo "$as_me:17414: checking for main in -lm" >&5 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 if test "${ac_cv_lib_m_main+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -17379,7 +17419,7 @@ ac_check_lib_save_LIBS=$LIBS LIBS="-lm $LIBS" cat >conftest.$ac_ext <<_ACEOF -#line 17382 "configure" +#line 17422 "configure" #include "confdefs.h" int @@ -17391,16 +17431,16 @@ } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:17394: \"$ac_link\"") >&5 +if { (eval echo "$as_me:17434: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:17397: \$? = $ac_status" >&5 + echo "$as_me:17437: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:17400: \"$ac_try\"") >&5 + { (eval echo "$as_me:17440: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:17403: \$? = $ac_status" >&5 + echo "$as_me:17443: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_m_main=yes else @@ -17411,7 +17451,7 @@ rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -echo "$as_me:17414: result: $ac_cv_lib_m_main" >&5 +echo "$as_me:17454: result: $ac_cv_lib_m_main" >&5 echo "${ECHO_T}$ac_cv_lib_m_main" >&6 if test $ac_cv_lib_m_main = yes; then LIBM="$LIBM -lm" @@ -17419,7 +17459,7 @@ ;; *) - echo "$as_me:17422: checking for main in -lm" >&5 + echo "$as_me:17462: checking for main in -lm" >&5 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 if test "${ac_cv_lib_m_main+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -17427,7 +17467,7 @@ ac_check_lib_save_LIBS=$LIBS LIBS="-lm $LIBS" cat >conftest.$ac_ext <<_ACEOF -#line 17430 "configure" +#line 17470 "configure" #include "confdefs.h" int @@ -17439,16 +17479,16 @@ } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:17442: \"$ac_link\"") >&5 +if { (eval echo "$as_me:17482: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:17445: \$? = $ac_status" >&5 + echo "$as_me:17485: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:17448: \"$ac_try\"") >&5 + { (eval echo "$as_me:17488: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:17451: \$? = $ac_status" >&5 + echo "$as_me:17491: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_m_main=yes else @@ -17459,7 +17499,7 @@ rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -echo "$as_me:17462: result: $ac_cv_lib_m_main" >&5 +echo "$as_me:17502: result: $ac_cv_lib_m_main" >&5 echo "${ECHO_T}$ac_cv_lib_m_main" >&6 if test $ac_cv_lib_m_main = yes; then LIBM="-lm" @@ -17470,13 +17510,13 @@ # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works # for constant arguments. Useless! -echo "$as_me:17473: checking for working alloca.h" >&5 +echo "$as_me:17513: checking for working alloca.h" >&5 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 if test "${gmp_cv_header_alloca+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 17479 "configure" +#line 17519 "configure" #include "confdefs.h" #include int @@ -17488,16 +17528,16 @@ } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:17491: \"$ac_link\"") >&5 +if { (eval echo "$as_me:17531: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:17494: \$? = $ac_status" >&5 + echo "$as_me:17534: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:17497: \"$ac_try\"") >&5 + { (eval echo "$as_me:17537: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:17500: \$? = $ac_status" >&5 + echo "$as_me:17540: \$? = $ac_status" >&5 (exit $ac_status); }; }; then gmp_cv_header_alloca=yes else @@ -17507,7 +17547,7 @@ fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext fi -echo "$as_me:17510: result: $gmp_cv_header_alloca" >&5 +echo "$as_me:17550: result: $gmp_cv_header_alloca" >&5 echo "${ECHO_T}$gmp_cv_header_alloca" >&6 if test $gmp_cv_header_alloca = yes; then @@ -17517,13 +17557,13 @@ fi -echo "$as_me:17520: checking for alloca (via gmp-impl.h)" >&5 +echo "$as_me:17560: checking for alloca (via gmp-impl.h)" >&5 echo $ECHO_N "checking for alloca (via gmp-impl.h)... $ECHO_C" >&6 if test "${gmp_cv_func_alloca+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 17526 "configure" +#line 17566 "configure" #include "confdefs.h" #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */ #define __GMP_BITS_PER_MP_LIMB 123 /* dummy for mpf_get_prec etc inlines */ @@ -17541,16 +17581,16 @@ } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:17544: \"$ac_link\"") >&5 +if { (eval echo "$as_me:17584: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:17547: \$? = $ac_status" >&5 + echo "$as_me:17587: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:17550: \"$ac_try\"") >&5 + { (eval echo "$as_me:17590: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:17553: \$? = $ac_status" >&5 + echo "$as_me:17593: \$? = $ac_status" >&5 (exit $ac_status); }; }; then gmp_cv_func_alloca=yes else @@ -17560,7 +17600,7 @@ fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext fi -echo "$as_me:17563: result: $gmp_cv_func_alloca" >&5 +echo "$as_me:17603: result: $gmp_cv_func_alloca" >&5 echo "${ECHO_T}$gmp_cv_func_alloca" >&6 if test $gmp_cv_func_alloca = yes; then @@ -17570,7 +17610,7 @@ fi -echo "$as_me:17573: checking how to allocate temporary memory" >&5 +echo "$as_me:17613: checking how to allocate temporary memory" >&5 echo $ECHO_N "checking how to allocate temporary memory... $ECHO_C" >&6 if test "${gmp_cv_option_alloca+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -17594,12 +17634,12 @@ esac fi -echo "$as_me:17597: result: $gmp_cv_option_alloca" >&5 +echo "$as_me:17637: result: $gmp_cv_option_alloca" >&5 echo "${ECHO_T}$gmp_cv_option_alloca" >&6 case $gmp_cv_option_alloca in alloca) if test $gmp_cv_func_alloca = no; then - { { echo "$as_me:17602: error: --enable-alloca=alloca specified, but alloca not available" >&5 + { { echo "$as_me:17642: error: --enable-alloca=alloca specified, but alloca not available" >&5 echo "$as_me: error: --enable-alloca=alloca specified, but alloca not available" >&2;} { (exit 1); exit 1; }; } fi @@ -17635,14 +17675,14 @@ ;; *) # checks at the start of configure.in should protect us - { { echo "$as_me:17638: error: unrecognised --enable-alloca=$gmp_cv_option_alloca" >&5 + { { echo "$as_me:17678: error: unrecognised --enable-alloca=$gmp_cv_option_alloca" >&5 echo "$as_me: error: unrecognised --enable-alloca=$gmp_cv_option_alloca" >&2;} { (exit 1); exit 1; }; } ;; esac cat >conftest.$ac_ext <<_ACEOF -#line 17645 "configure" +#line 17685 "configure" #include "confdefs.h" #include #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */ @@ -17663,22 +17703,22 @@ } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:17666: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:17706: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:17669: \$? = $ac_status" >&5 + echo "$as_me:17709: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:17672: \"$ac_try\"") >&5 + { (eval echo "$as_me:17712: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:17675: \$? = $ac_status" >&5 + echo "$as_me:17715: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 -{ echo "$as_me:17681: WARNING: gmp.h doesnt recognise , FILE prototypes will be unavailable" >&5 +{ echo "$as_me:17721: WARNING: gmp.h doesnt recognise , FILE prototypes will be unavailable" >&5 echo "$as_me: WARNING: gmp.h doesnt recognise , FILE prototypes will be unavailable" >&2;} fi rm -f conftest.$ac_objext conftest.$ac_ext @@ -17697,7 +17737,7 @@ ;; *) cat >conftest.$ac_ext <<_ACEOF -#line 17700 "configure" +#line 17740 "configure" #include "confdefs.h" #include #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */ @@ -17719,27 +17759,27 @@ } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:17722: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:17762: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:17725: \$? = $ac_status" >&5 + echo "$as_me:17765: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:17728: \"$ac_try\"") >&5 + { (eval echo "$as_me:17768: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:17731: \$? = $ac_status" >&5 + echo "$as_me:17771: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 - { echo "$as_me:17738: WARNING: gmp-impl.h doesnt recognise \"double\" as IEEE." >&5 + { echo "$as_me:17778: WARNING: gmp-impl.h doesnt recognise \"double\" as IEEE." >&5 echo "$as_me: WARNING: gmp-impl.h doesnt recognise \"double\" as IEEE." >&2;} - { echo "$as_me:17740: WARNING: If your CPU floats are in fact IEEE then you" >&5 + { echo "$as_me:17780: WARNING: If your CPU floats are in fact IEEE then you" >&5 echo "$as_me: WARNING: If your CPU floats are in fact IEEE then you" >&2;} - { echo "$as_me:17742: WARNING: might like to augment the tests there." >&5 + { echo "$as_me:17782: WARNING: might like to augment the tests there." >&5 echo "$as_me: WARNING: might like to augment the tests there." >&2;} fi @@ -17764,13 +17804,13 @@ for ac_func in alarm getpagesize getrusage gettimeofday localeconv memset mmap mprotect obstack_vprintf popen processor_info read_real_time strchr strnlen strtoul sysconf sysctl sysctlbyname times do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -echo "$as_me:17767: checking for $ac_func" >&5 +echo "$as_me:17807: checking for $ac_func" >&5 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 if eval "test \"\${$as_ac_var+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 17773 "configure" +#line 17813 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. */ @@ -17801,16 +17841,16 @@ } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:17804: \"$ac_link\"") >&5 +if { (eval echo "$as_me:17844: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:17807: \$? = $ac_status" >&5 + echo "$as_me:17847: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:17810: \"$ac_try\"") >&5 + { (eval echo "$as_me:17850: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:17813: \$? = $ac_status" >&5 + echo "$as_me:17853: \$? = $ac_status" >&5 (exit $ac_status); }; }; then eval "$as_ac_var=yes" else @@ -17820,7 +17860,7 @@ fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext fi -echo "$as_me:17823: result: `eval echo '${'$as_ac_var'}'`" >&5 +echo "$as_me:17863: result: `eval echo '${'$as_ac_var'}'`" >&5 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 if test `eval echo '${'$as_ac_var'}'` = yes; then cat >>confdefs.h <&5 +echo "$as_me:17876: checking for vsnprintf" >&5 echo $ECHO_N "checking for vsnprintf... $ECHO_C" >&6 if test "${ac_cv_func_vsnprintf+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 17842 "configure" +#line 17882 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char vsnprintf (); below. */ @@ -17870,16 +17910,16 @@ } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:17873: \"$ac_link\"") >&5 +if { (eval echo "$as_me:17913: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:17876: \$? = $ac_status" >&5 + echo "$as_me:17916: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:17879: \"$ac_try\"") >&5 + { (eval echo "$as_me:17919: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:17882: \$? = $ac_status" >&5 + echo "$as_me:17922: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_func_vsnprintf=yes else @@ -17889,7 +17929,7 @@ fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext fi -echo "$as_me:17892: result: $ac_cv_func_vsnprintf" >&5 +echo "$as_me:17932: result: $ac_cv_func_vsnprintf" >&5 echo "${ECHO_T}$ac_cv_func_vsnprintf" >&6 if test $ac_cv_func_vsnprintf = yes; then gmp_vsnprintf_exists=yes @@ -17900,24 +17940,30 @@ if test "$gmp_vsnprintf_exists" = no; then gmp_cv_func_vsnprintf=no else - echo "$as_me:17903: checking whether vsnprintf works" >&5 + echo "$as_me:17943: checking whether vsnprintf works" >&5 echo $ECHO_N "checking whether vsnprintf works... $ECHO_C" >&6 if test "${gmp_cv_func_vsnprintf+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - if test "$cross_compiling" = yes; then - gmp_cv_func_vsnprintf=probably + gmp_cv_func_vsnprintf=yes + for i in 'check ("hello world");' 'int n; check ("%nhello world", &n);'; do + if test "$cross_compiling" = yes; then + gmp_cv_func_vsnprintf=probably; break else cat >conftest.$ac_ext <<_ACEOF -#line 17912 "configure" +#line 17954 "configure" #include "confdefs.h" +#include /* for strcmp */ +#include /* for vsnprintf */ + #if HAVE_STDARG #include #else #include #endif +int #if HAVE_STDARG check (const char *fmt, ...) #else @@ -17945,42 +17991,45 @@ /* allowed return values */ if (ret != -1 && ret != 3 && ret != 11) exit (2); + + return 0; } int main () { - check ("hello world"); +$i exit (0); } _ACEOF rm -f conftest$ac_exeext -if { (eval echo "$as_me:17959: \"$ac_link\"") >&5 +if { (eval echo "$as_me:18007: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:17962: \$? = $ac_status" >&5 + echo "$as_me:18010: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (eval echo "$as_me:17964: \"$ac_try\"") >&5 + { (eval echo "$as_me:18012: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:17967: \$? = $ac_status" >&5 + echo "$as_me:18015: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - gmp_cv_func_vsnprintf=yes + : else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 -gmp_cv_func_vsnprintf=no +gmp_cv_func_vsnprintf=no; break fi rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi + done fi -echo "$as_me:17980: result: $gmp_cv_func_vsnprintf" >&5 +echo "$as_me:18029: result: $gmp_cv_func_vsnprintf" >&5 echo "${ECHO_T}$gmp_cv_func_vsnprintf" >&6 if test "$gmp_cv_func_vsnprintf" = probably; then - { echo "$as_me:17983: WARNING: cannot check for properly working vsnprintf when cross compiling, will assume it's ok" >&5 + { echo "$as_me:18032: WARNING: cannot check for properly working vsnprintf when cross compiling, will assume it's ok" >&5 echo "$as_me: WARNING: cannot check for properly working vsnprintf when cross compiling, will assume it's ok" >&2;} fi if test "$gmp_cv_func_vsnprintf" != no; then @@ -17999,7 +18048,7 @@ fi -echo "$as_me:18002: checking whether sscanf needs writable input" >&5 +echo "$as_me:18051: checking whether sscanf needs writable input" >&5 echo $ECHO_N "checking whether sscanf needs writable input... $ECHO_C" >&6 if test "${gmp_cv_func_sscanf_writable_input+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -18011,7 +18060,7 @@ esac fi -echo "$as_me:18014: result: $gmp_cv_func_sscanf_writable_input" >&5 +echo "$as_me:18063: result: $gmp_cv_func_sscanf_writable_input" >&5 echo "${ECHO_T}$gmp_cv_func_sscanf_writable_input" >&6 case $gmp_cv_func_sscanf_writable_input in yes) @@ -18020,7 +18069,7 @@ EOF ;; no) ;; - *) { { echo "$as_me:18023: error: unrecognised \$gmp_cv_func_sscanf_writable_input" >&5 + *) { { echo "$as_me:18072: error: unrecognised \$gmp_cv_func_sscanf_writable_input" >&5 echo "$as_me: error: unrecognised \$gmp_cv_func_sscanf_writable_input" >&2;} { (exit 1); exit 1; }; } ;; esac @@ -18150,7 +18199,7 @@ fi done if test $found = no; then - { { echo "$as_me:18153: error: no version of $tmp_fn found in path: $path" >&5 + { { echo "$as_me:18202: error: no version of $tmp_fn found in path: $path" >&5 echo "$as_me: error: no version of $tmp_fn found in path: $path" >&2;} { (exit 1); exit 1; }; } fi @@ -18165,7 +18214,7 @@ # Don't demand an m4 unless it's actually needed. if test $found_asm = yes; then -echo "$as_me:18168: checking for suitable m4" >&5 +echo "$as_me:18217: checking for suitable m4" >&5 echo $ECHO_N "checking for suitable m4... $ECHO_C" >&6 if test "${gmp_cv_prog_m4+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -18201,7 +18250,7 @@ done IFS="$ac_save_ifs" if test -z "$gmp_cv_prog_m4"; then - { { echo "$as_me:18204: error: No usable m4 in \$PATH or /usr/5bin (see config.log for reasons)." >&5 + { { echo "$as_me:18253: error: No usable m4 in \$PATH or /usr/5bin (see config.log for reasons)." >&5 echo "$as_me: error: No usable m4 in \$PATH or /usr/5bin (see config.log for reasons)." >&2;} { (exit 1); exit 1; }; } fi @@ -18209,11 +18258,11 @@ rm -f conftest.m4 fi fi -echo "$as_me:18212: result: $gmp_cv_prog_m4" >&5 +echo "$as_me:18261: result: $gmp_cv_prog_m4" >&5 echo "${ECHO_T}$gmp_cv_prog_m4" >&6 M4="$gmp_cv_prog_m4" -echo "$as_me:18216: checking if m4wrap produces spurious output" >&5 +echo "$as_me:18265: checking if m4wrap produces spurious output" >&5 echo $ECHO_N "checking if m4wrap produces spurious output... $ECHO_C" >&6 if test "${gmp_cv_m4_m4wrap_spurious+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -18235,7 +18284,7 @@ fi fi -echo "$as_me:18238: result: $gmp_cv_m4_m4wrap_spurious" >&5 +echo "$as_me:18287: result: $gmp_cv_m4_m4wrap_spurious" >&5 echo "${ECHO_T}$gmp_cv_m4_m4wrap_spurious" >&6 echo "define(,<$gmp_cv_m4_m4wrap_spurious>)" >> $gmp_tmpconfigm4 @@ -18250,7 +18299,7 @@ fi if test "$gmp_asm_syntax_testing" != no; then - echo "$as_me:18253: checking how to switch to text section" >&5 + echo "$as_me:18302: checking how to switch to text section" >&5 echo $ECHO_N "checking how to switch to text section... $ECHO_C" >&6 if test "${gmp_cv_asm_text+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -18262,11 +18311,11 @@ esac fi -echo "$as_me:18265: result: $gmp_cv_asm_text" >&5 +echo "$as_me:18314: result: $gmp_cv_asm_text" >&5 echo "${ECHO_T}$gmp_cv_asm_text" >&6 echo "define(, <$gmp_cv_asm_text>)" >> $gmp_tmpconfigm4 - echo "$as_me:18269: checking how to switch to data section" >&5 + echo "$as_me:18318: checking how to switch to data section" >&5 echo $ECHO_N "checking how to switch to data section... $ECHO_C" >&6 if test "${gmp_cv_asm_data+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -18277,11 +18326,11 @@ esac fi -echo "$as_me:18280: result: $gmp_cv_asm_data" >&5 +echo "$as_me:18329: result: $gmp_cv_asm_data" >&5 echo "${ECHO_T}$gmp_cv_asm_data" >&6 echo "define(, <$gmp_cv_asm_data>)" >> $gmp_tmpconfigm4 - echo "$as_me:18284: checking what assembly label suffix to use" >&5 + echo "$as_me:18333: checking what assembly label suffix to use" >&5 echo $ECHO_N "checking what assembly label suffix to use... $ECHO_C" >&6 if test "${gmp_cv_asm_label_suffix+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -18293,11 +18342,11 @@ esac fi -echo "$as_me:18296: result: $gmp_cv_asm_label_suffix" >&5 +echo "$as_me:18345: result: $gmp_cv_asm_label_suffix" >&5 echo "${ECHO_T}$gmp_cv_asm_label_suffix" >&6 echo "define(, <\$1$gmp_cv_asm_label_suffix>)" >> $gmp_tmpconfigm4 - echo "$as_me:18300: checking how to export a symbol" >&5 + echo "$as_me:18349: checking how to export a symbol" >&5 echo $ECHO_N "checking how to export a symbol... $ECHO_C" >&6 if test "${gmp_cv_asm_globl+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -18308,11 +18357,11 @@ esac fi -echo "$as_me:18311: result: $gmp_cv_asm_globl" >&5 +echo "$as_me:18360: result: $gmp_cv_asm_globl" >&5 echo "${ECHO_T}$gmp_cv_asm_globl" >&6 echo "define(, <$gmp_cv_asm_globl>)" >> $gmp_tmpconfigm4 -echo "$as_me:18315: checking if globals are prefixed by underscore" >&5 +echo "$as_me:18364: checking if globals are prefixed by underscore" >&5 echo $ECHO_N "checking if globals are prefixed by underscore... $ECHO_C" >&6 if test "${gmp_cv_asm_underscore+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -18338,10 +18387,10 @@ ;; esac gmp_compile="$CC $CFLAGS $CPPFLAGS conftes1.c conftes2.s >&5" - if { (eval echo "$as_me:18341: \"$gmp_compile\"") >&5 + if { (eval echo "$as_me:18390: \"$gmp_compile\"") >&5 (eval $gmp_compile) 2>&5 ac_status=$? - echo "$as_me:18344: \$? = $ac_status" >&5 + echo "$as_me:18393: \$? = $ac_status" >&5 (exit $ac_status); }; then eval tmp_result$tmp_underscore=yes else @@ -18351,7 +18400,7 @@ if test $tmp_result_ = yes; then if test $tmp_result = yes; then - { { echo "$as_me:18354: error: Test program unexpectedly links both with and without underscore." >&5 + { { echo "$as_me:18403: error: Test program unexpectedly links both with and without underscore." >&5 echo "$as_me: error: Test program unexpectedly links both with and without underscore." >&2;} { (exit 1); exit 1; }; } else @@ -18361,7 +18410,7 @@ if test $tmp_result = yes; then gmp_cv_asm_underscore=no else - { { echo "$as_me:18364: error: Test program links neither with nor without underscore." >&5 + { { echo "$as_me:18413: error: Test program links neither with nor without underscore." >&5 echo "$as_me: error: Test program links neither with nor without underscore." >&2;} { (exit 1); exit 1; }; } fi @@ -18369,7 +18418,7 @@ rm -f conftes1* conftes2* a.out fi -echo "$as_me:18372: result: $gmp_cv_asm_underscore" >&5 +echo "$as_me:18421: result: $gmp_cv_asm_underscore" >&5 echo "${ECHO_T}$gmp_cv_asm_underscore" >&6 if test "$gmp_cv_asm_underscore" = "yes"; then @@ -18381,7 +18430,7 @@ fi -echo "$as_me:18384: checking how to switch to read-only data section" >&5 +echo "$as_me:18433: checking how to switch to read-only data section" >&5 echo $ECHO_N "checking how to switch to read-only data section... $ECHO_C" >&6 if test "${gmp_cv_asm_rodata+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -18398,10 +18447,10 @@ echo "Test program:" >&5 cat conftest.c >&5 gmp_compile="$CC $CFLAGS $CPPFLAGS -S conftest.c >&5" -if { (eval echo "$as_me:18401: \"$gmp_compile\"") >&5 +if { (eval echo "$as_me:18450: \"$gmp_compile\"") >&5 (eval $gmp_compile) 2>&5 ac_status=$? - echo "$as_me:18404: \$? = $ac_status" >&5 + echo "$as_me:18453: \$? = $ac_status" >&5 (exit $ac_status); }; then echo "Compiler output:" >&5 cat conftest.s >&5 @@ -18431,11 +18480,11 @@ fi fi -echo "$as_me:18434: result: $gmp_cv_asm_rodata" >&5 +echo "$as_me:18483: result: $gmp_cv_asm_rodata" >&5 echo "${ECHO_T}$gmp_cv_asm_rodata" >&6 echo "define(, <$gmp_cv_asm_rodata>)" >> $gmp_tmpconfigm4 - echo "$as_me:18438: checking if the export directive needs an attribute" >&5 + echo "$as_me:18487: checking if the export directive needs an attribute" >&5 echo $ECHO_N "checking if the export directive needs an attribute... $ECHO_C" >&6 if test "${gmp_cv_asm_globl_attr+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -18446,11 +18495,11 @@ esac fi -echo "$as_me:18449: result: $gmp_cv_asm_globl_attr" >&5 +echo "$as_me:18498: result: $gmp_cv_asm_globl_attr" >&5 echo "${ECHO_T}$gmp_cv_asm_globl_attr" >&6 echo "define(, <$gmp_cv_asm_globl_attr>)" >> $gmp_tmpconfigm4 - echo "$as_me:18453: checking for assembler .type directive" >&5 + echo "$as_me:18502: checking for assembler .type directive" >&5 echo $ECHO_N "checking for assembler .type directive... $ECHO_C" >&6 if test "${gmp_cv_asm_type+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -18461,10 +18510,10 @@ .type sym,${gmp_tmp_prefix}function EOF gmp_assemble="$CCAS $CFLAGS conftest.s >conftest.out 2>&1" -if { (eval echo "$as_me:18464: \"$gmp_assemble\"") >&5 +if { (eval echo "$as_me:18513: \"$gmp_assemble\"") >&5 (eval $gmp_assemble) 2>&5 ac_status=$? - echo "$as_me:18467: \$? = $ac_status" >&5 + echo "$as_me:18516: \$? = $ac_status" >&5 (exit $ac_status); }; then cat conftest.out >&5 if grep "\.type pseudo-op used outside of \.def/\.endef ignored" conftest.out >/dev/null; then : ; @@ -18484,11 +18533,11 @@ rm -f conftest* fi -echo "$as_me:18487: result: $gmp_cv_asm_type" >&5 +echo "$as_me:18536: result: $gmp_cv_asm_type" >&5 echo "${ECHO_T}$gmp_cv_asm_type" >&6 echo "define(, <$gmp_cv_asm_type>)" >> $gmp_tmpconfigm4 - echo "$as_me:18491: checking for assembler .size directive" >&5 + echo "$as_me:18540: checking for assembler .size directive" >&5 echo $ECHO_N "checking for assembler .size directive... $ECHO_C" >&6 if test "${gmp_cv_asm_size+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -18498,10 +18547,10 @@ .size sym,1 EOF gmp_assemble="$CCAS $CFLAGS conftest.s >conftest.out 2>&1" -if { (eval echo "$as_me:18501: \"$gmp_assemble\"") >&5 +if { (eval echo "$as_me:18550: \"$gmp_assemble\"") >&5 (eval $gmp_assemble) 2>&5 ac_status=$? - echo "$as_me:18504: \$? = $ac_status" >&5 + echo "$as_me:18553: \$? = $ac_status" >&5 (exit $ac_status); }; then cat conftest.out >&5 if grep "\.size pseudo-op used outside of \.def/\.endef ignored" conftest.out >/dev/null; then : ; @@ -18517,11 +18566,11 @@ rm -f conftest* fi -echo "$as_me:18520: result: $gmp_cv_asm_size" >&5 +echo "$as_me:18569: result: $gmp_cv_asm_size" >&5 echo "${ECHO_T}$gmp_cv_asm_size" >&6 echo "define(, <$gmp_cv_asm_size>)" >> $gmp_tmpconfigm4 -echo "$as_me:18524: checking what prefix to use for a local label" >&5 +echo "$as_me:18573: checking what prefix to use for a local label" >&5 echo $ECHO_N "checking what prefix to use for a local label... $ECHO_C" >&6 if test "${gmp_cv_asm_lsym_prefix+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -18536,15 +18585,15 @@ .byte 0 EOF gmp_assemble="$CCAS $CFLAGS conftest.s >conftest.out 2>&1" -if { (eval echo "$as_me:18539: \"$gmp_assemble\"") >&5 +if { (eval echo "$as_me:18588: \"$gmp_assemble\"") >&5 (eval $gmp_assemble) 2>&5 ac_status=$? - echo "$as_me:18542: \$? = $ac_status" >&5 + echo "$as_me:18591: \$? = $ac_status" >&5 (exit $ac_status); }; then cat conftest.out >&5 $NM conftest.o >&5 2>&5 if test $? != 0; then - { echo "$as_me:18547: WARNING: NM failure, using default local label $gmp_cv_asm_lsym_prefix" >&5 + { echo "$as_me:18596: WARNING: NM failure, using default local label $gmp_cv_asm_lsym_prefix" >&5 echo "$as_me: WARNING: NM failure, using default local label $gmp_cv_asm_lsym_prefix" >&2;} gmp_found=yes break @@ -18565,12 +18614,12 @@ done rm -f conftest* if test $gmp_found = no; then - { echo "$as_me:18568: WARNING: cannot determine local label, using default $gmp_cv_asm_lsym_prefix" >&5 + { echo "$as_me:18617: WARNING: cannot determine local label, using default $gmp_cv_asm_lsym_prefix" >&5 echo "$as_me: WARNING: cannot determine local label, using default $gmp_cv_asm_lsym_prefix" >&2;} fi fi -echo "$as_me:18573: result: $gmp_cv_asm_lsym_prefix" >&5 +echo "$as_me:18622: result: $gmp_cv_asm_lsym_prefix" >&5 echo "${ECHO_T}$gmp_cv_asm_lsym_prefix" >&6 echo "define(, <${gmp_cv_asm_lsym_prefix}>)" >> $gmp_tmpconfigm4 @@ -18578,7 +18627,7 @@ #define LSYM_PREFIX "$gmp_cv_asm_lsym_prefix" EOF -echo "$as_me:18581: checking how to define a 32-bit word" >&5 +echo "$as_me:18630: checking how to define a 32-bit word" >&5 echo $ECHO_N "checking how to define a 32-bit word... $ECHO_C" >&6 if test "${gmp_cv_asm_w32+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -18603,10 +18652,10 @@ .byte 0 EOF gmp_assemble="$CCAS $CFLAGS conftest.s >conftest.out 2>&1" -if { (eval echo "$as_me:18606: \"$gmp_assemble\"") >&5 +if { (eval echo "$as_me:18655: \"$gmp_assemble\"") >&5 (eval $gmp_assemble) 2>&5 ac_status=$? - echo "$as_me:18609: \$? = $ac_status" >&5 + echo "$as_me:18658: \$? = $ac_status" >&5 (exit $ac_status); }; then cat conftest.out >&5 gmp_tmp_val=`$NM conftest.o | grep foo | \ @@ -18628,17 +18677,17 @@ ;; esac if test -z "$gmp_cv_asm_w32"; then - { { echo "$as_me:18631: error: cannot determine how to define a 32-bit word" >&5 + { { echo "$as_me:18680: error: cannot determine how to define a 32-bit word" >&5 echo "$as_me: error: cannot determine how to define a 32-bit word" >&2;} { (exit 1); exit 1; }; } fi fi -echo "$as_me:18637: result: $gmp_cv_asm_w32" >&5 +echo "$as_me:18686: result: $gmp_cv_asm_w32" >&5 echo "${ECHO_T}$gmp_cv_asm_w32" >&6 echo "define(, <$gmp_cv_asm_w32>)" >> $gmp_tmpconfigm4 -echo "$as_me:18641: checking if .align assembly directive is logarithmic" >&5 +echo "$as_me:18690: checking if .align assembly directive is logarithmic" >&5 echo $ECHO_N "checking if .align assembly directive is logarithmic... $ECHO_C" >&6 if test "${gmp_cv_asm_align_log+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -18653,10 +18702,10 @@ .byte 2 EOF gmp_assemble="$CCAS $CFLAGS conftest.s >conftest.out 2>&1" -if { (eval echo "$as_me:18656: \"$gmp_assemble\"") >&5 +if { (eval echo "$as_me:18705: \"$gmp_assemble\"") >&5 (eval $gmp_assemble) 2>&5 ac_status=$? - echo "$as_me:18659: \$? = $ac_status" >&5 + echo "$as_me:18708: \$? = $ac_status" >&5 (exit $ac_status); }; then cat conftest.out >&5 gmp_tmp_val=`$NM conftest.o | grep foo | \ @@ -18670,14 +18719,14 @@ cat conftest.out >&5 echo "configure: failed program was:" >&5 cat conftest.s >&5 - { { echo "$as_me:18673: error: cannot assemble alignment test" >&5 + { { echo "$as_me:18722: error: cannot assemble alignment test" >&5 echo "$as_me: error: cannot assemble alignment test" >&2;} { (exit 1); exit 1; }; } fi rm -f conftest* fi -echo "$as_me:18680: result: $gmp_cv_asm_align_log" >&5 +echo "$as_me:18729: result: $gmp_cv_asm_align_log" >&5 echo "${ECHO_T}$gmp_cv_asm_align_log" >&6 echo "define(,<$gmp_cv_asm_align_log>)" >> $gmp_tmpconfigm4 @@ -18685,7 +18734,7 @@ case $host in m68*-*-*) -echo "$as_me:18688: checking assembler instruction and register style" >&5 +echo "$as_me:18737: checking assembler instruction and register style" >&5 echo $ECHO_N "checking assembler instruction and register style... $ECHO_C" >&6 if test "${gmp_cv_asm_m68k_instruction+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -18697,10 +18746,10 @@ $i EOF gmp_assemble="$CCAS $CFLAGS conftest.s >conftest.out 2>&1" -if { (eval echo "$as_me:18700: \"$gmp_assemble\"") >&5 +if { (eval echo "$as_me:18749: \"$gmp_assemble\"") >&5 (eval $gmp_assemble) 2>&5 ac_status=$? - echo "$as_me:18703: \$? = $ac_status" >&5 + echo "$as_me:18752: \$? = $ac_status" >&5 (exit $ac_status); }; then cat conftest.out >&5 gmp_cv_asm_m68k_instruction=$i @@ -18717,14 +18766,14 @@ done fi -echo "$as_me:18720: result: $gmp_cv_asm_m68k_instruction" >&5 +echo "$as_me:18769: result: $gmp_cv_asm_m68k_instruction" >&5 echo "${ECHO_T}$gmp_cv_asm_m68k_instruction" >&6 case $gmp_cv_asm_m68k_instruction in "addl d0,d1") want_dot_size=no; want_register_percent=no ;; "addl %d0,%d1") want_dot_size=no; want_register_percent=yes ;; "add.l d0,d1") want_dot_size=yes; want_register_percent=no ;; "add.l %d0,%d1") want_dot_size=yes; want_register_percent=yes ;; -*) { { echo "$as_me:18727: error: cannot determine assembler instruction and register style" >&5 +*) { { echo "$as_me:18776: error: cannot determine assembler instruction and register style" >&5 echo "$as_me: error: cannot determine assembler instruction and register style" >&2;} { (exit 1); exit 1; }; } ;; esac @@ -18733,7 +18782,7 @@ echo "define(, <\`$want_dot_size'>)" >> $gmp_tmpconfigm4 -echo "$as_me:18736: checking assembler addressing style" >&5 +echo "$as_me:18785: checking assembler addressing style" >&5 echo $ECHO_N "checking assembler addressing style... $ECHO_C" >&6 if test "${gmp_cv_asm_m68k_addressing+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -18741,14 +18790,14 @@ case $gmp_cv_asm_m68k_instruction in addl*) movel=movel ;; add.l*) movel=move.l ;; -*) { { echo "$as_me:18744: error: oops, unrecognised gmp_cv_asm_m68k_instruction" >&5 +*) { { echo "$as_me:18793: error: oops, unrecognised gmp_cv_asm_m68k_instruction" >&5 echo "$as_me: error: oops, unrecognised gmp_cv_asm_m68k_instruction" >&2;} { (exit 1); exit 1; }; } ;; esac case $gmp_cv_asm_m68k_instruction in *"%d0,%d1") dreg=%d0; areg=%a0 ;; *"d0,d1") dreg=d0; areg=a0 ;; -*) { { echo "$as_me:18751: error: oops, unrecognised gmp_cv_asm_m68k_instruction" >&5 +*) { { echo "$as_me:18800: error: oops, unrecognised gmp_cv_asm_m68k_instruction" >&5 echo "$as_me: error: oops, unrecognised gmp_cv_asm_m68k_instruction" >&2;} { (exit 1); exit 1; }; } ;; esac @@ -18757,10 +18806,10 @@ $movel $dreg, $areg@- EOF gmp_assemble="$CCAS $CFLAGS conftest.s >conftest.out 2>&1" -if { (eval echo "$as_me:18760: \"$gmp_assemble\"") >&5 +if { (eval echo "$as_me:18809: \"$gmp_assemble\"") >&5 (eval $gmp_assemble) 2>&5 ac_status=$? - echo "$as_me:18763: \$? = $ac_status" >&5 + echo "$as_me:18812: \$? = $ac_status" >&5 (exit $ac_status); }; then cat conftest.out >&5 gmp_cv_asm_m68k_addressing=mit @@ -18773,10 +18822,10 @@ $movel $dreg, -($areg) EOF gmp_assemble="$CCAS $CFLAGS conftest.s >conftest.out 2>&1" -if { (eval echo "$as_me:18776: \"$gmp_assemble\"") >&5 +if { (eval echo "$as_me:18825: \"$gmp_assemble\"") >&5 (eval $gmp_assemble) 2>&5 ac_status=$? - echo "$as_me:18779: \$? = $ac_status" >&5 + echo "$as_me:18828: \$? = $ac_status" >&5 (exit $ac_status); }; then cat conftest.out >&5 gmp_cv_asm_m68k_addressing=motorola @@ -18784,7 +18833,7 @@ cat conftest.out >&5 echo "configure: failed program was:" >&5 cat conftest.s >&5 - { { echo "$as_me:18787: error: cannot determine assembler addressing style" >&5 + { { echo "$as_me:18836: error: cannot determine assembler addressing style" >&5 echo "$as_me: error: cannot determine assembler addressing style" >&2;} { (exit 1); exit 1; }; } fi @@ -18794,12 +18843,12 @@ rm -f conftest* fi -echo "$as_me:18797: result: $gmp_cv_asm_m68k_addressing" >&5 +echo "$as_me:18846: result: $gmp_cv_asm_m68k_addressing" >&5 echo "${ECHO_T}$gmp_cv_asm_m68k_addressing" >&6 echo "define(, <\`$gmp_cv_asm_m68k_addressing'>)" >> $gmp_tmpconfigm4 -echo "$as_me:18802: checking assembler shortest branches" >&5 +echo "$as_me:18851: checking assembler shortest branches" >&5 echo $ECHO_N "checking assembler shortest branches... $ECHO_C" >&6 if test "${gmp_cv_asm_m68k_branches+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -18812,10 +18861,10 @@ $i foo EOF gmp_assemble="$CCAS $CFLAGS conftest.s >conftest.out 2>&1" -if { (eval echo "$as_me:18815: \"$gmp_assemble\"") >&5 +if { (eval echo "$as_me:18864: \"$gmp_assemble\"") >&5 (eval $gmp_assemble) 2>&5 ac_status=$? - echo "$as_me:18818: \$? = $ac_status" >&5 + echo "$as_me:18867: \$? = $ac_status" >&5 (exit $ac_status); }; then cat conftest.out >&5 gmp_cv_asm_m68k_branches=$i @@ -18832,10 +18881,10 @@ done fi -echo "$as_me:18835: result: $gmp_cv_asm_m68k_branches" >&5 +echo "$as_me:18884: result: $gmp_cv_asm_m68k_branches" >&5 echo "${ECHO_T}$gmp_cv_asm_m68k_branches" >&6 if test "$gmp_cv_asm_m68k_branches" = unknown; then - { { echo "$as_me:18838: error: cannot determine assembler branching style" >&5 + { { echo "$as_me:18887: error: cannot determine assembler branching style" >&5 echo "$as_me: error: cannot determine assembler branching style" >&2;} { (exit 1); exit 1; }; } fi @@ -18845,7 +18894,7 @@ ;; power*-*-*) -echo "$as_me:18848: checking if the assembler needs r on registers" >&5 +echo "$as_me:18897: checking if the assembler needs r on registers" >&5 echo $ECHO_N "checking if the assembler needs r on registers... $ECHO_C" >&6 if test "${gmp_cv_asm_powerpc_r_registers+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -18855,10 +18904,10 @@ mtctr 6 EOF gmp_assemble="$CCAS $CFLAGS conftest.s >conftest.out 2>&1" -if { (eval echo "$as_me:18858: \"$gmp_assemble\"") >&5 +if { (eval echo "$as_me:18907: \"$gmp_assemble\"") >&5 (eval $gmp_assemble) 2>&5 ac_status=$? - echo "$as_me:18861: \$? = $ac_status" >&5 + echo "$as_me:18910: \$? = $ac_status" >&5 (exit $ac_status); }; then cat conftest.out >&5 gmp_cv_asm_powerpc_r_registers=no @@ -18871,10 +18920,10 @@ mtctr r6 EOF gmp_assemble="$CCAS $CFLAGS conftest.s >conftest.out 2>&1" -if { (eval echo "$as_me:18874: \"$gmp_assemble\"") >&5 +if { (eval echo "$as_me:18923: \"$gmp_assemble\"") >&5 (eval $gmp_assemble) 2>&5 ac_status=$? - echo "$as_me:18877: \$? = $ac_status" >&5 + echo "$as_me:18926: \$? = $ac_status" >&5 (exit $ac_status); }; then cat conftest.out >&5 gmp_cv_asm_powerpc_r_registers=yes @@ -18882,7 +18931,7 @@ cat conftest.out >&5 echo "configure: failed program was:" >&5 cat conftest.s >&5 - { { echo "$as_me:18885: error: neither \"mtctr 6\" nor \"mtctr r6\" works" >&5 + { { echo "$as_me:18934: error: neither \"mtctr 6\" nor \"mtctr r6\" works" >&5 echo "$as_me: error: neither \"mtctr 6\" nor \"mtctr r6\" works" >&2;} { (exit 1); exit 1; }; } fi @@ -18892,7 +18941,7 @@ rm -f conftest* fi -echo "$as_me:18895: result: $gmp_cv_asm_powerpc_r_registers" >&5 +echo "$as_me:18944: result: $gmp_cv_asm_powerpc_r_registers" >&5 echo "${ECHO_T}$gmp_cv_asm_powerpc_r_registers" >&6 echo "define(,<$gmp_cv_asm_powerpc_r_registers>)" >> $gmp_tmpconfigm4 @@ -18911,7 +18960,7 @@ i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-*) -echo "$as_me:18914: checking if the .align directive accepts an 0x90 fill in .text" >&5 +echo "$as_me:18963: checking if the .align directive accepts an 0x90 fill in .text" >&5 echo $ECHO_N "checking if the .align directive accepts an 0x90 fill in .text... $ECHO_C" >&6 if test "${gmp_cv_asm_align_fill_0x90+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -18923,10 +18972,10 @@ .align 4, 0x90 EOF gmp_assemble="$CCAS $CFLAGS conftest.s >conftest.out 2>&1" -if { (eval echo "$as_me:18926: \"$gmp_assemble\"") >&5 +if { (eval echo "$as_me:18975: \"$gmp_assemble\"") >&5 (eval $gmp_assemble) 2>&5 ac_status=$? - echo "$as_me:18929: \$? = $ac_status" >&5 + echo "$as_me:18978: \$? = $ac_status" >&5 (exit $ac_status); }; then cat conftest.out >&5 if grep "Warning: Fill parameter ignored for executable section" conftest.out >/dev/null; then @@ -18944,12 +18993,12 @@ rm -f conftest* fi -echo "$as_me:18947: result: $gmp_cv_asm_align_fill_0x90" >&5 +echo "$as_me:18996: result: $gmp_cv_asm_align_fill_0x90" >&5 echo "${ECHO_T}$gmp_cv_asm_align_fill_0x90" >&6 echo "define(,<$gmp_cv_asm_align_fill_0x90>)" >> $gmp_tmpconfigm4 -echo "$as_me:18952: checking if the assembler takes cl with shldl" >&5 +echo "$as_me:19001: checking if the assembler takes cl with shldl" >&5 echo $ECHO_N "checking if the assembler takes cl with shldl... $ECHO_C" >&6 if test "${gmp_cv_asm_x86_shldl_cl+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -18959,10 +19008,10 @@ shldl %cl, %eax, %ebx EOF gmp_assemble="$CCAS $CFLAGS conftest.s >conftest.out 2>&1" -if { (eval echo "$as_me:18962: \"$gmp_assemble\"") >&5 +if { (eval echo "$as_me:19011: \"$gmp_assemble\"") >&5 (eval $gmp_assemble) 2>&5 ac_status=$? - echo "$as_me:18965: \$? = $ac_status" >&5 + echo "$as_me:19014: \$? = $ac_status" >&5 (exit $ac_status); }; then cat conftest.out >&5 gmp_cv_asm_x86_shldl_cl=yes @@ -18975,7 +19024,7 @@ rm -f conftest* fi -echo "$as_me:18978: result: $gmp_cv_asm_x86_shldl_cl" >&5 +echo "$as_me:19027: result: $gmp_cv_asm_x86_shldl_cl" >&5 echo "${ECHO_T}$gmp_cv_asm_x86_shldl_cl" >&6 if test "$gmp_cv_asm_x86_shldl_cl" = "yes"; then @@ -18989,7 +19038,7 @@ if test "$enable_profiling" != no; then -echo "$as_me:18992: checking how to call x86 mcount" >&5 +echo "$as_me:19041: checking how to call x86 mcount" >&5 echo $ECHO_N "checking how to call x86 mcount... $ECHO_C" >&6 cat >conftest.c <&5 + if { (eval echo "$as_me:19049: \"$gmp_asmout_compile\"") >&5 (eval $gmp_asmout_compile) 2>&5 ac_status=$? - echo "$as_me:19003: \$? = $ac_status" >&5 + echo "$as_me:19052: \$? = $ac_status" >&5 (exit $ac_status); }; then if grep '\.data' conftest.s >/dev/null; then mcount_nonpic_reg=`sed -n '/esp/!s/.*movl.*,\(%[a-z]*\).*$/\1/p' conftest.s` @@ -19009,12 +19058,12 @@ fi mcount_nonpic_call=`grep 'call.*mcount' conftest.s` if test -z "$mcount_nonpic_call"; then - { { echo "$as_me:19012: error: Cannot find mcount call for non-PIC" >&5 + { { echo "$as_me:19061: error: Cannot find mcount call for non-PIC" >&5 echo "$as_me: error: Cannot find mcount call for non-PIC" >&2;} { (exit 1); exit 1; }; } fi else - { { echo "$as_me:19017: error: Cannot compile test program for non-PIC" >&5 + { { echo "$as_me:19066: error: Cannot compile test program for non-PIC" >&5 echo "$as_me: error: Cannot compile test program for non-PIC" >&2;} { (exit 1); exit 1; }; } fi @@ -19022,10 +19071,10 @@ if test "$enable_shared" = yes; then gmp_asmout_compile="$CC $CFLAGS $CPPFLAGS $lt_prog_compiler_pic -S conftest.c 1>&5" - if { (eval echo "$as_me:19025: \"$gmp_asmout_compile\"") >&5 + if { (eval echo "$as_me:19074: \"$gmp_asmout_compile\"") >&5 (eval $gmp_asmout_compile) 2>&5 ac_status=$? - echo "$as_me:19028: \$? = $ac_status" >&5 + echo "$as_me:19077: \$? = $ac_status" >&5 (exit $ac_status); }; then if grep '\.data' conftest.s >/dev/null; then case $lt_prog_compiler_pic in @@ -19042,12 +19091,12 @@ fi mcount_pic_call=`grep 'call.*mcount' conftest.s` if test -z "$mcount_pic_call"; then - { { echo "$as_me:19045: error: Cannot find mcount call for PIC" >&5 + { { echo "$as_me:19094: error: Cannot find mcount call for PIC" >&5 echo "$as_me: error: Cannot find mcount call for PIC" >&2;} { (exit 1); exit 1; }; } fi else - { { echo "$as_me:19050: error: Cannot compile test program for PIC" >&5 + { { echo "$as_me:19099: error: Cannot compile test program for PIC" >&5 echo "$as_me: error: Cannot compile test program for PIC" >&2;} { (exit 1); exit 1; }; } fi @@ -19062,7 +19111,7 @@ echo "define(, <\`$mcount_pic_call'>)" >> $gmp_tmpconfigm4 rm -f conftest.* -echo "$as_me:19065: result: determined" >&5 +echo "$as_me:19114: result: determined" >&5 echo "${ECHO_T}determined" >&6 fi @@ -19084,7 +19133,7 @@ fi done if test -z "$gmp_mparam_source"; then - { { echo "$as_me:19087: error: no version of gmp-mparam.h found in path: $path" >&5 + { { echo "$as_me:19136: error: no version of gmp-mparam.h found in path: $path" >&5 echo "$as_me: error: no version of gmp-mparam.h found in path: $path" >&2;} { (exit 1); exit 1; }; } fi @@ -19103,13 +19152,13 @@ if test -n "$__GMP_BITS_PER_MP_LIMB" \ && grep "^#define BYTES_PER_MP_LIMB" $gmp_mparam_source >/dev/null; then : ; else - echo "$as_me:19106: checking for mp_limb_t" >&5 + echo "$as_me:19155: checking for mp_limb_t" >&5 echo $ECHO_N "checking for mp_limb_t... $ECHO_C" >&6 if test "${ac_cv_type_mp_limb_t+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 19112 "configure" +#line 19161 "configure" #include "confdefs.h" #include #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */ @@ -19129,16 +19178,16 @@ } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:19132: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:19181: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:19135: \$? = $ac_status" >&5 + echo "$as_me:19184: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:19138: \"$ac_try\"") >&5 + { (eval echo "$as_me:19187: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:19141: \$? = $ac_status" >&5 + echo "$as_me:19190: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_type_mp_limb_t=yes else @@ -19148,10 +19197,10 @@ fi rm -f conftest.$ac_objext conftest.$ac_ext fi -echo "$as_me:19151: result: $ac_cv_type_mp_limb_t" >&5 +echo "$as_me:19200: result: $ac_cv_type_mp_limb_t" >&5 echo "${ECHO_T}$ac_cv_type_mp_limb_t" >&6 -echo "$as_me:19154: checking size of mp_limb_t" >&5 +echo "$as_me:19203: checking size of mp_limb_t" >&5 echo $ECHO_N "checking size of mp_limb_t... $ECHO_C" >&6 if test "${ac_cv_sizeof_mp_limb_t+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -19160,7 +19209,7 @@ if test "$cross_compiling" = yes; then # Depending upon the size, compute the lo and hi bounds. cat >conftest.$ac_ext <<_ACEOF -#line 19163 "configure" +#line 19212 "configure" #include "confdefs.h" #include #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */ @@ -19177,21 +19226,21 @@ } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:19180: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:19229: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:19183: \$? = $ac_status" >&5 + echo "$as_me:19232: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:19186: \"$ac_try\"") >&5 + { (eval echo "$as_me:19235: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:19189: \$? = $ac_status" >&5 + echo "$as_me:19238: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_lo=0 ac_mid=0 while :; do cat >conftest.$ac_ext <<_ACEOF -#line 19194 "configure" +#line 19243 "configure" #include "confdefs.h" #include #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */ @@ -19208,16 +19257,16 @@ } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:19211: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:19260: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:19214: \$? = $ac_status" >&5 + echo "$as_me:19263: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:19217: \"$ac_try\"") >&5 + { (eval echo "$as_me:19266: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:19220: \$? = $ac_status" >&5 + echo "$as_me:19269: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_hi=$ac_mid; break else @@ -19233,7 +19282,7 @@ ac_hi=-1 ac_mid=-1 while :; do cat >conftest.$ac_ext <<_ACEOF -#line 19236 "configure" +#line 19285 "configure" #include "confdefs.h" #include #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */ @@ -19250,16 +19299,16 @@ } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:19253: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:19302: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:19256: \$? = $ac_status" >&5 + echo "$as_me:19305: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:19259: \"$ac_try\"") >&5 + { (eval echo "$as_me:19308: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:19262: \$? = $ac_status" >&5 + echo "$as_me:19311: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_lo=$ac_mid; break else @@ -19275,7 +19324,7 @@ while test "x$ac_lo" != "x$ac_hi"; do ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` cat >conftest.$ac_ext <<_ACEOF -#line 19278 "configure" +#line 19327 "configure" #include "confdefs.h" #include #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */ @@ -19292,16 +19341,16 @@ } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:19295: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:19344: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:19298: \$? = $ac_status" >&5 + echo "$as_me:19347: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:19301: \"$ac_try\"") >&5 + { (eval echo "$as_me:19350: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:19304: \$? = $ac_status" >&5 + echo "$as_me:19353: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_hi=$ac_mid else @@ -19314,12 +19363,12 @@ ac_cv_sizeof_mp_limb_t=$ac_lo else if test "$cross_compiling" = yes; then - { { echo "$as_me:19317: error: cannot run test program while cross compiling" >&5 + { { echo "$as_me:19366: error: cannot run test program while cross compiling" >&5 echo "$as_me: error: cannot run test program while cross compiling" >&2;} { (exit 1); exit 1; }; } else cat >conftest.$ac_ext <<_ACEOF -#line 19322 "configure" +#line 19371 "configure" #include "confdefs.h" #include #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */ @@ -19340,15 +19389,15 @@ } _ACEOF rm -f conftest$ac_exeext -if { (eval echo "$as_me:19343: \"$ac_link\"") >&5 +if { (eval echo "$as_me:19392: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:19346: \$? = $ac_status" >&5 + echo "$as_me:19395: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (eval echo "$as_me:19348: \"$ac_try\"") >&5 + { (eval echo "$as_me:19397: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:19351: \$? = $ac_status" >&5 + echo "$as_me:19400: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_sizeof_mp_limb_t=`cat conftest.val` else @@ -19364,14 +19413,14 @@ ac_cv_sizeof_mp_limb_t=0 fi fi -echo "$as_me:19367: result: $ac_cv_sizeof_mp_limb_t" >&5 +echo "$as_me:19416: result: $ac_cv_sizeof_mp_limb_t" >&5 echo "${ECHO_T}$ac_cv_sizeof_mp_limb_t" >&6 cat >>confdefs.h <&5 + { { echo "$as_me:19423: error: some sort of compiler problem, mp_limb_t doesn't seem to work" >&5 echo "$as_me: error: some sort of compiler problem, mp_limb_t doesn't seem to work" >&2;} { (exit 1); exit 1; }; } fi @@ -19392,13 +19441,13 @@ else case $limb_chosen in longlong) - echo "$as_me:19395: checking for unsigned long" >&5 + echo "$as_me:19444: checking for unsigned long" >&5 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6 if test "${ac_cv_type_unsigned_long+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 19401 "configure" +#line 19450 "configure" #include "confdefs.h" $ac_includes_default int @@ -19413,16 +19462,16 @@ } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:19416: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:19465: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:19419: \$? = $ac_status" >&5 + echo "$as_me:19468: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:19422: \"$ac_try\"") >&5 + { (eval echo "$as_me:19471: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:19425: \$? = $ac_status" >&5 + echo "$as_me:19474: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_type_unsigned_long=yes else @@ -19432,10 +19481,10 @@ fi rm -f conftest.$ac_objext conftest.$ac_ext fi -echo "$as_me:19435: result: $ac_cv_type_unsigned_long" >&5 +echo "$as_me:19484: result: $ac_cv_type_unsigned_long" >&5 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6 -echo "$as_me:19438: checking size of unsigned long" >&5 +echo "$as_me:19487: checking size of unsigned long" >&5 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -19444,7 +19493,7 @@ if test "$cross_compiling" = yes; then # Depending upon the size, compute the lo and hi bounds. cat >conftest.$ac_ext <<_ACEOF -#line 19447 "configure" +#line 19496 "configure" #include "confdefs.h" $ac_includes_default int @@ -19456,21 +19505,21 @@ } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:19459: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:19508: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:19462: \$? = $ac_status" >&5 + echo "$as_me:19511: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:19465: \"$ac_try\"") >&5 + { (eval echo "$as_me:19514: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:19468: \$? = $ac_status" >&5 + echo "$as_me:19517: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_lo=0 ac_mid=0 while :; do cat >conftest.$ac_ext <<_ACEOF -#line 19473 "configure" +#line 19522 "configure" #include "confdefs.h" $ac_includes_default int @@ -19482,16 +19531,16 @@ } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:19485: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:19534: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:19488: \$? = $ac_status" >&5 + echo "$as_me:19537: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:19491: \"$ac_try\"") >&5 + { (eval echo "$as_me:19540: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:19494: \$? = $ac_status" >&5 + echo "$as_me:19543: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_hi=$ac_mid; break else @@ -19507,7 +19556,7 @@ ac_hi=-1 ac_mid=-1 while :; do cat >conftest.$ac_ext <<_ACEOF -#line 19510 "configure" +#line 19559 "configure" #include "confdefs.h" $ac_includes_default int @@ -19519,16 +19568,16 @@ } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:19522: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:19571: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:19525: \$? = $ac_status" >&5 + echo "$as_me:19574: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:19528: \"$ac_try\"") >&5 + { (eval echo "$as_me:19577: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:19531: \$? = $ac_status" >&5 + echo "$as_me:19580: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_lo=$ac_mid; break else @@ -19544,7 +19593,7 @@ while test "x$ac_lo" != "x$ac_hi"; do ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` cat >conftest.$ac_ext <<_ACEOF -#line 19547 "configure" +#line 19596 "configure" #include "confdefs.h" $ac_includes_default int @@ -19556,16 +19605,16 @@ } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:19559: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:19608: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:19562: \$? = $ac_status" >&5 + echo "$as_me:19611: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:19565: \"$ac_try\"") >&5 + { (eval echo "$as_me:19614: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:19568: \$? = $ac_status" >&5 + echo "$as_me:19617: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_hi=$ac_mid else @@ -19578,12 +19627,12 @@ ac_cv_sizeof_unsigned_long=$ac_lo else if test "$cross_compiling" = yes; then - { { echo "$as_me:19581: error: cannot run test program while cross compiling" >&5 + { { echo "$as_me:19630: error: cannot run test program while cross compiling" >&5 echo "$as_me: error: cannot run test program while cross compiling" >&2;} { (exit 1); exit 1; }; } else cat >conftest.$ac_ext <<_ACEOF -#line 19586 "configure" +#line 19635 "configure" #include "confdefs.h" $ac_includes_default int @@ -19599,15 +19648,15 @@ } _ACEOF rm -f conftest$ac_exeext -if { (eval echo "$as_me:19602: \"$ac_link\"") >&5 +if { (eval echo "$as_me:19651: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:19605: \$? = $ac_status" >&5 + echo "$as_me:19654: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (eval echo "$as_me:19607: \"$ac_try\"") >&5 + { (eval echo "$as_me:19656: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:19610: \$? = $ac_status" >&5 + echo "$as_me:19659: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_sizeof_unsigned_long=`cat conftest.val` else @@ -19623,7 +19672,7 @@ ac_cv_sizeof_unsigned_long=0 fi fi -echo "$as_me:19626: result: $ac_cv_sizeof_unsigned_long" >&5 +echo "$as_me:19675: result: $ac_cv_sizeof_unsigned_long" >&5 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6 cat >>confdefs.h <&5 +{ echo "$as_me:19857: creating $CONFIG_STATUS" >&5 echo "$as_me: creating $CONFIG_STATUS" >&6;} cat >$CONFIG_STATUS <<_ACEOF #! $SHELL @@ -19984,7 +20033,7 @@ echo "$ac_cs_version"; exit 0 ;; --he | --h) # Conflict between --help and --header - { { echo "$as_me:19987: error: ambiguous option: $1 + { { echo "$as_me:20036: error: ambiguous option: $1 Try \`$0 --help' for more information." >&5 echo "$as_me: error: ambiguous option: $1 Try \`$0 --help' for more information." >&2;} @@ -20003,7 +20052,7 @@ ac_need_defaults=false;; # This is an error. - -*) { { echo "$as_me:20006: error: unrecognized option: $1 + -*) { { echo "$as_me:20055: error: unrecognized option: $1 Try \`$0 --help' for more information." >&5 echo "$as_me: error: unrecognized option: $1 Try \`$0 --help' for more information." >&2;} @@ -20078,7 +20127,7 @@ "gmp-mparam.h" ) CONFIG_LINKS="$CONFIG_LINKS gmp-mparam.h:mpn/$tmp_dir/gmp-mparam.h" ;; "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; - *) { { echo "$as_me:20081: error: invalid argument: $ac_config_target" >&5 + *) { { echo "$as_me:20130: error: invalid argument: $ac_config_target" >&5 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} { (exit 1); exit 1; }; };; esac @@ -20366,7 +20415,7 @@ esac if test x"$ac_file" != x-; then - { echo "$as_me:20369: creating $ac_file" >&5 + { echo "$as_me:20418: creating $ac_file" >&5 echo "$as_me: creating $ac_file" >&6;} rm -f "$ac_file" fi @@ -20384,7 +20433,7 @@ -) echo $tmp/stdin ;; [\\/$]*) # Absolute (can't be DOS-style, as IFS=:) - test -f "$f" || { { echo "$as_me:20387: error: cannot find input file: $f" >&5 + test -f "$f" || { { echo "$as_me:20436: error: cannot find input file: $f" >&5 echo "$as_me: error: cannot find input file: $f" >&2;} { (exit 1); exit 1; }; } echo $f;; @@ -20397,7 +20446,7 @@ echo $srcdir/$f else # /dev/null tree - { { echo "$as_me:20400: error: cannot find input file: $f" >&5 + { { echo "$as_me:20449: error: cannot find input file: $f" >&5 echo "$as_me: error: cannot find input file: $f" >&2;} { (exit 1); exit 1; }; } fi;; @@ -20458,7 +20507,7 @@ * ) ac_file_in=$ac_file.in ;; esac - test x"$ac_file" != x- && { echo "$as_me:20461: creating $ac_file" >&5 + test x"$ac_file" != x- && { echo "$as_me:20510: creating $ac_file" >&5 echo "$as_me: creating $ac_file" >&6;} # First look for the input files in the build tree, otherwise in the @@ -20469,7 +20518,7 @@ -) echo $tmp/stdin ;; [\\/$]*) # Absolute (can't be DOS-style, as IFS=:) - test -f "$f" || { { echo "$as_me:20472: error: cannot find input file: $f" >&5 + test -f "$f" || { { echo "$as_me:20521: error: cannot find input file: $f" >&5 echo "$as_me: error: cannot find input file: $f" >&2;} { (exit 1); exit 1; }; } echo $f;; @@ -20482,7 +20531,7 @@ echo $srcdir/$f else # /dev/null tree - { { echo "$as_me:20485: error: cannot find input file: $f" >&5 + { { echo "$as_me:20534: error: cannot find input file: $f" >&5 echo "$as_me: error: cannot find input file: $f" >&2;} { (exit 1); exit 1; }; } fi;; @@ -20599,7 +20648,7 @@ rm -f $tmp/in if test x"$ac_file" != x-; then if cmp -s $ac_file $tmp/config.h 2>/dev/null; then - { echo "$as_me:20602: $ac_file is unchanged" >&5 + { echo "$as_me:20651: $ac_file is unchanged" >&5 echo "$as_me: $ac_file is unchanged" >&6;} else ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ @@ -20656,11 +20705,11 @@ ac_dest=`echo "$ac_file" | sed 's,:.*,,'` ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` - { echo "$as_me:20659: linking $srcdir/$ac_source to $ac_dest" >&5 + { echo "$as_me:20708: linking $srcdir/$ac_source to $ac_dest" >&5 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;} if test ! -r $srcdir/$ac_source; then - { { echo "$as_me:20663: error: $srcdir/$ac_source: File not found" >&5 + { { echo "$as_me:20712: error: $srcdir/$ac_source: File not found" >&5 echo "$as_me: error: $srcdir/$ac_source: File not found" >&2;} { (exit 1); exit 1; }; } fi @@ -20710,7 +20759,7 @@ # Make a symlink if possible; otherwise try a hard link. ln -s $ac_rel_source $ac_dest 2>/dev/null || ln $srcdir/$ac_source $ac_dest || - { { echo "$as_me:20713: error: cannot link $ac_dest to $srcdir/$ac_source" >&5 + { { echo "$as_me:20762: error: cannot link $ac_dest to $srcdir/$ac_source" >&5 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;} { (exit 1); exit 1; }; } done diff -Naur gmp-4.0/demos/expr/Makefile.am gmp-4.0.1/demos/expr/Makefile.am --- gmp-4.0/demos/expr/Makefile.am Sat Feb 24 00:06:32 2001 +++ gmp-4.0.1/demos/expr/Makefile.am Wed Dec 12 00:35:30 2001 @@ -29,6 +29,9 @@ MPFR_LIBADD_OPTION = $(top_builddir)/mpfr/libmpfr.a endif +# ensure these are always distributed +EXTRA_DIST = exprfr.c exprfra.c + EXTRA_LIBRARIES = libexpr.a libexpr_a_SOURCES = expr.h \ expr.c exprv.c exprz.c exprza.c exprq.c exprqa.c exprf.c exprfa.c \ diff -Naur gmp-4.0/demos/expr/Makefile.in gmp-4.0.1/demos/expr/Makefile.in --- gmp-4.0/demos/expr/Makefile.in Sat Dec 1 01:24:30 2001 +++ gmp-4.0.1/demos/expr/Makefile.in Wed Dec 12 00:35:30 2001 @@ -134,6 +134,9 @@ @WANT_MPFR_TRUE@MPFR_SOURCES_OPTION = exprfr.c exprfra.c @WANT_MPFR_TRUE@MPFR_LIBADD_OPTION = $(top_builddir)/mpfr/libmpfr.a +# ensure these are always distributed +EXTRA_DIST = exprfr.c exprfra.c + EXTRA_LIBRARIES = libexpr.a libexpr_a_SOURCES = expr.h \ expr.c exprv.c exprz.c exprza.c exprq.c exprqa.c exprf.c exprfa.c \ diff -Naur gmp-4.0/demos/expr/exprfr.c gmp-4.0.1/demos/expr/exprfr.c --- gmp-4.0/demos/expr/exprfr.c Thu Jan 1 01:00:00 1970 +++ gmp-4.0.1/demos/expr/exprfr.c Sun Apr 29 23:42:20 2001 @@ -0,0 +1,265 @@ +/* mpfr expression evaluation */ + +/* +Copyright 2000, 2001 Free Software Foundation, Inc. + +This file is part of the GNU MP Library. + +The GNU MP Library is free software; you can redistribute it and/or modify +it under the terms of the GNU Lesser General Public License as published by +the Free Software Foundation; either version 2.1 of the License, or (at your +option) any later version. + +The GNU MP Library is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public +License for more details. + +You should have received a copy of the GNU Lesser General Public License +along with the GNU MP Library; see the file COPYING.LIB. If not, write to +the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, +MA 02111-1307, USA. +*/ + +#include +#include "gmp.h" +#include "expr-impl.h" + + +/* Change this to "#define TRACE(x) x" to get some traces. */ +#define TRACE(x) + + +/* This set of functions makes it possible to add the ROUND parameter, and a + few of the mpfr's are macros and need a wrapper anyway. + + A whole new set of functions like this just to add a rounding parameter + is a bit horrible, but it's the easiest way. There doesn't seem much use + having rounding passed down through mpfr_expr_a, since a single rounding + for all operations in an expression doesn't give close enough control to + be useful. */ + +static void +e_mpfr_abs (mpfr_ptr dst, mpfr_srcptr src) +{ + return mpfr_abs (dst, src, ROUND); +} + +static void +e_mpfr_agm (mpfr_ptr dst, mpfr_srcptr src1, mpfr_srcptr src2) +{ + return mpfr_agm (dst, src1, src2, ROUND); +} + +static void +e_mpfr_add (mpfr_ptr dst, mpfr_srcptr src1, mpfr_srcptr src2) +{ + return mpfr_add (dst, src1, src2, ROUND); +} + +static int +e_mpfr_cmp (mpfr_srcptr x, mpfr_srcptr y) +{ + return mpfr_cmp (x, y); +} + +static void +e_mpfr_const_log2 (mpfr_ptr dst) +{ + mpfr_const_log2 (dst, ROUND); +} + +static void +e_mpfr_const_pi (mpfr_ptr dst) +{ + mpfr_const_pi (dst, ROUND); +} + +static void +e_mpfr_cos (mpfr_ptr c, mpfr_srcptr a) +{ + mpfr_sin_cos (NULL, c, a, ROUND); +} + +static void +e_mpfr_div (mpfr_ptr dst, mpfr_srcptr src1, mpfr_srcptr src2) +{ + mpfr_div (dst, src1, src2, ROUND); +} + +static void +e_mpfr_div_2exp (mpfr_ptr dst, mpfr_srcptr src, unsigned long n) +{ + mpfr_div_2exp (dst, src, n, ROUND); +} + +static void +e_mpfr_exp (mpfr_ptr dst, mpfr_srcptr src) +{ + mpfr_exp (dst, src, ROUND); +} + +static void +e_mpfr_log (mpfr_ptr dst, mpfr_srcptr src) +{ + mpfr_log (dst, src, ROUND); +} + +static void +e_mpfr_mul (mpfr_ptr dst, mpfr_srcptr src1, mpfr_srcptr src2) +{ + mpfr_mul (dst, src1, src2, ROUND); +} + +static void +e_mpfr_mul_2exp (mpfr_ptr dst, mpfr_srcptr src, unsigned long n) +{ + return mpfr_mul_2exp (dst, src, n, ROUND); +} + +static void +e_mpfr_neg (mpfr_ptr dst, mpfr_srcptr src) +{ + return mpfr_neg (dst, src, ROUND); +} + +static void +e_mpfr_reldiff (mpfr_ptr dst, mpfr_srcptr src1, mpfr_srcptr src2) +{ + return mpfr_reldiff (dst, src1, src2, ROUND); +} + +static int +e_mpfr_sgn (mpfr_srcptr x) +{ + return mpfr_sgn (x); +} + +static void +e_mpfr_sin (mpfr_ptr s, mpfr_srcptr a) +{ + mpfr_sin_cos (s, NULL, a, ROUND); +} + +static void +e_mpfr_sqrt (mpfr_ptr dst, mpfr_srcptr src) +{ + mpfr_sqrt (dst, src, ROUND); +} + +static void +e_mpfr_sub (mpfr_ptr dst, mpfr_srcptr src1, mpfr_srcptr src2) +{ + return mpfr_sub (dst, src1, src2, ROUND); +} + +static void +e_mpfr_pow_ui (mpfr_ptr p, mpfr_srcptr b, unsigned long e) +{ + mpfr_pow_ui (p, b, e, ROUND); +} + + +static __gmp_const struct mpexpr_operator_t _mpfr_expr_standard_table[] = { + + { "**", (mpexpr_fun_t) e_mpfr_pow_ui, + MPEXPR_TYPE_BINARY_UI | MPEXPR_TYPE_RIGHTASSOC, 220 }, + + { "!", (mpexpr_fun_t) e_mpfr_sgn, + MPEXPR_TYPE_LOGICAL_NOT | MPEXPR_TYPE_PREFIX, 210 }, + { "-", (mpexpr_fun_t) e_mpfr_neg, + MPEXPR_TYPE_UNARY | MPEXPR_TYPE_PREFIX, 210 }, + + { "*", (mpexpr_fun_t) e_mpfr_mul, MPEXPR_TYPE_BINARY, 200 }, + { "/", (mpexpr_fun_t) e_mpfr_div, MPEXPR_TYPE_BINARY, 200 }, + + { "+", (mpexpr_fun_t) e_mpfr_add, MPEXPR_TYPE_BINARY, 190 }, + { "-", (mpexpr_fun_t) e_mpfr_sub, MPEXPR_TYPE_BINARY, 190 }, + + { "<<", (mpexpr_fun_t) e_mpfr_mul_2exp, MPEXPR_TYPE_BINARY_UI, 180 }, + { ">>", (mpexpr_fun_t) e_mpfr_div_2exp, MPEXPR_TYPE_BINARY_UI, 180 }, + + { "<=", (mpexpr_fun_t) e_mpfr_cmp, MPEXPR_TYPE_CMP_LE, 170 }, + { "<", (mpexpr_fun_t) e_mpfr_cmp, MPEXPR_TYPE_CMP_LT, 170 }, + { ">=", (mpexpr_fun_t) e_mpfr_cmp, MPEXPR_TYPE_CMP_GE, 170 }, + { ">", (mpexpr_fun_t) e_mpfr_cmp, MPEXPR_TYPE_CMP_GT, 170 }, + + { "==", (mpexpr_fun_t) e_mpfr_cmp, MPEXPR_TYPE_CMP_EQ, 160 }, + { "!=", (mpexpr_fun_t) e_mpfr_cmp, MPEXPR_TYPE_CMP_NE, 160 }, + + { "&&", (mpexpr_fun_t) e_mpfr_sgn, MPEXPR_TYPE_LOGICAL_AND, 120 }, + { "||", (mpexpr_fun_t) e_mpfr_sgn, MPEXPR_TYPE_LOGICAL_OR, 110 }, + + { ":", NULL, MPEXPR_TYPE_COLON, 101 }, + { "?", (mpexpr_fun_t) e_mpfr_sgn, MPEXPR_TYPE_QUESTION, 100 }, + + { ")", NULL, MPEXPR_TYPE_CLOSEPAREN, 4 }, + { "(", NULL, MPEXPR_TYPE_OPENPAREN, 3 }, + { ",", NULL, MPEXPR_TYPE_ARGSEP, 2 }, + { "$", NULL, MPEXPR_TYPE_VARIABLE, 1 }, + + { "abs", (mpexpr_fun_t) e_mpfr_abs, MPEXPR_TYPE_UNARY }, + { "agm", (mpexpr_fun_t) e_mpfr_agm, MPEXPR_TYPE_UNARY }, + { "ceil", (mpexpr_fun_t) mpfr_ceil, MPEXPR_TYPE_UNARY }, + { "cmp", (mpexpr_fun_t) e_mpfr_cmp, MPEXPR_TYPE_I_BINARY }, + { "cos", (mpexpr_fun_t) e_mpfr_cos, MPEXPR_TYPE_UNARY }, + { "eq", (mpexpr_fun_t) mpfr_eq, MPEXPR_TYPE_I_TERNARY_UI }, + { "exp", (mpexpr_fun_t) e_mpfr_exp, MPEXPR_TYPE_UNARY }, + { "floor", (mpexpr_fun_t) mpfr_floor, MPEXPR_TYPE_UNARY }, + { "inf_p", (mpexpr_fun_t) mpfr_inf_p, MPEXPR_TYPE_I_UNARY }, + { "log", (mpexpr_fun_t) e_mpfr_log, MPEXPR_TYPE_UNARY }, + { "max", (mpexpr_fun_t) e_mpfr_cmp, MPEXPR_TYPE_MAX + | MPEXPR_TYPE_PAIRWISE }, + { "min", (mpexpr_fun_t) e_mpfr_cmp, MPEXPR_TYPE_MIN + | MPEXPR_TYPE_PAIRWISE }, + { "nan_p", (mpexpr_fun_t) mpfr_nan_p, MPEXPR_TYPE_I_UNARY }, + { "number_p",(mpexpr_fun_t) mpfr_number_p, MPEXPR_TYPE_I_UNARY }, + { "reldiff", (mpexpr_fun_t) e_mpfr_reldiff, MPEXPR_TYPE_BINARY }, + { "sgn", (mpexpr_fun_t) e_mpfr_sgn, MPEXPR_TYPE_I_UNARY }, + { "sin", (mpexpr_fun_t) e_mpfr_sin, MPEXPR_TYPE_UNARY }, + { "sqrt", (mpexpr_fun_t) e_mpfr_sqrt, MPEXPR_TYPE_UNARY }, + { "trunc", (mpexpr_fun_t) mpfr_trunc, MPEXPR_TYPE_UNARY }, + + { "log2", (mpexpr_fun_t) e_mpfr_const_log2, MPEXPR_TYPE_CONSTANT }, + { "pi", (mpexpr_fun_t) e_mpfr_const_pi, MPEXPR_TYPE_CONSTANT }, + + { NULL } +}; + +__gmp_const struct mpexpr_operator_t * __gmp_const mpfr_expr_standard_table += _mpfr_expr_standard_table; + + +int +#if HAVE_STDARG +mpfr_expr (mpfr_ptr res, int base, __gmp_const char *e, ...) +#else +mpfr_expr (va_alist) + va_dcl +#endif +{ + mpfr_srcptr var[MPEXPR_VARIABLES]; + va_list ap; + int ret; +#if HAVE_STDARG + va_start (ap, e); +#else + mpfr_ptr res; + int base; + __gmp_const char *e; + va_start (ap); + res = va_arg (ap, mpfr_ptr); + base = va_arg (ap, int); + e = va_arg (ap, __gmp_const char *); +#endif + + TRACE (printf ("mpfr_expr(): base %d, %s\n", base, e)); + ret = mpexpr_va_to_var ((void **) var, ap); + va_end (ap); + + if (ret != MPEXPR_RESULT_OK) + return ret; + + return mpfr_expr_a (mpfr_expr_standard_table, res, base, + mpfr_get_prec (res), e, strlen(e), var); +} diff -Naur gmp-4.0/demos/expr/exprfra.c gmp-4.0.1/demos/expr/exprfra.c --- gmp-4.0/demos/expr/exprfra.c Thu Jan 1 01:00:00 1970 +++ gmp-4.0.1/demos/expr/exprfra.c Sat Feb 24 00:06:32 2001 @@ -0,0 +1,224 @@ +/* mpfr expression evaluation */ + +/* +Copyright 2000, 2001 Free Software Foundation, Inc. + +This file is part of the GNU MP Library. + +The GNU MP Library is free software; you can redistribute it and/or modify +it under the terms of the GNU Lesser General Public License as published by +the Free Software Foundation; either version 2.1 of the License, or (at your +option) any later version. + +The GNU MP Library is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public +License for more details. + +You should have received a copy of the GNU Lesser General Public License +along with the GNU MP Library; see the file COPYING.LIB. If not, write to +the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, +MA 02111-1307, USA. +*/ + +#include +#include +#include "gmp.h" +#include "expr-impl.h" + +#ifndef ULONG_MAX +#define ULONG_MAX (~ (unsigned long) 0) +#endif + + +/* Change this to "#define TRACE(x) x" to get some traces. */ +#define TRACE(x) + + +static void +e_mpfr_init2 (mpfr_ptr f, unsigned long prec) +{ + mpfr_init2 (f, prec); +} + +static void +e_mpfr_set (mpfr_ptr dst, mpfr_srcptr src) +{ + mpfr_set (dst, src, ROUND); +} + +/* Test whether fits and is an integer. FIXME: Use mpfr_integer_p and + mpfr_fits_ulong_p (or just mpfr_cmp_ui), if/when these exist. */ +static int +e_mpfr_ulong_p (mpfr_srcptr f) +{ + mp_size_t size = f->_mpfr_size; + mp_srcptr ptr = f->_mpfr_d; + mp_exp_t exp = f->_mpfr_exp; + mp_prec_t high_index = (f->_mpfr_prec-1) / mp_bits_per_limb; + mp_prec_t i; + mp_limb_t high = ptr[high_index]; + + if ((size & 0x60000000) != 0) /* nan or inf don't fit */ + return 0; + + if (high == 0) /* zero fits */ + return 1; + + for (i = 0; i < high_index; i++) /* low limbs must be zero */ + if (ptr[i] != 0) + return 0; + + if (exp <= 0) /* fractions don't fit */ + return 0; + + if (exp > mp_bits_per_limb) /* bigger than a limb doesn't fit */ + return 0; + + /* any fraction bits in the high limb must be zero */ + if (exp < mp_bits_per_limb && (high << exp) != 0) + return 0; + + /* value must fit a ulong */ + return (high >> (mp_bits_per_limb - exp)) <= ULONG_MAX; +} + +/* FIXME: Use mpfr_get_ui if/when it exists. */ +static unsigned long +e_mpfr_get_ui_fits (mpfr_srcptr f) +{ + mp_srcptr ptr = f->_mpfr_d; + mp_exp_t exp = f->_mpfr_exp; + mp_prec_t high_index = (f->_mpfr_prec-1) / mp_bits_per_limb; + mp_limb_t high = ptr[high_index]; + + return high >> (mp_bits_per_limb - exp); +} + +static size_t +e_mpfr_number (mpfr_ptr res, __gmp_const char *e, size_t elen, int base) +{ + char *edup; + size_t i, j, ret, extra=0; + + TRACE (printf ("mpfr_number prec=%lu, base=%d, \"%.*s\"\n", + mpfr_get_prec (res), base, (int) elen, e)); + + /* mpfr_set_str doesn't currently accept 0x for hex in base==0, so do it + here instead. FIXME: Would prefer to let mpfr_set_str handle this. */ + if (base == 0) + { + if (elen >= 2 && e[0] == '0' && (e[1] == 'x' || e[1] == 'X')) + { + base = 16; + extra = 2; + e += extra; + elen -= extra; + } + else + base = 10; + } + + i = 0; + for (;;) + { + if (i >= elen) + goto parsed; + if (e[i] == '.') + break; + if (e[i] == '@' || (base <= 10 && (e[i] == 'e' || e[i] == 'E'))) + goto exponent; + if (! isasciidigit_in_base (e[i], base == 0 ? 10 : base)) + goto parsed; + i++; + } + + /* fraction */ + i++; + for (;;) + { + if (i >= elen) + goto parsed; + if (e[i] == '@' || (base <= 10 && (e[i] == 'e' || e[i] == 'E'))) + break; + if (! isasciidigit_in_base (e[i], base == 0 ? 10 : base)) + goto parsed; + i++; + } + + exponent: + i++; + if (i >= elen) + goto parsed; + if (e[i] == '-') + i++; + for (;;) + { + if (i >= elen) + goto parsed; + if (! isasciidigit_in_base (e[i], base == 0 ? 10 : base)) + break; + i++; + } + + parsed: + TRACE (printf (" parsed i=%d \"%.*s\"\n", i, i, e)); + + /* mpfr_set_str doesn't currently accept upper case for hex, so convert to + lower here instead. FIXME: Would prefer to let mpfr_set_str handle + this. */ + edup = (*__gmp_allocate_func) (i+1); + for (j = 0; j < i; j++) + edup[j] = tolower (e[j]); + edup[i] = '\0'; + + TRACE (printf (" attempt base=%d, len=%d, \"%s\"\n", base, i, edup)); + + if (mpfr_set_str (res, edup, base, ROUND) == 0) + ret = i + extra; + else + ret = 0; + + (*__gmp_free_func) (edup, i+1); + return ret; +} + +/* Don't want to change the precision of w, can only do an actual swap when + w and x have the same precision. */ +static void +e_mpfr_set_or_swap (mpfr_ptr w, mpfr_ptr x) +{ + if (mpfr_get_prec (w) == mpfr_get_prec (x)) + mpfr_swap (w, x); + else + mpfr_set (w, x, ROUND); +} + +int +mpfr_expr_a (__gmp_const struct mpexpr_operator_t *table, + mpfr_ptr res, int base, unsigned long prec, + __gmp_const char *e, size_t elen, + mpfr_srcptr var[26]) +{ + struct mpexpr_parse_t p; + + p.table = table; + p.res = (mpX_ptr) res; + p.base = base; + p.prec = prec; + p.e = e; + p.elen = elen; + p.var = (mpX_srcptr *) var; + + p.mpX_clear = (mpexpr_fun_one_t) mpfr_clear; + p.mpX_ulong_p = (mpexpr_fun_i_unary_t) e_mpfr_ulong_p; + p.mpX_get_ui = (mpexpr_fun_get_ui_t) e_mpfr_get_ui_fits; + p.mpX_init = (mpexpr_fun_unary_ui_t) e_mpfr_init2; + p.mpX_number = (mpexpr_fun_number_t) e_mpfr_number; + p.mpX_set = (mpexpr_fun_unary_t) e_mpfr_set; + p.mpX_set_or_swap = (mpexpr_fun_unary_t) e_mpfr_set_or_swap; + p.mpX_set_si = (mpexpr_fun_set_si_t) mpfr_set_si; + p.mpX_swap = (mpexpr_fun_swap_t) mpfr_swap; + + return mpexpr_evaluate (&p); +} diff -Naur gmp-4.0/doc/projects.html gmp-4.0.1/doc/projects.html --- gmp-4.0/doc/projects.html Sat Nov 24 22:34:31 2001 +++ gmp-4.0.1/doc/projects.html Fri Dec 7 01:33:37 2001 @@ -13,28 +13,27 @@ - -Copyright 2000, 2001 Free Software Foundation, Inc. -

This file is part of the GNU MP Library. -

The GNU MP Library is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published - by the Free Software Foundation; either version 2.1 of the License, or (at - your option) any later version. -

The GNU MP Library is distributed in the hope that it will be useful, but - WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY - or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public - License for more details. -

You should have received a copy of the GNU Lesser General Public License - along with the GNU MP Library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, - MA 02111-1307, USA. -

+ +Copyright 2000, 2001 Free Software Foundation, Inc.

+This file is part of the GNU MP Library.

+The GNU MP Library is free software; you can redistribute it and/or modify +it under the terms of the GNU Lesser General Public License as published +by the Free Software Foundation; either version 2.1 of the License, or (at +your option) any later version.

+The GNU MP Library is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public +License for more details.

+You should have received a copy of the GNU Lesser General Public License +along with the GNU MP Library; see the file COPYING.LIB. If not, write to +the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, +MA 02111-1307, USA.

- This file current as of 25 Nov 2001. An up-to-date version is available at + This file current as of 7 Dec 2001. An up-to-date version is available at http://www.swox.com/gmp/projects.html. Please send comments about this page to bug-gmp@gnu.org. diff -Naur gmp-4.0/doc/tasks.html gmp-4.0.1/doc/tasks.html --- gmp-4.0/doc/tasks.html Sat Dec 1 00:32:17 2001 +++ gmp-4.0.1/doc/tasks.html Fri Dec 7 01:33:37 2001 @@ -13,28 +13,27 @@ - -Copyright 2000, 2001 Free Software Foundation, Inc. -

This file is part of the GNU MP Library. -

The GNU MP Library is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published - by the Free Software Foundation; either version 2.1 of the License, or (at - your option) any later version. -

The GNU MP Library is distributed in the hope that it will be useful, but - WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY - or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public - License for more details. -

You should have received a copy of the GNU Lesser General Public License - along with the GNU MP Library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, - MA 02111-1307, USA. -

+ +Copyright 2000, 2001 Free Software Foundation, Inc.

+This file is part of the GNU MP Library.

+The GNU MP Library is free software; you can redistribute it and/or modify +it under the terms of the GNU Lesser General Public License as published +by the Free Software Foundation; either version 2.1 of the License, or (at +your option) any later version.

+The GNU MP Library is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public +License for more details.

+You should have received a copy of the GNU Lesser General Public License +along with the GNU MP Library; see the file COPYING.LIB. If not, write to +the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, +MA 02111-1307, USA.

- This file current as of 29 Nov 2001. An up-to-date version is available at + This file current as of 7 Dec 2001. An up-to-date version is available at http://www.swox.com/gmp/tasks.html. Please send comments about this page to bug-gmp@gnu.org. diff -Naur gmp-4.0/gmp-h.in gmp-4.0.1/gmp-h.in --- gmp-4.0/gmp-h.in Thu Nov 29 14:55:30 2001 +++ gmp-4.0.1/gmp-h.in Wed Jan 16 23:33:23 2002 @@ -1,6 +1,6 @@ /* Definitions for GNU multiple precision functions. -*- mode: c -*- -Copyright 1991, 1993, 1994, 1995, 1996, 1997, 1999, 2000, 2001 +Copyright 1991, 1993, 1994, 1995, 1996, 1997, 1999, 2000, 2001, 2002 Free Software Foundation, Inc. This file is part of the GNU MP Library. @@ -381,102 +381,102 @@ #endif #define mp_set_memory_functions __gmp_set_memory_functions -void __GMP_DECLSPEC mp_set_memory_functions _PROTO ((void *(*) (size_t), +__GMP_DECLSPEC void mp_set_memory_functions _PROTO ((void *(*) (size_t), void *(*) (void *, size_t, size_t), void (*) (void *, size_t))); #define mp_bits_per_limb __gmp_bits_per_limb -extern __gmp_const int __GMP_DECLSPEC mp_bits_per_limb; +__GMP_DECLSPEC extern __gmp_const int mp_bits_per_limb; /* the following for internal use only */ -extern void * (* __GMP_DECLSPEC __gmp_allocate_func) _PROTO ((size_t)); -extern void * (* __GMP_DECLSPEC __gmp_reallocate_func) _PROTO ((void *, size_t, size_t)); -extern void (* __GMP_DECLSPEC __gmp_free_func) _PROTO ((void *, size_t)); +__GMP_DECLSPEC extern void * (*__gmp_allocate_func) _PROTO ((size_t)); +__GMP_DECLSPEC extern void * (*__gmp_reallocate_func) _PROTO ((void *, size_t, size_t)); +__GMP_DECLSPEC extern void (*__gmp_free_func) _PROTO ((void *, size_t)); /**************** Random number routines. ****************/ /* obsolete */ #define gmp_randinit __gmp_randinit -void __GMP_DECLSPEC gmp_randinit _PROTO ((gmp_randstate_t, gmp_randalg_t, ...)); +__GMP_DECLSPEC void gmp_randinit _PROTO ((gmp_randstate_t, gmp_randalg_t, ...)); #define gmp_randinit_default __gmp_randinit_default -void __GMP_DECLSPEC gmp_randinit_default _PROTO ((gmp_randstate_t)); +__GMP_DECLSPEC void gmp_randinit_default _PROTO ((gmp_randstate_t)); #define gmp_randinit_lc __gmp_randinit_lc -void __GMP_DECLSPEC gmp_randinit_lc _PROTO ((gmp_randstate_t, +__GMP_DECLSPEC void gmp_randinit_lc _PROTO ((gmp_randstate_t, mpz_srcptr, unsigned long int, mpz_srcptr)); #define gmp_randinit_lc_2exp __gmp_randinit_lc_2exp -void __GMP_DECLSPEC gmp_randinit_lc_2exp _PROTO ((gmp_randstate_t, +__GMP_DECLSPEC void gmp_randinit_lc_2exp _PROTO ((gmp_randstate_t, mpz_srcptr, unsigned long int, unsigned long int)); #define gmp_randinit_lc_2exp_size __gmp_randinit_lc_2exp_size -int __GMP_DECLSPEC gmp_randinit_lc_2exp_size _PROTO ((gmp_randstate_t, unsigned long)); +__GMP_DECLSPEC int gmp_randinit_lc_2exp_size _PROTO ((gmp_randstate_t, unsigned long)); #define gmp_randseed __gmp_randseed -void __GMP_DECLSPEC gmp_randseed _PROTO ((gmp_randstate_t, mpz_srcptr)); +__GMP_DECLSPEC void gmp_randseed _PROTO ((gmp_randstate_t, mpz_srcptr)); #define gmp_randseed_ui __gmp_randseed_ui -void __GMP_DECLSPEC gmp_randseed_ui _PROTO ((gmp_randstate_t, unsigned long int)); +__GMP_DECLSPEC void gmp_randseed_ui _PROTO ((gmp_randstate_t, unsigned long int)); #define gmp_randclear __gmp_randclear -void __GMP_DECLSPEC gmp_randclear _PROTO ((gmp_randstate_t)); +__GMP_DECLSPEC void gmp_randclear _PROTO ((gmp_randstate_t)); /**************** Formatted output routines. ****************/ #define gmp_asprintf __gmp_asprintf -int __GMP_DECLSPEC gmp_asprintf _PROTO ((char **, const char *, ...)); +__GMP_DECLSPEC int gmp_asprintf _PROTO ((char **, const char *, ...)); #define gmp_fprintf __gmp_fprintf #if _GMP_H_HAVE_FILE -int __GMP_DECLSPEC gmp_fprintf _PROTO ((FILE *, const char *, ...)); +__GMP_DECLSPEC int gmp_fprintf _PROTO ((FILE *, const char *, ...)); #endif #define gmp_obstack_printf __gmp_obstack_printf #if _GMP_H_HAVE_OBSTACK -int __GMP_DECLSPEC gmp_obstack_printf _PROTO ((struct obstack *, const char *, ...)); +__GMP_DECLSPEC int gmp_obstack_printf _PROTO ((struct obstack *, const char *, ...)); #endif #define gmp_obstack_vprintf __gmp_obstack_vprintf #if _GMP_H_HAVE_OBSTACK && _GMP_H_HAVE_VA_LIST -int __GMP_DECLSPEC gmp_obstack_vprintf _PROTO ((struct obstack *, const char *, va_list)); +__GMP_DECLSPEC int gmp_obstack_vprintf _PROTO ((struct obstack *, const char *, va_list)); #endif #define gmp_printf __gmp_printf -int __GMP_DECLSPEC gmp_printf _PROTO ((const char *, ...)); +__GMP_DECLSPEC int gmp_printf _PROTO ((const char *, ...)); #define gmp_snprintf __gmp_snprintf -int __GMP_DECLSPEC gmp_snprintf _PROTO ((char *, size_t, const char *, ...)); +__GMP_DECLSPEC int gmp_snprintf _PROTO ((char *, size_t, const char *, ...)); #define gmp_sprintf __gmp_sprintf -int __GMP_DECLSPEC gmp_sprintf _PROTO ((char *, const char *, ...)); +__GMP_DECLSPEC int gmp_sprintf _PROTO ((char *, const char *, ...)); #define gmp_vasprintf __gmp_vasprintf #if _GMP_H_HAVE_VA_LIST -int __GMP_DECLSPEC gmp_vasprintf _PROTO ((char **, const char *, va_list)); +__GMP_DECLSPEC int gmp_vasprintf _PROTO ((char **, const char *, va_list)); #endif #define gmp_vfprintf __gmp_vfprintf #if _GMP_H_HAVE_FILE && _GMP_H_HAVE_VA_LIST -int __GMP_DECLSPEC gmp_vfprintf _PROTO ((FILE *, const char *, va_list)); +__GMP_DECLSPEC int gmp_vfprintf _PROTO ((FILE *, const char *, va_list)); #endif #define gmp_vprintf __gmp_vprintf #if _GMP_H_HAVE_VA_LIST -int __GMP_DECLSPEC gmp_vprintf _PROTO ((const char *, va_list)); +__GMP_DECLSPEC int gmp_vprintf _PROTO ((const char *, va_list)); #endif #define gmp_vsnprintf __gmp_vsnprintf #if _GMP_H_HAVE_VA_LIST -int __GMP_DECLSPEC gmp_vsnprintf _PROTO ((char *, size_t, const char *, va_list)); +__GMP_DECLSPEC int gmp_vsnprintf _PROTO ((char *, size_t, const char *, va_list)); #endif #define gmp_vsprintf __gmp_vsprintf #if _GMP_H_HAVE_VA_LIST -int __GMP_DECLSPEC gmp_vsprintf _PROTO ((char *, const char *, va_list)); +__GMP_DECLSPEC int gmp_vsprintf _PROTO ((char *, const char *, va_list)); #endif @@ -484,28 +484,28 @@ #define gmp_fscanf __gmp_fscanf #if _GMP_H_HAVE_FILE -int __GMP_DECLSPEC gmp_fscanf _PROTO ((FILE *, const char *, ...)); +__GMP_DECLSPEC int gmp_fscanf _PROTO ((FILE *, const char *, ...)); #endif #define gmp_scanf __gmp_scanf -int __GMP_DECLSPEC gmp_scanf _PROTO ((const char *, ...)); +__GMP_DECLSPEC int gmp_scanf _PROTO ((const char *, ...)); #define gmp_sscanf __gmp_sscanf -int __GMP_DECLSPEC gmp_sscanf _PROTO ((const char *, const char *, ...)); +__GMP_DECLSPEC int gmp_sscanf _PROTO ((const char *, const char *, ...)); #define gmp_vfscanf __gmp_vfscanf #if _GMP_H_HAVE_FILE && _GMP_H_HAVE_VA_LIST -int __GMP_DECLSPEC gmp_vfscanf _PROTO ((FILE *, const char *, va_list)); +__GMP_DECLSPEC int gmp_vfscanf _PROTO ((FILE *, const char *, va_list)); #endif #define gmp_vscanf __gmp_vscanf #if _GMP_H_HAVE_VA_LIST -int __GMP_DECLSPEC gmp_vscanf _PROTO ((const char *, va_list)); +__GMP_DECLSPEC int gmp_vscanf _PROTO ((const char *, va_list)); #endif #define gmp_vsscanf __gmp_vsscanf #if _GMP_H_HAVE_VA_LIST -int __GMP_DECLSPEC gmp_vsscanf _PROTO ((const char *, const char *, va_list)); +__GMP_DECLSPEC int gmp_vsscanf _PROTO ((const char *, const char *, va_list)); #endif @@ -513,773 +513,773 @@ #define _mpz_realloc __gmpz_realloc #define mpz_realloc __gmpz_realloc -void * __GMP_DECLSPEC _mpz_realloc _PROTO ((mpz_ptr, mp_size_t)); +__GMP_DECLSPEC void *_mpz_realloc _PROTO ((mpz_ptr, mp_size_t)); #define mpz_abs __gmpz_abs #if __GMP_INLINE_PROTOTYPES || __GMP_FORCE_mpz_abs -void __GMP_DECLSPEC mpz_abs _PROTO ((mpz_ptr, mpz_srcptr)); +__GMP_DECLSPEC void mpz_abs _PROTO ((mpz_ptr, mpz_srcptr)); #endif #define mpz_add __gmpz_add -void __GMP_DECLSPEC mpz_add _PROTO ((mpz_ptr, mpz_srcptr, mpz_srcptr)); +__GMP_DECLSPEC void mpz_add _PROTO ((mpz_ptr, mpz_srcptr, mpz_srcptr)); #define mpz_add_ui __gmpz_add_ui -void __GMP_DECLSPEC mpz_add_ui _PROTO ((mpz_ptr, mpz_srcptr, unsigned long int)); +__GMP_DECLSPEC void mpz_add_ui _PROTO ((mpz_ptr, mpz_srcptr, unsigned long int)); #define mpz_addmul __gmpz_addmul -void __GMP_DECLSPEC mpz_addmul _PROTO ((mpz_ptr, mpz_srcptr, mpz_srcptr)); +__GMP_DECLSPEC void mpz_addmul _PROTO ((mpz_ptr, mpz_srcptr, mpz_srcptr)); #define mpz_addmul_ui __gmpz_addmul_ui -void __GMP_DECLSPEC mpz_addmul_ui _PROTO ((mpz_ptr, mpz_srcptr, unsigned long int)); +__GMP_DECLSPEC void mpz_addmul_ui _PROTO ((mpz_ptr, mpz_srcptr, unsigned long int)); #define mpz_and __gmpz_and -void __GMP_DECLSPEC mpz_and _PROTO ((mpz_ptr, mpz_srcptr, mpz_srcptr)); +__GMP_DECLSPEC void mpz_and _PROTO ((mpz_ptr, mpz_srcptr, mpz_srcptr)); #define mpz_array_init __gmpz_array_init -void __GMP_DECLSPEC mpz_array_init _PROTO ((mpz_ptr, mp_size_t, mp_size_t)); +__GMP_DECLSPEC void mpz_array_init _PROTO ((mpz_ptr, mp_size_t, mp_size_t)); #define mpz_bin_ui __gmpz_bin_ui -void __GMP_DECLSPEC mpz_bin_ui _PROTO ((mpz_ptr, mpz_srcptr, unsigned long int)); +__GMP_DECLSPEC void mpz_bin_ui _PROTO ((mpz_ptr, mpz_srcptr, unsigned long int)); #define mpz_bin_uiui __gmpz_bin_uiui -void __GMP_DECLSPEC mpz_bin_uiui _PROTO ((mpz_ptr, unsigned long int, unsigned long int)); +__GMP_DECLSPEC void mpz_bin_uiui _PROTO ((mpz_ptr, unsigned long int, unsigned long int)); #define mpz_cdiv_q __gmpz_cdiv_q -void __GMP_DECLSPEC mpz_cdiv_q _PROTO ((mpz_ptr, mpz_srcptr, mpz_srcptr)); +__GMP_DECLSPEC void mpz_cdiv_q _PROTO ((mpz_ptr, mpz_srcptr, mpz_srcptr)); #define mpz_cdiv_q_2exp __gmpz_cdiv_q_2exp -void __GMP_DECLSPEC mpz_cdiv_q_2exp _PROTO ((mpz_ptr, mpz_srcptr, unsigned long)); +__GMP_DECLSPEC void mpz_cdiv_q_2exp _PROTO ((mpz_ptr, mpz_srcptr, unsigned long)); #define mpz_cdiv_q_ui __gmpz_cdiv_q_ui -unsigned long int __GMP_DECLSPEC mpz_cdiv_q_ui _PROTO ((mpz_ptr, mpz_srcptr, unsigned long int)); +__GMP_DECLSPEC unsigned long int mpz_cdiv_q_ui _PROTO ((mpz_ptr, mpz_srcptr, unsigned long int)); #define mpz_cdiv_qr __gmpz_cdiv_qr -void __GMP_DECLSPEC mpz_cdiv_qr _PROTO ((mpz_ptr, mpz_ptr, mpz_srcptr, mpz_srcptr)); +__GMP_DECLSPEC void mpz_cdiv_qr _PROTO ((mpz_ptr, mpz_ptr, mpz_srcptr, mpz_srcptr)); #define mpz_cdiv_qr_ui __gmpz_cdiv_qr_ui -unsigned long int __GMP_DECLSPEC mpz_cdiv_qr_ui _PROTO ((mpz_ptr, mpz_ptr, mpz_srcptr, unsigned long int)); +__GMP_DECLSPEC unsigned long int mpz_cdiv_qr_ui _PROTO ((mpz_ptr, mpz_ptr, mpz_srcptr, unsigned long int)); #define mpz_cdiv_r __gmpz_cdiv_r -void __GMP_DECLSPEC mpz_cdiv_r _PROTO ((mpz_ptr, mpz_srcptr, mpz_srcptr)); +__GMP_DECLSPEC void mpz_cdiv_r _PROTO ((mpz_ptr, mpz_srcptr, mpz_srcptr)); #define mpz_cdiv_r_2exp __gmpz_cdiv_r_2exp -void __GMP_DECLSPEC mpz_cdiv_r_2exp _PROTO ((mpz_ptr, mpz_srcptr, unsigned long)); +__GMP_DECLSPEC void mpz_cdiv_r_2exp _PROTO ((mpz_ptr, mpz_srcptr, unsigned long)); #define mpz_cdiv_r_ui __gmpz_cdiv_r_ui -unsigned long int __GMP_DECLSPEC mpz_cdiv_r_ui _PROTO ((mpz_ptr, mpz_srcptr, unsigned long int)); +__GMP_DECLSPEC unsigned long int mpz_cdiv_r_ui _PROTO ((mpz_ptr, mpz_srcptr, unsigned long int)); #define mpz_cdiv_ui __gmpz_cdiv_ui -unsigned long int __GMP_DECLSPEC mpz_cdiv_ui _PROTO ((mpz_srcptr, unsigned long int)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC unsigned long int mpz_cdiv_ui _PROTO ((mpz_srcptr, unsigned long int)) __GMP_ATTRIBUTE_PURE; #define mpz_clear __gmpz_clear -void __GMP_DECLSPEC mpz_clear _PROTO ((mpz_ptr)); +__GMP_DECLSPEC void mpz_clear _PROTO ((mpz_ptr)); #define mpz_clrbit __gmpz_clrbit -void __GMP_DECLSPEC mpz_clrbit _PROTO ((mpz_ptr, unsigned long int)); +__GMP_DECLSPEC void mpz_clrbit _PROTO ((mpz_ptr, unsigned long int)); #define mpz_cmp __gmpz_cmp -int __GMP_DECLSPEC mpz_cmp _PROTO ((mpz_srcptr, mpz_srcptr)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC int mpz_cmp _PROTO ((mpz_srcptr, mpz_srcptr)) __GMP_ATTRIBUTE_PURE; #define mpz_cmp_d __gmpz_cmp_d -int __GMP_DECLSPEC mpz_cmp_d _PROTO ((mpz_srcptr, double)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC int mpz_cmp_d _PROTO ((mpz_srcptr, double)) __GMP_ATTRIBUTE_PURE; #define _mpz_cmp_si __gmpz_cmp_si -int __GMP_DECLSPEC _mpz_cmp_si _PROTO ((mpz_srcptr, signed long int)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC int _mpz_cmp_si _PROTO ((mpz_srcptr, signed long int)) __GMP_ATTRIBUTE_PURE; #define _mpz_cmp_ui __gmpz_cmp_ui -int __GMP_DECLSPEC _mpz_cmp_ui _PROTO ((mpz_srcptr, unsigned long int)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC int _mpz_cmp_ui _PROTO ((mpz_srcptr, unsigned long int)) __GMP_ATTRIBUTE_PURE; #define mpz_cmpabs __gmpz_cmpabs -int __GMP_DECLSPEC mpz_cmpabs _PROTO ((mpz_srcptr, mpz_srcptr)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC int mpz_cmpabs _PROTO ((mpz_srcptr, mpz_srcptr)) __GMP_ATTRIBUTE_PURE; #define mpz_cmpabs_d __gmpz_cmpabs_d -int __GMP_DECLSPEC mpz_cmpabs_d _PROTO ((mpz_srcptr, double)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC int mpz_cmpabs_d _PROTO ((mpz_srcptr, double)) __GMP_ATTRIBUTE_PURE; #define mpz_cmpabs_ui __gmpz_cmpabs_ui -int __GMP_DECLSPEC mpz_cmpabs_ui _PROTO ((mpz_srcptr, unsigned long int)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC int mpz_cmpabs_ui _PROTO ((mpz_srcptr, unsigned long int)) __GMP_ATTRIBUTE_PURE; #define mpz_com __gmpz_com -void __GMP_DECLSPEC mpz_com _PROTO ((mpz_ptr, mpz_srcptr)); +__GMP_DECLSPEC void mpz_com _PROTO ((mpz_ptr, mpz_srcptr)); #define mpz_congruent_p __gmpz_congruent_p -int __GMP_DECLSPEC mpz_congruent_p _PROTO ((mpz_srcptr, mpz_srcptr, mpz_srcptr)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC int mpz_congruent_p _PROTO ((mpz_srcptr, mpz_srcptr, mpz_srcptr)) __GMP_ATTRIBUTE_PURE; #define mpz_congruent_2exp_p __gmpz_congruent_2exp_p -int __GMP_DECLSPEC mpz_congruent_2exp_p _PROTO ((mpz_srcptr, mpz_srcptr, unsigned long)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC int mpz_congruent_2exp_p _PROTO ((mpz_srcptr, mpz_srcptr, unsigned long)) __GMP_ATTRIBUTE_PURE; #define mpz_congruent_ui_p __gmpz_congruent_ui_p -int __GMP_DECLSPEC mpz_congruent_ui_p _PROTO ((mpz_srcptr, unsigned long, unsigned long)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC int mpz_congruent_ui_p _PROTO ((mpz_srcptr, unsigned long, unsigned long)) __GMP_ATTRIBUTE_PURE; #define mpz_divexact __gmpz_divexact -void __GMP_DECLSPEC mpz_divexact _PROTO ((mpz_ptr, mpz_srcptr, mpz_srcptr)); +__GMP_DECLSPEC void mpz_divexact _PROTO ((mpz_ptr, mpz_srcptr, mpz_srcptr)); #define mpz_divexact_ui __gmpz_divexact_ui -void __GMP_DECLSPEC mpz_divexact_ui _PROTO ((mpz_ptr, mpz_srcptr, unsigned long)); +__GMP_DECLSPEC void mpz_divexact_ui _PROTO ((mpz_ptr, mpz_srcptr, unsigned long)); #define mpz_divisible_p __gmpz_divisible_p -int __GMP_DECLSPEC mpz_divisible_p _PROTO ((mpz_srcptr, mpz_srcptr)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC int mpz_divisible_p _PROTO ((mpz_srcptr, mpz_srcptr)) __GMP_ATTRIBUTE_PURE; #define mpz_divisible_ui_p __gmpz_divisible_ui_p -int __GMP_DECLSPEC mpz_divisible_ui_p _PROTO ((mpz_srcptr, unsigned long)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC int mpz_divisible_ui_p _PROTO ((mpz_srcptr, unsigned long)) __GMP_ATTRIBUTE_PURE; #define mpz_divisible_2exp_p __gmpz_divisible_2exp_p -int __GMP_DECLSPEC mpz_divisible_2exp_p _PROTO ((mpz_srcptr, unsigned long)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC int mpz_divisible_2exp_p _PROTO ((mpz_srcptr, unsigned long)) __GMP_ATTRIBUTE_PURE; #define mpz_dump __gmpz_dump -void __GMP_DECLSPEC mpz_dump _PROTO ((mpz_srcptr)); +__GMP_DECLSPEC void mpz_dump _PROTO ((mpz_srcptr)); #define mpz_fac_ui __gmpz_fac_ui -void __GMP_DECLSPEC mpz_fac_ui _PROTO ((mpz_ptr, unsigned long int)); +__GMP_DECLSPEC void mpz_fac_ui _PROTO ((mpz_ptr, unsigned long int)); #define mpz_fdiv_q __gmpz_fdiv_q -void __GMP_DECLSPEC mpz_fdiv_q _PROTO ((mpz_ptr, mpz_srcptr, mpz_srcptr)); +__GMP_DECLSPEC void mpz_fdiv_q _PROTO ((mpz_ptr, mpz_srcptr, mpz_srcptr)); #define mpz_fdiv_q_2exp __gmpz_fdiv_q_2exp -void __GMP_DECLSPEC mpz_fdiv_q_2exp _PROTO ((mpz_ptr, mpz_srcptr, unsigned long int)); +__GMP_DECLSPEC void mpz_fdiv_q_2exp _PROTO ((mpz_ptr, mpz_srcptr, unsigned long int)); #define mpz_fdiv_q_ui __gmpz_fdiv_q_ui -unsigned long int __GMP_DECLSPEC mpz_fdiv_q_ui _PROTO ((mpz_ptr, mpz_srcptr, unsigned long int)); +__GMP_DECLSPEC unsigned long int mpz_fdiv_q_ui _PROTO ((mpz_ptr, mpz_srcptr, unsigned long int)); #define mpz_fdiv_qr __gmpz_fdiv_qr -void __GMP_DECLSPEC mpz_fdiv_qr _PROTO ((mpz_ptr, mpz_ptr, mpz_srcptr, mpz_srcptr)); +__GMP_DECLSPEC void mpz_fdiv_qr _PROTO ((mpz_ptr, mpz_ptr, mpz_srcptr, mpz_srcptr)); #define mpz_fdiv_qr_ui __gmpz_fdiv_qr_ui -unsigned long int __GMP_DECLSPEC mpz_fdiv_qr_ui _PROTO ((mpz_ptr, mpz_ptr, mpz_srcptr, unsigned long int)); +__GMP_DECLSPEC unsigned long int mpz_fdiv_qr_ui _PROTO ((mpz_ptr, mpz_ptr, mpz_srcptr, unsigned long int)); #define mpz_fdiv_r __gmpz_fdiv_r -void __GMP_DECLSPEC mpz_fdiv_r _PROTO ((mpz_ptr, mpz_srcptr, mpz_srcptr)); +__GMP_DECLSPEC void mpz_fdiv_r _PROTO ((mpz_ptr, mpz_srcptr, mpz_srcptr)); #define mpz_fdiv_r_2exp __gmpz_fdiv_r_2exp -void __GMP_DECLSPEC mpz_fdiv_r_2exp _PROTO ((mpz_ptr, mpz_srcptr, unsigned long int)); +__GMP_DECLSPEC void mpz_fdiv_r_2exp _PROTO ((mpz_ptr, mpz_srcptr, unsigned long int)); #define mpz_fdiv_r_ui __gmpz_fdiv_r_ui -unsigned long int __GMP_DECLSPEC mpz_fdiv_r_ui _PROTO ((mpz_ptr, mpz_srcptr, unsigned long int)); +__GMP_DECLSPEC unsigned long int mpz_fdiv_r_ui _PROTO ((mpz_ptr, mpz_srcptr, unsigned long int)); #define mpz_fdiv_ui __gmpz_fdiv_ui -unsigned long int __GMP_DECLSPEC mpz_fdiv_ui _PROTO ((mpz_srcptr, unsigned long int)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC unsigned long int mpz_fdiv_ui _PROTO ((mpz_srcptr, unsigned long int)) __GMP_ATTRIBUTE_PURE; #define mpz_fib_ui __gmpz_fib_ui -void __GMP_DECLSPEC mpz_fib_ui _PROTO ((mpz_ptr, unsigned long int)); +__GMP_DECLSPEC void mpz_fib_ui _PROTO ((mpz_ptr, unsigned long int)); #define mpz_fib2_ui __gmpz_fib2_ui -void __GMP_DECLSPEC mpz_fib2_ui _PROTO ((mpz_ptr, mpz_ptr, unsigned long int)); +__GMP_DECLSPEC void mpz_fib2_ui _PROTO ((mpz_ptr, mpz_ptr, unsigned long int)); #define mpz_fits_sint_p __gmpz_fits_sint_p -int __GMP_DECLSPEC mpz_fits_sint_p _PROTO ((mpz_srcptr)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC int mpz_fits_sint_p _PROTO ((mpz_srcptr)) __GMP_ATTRIBUTE_PURE; #define mpz_fits_slong_p __gmpz_fits_slong_p -int __GMP_DECLSPEC mpz_fits_slong_p _PROTO ((mpz_srcptr)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC int mpz_fits_slong_p _PROTO ((mpz_srcptr)) __GMP_ATTRIBUTE_PURE; #define mpz_fits_sshort_p __gmpz_fits_sshort_p -int __GMP_DECLSPEC mpz_fits_sshort_p _PROTO ((mpz_srcptr)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC int mpz_fits_sshort_p _PROTO ((mpz_srcptr)) __GMP_ATTRIBUTE_PURE; #define mpz_fits_uint_p __gmpz_fits_uint_p #if __GMP_INLINE_PROTOTYPES || __GMP_FORCE_mpz_fits_uint_p -int __GMP_DECLSPEC mpz_fits_uint_p _PROTO ((mpz_srcptr)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC int mpz_fits_uint_p _PROTO ((mpz_srcptr)) __GMP_ATTRIBUTE_PURE; #endif #define mpz_fits_ulong_p __gmpz_fits_ulong_p #if __GMP_INLINE_PROTOTYPES || __GMP_FORCE_mpz_fits_ulong_p -int __GMP_DECLSPEC mpz_fits_ulong_p _PROTO ((mpz_srcptr)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC int mpz_fits_ulong_p _PROTO ((mpz_srcptr)) __GMP_ATTRIBUTE_PURE; #endif #define mpz_fits_ushort_p __gmpz_fits_ushort_p #if __GMP_INLINE_PROTOTYPES || __GMP_FORCE_mpz_fits_ushort_p -int __GMP_DECLSPEC mpz_fits_ushort_p _PROTO ((mpz_srcptr)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC int mpz_fits_ushort_p _PROTO ((mpz_srcptr)) __GMP_ATTRIBUTE_PURE; #endif #define mpz_gcd __gmpz_gcd -void __GMP_DECLSPEC mpz_gcd _PROTO ((mpz_ptr, mpz_srcptr, mpz_srcptr)); +__GMP_DECLSPEC void mpz_gcd _PROTO ((mpz_ptr, mpz_srcptr, mpz_srcptr)); #define mpz_gcd_ui __gmpz_gcd_ui -unsigned long int __GMP_DECLSPEC mpz_gcd_ui _PROTO ((mpz_ptr, mpz_srcptr, unsigned long int)); +__GMP_DECLSPEC unsigned long int mpz_gcd_ui _PROTO ((mpz_ptr, mpz_srcptr, unsigned long int)); #define mpz_gcdext __gmpz_gcdext -void __GMP_DECLSPEC mpz_gcdext _PROTO ((mpz_ptr, mpz_ptr, mpz_ptr, mpz_srcptr, mpz_srcptr)); +__GMP_DECLSPEC void mpz_gcdext _PROTO ((mpz_ptr, mpz_ptr, mpz_ptr, mpz_srcptr, mpz_srcptr)); #define mpz_get_d __gmpz_get_d -double __GMP_DECLSPEC mpz_get_d _PROTO ((mpz_srcptr)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC double mpz_get_d _PROTO ((mpz_srcptr)) __GMP_ATTRIBUTE_PURE; #define mpz_get_d_2exp __gmpz_get_d_2exp -double __GMP_DECLSPEC mpz_get_d_2exp _PROTO ((signed long int *, mpz_srcptr)); +__GMP_DECLSPEC double mpz_get_d_2exp _PROTO ((signed long int *, mpz_srcptr)); #define mpz_get_si __gmpz_get_si -/* signed */ long int __GMP_DECLSPEC mpz_get_si _PROTO ((mpz_srcptr)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC /* signed */ long int mpz_get_si _PROTO ((mpz_srcptr)) __GMP_ATTRIBUTE_PURE; #define mpz_get_str __gmpz_get_str -char * __GMP_DECLSPEC mpz_get_str _PROTO ((char *, int, mpz_srcptr)); +__GMP_DECLSPEC char *mpz_get_str _PROTO ((char *, int, mpz_srcptr)); #define mpz_get_ui __gmpz_get_ui #if __GMP_INLINE_PROTOTYPES || __GMP_FORCE_mpz_get_ui -unsigned long int __GMP_DECLSPEC mpz_get_ui _PROTO ((mpz_srcptr)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC unsigned long int mpz_get_ui _PROTO ((mpz_srcptr)) __GMP_ATTRIBUTE_PURE; #endif #define mpz_getlimbn __gmpz_getlimbn #if __GMP_INLINE_PROTOTYPES || __GMP_FORCE_mpz_getlimbn -mp_limb_t __GMP_DECLSPEC mpz_getlimbn _PROTO ((mpz_srcptr, mp_size_t)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC mp_limb_t mpz_getlimbn _PROTO ((mpz_srcptr, mp_size_t)) __GMP_ATTRIBUTE_PURE; #endif #define mpz_hamdist __gmpz_hamdist -unsigned long int __GMP_DECLSPEC mpz_hamdist _PROTO ((mpz_srcptr, mpz_srcptr)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC unsigned long int mpz_hamdist _PROTO ((mpz_srcptr, mpz_srcptr)) __GMP_ATTRIBUTE_PURE; #define mpz_init __gmpz_init -void __GMP_DECLSPEC mpz_init _PROTO ((mpz_ptr)); +__GMP_DECLSPEC void mpz_init _PROTO ((mpz_ptr)); #define mpz_init2 __gmpz_init2 -void __GMP_DECLSPEC mpz_init2 _PROTO ((mpz_ptr, unsigned long)); +__GMP_DECLSPEC void mpz_init2 _PROTO ((mpz_ptr, unsigned long)); #define mpz_init_set __gmpz_init_set -void __GMP_DECLSPEC mpz_init_set _PROTO ((mpz_ptr, mpz_srcptr)); +__GMP_DECLSPEC void mpz_init_set _PROTO ((mpz_ptr, mpz_srcptr)); #define mpz_init_set_d __gmpz_init_set_d -void __GMP_DECLSPEC mpz_init_set_d _PROTO ((mpz_ptr, double)); +__GMP_DECLSPEC void mpz_init_set_d _PROTO ((mpz_ptr, double)); #define mpz_init_set_si __gmpz_init_set_si -void __GMP_DECLSPEC mpz_init_set_si _PROTO ((mpz_ptr, signed long int)); +__GMP_DECLSPEC void mpz_init_set_si _PROTO ((mpz_ptr, signed long int)); #define mpz_init_set_str __gmpz_init_set_str -int __GMP_DECLSPEC mpz_init_set_str _PROTO ((mpz_ptr, __gmp_const char *, int)); +__GMP_DECLSPEC int mpz_init_set_str _PROTO ((mpz_ptr, __gmp_const char *, int)); #define mpz_init_set_ui __gmpz_init_set_ui -void __GMP_DECLSPEC mpz_init_set_ui _PROTO ((mpz_ptr, unsigned long int)); +__GMP_DECLSPEC void mpz_init_set_ui _PROTO ((mpz_ptr, unsigned long int)); #define mpz_inp_raw __gmpz_inp_raw #ifdef _GMP_H_HAVE_FILE -size_t __GMP_DECLSPEC mpz_inp_raw _PROTO ((mpz_ptr, FILE *)); +__GMP_DECLSPEC size_t mpz_inp_raw _PROTO ((mpz_ptr, FILE *)); #endif #define mpz_inp_str __gmpz_inp_str #ifdef _GMP_H_HAVE_FILE -size_t __GMP_DECLSPEC mpz_inp_str _PROTO ((mpz_ptr, FILE *, int)); +__GMP_DECLSPEC size_t mpz_inp_str _PROTO ((mpz_ptr, FILE *, int)); #endif #define mpz_invert __gmpz_invert -int __GMP_DECLSPEC mpz_invert _PROTO ((mpz_ptr, mpz_srcptr, mpz_srcptr)); +__GMP_DECLSPEC int mpz_invert _PROTO ((mpz_ptr, mpz_srcptr, mpz_srcptr)); #define mpz_ior __gmpz_ior -void __GMP_DECLSPEC mpz_ior _PROTO ((mpz_ptr, mpz_srcptr, mpz_srcptr)); +__GMP_DECLSPEC void mpz_ior _PROTO ((mpz_ptr, mpz_srcptr, mpz_srcptr)); #define mpz_jacobi __gmpz_jacobi -int __GMP_DECLSPEC mpz_jacobi _PROTO ((mpz_srcptr, mpz_srcptr)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC int mpz_jacobi _PROTO ((mpz_srcptr, mpz_srcptr)) __GMP_ATTRIBUTE_PURE; #define mpz_kronecker mpz_jacobi /* alias */ #define mpz_kronecker_si __gmpz_kronecker_si -int __GMP_DECLSPEC mpz_kronecker_si _PROTO ((mpz_srcptr, long)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC int mpz_kronecker_si _PROTO ((mpz_srcptr, long)) __GMP_ATTRIBUTE_PURE; #define mpz_kronecker_ui __gmpz_kronecker_ui -int __GMP_DECLSPEC mpz_kronecker_ui _PROTO ((mpz_srcptr, unsigned long)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC int mpz_kronecker_ui _PROTO ((mpz_srcptr, unsigned long)) __GMP_ATTRIBUTE_PURE; #define mpz_si_kronecker __gmpz_si_kronecker -int __GMP_DECLSPEC mpz_si_kronecker _PROTO ((long, mpz_srcptr)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC int mpz_si_kronecker _PROTO ((long, mpz_srcptr)) __GMP_ATTRIBUTE_PURE; #define mpz_ui_kronecker __gmpz_ui_kronecker -int __GMP_DECLSPEC mpz_ui_kronecker _PROTO ((unsigned long, mpz_srcptr)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC int mpz_ui_kronecker _PROTO ((unsigned long, mpz_srcptr)) __GMP_ATTRIBUTE_PURE; #define mpz_lcm __gmpz_lcm -void __GMP_DECLSPEC mpz_lcm _PROTO ((mpz_ptr, mpz_srcptr, mpz_srcptr)); +__GMP_DECLSPEC void mpz_lcm _PROTO ((mpz_ptr, mpz_srcptr, mpz_srcptr)); #define mpz_lcm_ui __gmpz_lcm_ui -void __GMP_DECLSPEC mpz_lcm_ui _PROTO ((mpz_ptr, mpz_srcptr, unsigned long)); +__GMP_DECLSPEC void mpz_lcm_ui _PROTO ((mpz_ptr, mpz_srcptr, unsigned long)); #define mpz_legendre mpz_jacobi /* alias */ #define mpz_lucnum_ui __gmpz_lucnum_ui -void __GMP_DECLSPEC mpz_lucnum_ui _PROTO ((mpz_ptr, unsigned long int)); +__GMP_DECLSPEC void mpz_lucnum_ui _PROTO ((mpz_ptr, unsigned long int)); #define mpz_lucnum2_ui __gmpz_lucnum2_ui -void __GMP_DECLSPEC mpz_lucnum2_ui _PROTO ((mpz_ptr, mpz_ptr, unsigned long int)); +__GMP_DECLSPEC void mpz_lucnum2_ui _PROTO ((mpz_ptr, mpz_ptr, unsigned long int)); #define mpz_millerrabin __gmpz_millerrabin -int __GMP_DECLSPEC mpz_millerrabin _PROTO ((mpz_srcptr, int)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC int mpz_millerrabin _PROTO ((mpz_srcptr, int)) __GMP_ATTRIBUTE_PURE; #define mpz_mod __gmpz_mod -void __GMP_DECLSPEC mpz_mod _PROTO ((mpz_ptr, mpz_srcptr, mpz_srcptr)); +__GMP_DECLSPEC void mpz_mod _PROTO ((mpz_ptr, mpz_srcptr, mpz_srcptr)); #define mpz_mul __gmpz_mul -void __GMP_DECLSPEC mpz_mul _PROTO ((mpz_ptr, mpz_srcptr, mpz_srcptr)); +__GMP_DECLSPEC void mpz_mul _PROTO ((mpz_ptr, mpz_srcptr, mpz_srcptr)); #define mpz_mul_2exp __gmpz_mul_2exp -void __GMP_DECLSPEC mpz_mul_2exp _PROTO ((mpz_ptr, mpz_srcptr, unsigned long int)); +__GMP_DECLSPEC void mpz_mul_2exp _PROTO ((mpz_ptr, mpz_srcptr, unsigned long int)); #define mpz_mul_si __gmpz_mul_si -void __GMP_DECLSPEC mpz_mul_si _PROTO ((mpz_ptr, mpz_srcptr, long int)); +__GMP_DECLSPEC void mpz_mul_si _PROTO ((mpz_ptr, mpz_srcptr, long int)); #define mpz_mul_ui __gmpz_mul_ui -void __GMP_DECLSPEC mpz_mul_ui _PROTO ((mpz_ptr, mpz_srcptr, unsigned long int)); +__GMP_DECLSPEC void mpz_mul_ui _PROTO ((mpz_ptr, mpz_srcptr, unsigned long int)); #define mpz_neg __gmpz_neg #if __GMP_INLINE_PROTOTYPES || __GMP_FORCE_mpz_neg -void __GMP_DECLSPEC mpz_neg _PROTO ((mpz_ptr, mpz_srcptr)); +__GMP_DECLSPEC void mpz_neg _PROTO ((mpz_ptr, mpz_srcptr)); #endif #define mpz_nextprime __gmpz_nextprime -void __GMP_DECLSPEC mpz_nextprime _PROTO ((mpz_ptr, mpz_srcptr)); +__GMP_DECLSPEC void mpz_nextprime _PROTO ((mpz_ptr, mpz_srcptr)); #define mpz_out_raw __gmpz_out_raw #ifdef _GMP_H_HAVE_FILE -size_t __GMP_DECLSPEC mpz_out_raw _PROTO ((FILE *, mpz_srcptr)); +__GMP_DECLSPEC size_t mpz_out_raw _PROTO ((FILE *, mpz_srcptr)); #endif #define mpz_out_str __gmpz_out_str #ifdef _GMP_H_HAVE_FILE -size_t __GMP_DECLSPEC mpz_out_str _PROTO ((FILE *, int, mpz_srcptr)); +__GMP_DECLSPEC size_t mpz_out_str _PROTO ((FILE *, int, mpz_srcptr)); #endif #define mpz_perfect_power_p __gmpz_perfect_power_p -int __GMP_DECLSPEC mpz_perfect_power_p _PROTO ((mpz_srcptr)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC int mpz_perfect_power_p _PROTO ((mpz_srcptr)) __GMP_ATTRIBUTE_PURE; #define mpz_perfect_square_p __gmpz_perfect_square_p #if __GMP_INLINE_PROTOTYPES || __GMP_FORCE_mpz_perfect_square_p -int __GMP_DECLSPEC mpz_perfect_square_p _PROTO ((mpz_srcptr)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC int mpz_perfect_square_p _PROTO ((mpz_srcptr)) __GMP_ATTRIBUTE_PURE; #endif #define mpz_popcount __gmpz_popcount #if __GMP_INLINE_PROTOTYPES || __GMP_FORCE_mpz_popcount -unsigned long int __GMP_DECLSPEC mpz_popcount _PROTO ((mpz_srcptr)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC unsigned long int mpz_popcount _PROTO ((mpz_srcptr)) __GMP_ATTRIBUTE_PURE; #endif #define mpz_pow_ui __gmpz_pow_ui -void __GMP_DECLSPEC mpz_pow_ui _PROTO ((mpz_ptr, mpz_srcptr, unsigned long int)); +__GMP_DECLSPEC void mpz_pow_ui _PROTO ((mpz_ptr, mpz_srcptr, unsigned long int)); #define mpz_powm __gmpz_powm -void __GMP_DECLSPEC mpz_powm _PROTO ((mpz_ptr, mpz_srcptr, mpz_srcptr, mpz_srcptr)); +__GMP_DECLSPEC void mpz_powm _PROTO ((mpz_ptr, mpz_srcptr, mpz_srcptr, mpz_srcptr)); #define mpz_powm_ui __gmpz_powm_ui -void __GMP_DECLSPEC mpz_powm_ui _PROTO ((mpz_ptr, mpz_srcptr, unsigned long int, mpz_srcptr)); +__GMP_DECLSPEC void mpz_powm_ui _PROTO ((mpz_ptr, mpz_srcptr, unsigned long int, mpz_srcptr)); #define mpz_probab_prime_p __gmpz_probab_prime_p -int __GMP_DECLSPEC mpz_probab_prime_p _PROTO ((mpz_srcptr, int)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC int mpz_probab_prime_p _PROTO ((mpz_srcptr, int)) __GMP_ATTRIBUTE_PURE; #define mpz_random __gmpz_random -void __GMP_DECLSPEC mpz_random _PROTO ((mpz_ptr, mp_size_t)); +__GMP_DECLSPEC void mpz_random _PROTO ((mpz_ptr, mp_size_t)); #define mpz_random2 __gmpz_random2 -void __GMP_DECLSPEC mpz_random2 _PROTO ((mpz_ptr, mp_size_t)); +__GMP_DECLSPEC void mpz_random2 _PROTO ((mpz_ptr, mp_size_t)); #define mpz_realloc2 __gmpz_realloc2 -void __GMP_DECLSPEC mpz_realloc2 _PROTO ((mpz_ptr, unsigned long)); +__GMP_DECLSPEC void mpz_realloc2 _PROTO ((mpz_ptr, unsigned long)); #define mpz_remove __gmpz_remove -unsigned long int __GMP_DECLSPEC mpz_remove _PROTO ((mpz_ptr, mpz_srcptr, mpz_srcptr)); +__GMP_DECLSPEC unsigned long int mpz_remove _PROTO ((mpz_ptr, mpz_srcptr, mpz_srcptr)); #define mpz_root __gmpz_root -int __GMP_DECLSPEC mpz_root _PROTO ((mpz_ptr, mpz_srcptr, unsigned long int)); +__GMP_DECLSPEC int mpz_root _PROTO ((mpz_ptr, mpz_srcptr, unsigned long int)); #define mpz_rrandomb __gmpz_rrandomb -void __GMP_DECLSPEC mpz_rrandomb _PROTO ((mpz_ptr, gmp_randstate_t, unsigned long int)); +__GMP_DECLSPEC void mpz_rrandomb _PROTO ((mpz_ptr, gmp_randstate_t, unsigned long int)); #define mpz_scan0 __gmpz_scan0 -unsigned long int __GMP_DECLSPEC mpz_scan0 _PROTO ((mpz_srcptr, unsigned long int)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC unsigned long int mpz_scan0 _PROTO ((mpz_srcptr, unsigned long int)) __GMP_ATTRIBUTE_PURE; #define mpz_scan1 __gmpz_scan1 -unsigned long int __GMP_DECLSPEC mpz_scan1 _PROTO ((mpz_srcptr, unsigned long int)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC unsigned long int mpz_scan1 _PROTO ((mpz_srcptr, unsigned long int)) __GMP_ATTRIBUTE_PURE; #define mpz_set __gmpz_set -void __GMP_DECLSPEC mpz_set _PROTO ((mpz_ptr, mpz_srcptr)); +__GMP_DECLSPEC void mpz_set _PROTO ((mpz_ptr, mpz_srcptr)); #define mpz_set_d __gmpz_set_d -void __GMP_DECLSPEC mpz_set_d _PROTO ((mpz_ptr, double)); +__GMP_DECLSPEC void mpz_set_d _PROTO ((mpz_ptr, double)); #define mpz_set_f __gmpz_set_f -void __GMP_DECLSPEC mpz_set_f _PROTO ((mpz_ptr, mpf_srcptr)); +__GMP_DECLSPEC void mpz_set_f _PROTO ((mpz_ptr, mpf_srcptr)); #define mpz_set_q __gmpz_set_q #if __GMP_INLINE_PROTOTYPES || __GMP_FORCE_mpz_set_q -void __GMP_DECLSPEC mpz_set_q _PROTO ((mpz_ptr, mpq_srcptr)); +__GMP_DECLSPEC void mpz_set_q _PROTO ((mpz_ptr, mpq_srcptr)); #endif #define mpz_set_si __gmpz_set_si -void __GMP_DECLSPEC mpz_set_si _PROTO ((mpz_ptr, signed long int)); +__GMP_DECLSPEC void mpz_set_si _PROTO ((mpz_ptr, signed long int)); #define mpz_set_str __gmpz_set_str -int __GMP_DECLSPEC mpz_set_str _PROTO ((mpz_ptr, __gmp_const char *, int)); +__GMP_DECLSPEC int mpz_set_str _PROTO ((mpz_ptr, __gmp_const char *, int)); #define mpz_set_ui __gmpz_set_ui -void __GMP_DECLSPEC mpz_set_ui _PROTO ((mpz_ptr, unsigned long int)); +__GMP_DECLSPEC void mpz_set_ui _PROTO ((mpz_ptr, unsigned long int)); #define mpz_setbit __gmpz_setbit -void __GMP_DECLSPEC mpz_setbit _PROTO ((mpz_ptr, unsigned long int)); +__GMP_DECLSPEC void mpz_setbit _PROTO ((mpz_ptr, unsigned long int)); #define mpz_size __gmpz_size #if __GMP_INLINE_PROTOTYPES || __GMP_FORCE_mpz_size -size_t __GMP_DECLSPEC mpz_size _PROTO ((mpz_srcptr)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC size_t mpz_size _PROTO ((mpz_srcptr)) __GMP_ATTRIBUTE_PURE; #endif #define mpz_sizeinbase __gmpz_sizeinbase -size_t __GMP_DECLSPEC mpz_sizeinbase _PROTO ((mpz_srcptr, int)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC size_t mpz_sizeinbase _PROTO ((mpz_srcptr, int)) __GMP_ATTRIBUTE_PURE; #define mpz_sqrt __gmpz_sqrt -void __GMP_DECLSPEC mpz_sqrt _PROTO ((mpz_ptr, mpz_srcptr)); +__GMP_DECLSPEC void mpz_sqrt _PROTO ((mpz_ptr, mpz_srcptr)); #define mpz_sqrtrem __gmpz_sqrtrem -void __GMP_DECLSPEC mpz_sqrtrem _PROTO ((mpz_ptr, mpz_ptr, mpz_srcptr)); +__GMP_DECLSPEC void mpz_sqrtrem _PROTO ((mpz_ptr, mpz_ptr, mpz_srcptr)); #define mpz_sub __gmpz_sub -void __GMP_DECLSPEC mpz_sub _PROTO ((mpz_ptr, mpz_srcptr, mpz_srcptr)); +__GMP_DECLSPEC void mpz_sub _PROTO ((mpz_ptr, mpz_srcptr, mpz_srcptr)); #define mpz_sub_ui __gmpz_sub_ui -void __GMP_DECLSPEC mpz_sub_ui _PROTO ((mpz_ptr, mpz_srcptr, unsigned long int)); +__GMP_DECLSPEC void mpz_sub_ui _PROTO ((mpz_ptr, mpz_srcptr, unsigned long int)); #define mpz_submul __gmpz_submul -void __GMP_DECLSPEC mpz_submul _PROTO ((mpz_ptr, mpz_srcptr, mpz_srcptr)); +__GMP_DECLSPEC void mpz_submul _PROTO ((mpz_ptr, mpz_srcptr, mpz_srcptr)); #define mpz_submul_ui __gmpz_submul_ui -void __GMP_DECLSPEC mpz_submul_ui _PROTO ((mpz_ptr, mpz_srcptr, unsigned long int)); +__GMP_DECLSPEC void mpz_submul_ui _PROTO ((mpz_ptr, mpz_srcptr, unsigned long int)); #define mpz_swap __gmpz_swap -void __GMP_DECLSPEC mpz_swap _PROTO ((mpz_ptr, mpz_ptr)); +__GMP_DECLSPEC void mpz_swap _PROTO ((mpz_ptr, mpz_ptr)); #define mpz_tdiv_ui __gmpz_tdiv_ui -unsigned long int __GMP_DECLSPEC mpz_tdiv_ui _PROTO ((mpz_srcptr, unsigned long int)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC unsigned long int mpz_tdiv_ui _PROTO ((mpz_srcptr, unsigned long int)) __GMP_ATTRIBUTE_PURE; #define mpz_tdiv_q __gmpz_tdiv_q -void __GMP_DECLSPEC mpz_tdiv_q _PROTO ((mpz_ptr, mpz_srcptr, mpz_srcptr)); +__GMP_DECLSPEC void mpz_tdiv_q _PROTO ((mpz_ptr, mpz_srcptr, mpz_srcptr)); #define mpz_tdiv_q_2exp __gmpz_tdiv_q_2exp -void __GMP_DECLSPEC mpz_tdiv_q_2exp _PROTO ((mpz_ptr, mpz_srcptr, unsigned long int)); +__GMP_DECLSPEC void mpz_tdiv_q_2exp _PROTO ((mpz_ptr, mpz_srcptr, unsigned long int)); #define mpz_tdiv_q_ui __gmpz_tdiv_q_ui -unsigned long int __GMP_DECLSPEC mpz_tdiv_q_ui _PROTO ((mpz_ptr, mpz_srcptr, unsigned long int)); +__GMP_DECLSPEC unsigned long int mpz_tdiv_q_ui _PROTO ((mpz_ptr, mpz_srcptr, unsigned long int)); #define mpz_tdiv_qr __gmpz_tdiv_qr -void __GMP_DECLSPEC mpz_tdiv_qr _PROTO ((mpz_ptr, mpz_ptr, mpz_srcptr, mpz_srcptr)); +__GMP_DECLSPEC void mpz_tdiv_qr _PROTO ((mpz_ptr, mpz_ptr, mpz_srcptr, mpz_srcptr)); #define mpz_tdiv_qr_ui __gmpz_tdiv_qr_ui -unsigned long int __GMP_DECLSPEC mpz_tdiv_qr_ui _PROTO ((mpz_ptr, mpz_ptr, mpz_srcptr, unsigned long int)); +__GMP_DECLSPEC unsigned long int mpz_tdiv_qr_ui _PROTO ((mpz_ptr, mpz_ptr, mpz_srcptr, unsigned long int)); #define mpz_tdiv_r __gmpz_tdiv_r -void __GMP_DECLSPEC mpz_tdiv_r _PROTO ((mpz_ptr, mpz_srcptr, mpz_srcptr)); +__GMP_DECLSPEC void mpz_tdiv_r _PROTO ((mpz_ptr, mpz_srcptr, mpz_srcptr)); #define mpz_tdiv_r_2exp __gmpz_tdiv_r_2exp -void __GMP_DECLSPEC mpz_tdiv_r_2exp _PROTO ((mpz_ptr, mpz_srcptr, unsigned long int)); +__GMP_DECLSPEC void mpz_tdiv_r_2exp _PROTO ((mpz_ptr, mpz_srcptr, unsigned long int)); #define mpz_tdiv_r_ui __gmpz_tdiv_r_ui -unsigned long int __GMP_DECLSPEC mpz_tdiv_r_ui _PROTO ((mpz_ptr, mpz_srcptr, unsigned long int)); +__GMP_DECLSPEC unsigned long int mpz_tdiv_r_ui _PROTO ((mpz_ptr, mpz_srcptr, unsigned long int)); #define mpz_tstbit __gmpz_tstbit -int __GMP_DECLSPEC mpz_tstbit _PROTO ((mpz_srcptr, unsigned long int)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC int mpz_tstbit _PROTO ((mpz_srcptr, unsigned long int)) __GMP_ATTRIBUTE_PURE; #define mpz_ui_pow_ui __gmpz_ui_pow_ui -void __GMP_DECLSPEC mpz_ui_pow_ui _PROTO ((mpz_ptr, unsigned long int, unsigned long int)); +__GMP_DECLSPEC void mpz_ui_pow_ui _PROTO ((mpz_ptr, unsigned long int, unsigned long int)); #define mpz_urandomb __gmpz_urandomb -void __GMP_DECLSPEC mpz_urandomb _PROTO ((mpz_ptr, gmp_randstate_t, unsigned long int)); +__GMP_DECLSPEC void mpz_urandomb _PROTO ((mpz_ptr, gmp_randstate_t, unsigned long int)); #define mpz_urandomm __gmpz_urandomm -void __GMP_DECLSPEC mpz_urandomm _PROTO ((mpz_ptr, gmp_randstate_t, mpz_srcptr)); +__GMP_DECLSPEC void mpz_urandomm _PROTO ((mpz_ptr, gmp_randstate_t, mpz_srcptr)); #define mpz_xor __gmpz_xor #define mpz_eor __gmpz_xor -void __GMP_DECLSPEC mpz_xor _PROTO ((mpz_ptr, mpz_srcptr, mpz_srcptr)); +__GMP_DECLSPEC void mpz_xor _PROTO ((mpz_ptr, mpz_srcptr, mpz_srcptr)); /**************** Rational (i.e. Q) routines. ****************/ #define mpq_abs __gmpq_abs #if __GMP_INLINE_PROTOTYPES || __GMP_FORCE_mpq_abs -void __GMP_DECLSPEC mpq_abs _PROTO ((mpq_ptr, mpq_srcptr)); +__GMP_DECLSPEC void mpq_abs _PROTO ((mpq_ptr, mpq_srcptr)); #endif #define mpq_add __gmpq_add -void __GMP_DECLSPEC mpq_add _PROTO ((mpq_ptr, mpq_srcptr, mpq_srcptr)); +__GMP_DECLSPEC void mpq_add _PROTO ((mpq_ptr, mpq_srcptr, mpq_srcptr)); #define mpq_canonicalize __gmpq_canonicalize -void __GMP_DECLSPEC mpq_canonicalize _PROTO ((mpq_ptr)); +__GMP_DECLSPEC void mpq_canonicalize _PROTO ((mpq_ptr)); #define mpq_clear __gmpq_clear -void __GMP_DECLSPEC mpq_clear _PROTO ((mpq_ptr)); +__GMP_DECLSPEC void mpq_clear _PROTO ((mpq_ptr)); #define mpq_cmp __gmpq_cmp -int __GMP_DECLSPEC mpq_cmp _PROTO ((mpq_srcptr, mpq_srcptr)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC int mpq_cmp _PROTO ((mpq_srcptr, mpq_srcptr)) __GMP_ATTRIBUTE_PURE; #define _mpq_cmp_si __gmpq_cmp_si -int __GMP_DECLSPEC _mpq_cmp_si _PROTO ((mpq_srcptr, long, unsigned long)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC int _mpq_cmp_si _PROTO ((mpq_srcptr, long, unsigned long)) __GMP_ATTRIBUTE_PURE; #define _mpq_cmp_ui __gmpq_cmp_ui -int __GMP_DECLSPEC _mpq_cmp_ui _PROTO ((mpq_srcptr, unsigned long int, unsigned long int)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC int _mpq_cmp_ui _PROTO ((mpq_srcptr, unsigned long int, unsigned long int)) __GMP_ATTRIBUTE_PURE; #define mpq_div __gmpq_div -void __GMP_DECLSPEC mpq_div _PROTO ((mpq_ptr, mpq_srcptr, mpq_srcptr)); +__GMP_DECLSPEC void mpq_div _PROTO ((mpq_ptr, mpq_srcptr, mpq_srcptr)); #define mpq_div_2exp __gmpq_div_2exp -void __GMP_DECLSPEC mpq_div_2exp _PROTO ((mpq_ptr, mpq_srcptr, unsigned long)); +__GMP_DECLSPEC void mpq_div_2exp _PROTO ((mpq_ptr, mpq_srcptr, unsigned long)); #define mpq_equal __gmpq_equal -int __GMP_DECLSPEC mpq_equal _PROTO ((mpq_srcptr, mpq_srcptr)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC int mpq_equal _PROTO ((mpq_srcptr, mpq_srcptr)) __GMP_ATTRIBUTE_PURE; #define mpq_get_num __gmpq_get_num -void __GMP_DECLSPEC mpq_get_num _PROTO ((mpz_ptr, mpq_srcptr)); +__GMP_DECLSPEC void mpq_get_num _PROTO ((mpz_ptr, mpq_srcptr)); #define mpq_get_den __gmpq_get_den -void __GMP_DECLSPEC mpq_get_den _PROTO ((mpz_ptr, mpq_srcptr)); +__GMP_DECLSPEC void mpq_get_den _PROTO ((mpz_ptr, mpq_srcptr)); #define mpq_get_d __gmpq_get_d -double __GMP_DECLSPEC mpq_get_d _PROTO ((mpq_srcptr)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC double mpq_get_d _PROTO ((mpq_srcptr)) __GMP_ATTRIBUTE_PURE; #define mpq_get_str __gmpq_get_str -char * __GMP_DECLSPEC mpq_get_str _PROTO ((char *, int, mpq_srcptr)); +__GMP_DECLSPEC char *mpq_get_str _PROTO ((char *, int, mpq_srcptr)); #define mpq_init __gmpq_init -void __GMP_DECLSPEC mpq_init _PROTO ((mpq_ptr)); +__GMP_DECLSPEC void mpq_init _PROTO ((mpq_ptr)); #define mpq_inp_str __gmpq_inp_str #ifdef _GMP_H_HAVE_FILE -size_t mpq_inp_str _PROTO ((mpq_ptr, FILE *, int)); +__GMP_DECLSPEC size_t mpq_inp_str _PROTO ((mpq_ptr, FILE *, int)); #endif #define mpq_inv __gmpq_inv -void __GMP_DECLSPEC mpq_inv _PROTO ((mpq_ptr, mpq_srcptr)); +__GMP_DECLSPEC void mpq_inv _PROTO ((mpq_ptr, mpq_srcptr)); #define mpq_mul __gmpq_mul -void __GMP_DECLSPEC mpq_mul _PROTO ((mpq_ptr, mpq_srcptr, mpq_srcptr)); +__GMP_DECLSPEC void mpq_mul _PROTO ((mpq_ptr, mpq_srcptr, mpq_srcptr)); #define mpq_mul_2exp __gmpq_mul_2exp -void __GMP_DECLSPEC mpq_mul_2exp _PROTO ((mpq_ptr, mpq_srcptr, unsigned long)); +__GMP_DECLSPEC void mpq_mul_2exp _PROTO ((mpq_ptr, mpq_srcptr, unsigned long)); #define mpq_neg __gmpq_neg #if __GMP_INLINE_PROTOTYPES || __GMP_FORCE_mpq_neg -void __GMP_DECLSPEC mpq_neg _PROTO ((mpq_ptr, mpq_srcptr)); +__GMP_DECLSPEC void mpq_neg _PROTO ((mpq_ptr, mpq_srcptr)); #endif #define mpq_out_str __gmpq_out_str #ifdef _GMP_H_HAVE_FILE -size_t __GMP_DECLSPEC mpq_out_str _PROTO ((FILE *, int, mpq_srcptr)); +__GMP_DECLSPEC size_t mpq_out_str _PROTO ((FILE *, int, mpq_srcptr)); #endif #define mpq_set __gmpq_set -void __GMP_DECLSPEC mpq_set _PROTO ((mpq_ptr, mpq_srcptr)); +__GMP_DECLSPEC void mpq_set _PROTO ((mpq_ptr, mpq_srcptr)); #define mpq_set_d __gmpq_set_d -void __GMP_DECLSPEC mpq_set_d _PROTO ((mpq_ptr, double)); +__GMP_DECLSPEC void mpq_set_d _PROTO ((mpq_ptr, double)); #define mpq_set_den __gmpq_set_den -void __GMP_DECLSPEC mpq_set_den _PROTO ((mpq_ptr, mpz_srcptr)); +__GMP_DECLSPEC void mpq_set_den _PROTO ((mpq_ptr, mpz_srcptr)); #define mpq_set_f __gmpq_set_f -void __GMP_DECLSPEC mpq_set_f _PROTO ((mpq_ptr, mpf_srcptr)); +__GMP_DECLSPEC void mpq_set_f _PROTO ((mpq_ptr, mpf_srcptr)); #define mpq_set_num __gmpq_set_num -void __GMP_DECLSPEC mpq_set_num _PROTO ((mpq_ptr, mpz_srcptr)); +__GMP_DECLSPEC void mpq_set_num _PROTO ((mpq_ptr, mpz_srcptr)); #define mpq_set_si __gmpq_set_si -void __GMP_DECLSPEC mpq_set_si _PROTO ((mpq_ptr, signed long int, unsigned long int)); +__GMP_DECLSPEC void mpq_set_si _PROTO ((mpq_ptr, signed long int, unsigned long int)); #define mpq_set_str __gmpq_set_str -int __GMP_DECLSPEC mpq_set_str _PROTO ((mpq_ptr, const char *, int)); +__GMP_DECLSPEC int mpq_set_str _PROTO ((mpq_ptr, const char *, int)); #define mpq_set_ui __gmpq_set_ui -void __GMP_DECLSPEC mpq_set_ui _PROTO ((mpq_ptr, unsigned long int, unsigned long int)); +__GMP_DECLSPEC void mpq_set_ui _PROTO ((mpq_ptr, unsigned long int, unsigned long int)); #define mpq_set_z __gmpq_set_z -void __GMP_DECLSPEC mpq_set_z _PROTO ((mpq_ptr, mpz_srcptr)); +__GMP_DECLSPEC void mpq_set_z _PROTO ((mpq_ptr, mpz_srcptr)); #define mpq_sub __gmpq_sub -void __GMP_DECLSPEC mpq_sub _PROTO ((mpq_ptr, mpq_srcptr, mpq_srcptr)); +__GMP_DECLSPEC void mpq_sub _PROTO ((mpq_ptr, mpq_srcptr, mpq_srcptr)); #define mpq_swap __gmpq_swap -void __GMP_DECLSPEC mpq_swap _PROTO ((mpq_ptr, mpq_ptr)); +__GMP_DECLSPEC void mpq_swap _PROTO ((mpq_ptr, mpq_ptr)); /**************** Float (i.e. F) routines. ****************/ #define mpf_abs __gmpf_abs -void __GMP_DECLSPEC mpf_abs _PROTO ((mpf_ptr, mpf_srcptr)); +__GMP_DECLSPEC void mpf_abs _PROTO ((mpf_ptr, mpf_srcptr)); #define mpf_add __gmpf_add -void __GMP_DECLSPEC mpf_add _PROTO ((mpf_ptr, mpf_srcptr, mpf_srcptr)); +__GMP_DECLSPEC void mpf_add _PROTO ((mpf_ptr, mpf_srcptr, mpf_srcptr)); #define mpf_add_ui __gmpf_add_ui -void __GMP_DECLSPEC mpf_add_ui _PROTO ((mpf_ptr, mpf_srcptr, unsigned long int)); +__GMP_DECLSPEC void mpf_add_ui _PROTO ((mpf_ptr, mpf_srcptr, unsigned long int)); #define mpf_ceil __gmpf_ceil -void __GMP_DECLSPEC mpf_ceil _PROTO ((mpf_ptr, mpf_srcptr)); +__GMP_DECLSPEC void mpf_ceil _PROTO ((mpf_ptr, mpf_srcptr)); #define mpf_clear __gmpf_clear -void __GMP_DECLSPEC mpf_clear _PROTO ((mpf_ptr)); +__GMP_DECLSPEC void mpf_clear _PROTO ((mpf_ptr)); #define mpf_cmp __gmpf_cmp -int __GMP_DECLSPEC mpf_cmp _PROTO ((mpf_srcptr, mpf_srcptr)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC int mpf_cmp _PROTO ((mpf_srcptr, mpf_srcptr)) __GMP_ATTRIBUTE_PURE; #define mpf_cmp_d __gmpf_cmp_d -int __GMP_DECLSPEC mpf_cmp_d _PROTO ((mpf_srcptr, double)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC int mpf_cmp_d _PROTO ((mpf_srcptr, double)) __GMP_ATTRIBUTE_PURE; #define mpf_cmp_si __gmpf_cmp_si -int __GMP_DECLSPEC mpf_cmp_si _PROTO ((mpf_srcptr, signed long int)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC int mpf_cmp_si _PROTO ((mpf_srcptr, signed long int)) __GMP_ATTRIBUTE_PURE; #define mpf_cmp_ui __gmpf_cmp_ui -int __GMP_DECLSPEC mpf_cmp_ui _PROTO ((mpf_srcptr, unsigned long int)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC int mpf_cmp_ui _PROTO ((mpf_srcptr, unsigned long int)) __GMP_ATTRIBUTE_PURE; #define mpf_div __gmpf_div -void __GMP_DECLSPEC mpf_div _PROTO ((mpf_ptr, mpf_srcptr, mpf_srcptr)); +__GMP_DECLSPEC void mpf_div _PROTO ((mpf_ptr, mpf_srcptr, mpf_srcptr)); #define mpf_div_2exp __gmpf_div_2exp -void __GMP_DECLSPEC mpf_div_2exp _PROTO ((mpf_ptr, mpf_srcptr, unsigned long int)); +__GMP_DECLSPEC void mpf_div_2exp _PROTO ((mpf_ptr, mpf_srcptr, unsigned long int)); #define mpf_div_ui __gmpf_div_ui -void __GMP_DECLSPEC mpf_div_ui _PROTO ((mpf_ptr, mpf_srcptr, unsigned long int)); +__GMP_DECLSPEC void mpf_div_ui _PROTO ((mpf_ptr, mpf_srcptr, unsigned long int)); #define mpf_dump __gmpf_dump -void __GMP_DECLSPEC mpf_dump _PROTO ((mpf_srcptr)); +__GMP_DECLSPEC void mpf_dump _PROTO ((mpf_srcptr)); #define mpf_eq __gmpf_eq -int __GMP_DECLSPEC mpf_eq _PROTO ((mpf_srcptr, mpf_srcptr, unsigned long int)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC int mpf_eq _PROTO ((mpf_srcptr, mpf_srcptr, unsigned long int)) __GMP_ATTRIBUTE_PURE; #define mpf_fits_sint_p __gmpf_fits_sint_p -int __GMP_DECLSPEC mpf_fits_sint_p _PROTO ((mpf_srcptr)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC int mpf_fits_sint_p _PROTO ((mpf_srcptr)) __GMP_ATTRIBUTE_PURE; #define mpf_fits_slong_p __gmpf_fits_slong_p -int __GMP_DECLSPEC mpf_fits_slong_p _PROTO ((mpf_srcptr)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC int mpf_fits_slong_p _PROTO ((mpf_srcptr)) __GMP_ATTRIBUTE_PURE; #define mpf_fits_sshort_p __gmpf_fits_sshort_p -int __GMP_DECLSPEC mpf_fits_sshort_p _PROTO ((mpf_srcptr)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC int mpf_fits_sshort_p _PROTO ((mpf_srcptr)) __GMP_ATTRIBUTE_PURE; #define mpf_fits_uint_p __gmpf_fits_uint_p -int __GMP_DECLSPEC mpf_fits_uint_p _PROTO ((mpf_srcptr)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC int mpf_fits_uint_p _PROTO ((mpf_srcptr)) __GMP_ATTRIBUTE_PURE; #define mpf_fits_ulong_p __gmpf_fits_ulong_p -int __GMP_DECLSPEC mpf_fits_ulong_p _PROTO ((mpf_srcptr)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC int mpf_fits_ulong_p _PROTO ((mpf_srcptr)) __GMP_ATTRIBUTE_PURE; #define mpf_fits_ushort_p __gmpf_fits_ushort_p -int __GMP_DECLSPEC mpf_fits_ushort_p _PROTO ((mpf_srcptr)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC int mpf_fits_ushort_p _PROTO ((mpf_srcptr)) __GMP_ATTRIBUTE_PURE; #define mpf_floor __gmpf_floor -void __GMP_DECLSPEC mpf_floor _PROTO ((mpf_ptr, mpf_srcptr)); +__GMP_DECLSPEC void mpf_floor _PROTO ((mpf_ptr, mpf_srcptr)); #define mpf_get_d __gmpf_get_d -double __GMP_DECLSPEC mpf_get_d _PROTO ((mpf_srcptr)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC double mpf_get_d _PROTO ((mpf_srcptr)) __GMP_ATTRIBUTE_PURE; #define mpf_get_d_2exp __gmpf_get_d_2exp -double __GMP_DECLSPEC mpf_get_d_2exp _PROTO ((signed long int *, mpf_srcptr)); +__GMP_DECLSPEC double mpf_get_d_2exp _PROTO ((signed long int *, mpf_srcptr)); #define mpf_get_default_prec __gmpf_get_default_prec -unsigned long int __GMP_DECLSPEC mpf_get_default_prec _PROTO ((void)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC unsigned long int mpf_get_default_prec _PROTO ((void)) __GMP_ATTRIBUTE_PURE; #define mpf_get_prec __gmpf_get_prec -unsigned long int __GMP_DECLSPEC mpf_get_prec _PROTO ((mpf_srcptr)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC unsigned long int mpf_get_prec _PROTO ((mpf_srcptr)) __GMP_ATTRIBUTE_PURE; #define mpf_get_si __gmpf_get_si -long __GMP_DECLSPEC mpf_get_si _PROTO ((mpf_srcptr)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC long mpf_get_si _PROTO ((mpf_srcptr)) __GMP_ATTRIBUTE_PURE; #define mpf_get_str __gmpf_get_str -char * __GMP_DECLSPEC mpf_get_str _PROTO ((char *, mp_exp_t *, int, size_t, mpf_srcptr)); +__GMP_DECLSPEC char *mpf_get_str _PROTO ((char *, mp_exp_t *, int, size_t, mpf_srcptr)); #define mpf_get_ui __gmpf_get_ui -unsigned long __GMP_DECLSPEC mpf_get_ui _PROTO ((mpf_srcptr)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC unsigned long mpf_get_ui _PROTO ((mpf_srcptr)) __GMP_ATTRIBUTE_PURE; #define mpf_init __gmpf_init -void __GMP_DECLSPEC mpf_init _PROTO ((mpf_ptr)); +__GMP_DECLSPEC void mpf_init _PROTO ((mpf_ptr)); #define mpf_init2 __gmpf_init2 -void __GMP_DECLSPEC mpf_init2 _PROTO ((mpf_ptr, unsigned long int)); +__GMP_DECLSPEC void mpf_init2 _PROTO ((mpf_ptr, unsigned long int)); #define mpf_init_set __gmpf_init_set -void __GMP_DECLSPEC mpf_init_set _PROTO ((mpf_ptr, mpf_srcptr)); +__GMP_DECLSPEC void mpf_init_set _PROTO ((mpf_ptr, mpf_srcptr)); #define mpf_init_set_d __gmpf_init_set_d -void __GMP_DECLSPEC mpf_init_set_d _PROTO ((mpf_ptr, double)); +__GMP_DECLSPEC void mpf_init_set_d _PROTO ((mpf_ptr, double)); #define mpf_init_set_si __gmpf_init_set_si -void __GMP_DECLSPEC mpf_init_set_si _PROTO ((mpf_ptr, signed long int)); +__GMP_DECLSPEC void mpf_init_set_si _PROTO ((mpf_ptr, signed long int)); #define mpf_init_set_str __gmpf_init_set_str -int __GMP_DECLSPEC mpf_init_set_str _PROTO ((mpf_ptr, __gmp_const char *, int)); +__GMP_DECLSPEC int mpf_init_set_str _PROTO ((mpf_ptr, __gmp_const char *, int)); #define mpf_init_set_ui __gmpf_init_set_ui -void __GMP_DECLSPEC mpf_init_set_ui _PROTO ((mpf_ptr, unsigned long int)); +__GMP_DECLSPEC void mpf_init_set_ui _PROTO ((mpf_ptr, unsigned long int)); #define mpf_inp_str __gmpf_inp_str #ifdef _GMP_H_HAVE_FILE -size_t __GMP_DECLSPEC mpf_inp_str _PROTO ((mpf_ptr, FILE *, int)); +__GMP_DECLSPEC size_t mpf_inp_str _PROTO ((mpf_ptr, FILE *, int)); #endif #define mpf_integer_p __gmpf_integer_p -int __GMP_DECLSPEC mpf_integer_p _PROTO ((mpf_srcptr)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC int mpf_integer_p _PROTO ((mpf_srcptr)) __GMP_ATTRIBUTE_PURE; #define mpf_mul __gmpf_mul -void __GMP_DECLSPEC mpf_mul _PROTO ((mpf_ptr, mpf_srcptr, mpf_srcptr)); +__GMP_DECLSPEC void mpf_mul _PROTO ((mpf_ptr, mpf_srcptr, mpf_srcptr)); #define mpf_mul_2exp __gmpf_mul_2exp -void __GMP_DECLSPEC mpf_mul_2exp _PROTO ((mpf_ptr, mpf_srcptr, unsigned long int)); +__GMP_DECLSPEC void mpf_mul_2exp _PROTO ((mpf_ptr, mpf_srcptr, unsigned long int)); #define mpf_mul_ui __gmpf_mul_ui -void __GMP_DECLSPEC mpf_mul_ui _PROTO ((mpf_ptr, mpf_srcptr, unsigned long int)); +__GMP_DECLSPEC void mpf_mul_ui _PROTO ((mpf_ptr, mpf_srcptr, unsigned long int)); #define mpf_neg __gmpf_neg -void __GMP_DECLSPEC mpf_neg _PROTO ((mpf_ptr, mpf_srcptr)); +__GMP_DECLSPEC void mpf_neg _PROTO ((mpf_ptr, mpf_srcptr)); #define mpf_out_str __gmpf_out_str #ifdef _GMP_H_HAVE_FILE -size_t __GMP_DECLSPEC mpf_out_str _PROTO ((FILE *, int, size_t, mpf_srcptr)); +__GMP_DECLSPEC size_t mpf_out_str _PROTO ((FILE *, int, size_t, mpf_srcptr)); #endif #define mpf_pow_ui __gmpf_pow_ui -void __GMP_DECLSPEC mpf_pow_ui _PROTO ((mpf_ptr, mpf_srcptr, unsigned long int)); +__GMP_DECLSPEC void mpf_pow_ui _PROTO ((mpf_ptr, mpf_srcptr, unsigned long int)); #define mpf_random2 __gmpf_random2 -void __GMP_DECLSPEC mpf_random2 _PROTO ((mpf_ptr, mp_size_t, mp_exp_t)); +__GMP_DECLSPEC void mpf_random2 _PROTO ((mpf_ptr, mp_size_t, mp_exp_t)); #define mpf_reldiff __gmpf_reldiff -void __GMP_DECLSPEC mpf_reldiff _PROTO ((mpf_ptr, mpf_srcptr, mpf_srcptr)); +__GMP_DECLSPEC void mpf_reldiff _PROTO ((mpf_ptr, mpf_srcptr, mpf_srcptr)); #define mpf_set __gmpf_set -void __GMP_DECLSPEC mpf_set _PROTO ((mpf_ptr, mpf_srcptr)); +__GMP_DECLSPEC void mpf_set _PROTO ((mpf_ptr, mpf_srcptr)); #define mpf_set_d __gmpf_set_d -void __GMP_DECLSPEC mpf_set_d _PROTO ((mpf_ptr, double)); +__GMP_DECLSPEC void mpf_set_d _PROTO ((mpf_ptr, double)); #define mpf_set_default_prec __gmpf_set_default_prec -void __GMP_DECLSPEC mpf_set_default_prec _PROTO ((unsigned long int)); +__GMP_DECLSPEC void mpf_set_default_prec _PROTO ((unsigned long int)); #define mpf_set_prec __gmpf_set_prec -void __GMP_DECLSPEC mpf_set_prec _PROTO ((mpf_ptr, unsigned long int)); +__GMP_DECLSPEC void mpf_set_prec _PROTO ((mpf_ptr, unsigned long int)); #define mpf_set_prec_raw __gmpf_set_prec_raw -void __GMP_DECLSPEC mpf_set_prec_raw _PROTO ((mpf_ptr, unsigned long int)); +__GMP_DECLSPEC void mpf_set_prec_raw _PROTO ((mpf_ptr, unsigned long int)); #define mpf_set_q __gmpf_set_q -void __GMP_DECLSPEC mpf_set_q _PROTO ((mpf_ptr, mpq_srcptr)); +__GMP_DECLSPEC void mpf_set_q _PROTO ((mpf_ptr, mpq_srcptr)); #define mpf_set_si __gmpf_set_si -void __GMP_DECLSPEC mpf_set_si _PROTO ((mpf_ptr, signed long int)); +__GMP_DECLSPEC void mpf_set_si _PROTO ((mpf_ptr, signed long int)); #define mpf_set_str __gmpf_set_str -int __GMP_DECLSPEC mpf_set_str _PROTO ((mpf_ptr, __gmp_const char *, int)); +__GMP_DECLSPEC int mpf_set_str _PROTO ((mpf_ptr, __gmp_const char *, int)); #define mpf_set_ui __gmpf_set_ui -void __GMP_DECLSPEC mpf_set_ui _PROTO ((mpf_ptr, unsigned long int)); +__GMP_DECLSPEC void mpf_set_ui _PROTO ((mpf_ptr, unsigned long int)); #define mpf_set_z __gmpf_set_z -void __GMP_DECLSPEC mpf_set_z _PROTO ((mpf_ptr, mpz_srcptr)); +__GMP_DECLSPEC void mpf_set_z _PROTO ((mpf_ptr, mpz_srcptr)); #define mpf_size __gmpf_size -size_t __GMP_DECLSPEC mpf_size _PROTO ((mpf_srcptr)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC size_t mpf_size _PROTO ((mpf_srcptr)) __GMP_ATTRIBUTE_PURE; #define mpf_sqrt __gmpf_sqrt -void __GMP_DECLSPEC mpf_sqrt _PROTO ((mpf_ptr, mpf_srcptr)); +__GMP_DECLSPEC void mpf_sqrt _PROTO ((mpf_ptr, mpf_srcptr)); #define mpf_sqrt_ui __gmpf_sqrt_ui -void __GMP_DECLSPEC mpf_sqrt_ui _PROTO ((mpf_ptr, unsigned long int)); +__GMP_DECLSPEC void mpf_sqrt_ui _PROTO ((mpf_ptr, unsigned long int)); #define mpf_sub __gmpf_sub -void __GMP_DECLSPEC mpf_sub _PROTO ((mpf_ptr, mpf_srcptr, mpf_srcptr)); +__GMP_DECLSPEC void mpf_sub _PROTO ((mpf_ptr, mpf_srcptr, mpf_srcptr)); #define mpf_sub_ui __gmpf_sub_ui -void __GMP_DECLSPEC mpf_sub_ui _PROTO ((mpf_ptr, mpf_srcptr, unsigned long int)); +__GMP_DECLSPEC void mpf_sub_ui _PROTO ((mpf_ptr, mpf_srcptr, unsigned long int)); #define mpf_swap __gmpf_swap -void __GMP_DECLSPEC mpf_swap _PROTO ((mpf_ptr, mpf_ptr)); +__GMP_DECLSPEC void mpf_swap _PROTO ((mpf_ptr, mpf_ptr)); #define mpf_trunc __gmpf_trunc -void __GMP_DECLSPEC mpf_trunc _PROTO ((mpf_ptr, mpf_srcptr)); +__GMP_DECLSPEC void mpf_trunc _PROTO ((mpf_ptr, mpf_srcptr)); #define mpf_ui_div __gmpf_ui_div -void __GMP_DECLSPEC mpf_ui_div _PROTO ((mpf_ptr, unsigned long int, mpf_srcptr)); +__GMP_DECLSPEC void mpf_ui_div _PROTO ((mpf_ptr, unsigned long int, mpf_srcptr)); #define mpf_ui_sub __gmpf_ui_sub -void __GMP_DECLSPEC mpf_ui_sub _PROTO ((mpf_ptr, unsigned long int, mpf_srcptr)); +__GMP_DECLSPEC void mpf_ui_sub _PROTO ((mpf_ptr, unsigned long int, mpf_srcptr)); #define mpf_urandomb __gmpf_urandomb -void __GMP_DECLSPEC mpf_urandomb _PROTO ((mpf_t, gmp_randstate_t, unsigned long int)); +__GMP_DECLSPEC void mpf_urandomb _PROTO ((mpf_t, gmp_randstate_t, unsigned long int)); /************ Low level positive-integer (i.e. N) routines. ************/ @@ -1287,157 +1287,166 @@ /* This is ugly, but we need to make user calls reach the prefixed function. */ #define mpn_add __MPN(add) -mp_limb_t __GMP_DECLSPEC mpn_add _PROTO ((mp_ptr, mp_srcptr, mp_size_t, mp_srcptr,mp_size_t)); +#if __GMP_INLINE_PROTOTYPES || __GMP_FORCE_mpn_add +__GMP_DECLSPEC mp_limb_t mpn_add _PROTO ((mp_ptr, mp_srcptr, mp_size_t, mp_srcptr,mp_size_t)); +#endif #define mpn_add_1 __MPN(add_1) -mp_limb_t __GMP_DECLSPEC mpn_add_1 _PROTO ((mp_ptr, mp_srcptr, mp_size_t, mp_limb_t)); +#if __GMP_INLINE_PROTOTYPES || __GMP_FORCE_mpn_add_1 +__GMP_DECLSPEC mp_limb_t mpn_add_1 _PROTO ((mp_ptr, mp_srcptr, mp_size_t, mp_limb_t)); +#endif #define mpn_add_n __MPN(add_n) -mp_limb_t __GMP_DECLSPEC mpn_add_n _PROTO ((mp_ptr, mp_srcptr, mp_srcptr, mp_size_t)); +__GMP_DECLSPEC mp_limb_t mpn_add_n _PROTO ((mp_ptr, mp_srcptr, mp_srcptr, mp_size_t)); #define mpn_add_nc __MPN(add_nc) -mp_limb_t __GMP_DECLSPEC mpn_add_nc _PROTO ((mp_ptr, mp_srcptr, mp_srcptr, mp_size_t, mp_limb_t)); +__GMP_DECLSPEC mp_limb_t mpn_add_nc _PROTO ((mp_ptr, mp_srcptr, mp_srcptr, mp_size_t, mp_limb_t)); #define mpn_addmul_1 __MPN(addmul_1) -mp_limb_t __GMP_DECLSPEC mpn_addmul_1 _PROTO ((mp_ptr, mp_srcptr, mp_size_t, mp_limb_t)); +__GMP_DECLSPEC mp_limb_t mpn_addmul_1 _PROTO ((mp_ptr, mp_srcptr, mp_size_t, mp_limb_t)); #define mpn_addmul_1c __MPN(addmul_1c) -mp_limb_t __GMP_DECLSPEC mpn_addmul_1c _PROTO ((mp_ptr, mp_srcptr, mp_size_t, mp_limb_t, mp_limb_t)); +__GMP_DECLSPEC mp_limb_t mpn_addmul_1c _PROTO ((mp_ptr, mp_srcptr, mp_size_t, mp_limb_t, mp_limb_t)); #define mpn_addsub_n __MPN(addsub_n) -mp_limb_t __GMP_DECLSPEC mpn_addsub_n _PROTO ((mp_ptr, mp_ptr, mp_srcptr, mp_srcptr, mp_size_t)); +__GMP_DECLSPEC mp_limb_t mpn_addsub_n _PROTO ((mp_ptr, mp_ptr, mp_srcptr, mp_srcptr, mp_size_t)); #define mpn_addsub_nc __MPN(addsub_nc) -mp_limb_t __GMP_DECLSPEC mpn_addsub_nc _PROTO ((mp_ptr, mp_ptr, mp_srcptr, mp_srcptr, mp_size_t, mp_limb_t)); +__GMP_DECLSPEC mp_limb_t mpn_addsub_nc _PROTO ((mp_ptr, mp_ptr, mp_srcptr, mp_srcptr, mp_size_t, mp_limb_t)); #define mpn_bdivmod __MPN(bdivmod) -mp_limb_t __GMP_DECLSPEC mpn_bdivmod _PROTO ((mp_ptr, mp_ptr, mp_size_t, mp_srcptr, mp_size_t, unsigned long int)); +__GMP_DECLSPEC mp_limb_t mpn_bdivmod _PROTO ((mp_ptr, mp_ptr, mp_size_t, mp_srcptr, mp_size_t, unsigned long int)); #define mpn_cmp __MPN(cmp) -int __GMP_DECLSPEC mpn_cmp _PROTO ((mp_srcptr, mp_srcptr, mp_size_t)) __GMP_ATTRIBUTE_PURE; +#if __GMP_INLINE_PROTOTYPES || __GMP_FORCE_mpn_cmp +__GMP_DECLSPEC int mpn_cmp _PROTO ((mp_srcptr, mp_srcptr, mp_size_t)) __GMP_ATTRIBUTE_PURE; +#endif #define mpn_divexact_by3(dst,src,size) \ mpn_divexact_by3c (dst, src, size, (mp_limb_t) 0) #define mpn_divexact_by3c __MPN(divexact_by3c) -mp_limb_t __GMP_DECLSPEC mpn_divexact_by3c _PROTO ((mp_ptr dst, mp_srcptr src, - mp_size_t size, mp_limb_t carry)); +__GMP_DECLSPEC mp_limb_t mpn_divexact_by3c _PROTO ((mp_ptr, mp_srcptr, mp_size_t, mp_limb_t)); #define mpn_divmod_1(qp,np,nsize,dlimb) \ mpn_divrem_1 (qp, (mp_size_t) 0, np, nsize, dlimb) #define mpn_divrem __MPN(divrem) -mp_limb_t __GMP_DECLSPEC mpn_divrem _PROTO((mp_ptr, mp_size_t, mp_ptr, mp_size_t, mp_srcptr, mp_size_t)); +__GMP_DECLSPEC mp_limb_t mpn_divrem _PROTO((mp_ptr, mp_size_t, mp_ptr, mp_size_t, mp_srcptr, mp_size_t)); #define mpn_divrem_1 __MPN(divrem_1) -mp_limb_t __GMP_DECLSPEC mpn_divrem_1 _PROTO ((mp_ptr, mp_size_t, mp_srcptr, mp_size_t, mp_limb_t)); +__GMP_DECLSPEC mp_limb_t mpn_divrem_1 _PROTO ((mp_ptr, mp_size_t, mp_srcptr, mp_size_t, mp_limb_t)); #define mpn_divrem_1c __MPN(divrem_1c) -mp_limb_t __GMP_DECLSPEC mpn_divrem_1c _PROTO ((mp_ptr, mp_size_t, mp_srcptr, mp_size_t, +__GMP_DECLSPEC mp_limb_t mpn_divrem_1c _PROTO ((mp_ptr, mp_size_t, mp_srcptr, mp_size_t, mp_limb_t, mp_limb_t)); #define mpn_divrem_2 __MPN(divrem_2) -mp_limb_t __GMP_DECLSPEC mpn_divrem_2 _PROTO ((mp_ptr, mp_size_t, mp_ptr, mp_size_t, mp_srcptr)); +__GMP_DECLSPEC mp_limb_t mpn_divrem_2 _PROTO ((mp_ptr, mp_size_t, mp_ptr, mp_size_t, mp_srcptr)); #define mpn_dump __MPN(dump) -void __GMP_DECLSPEC mpn_dump _PROTO ((mp_srcptr, mp_size_t)); +__GMP_DECLSPEC void mpn_dump _PROTO ((mp_srcptr, mp_size_t)); #define mpn_gcd __MPN(gcd) -mp_size_t __GMP_DECLSPEC mpn_gcd _PROTO ((mp_ptr, mp_ptr, mp_size_t, mp_ptr, mp_size_t)); +__GMP_DECLSPEC mp_size_t mpn_gcd _PROTO ((mp_ptr, mp_ptr, mp_size_t, mp_ptr, mp_size_t)); #define mpn_gcd_1 __MPN(gcd_1) -mp_limb_t __GMP_DECLSPEC mpn_gcd_1 _PROTO ((mp_srcptr, mp_size_t, mp_limb_t)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC mp_limb_t mpn_gcd_1 _PROTO ((mp_srcptr, mp_size_t, mp_limb_t)) __GMP_ATTRIBUTE_PURE; #define mpn_gcdext __MPN(gcdext) -mp_size_t __GMP_DECLSPEC mpn_gcdext _PROTO ((mp_ptr, mp_ptr, mp_size_t *, mp_ptr, mp_size_t, mp_ptr, mp_size_t)); +__GMP_DECLSPEC mp_size_t mpn_gcdext _PROTO ((mp_ptr, mp_ptr, mp_size_t *, mp_ptr, mp_size_t, mp_ptr, mp_size_t)); #define mpn_get_str __MPN(get_str) -size_t __GMP_DECLSPEC mpn_get_str _PROTO ((unsigned char *, int, mp_ptr, mp_size_t)); +__GMP_DECLSPEC size_t mpn_get_str _PROTO ((unsigned char *, int, mp_ptr, mp_size_t)); #define mpn_hamdist __MPN(hamdist) -unsigned long int mpn_hamdist _PROTO ((mp_srcptr, mp_srcptr, mp_size_t)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC unsigned long int mpn_hamdist _PROTO ((mp_srcptr, mp_srcptr, mp_size_t)) __GMP_ATTRIBUTE_PURE; #define mpn_lshift __MPN(lshift) -mp_limb_t __GMP_DECLSPEC mpn_lshift _PROTO ((mp_ptr, mp_srcptr, mp_size_t, unsigned int)); +__GMP_DECLSPEC mp_limb_t mpn_lshift _PROTO ((mp_ptr, mp_srcptr, mp_size_t, unsigned int)); #define mpn_mod_1 __MPN(mod_1) -mp_limb_t __GMP_DECLSPEC mpn_mod_1 _PROTO ((mp_srcptr, mp_size_t, mp_limb_t)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC mp_limb_t mpn_mod_1 _PROTO ((mp_srcptr, mp_size_t, mp_limb_t)) __GMP_ATTRIBUTE_PURE; #define mpn_mod_1c __MPN(mod_1c) -mp_limb_t __GMP_DECLSPEC mpn_mod_1c _PROTO ((mp_srcptr, mp_size_t, mp_limb_t, mp_limb_t)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC mp_limb_t mpn_mod_1c _PROTO ((mp_srcptr, mp_size_t, mp_limb_t, mp_limb_t)) __GMP_ATTRIBUTE_PURE; #define mpn_mul __MPN(mul) -mp_limb_t __GMP_DECLSPEC mpn_mul _PROTO ((mp_ptr, mp_srcptr, mp_size_t, mp_srcptr, mp_size_t)); +__GMP_DECLSPEC mp_limb_t mpn_mul _PROTO ((mp_ptr, mp_srcptr, mp_size_t, mp_srcptr, mp_size_t)); #define mpn_mul_1 __MPN(mul_1) -mp_limb_t __GMP_DECLSPEC mpn_mul_1 _PROTO ((mp_ptr, mp_srcptr, mp_size_t, mp_limb_t)); +__GMP_DECLSPEC mp_limb_t mpn_mul_1 _PROTO ((mp_ptr, mp_srcptr, mp_size_t, mp_limb_t)); #define mpn_mul_1c __MPN(mul_1c) -mp_limb_t __GMP_DECLSPEC mpn_mul_1c _PROTO ((mp_ptr, mp_srcptr, mp_size_t, mp_limb_t, mp_limb_t)); +__GMP_DECLSPEC mp_limb_t mpn_mul_1c _PROTO ((mp_ptr, mp_srcptr, mp_size_t, mp_limb_t, mp_limb_t)); #define mpn_mul_basecase __MPN(mul_basecase) -void __GMP_DECLSPEC mpn_mul_basecase _PROTO ((mp_ptr, mp_srcptr, mp_size_t, mp_srcptr, mp_size_t)); +__GMP_DECLSPEC void mpn_mul_basecase _PROTO ((mp_ptr, mp_srcptr, mp_size_t, mp_srcptr, mp_size_t)); #define mpn_mul_n __MPN(mul_n) -void __GMP_DECLSPEC mpn_mul_n _PROTO ((mp_ptr, mp_srcptr, mp_srcptr, mp_size_t)); +__GMP_DECLSPEC void mpn_mul_n _PROTO ((mp_ptr, mp_srcptr, mp_srcptr, mp_size_t)); #define mpn_perfect_square_p __MPN(perfect_square_p) -int __GMP_DECLSPEC mpn_perfect_square_p _PROTO ((mp_srcptr, mp_size_t)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC int mpn_perfect_square_p _PROTO ((mp_srcptr, mp_size_t)) __GMP_ATTRIBUTE_PURE; #define mpn_popcount __MPN(popcount) -unsigned long int __GMP_DECLSPEC mpn_popcount _PROTO ((mp_srcptr, mp_size_t)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC unsigned long int mpn_popcount _PROTO ((mp_srcptr, mp_size_t)) __GMP_ATTRIBUTE_PURE; /* undocumented, but retained here for upward compatibility */ #define mpn_preinv_mod_1 __MPN(preinv_mod_1) -mp_limb_t __GMP_DECLSPEC mpn_preinv_mod_1 _PROTO ((mp_srcptr, mp_size_t, mp_limb_t, mp_limb_t)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC mp_limb_t mpn_preinv_mod_1 _PROTO ((mp_srcptr, mp_size_t, mp_limb_t, mp_limb_t)) __GMP_ATTRIBUTE_PURE; #define mpn_random __MPN(random) -void __GMP_DECLSPEC mpn_random _PROTO ((mp_ptr, mp_size_t)); +__GMP_DECLSPEC void mpn_random _PROTO ((mp_ptr, mp_size_t)); #define mpn_random2 __MPN(random2) -void __GMP_DECLSPEC mpn_random2 _PROTO ((mp_ptr, mp_size_t)); +__GMP_DECLSPEC void mpn_random2 _PROTO ((mp_ptr, mp_size_t)); #define mpn_rshift __MPN(rshift) -mp_limb_t __GMP_DECLSPEC mpn_rshift _PROTO ((mp_ptr, mp_srcptr, mp_size_t, unsigned int)); +__GMP_DECLSPEC mp_limb_t mpn_rshift _PROTO ((mp_ptr, mp_srcptr, mp_size_t, unsigned int)); #define mpn_scan0 __MPN(scan0) -unsigned long int __GMP_DECLSPEC mpn_scan0 _PROTO ((mp_srcptr, unsigned long int)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC unsigned long int mpn_scan0 _PROTO ((mp_srcptr, unsigned long int)) __GMP_ATTRIBUTE_PURE; #define mpn_scan1 __MPN(scan1) -unsigned long int __GMP_DECLSPEC mpn_scan1 _PROTO ((mp_srcptr, unsigned long int)) __GMP_ATTRIBUTE_PURE; +__GMP_DECLSPEC unsigned long int mpn_scan1 _PROTO ((mp_srcptr, unsigned long int)) __GMP_ATTRIBUTE_PURE; #define mpn_set_str __MPN(set_str) -mp_size_t __GMP_DECLSPEC mpn_set_str _PROTO ((mp_ptr, __gmp_const unsigned char *, size_t, int)); +__GMP_DECLSPEC mp_size_t mpn_set_str _PROTO ((mp_ptr, __gmp_const unsigned char *, size_t, int)); #define mpn_sqr_n __MPN(sqr_n) -void __GMP_DECLSPEC mpn_sqr_n _PROTO ((mp_ptr, mp_srcptr, mp_size_t)); +__GMP_DECLSPEC void mpn_sqr_n _PROTO ((mp_ptr, mp_srcptr, mp_size_t)); #define mpn_sqr_basecase __MPN(sqr_basecase) -void __GMP_DECLSPEC mpn_sqr_basecase _PROTO ((mp_ptr, mp_srcptr, mp_size_t)); +__GMP_DECLSPEC void mpn_sqr_basecase _PROTO ((mp_ptr, mp_srcptr, mp_size_t)); #define mpn_sqrtrem __MPN(sqrtrem) -mp_size_t __GMP_DECLSPEC mpn_sqrtrem _PROTO ((mp_ptr, mp_ptr, mp_srcptr, mp_size_t)); +__GMP_DECLSPEC mp_size_t mpn_sqrtrem _PROTO ((mp_ptr, mp_ptr, mp_srcptr, mp_size_t)); #define mpn_sub __MPN(sub) -mp_limb_t __GMP_DECLSPEC mpn_sub _PROTO ((mp_ptr, mp_srcptr, mp_size_t, mp_srcptr,mp_size_t)); +#if __GMP_INLINE_PROTOTYPES || __GMP_FORCE_mpn_sub +__GMP_DECLSPEC mp_limb_t mpn_sub _PROTO ((mp_ptr, mp_srcptr, mp_size_t, mp_srcptr,mp_size_t)); +#endif #define mpn_sub_1 __MPN(sub_1) -mp_limb_t __GMP_DECLSPEC mpn_sub_1 _PROTO ((mp_ptr, mp_srcptr, mp_size_t, mp_limb_t)); +#if __GMP_INLINE_PROTOTYPES || __GMP_FORCE_mpn_sub_1 +__GMP_DECLSPEC mp_limb_t mpn_sub_1 _PROTO ((mp_ptr, mp_srcptr, mp_size_t, mp_limb_t)); +#endif #define mpn_sub_n __MPN(sub_n) -mp_limb_t __GMP_DECLSPEC mpn_sub_n _PROTO ((mp_ptr, mp_srcptr, mp_srcptr, mp_size_t)); +__GMP_DECLSPEC mp_limb_t mpn_sub_n _PROTO ((mp_ptr, mp_srcptr, mp_srcptr, mp_size_t)); #define mpn_sub_nc __MPN(sub_nc) -mp_limb_t __GMP_DECLSPEC mpn_sub_nc _PROTO ((mp_ptr, mp_srcptr, mp_srcptr, mp_size_t, mp_limb_t)); +__GMP_DECLSPEC mp_limb_t mpn_sub_nc _PROTO ((mp_ptr, mp_srcptr, mp_srcptr, mp_size_t, mp_limb_t)); #define mpn_submul_1 __MPN(submul_1) -mp_limb_t __GMP_DECLSPEC mpn_submul_1 _PROTO ((mp_ptr, mp_srcptr, mp_size_t, mp_limb_t)); +__GMP_DECLSPEC mp_limb_t mpn_submul_1 _PROTO ((mp_ptr, mp_srcptr, mp_size_t, mp_limb_t)); #define mpn_submul_1c __MPN(submul_1c) -mp_limb_t __GMP_DECLSPEC mpn_submul_1c _PROTO ((mp_ptr, mp_srcptr, mp_size_t, mp_limb_t, mp_limb_t)); +__GMP_DECLSPEC mp_limb_t mpn_submul_1c _PROTO ((mp_ptr, mp_srcptr, mp_size_t, mp_limb_t, mp_limb_t)); #define mpn_tdiv_qr __MPN(tdiv_qr) -void __GMP_DECLSPEC mpn_tdiv_qr _PROTO ((mp_ptr, mp_ptr, mp_size_t, mp_srcptr, mp_size_t, mp_srcptr, mp_size_t)); +__GMP_DECLSPEC void mpn_tdiv_qr _PROTO ((mp_ptr, mp_ptr, mp_size_t, mp_srcptr, mp_size_t, mp_srcptr, mp_size_t)); /**************** mpz inlines ****************/ @@ -1957,12 +1966,12 @@ #ifdef __cplusplus #include -std::ostream& __GMP_DECLSPEC operator<< (std::ostream &o, mpz_srcptr z); -std::ostream& __GMP_DECLSPEC operator<< (std::ostream &o, mpq_srcptr q); -std::ostream& __GMP_DECLSPEC operator<< (std::ostream &o, mpf_srcptr f); -std::istream& __GMP_DECLSPEC operator>> (std::istream &i, mpz_ptr z); -std::istream& __GMP_DECLSPEC operator>> (std::istream &i, mpq_ptr q); -std::istream& __GMP_DECLSPEC operator>> (std::istream &i, mpf_ptr f); +__GMP_DECLSPEC std::ostream& operator<< (std::ostream &, mpz_srcptr); +__GMP_DECLSPEC std::ostream& operator<< (std::ostream &, mpq_srcptr); +__GMP_DECLSPEC std::ostream& operator<< (std::ostream &, mpf_srcptr); +__GMP_DECLSPEC std::istream& operator>> (std::istream &, mpz_ptr); +__GMP_DECLSPEC std::istream& operator>> (std::istream &, mpq_ptr); +__GMP_DECLSPEC std::istream& operator>> (std::istream &, mpf_ptr); #endif @@ -1990,7 +1999,7 @@ #define mpz_mod_2exp mpz_fdiv_r_2exp #define gmp_errno __gmp_errno -extern int __GMP_DECLSPEC gmp_errno; +__GMP_DECLSPEC extern int gmp_errno; enum { @@ -2007,10 +2016,10 @@ /* Major version number is the value of __GNU_MP__ too, above and in mp.h. */ #define __GNU_MP_VERSION 4 #define __GNU_MP_VERSION_MINOR 0 -#define __GNU_MP_VERSION_PATCHLEVEL 0 +#define __GNU_MP_VERSION_PATCHLEVEL 1 #define gmp_version __gmp_version -extern __gmp_const char * __gmp_const __GMP_DECLSPEC gmp_version; +__GMP_DECLSPEC extern __gmp_const char * __gmp_const gmp_version; #define __GMP_H__ #endif /* __GMP_H__ */ diff -Naur gmp-4.0/gmp-impl.h gmp-4.0.1/gmp-impl.h --- gmp-4.0/gmp-impl.h Wed Nov 21 23:15:53 2001 +++ gmp-4.0.1/gmp-impl.h Fri Dec 7 00:33:21 2001 @@ -552,7 +552,7 @@ typedef __gmp_randstate_struct *gmp_randstate_ptr; #define _gmp_rand __gmp_rand -void __GMP_DECLSPEC _gmp_rand _PROTO ((mp_ptr, gmp_randstate_t, unsigned long int)); +__GMP_DECLSPEC void _gmp_rand _PROTO ((mp_ptr, gmp_randstate_t, unsigned long int)); /* __gmp_rands is the global state for the old-style random functions, and @@ -567,8 +567,8 @@ functions are recommended to applications which care about randomness, so the old functions aren't too important. */ -extern char __GMP_DECLSPEC __gmp_rands_initialized; -extern gmp_randstate_t __GMP_DECLSPEC __gmp_rands; +__GMP_DECLSPEC extern char __gmp_rands_initialized; +__GMP_DECLSPEC extern gmp_randstate_t __gmp_rands; #define RANDS \ ((__gmp_rands_initialized ? 0 \ @@ -1666,7 +1666,7 @@ Some bit twiddling could very likely give a 4-bit inverse to start too. */ #define modlimb_invert_table __gmp_modlimb_invert_table -extern const unsigned char __GMP_DECLSPEC modlimb_invert_table[128]; +__GMP_DECLSPEC extern const unsigned char modlimb_invert_table[128]; #if BITS_PER_MP_LIMB <= 8 #define modlimb_invert(inv,n) \ diff -Naur gmp-4.0/gmp.info gmp-4.0.1/gmp.info --- gmp-4.0/gmp.info Sat Dec 1 01:24:31 2001 +++ gmp-4.0.1/gmp.info Sun Jan 20 00:51:18 2002 @@ -8,147 +8,147 @@  Indirect: gmp.info-1: 214 -gmp.info-2: 48471 -gmp.info-3: 96245 -gmp.info-4: 133542 -gmp.info-5: 181219 -gmp.info-6: 230642 -gmp.info-7: 274354 -gmp.info-8: 313533 +gmp.info-2: 49191 +gmp.info-3: 96963 +gmp.info-4: 134260 +gmp.info-5: 181938 +gmp.info-6: 231747 +gmp.info-7: 275512 +gmp.info-8: 314909  Tag Table: (Indirect) Node: Top214 -Node: Copying2381 -Node: Introduction to GMP4237 -Node: Installing GMP6624 -Node: Build Options7315 -Node: ABI and ISA22195 -Node: Notes for Package Builds27405 -Node: Notes for Particular Systems29281 -Node: Known Build Problems34093 -Node: GMP Basics36878 -Node: Nomenclature and Types37795 -Node: Function Classes38836 -Node: Variable Conventions40274 -Node: Parameter Conventions41878 -Node: Memory Management43800 -Node: Reentrancy44923 -Node: Useful Macros and Constants46771 -Node: Compatibility with older versions47535 -Node: Efficiency48471 -Node: Debugging55623 -Node: Profiling59886 -Node: Autoconf61508 -Node: Reporting Bugs64153 -Node: Integer Functions66682 -Node: Initializing Integers67397 -Node: Assigning Integers71096 -Node: Simultaneous Integer Init & Assign73023 -Node: Converting Integers74639 -Node: Integer Arithmetic77022 -Node: Integer Division78516 -Node: Integer Exponentiation84355 -Node: Integer Roots85194 -Node: Number Theoretic Functions86649 -Node: Integer Comparisons92492 -Node: Integer Logic and Bit Fiddling93776 -Node: I/O of Integers96245 -Node: Integer Random Numbers98719 -Node: Miscellaneous Integer Functions101336 -Node: Rational Number Functions103010 -Node: Initializing Rationals104201 -Node: Rational Conversions106397 -Node: Rational Arithmetic107718 -Node: Comparing Rationals109037 -Node: Applying Integer Functions110391 -Node: I/O of Rationals111863 -Node: Floating-point Functions113716 -Node: Initializing Floats116158 -Node: Assigning Floats119836 -Node: Simultaneous Float Init & Assign122170 -Node: Converting Floats123689 -Node: Float Arithmetic126002 -Node: Float Comparison128022 -Node: I/O of Floats129357 -Node: Miscellaneous Float Functions131673 -Node: Low-level Functions133542 -Node: Random Number Functions151205 -Node: Random State Initialization152241 -Node: Random State Seeding154545 -Node: Formatted Output155889 -Node: Formatted Output Strings156128 -Node: Formatted Output Functions160358 -Node: C++ Formatted Output164339 -Node: Formatted Input166685 -Node: Formatted Input Strings166915 -Node: Formatted Input Functions171224 -Node: C++ Formatted Input173250 -Node: C++ Class Interface174536 -Node: C++ Interface General175557 -Node: C++ Interface Integers178060 -Node: C++ Interface Rationals181219 -Node: C++ Interface Floats184591 -Node: C++ Interface MPFR187761 -Node: C++ Interface Random Numbers188343 -Node: C++ Interface Limitations190358 -Node: BSD Compatible Functions193174 -Node: Custom Allocation197529 -Node: Language Bindings201298 -Node: Algorithms203959 -Node: Multiplication Algorithms204657 -Node: Basecase Multiplication205693 -Node: Karatsuba Multiplication207573 -Node: Toom-Cook 3-Way Multiplication211033 -Node: FFT Multiplication218788 -Node: Other Multiplication224117 -Node: Division Algorithms226205 -Node: Single Limb Division226542 -Node: Basecase Division229450 -Node: Divide and Conquer Division230642 -Node: Exact Division232852 -Node: Exact Remainder236024 -Node: Small Quotient Division238286 -Node: Greatest Common Divisor Algorithms239873 -Node: Binary GCD240136 -Node: Accelerated GCD241623 -Node: Extended GCD243409 -Node: Jacobi Symbol245012 -Node: Powering Algorithms245917 -Node: Normal Powering Algorithm246170 -Node: Modular Powering Algorithm246687 -Node: Root Extraction Algorithms247739 -Node: Square Root Algorithm248044 -Node: Nth Root Algorithm249011 -Node: Perfect Square Algorithm249785 -Node: Perfect Power Algorithm250781 -Node: Radix Conversion Algorithms251393 -Node: Binary to Radix251762 -Node: Radix to Binary252286 -Node: Other Algorithms252792 -Node: Factorial Algorithm253078 -Node: Binomial Coefficients Algorithm254420 -Node: Fibonacci Numbers Algorithm255745 -Node: Lucas Numbers Algorithm258218 -Node: Assembler Coding258897 -Node: Assembler Code Organisation259805 -Node: Assembler Basics260410 -Node: Assembler Carry Propagation261492 -Node: Assembler Cache Handling263317 -Node: Assembler Floating Point264828 -Node: Assembler SIMD Instructions265984 -Node: Assembler Software Pipelining266961 -Node: Assembler Loop Unrolling268220 -Node: Internals270598 -Node: Integer Internals271107 -Node: Rational Internals273123 -Node: Float Internals274354 -Node: Raw Output Internals281452 -Node: C++ Interface Internals282449 -Node: Contributors285762 -Node: References289392 -Node: GNU Free Documentation License293644 -Node: Concept Index313533 -Node: Function Index325351 +Node: Copying2389 +Node: Introduction to GMP4245 +Node: Installing GMP6749 +Node: Build Options7440 +Node: ABI and ISA22322 +Node: Notes for Package Builds27939 +Node: Notes for Particular Systems29815 +Node: Known Build Problems34627 +Node: GMP Basics37641 +Node: Nomenclature and Types38558 +Node: Function Classes39599 +Node: Variable Conventions41037 +Node: Parameter Conventions42641 +Node: Memory Management44563 +Node: Reentrancy45686 +Node: Useful Macros and Constants47489 +Node: Compatibility with older versions48255 +Node: Efficiency49191 +Node: Debugging56343 +Node: Profiling60608 +Node: Autoconf62230 +Node: Reporting Bugs64863 +Node: Integer Functions67392 +Node: Initializing Integers68107 +Node: Assigning Integers71806 +Node: Simultaneous Integer Init & Assign73741 +Node: Converting Integers75357 +Node: Integer Arithmetic77740 +Node: Integer Division79234 +Node: Integer Exponentiation85073 +Node: Integer Roots85912 +Node: Number Theoretic Functions87367 +Node: Integer Comparisons93210 +Node: Integer Logic and Bit Fiddling94494 +Node: I/O of Integers96963 +Node: Integer Random Numbers99437 +Node: Miscellaneous Integer Functions102054 +Node: Rational Number Functions103728 +Node: Initializing Rationals104919 +Node: Rational Conversions107115 +Node: Rational Arithmetic108436 +Node: Comparing Rationals109755 +Node: Applying Integer Functions111109 +Node: I/O of Rationals112581 +Node: Floating-point Functions114434 +Node: Initializing Floats116876 +Node: Assigning Floats120554 +Node: Simultaneous Float Init & Assign122888 +Node: Converting Floats124407 +Node: Float Arithmetic126720 +Node: Float Comparison128740 +Node: I/O of Floats130075 +Node: Miscellaneous Float Functions132391 +Node: Low-level Functions134260 +Node: Random Number Functions151923 +Node: Random State Initialization152959 +Node: Random State Seeding155263 +Node: Formatted Output156607 +Node: Formatted Output Strings156846 +Node: Formatted Output Functions161077 +Node: C++ Formatted Output165058 +Node: Formatted Input167404 +Node: Formatted Input Strings167634 +Node: Formatted Input Functions171943 +Node: C++ Formatted Input173969 +Node: C++ Class Interface175255 +Node: C++ Interface General176276 +Node: C++ Interface Integers178779 +Node: C++ Interface Rationals181938 +Node: C++ Interface Floats185310 +Node: C++ Interface MPFR188480 +Node: C++ Interface Random Numbers189062 +Node: C++ Interface Limitations191463 +Node: BSD Compatible Functions194279 +Node: Custom Allocation198634 +Node: Language Bindings202403 +Node: Algorithms205064 +Node: Multiplication Algorithms205762 +Node: Basecase Multiplication206798 +Node: Karatsuba Multiplication208678 +Node: Toom-Cook 3-Way Multiplication212138 +Node: FFT Multiplication219893 +Node: Other Multiplication225222 +Node: Division Algorithms227310 +Node: Single Limb Division227647 +Node: Basecase Division230555 +Node: Divide and Conquer Division231747 +Node: Exact Division233957 +Node: Exact Remainder237129 +Node: Small Quotient Division239391 +Node: Greatest Common Divisor Algorithms240978 +Node: Binary GCD241241 +Node: Accelerated GCD242728 +Node: Extended GCD244514 +Node: Jacobi Symbol246172 +Node: Powering Algorithms247077 +Node: Normal Powering Algorithm247330 +Node: Modular Powering Algorithm247847 +Node: Root Extraction Algorithms248899 +Node: Square Root Algorithm249204 +Node: Nth Root Algorithm250171 +Node: Perfect Square Algorithm250945 +Node: Perfect Power Algorithm251941 +Node: Radix Conversion Algorithms252553 +Node: Binary to Radix252922 +Node: Radix to Binary253446 +Node: Other Algorithms253952 +Node: Factorial Algorithm254238 +Node: Binomial Coefficients Algorithm255580 +Node: Fibonacci Numbers Algorithm256905 +Node: Lucas Numbers Algorithm259378 +Node: Assembler Coding260055 +Node: Assembler Code Organisation260963 +Node: Assembler Basics261568 +Node: Assembler Carry Propagation262650 +Node: Assembler Cache Handling264475 +Node: Assembler Floating Point265986 +Node: Assembler SIMD Instructions267142 +Node: Assembler Software Pipelining268119 +Node: Assembler Loop Unrolling269378 +Node: Internals271756 +Node: Integer Internals272265 +Node: Rational Internals274281 +Node: Float Internals275512 +Node: Raw Output Internals282610 +Node: C++ Interface Internals283794 +Node: Contributors287107 +Node: References290772 +Node: GNU Free Documentation License295020 +Node: Concept Index314909 +Node: Function Index326727  End Tag Table diff -Naur gmp-4.0/gmp.info-1 gmp-4.0.1/gmp.info-1 --- gmp-4.0/gmp.info-1 Sat Dec 1 01:24:31 2001 +++ gmp-4.0.1/gmp.info-1 Sun Jan 20 00:51:18 2002 @@ -12,10 +12,10 @@ ****** This manual describes how to install and use the GNU multiple -precision arithmetic library, version 4.0. +precision arithmetic library, version 4.0.1. - Copyright 1991, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 -Free Software Foundation, Inc. + Copyright 1991, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, +2001, 2002 Free Software Foundation, Inc. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version @@ -133,7 +133,7 @@ The latest version of the library is available at - `ftp://ftp.gnu.org/pub/gnu/gmp' + `ftp://ftp.gnu.org/gnu/gmp' Many sites around the world mirror `ftp.gnu.org', please use a mirror near you, see `http://www.gnu.org/order/ftp.html' for a full list. @@ -142,7 +142,9 @@ ====================== Everyone should read *Note GMP Basics::. If you need to install the -library yourself, you need to read *Note Installing GMP::, too. +library yourself, then read *Note Installing GMP::. If you have a +system with multiple ABIs, then read *Note ABI and ISA::, for the +compiler options that must be used on applications. The rest of the manual can be used for later reference, although it is probably a good idea to glance through it. @@ -211,7 +213,7 @@ directory. For example cd /my/build/dir - /my/sources/gmp-4.0/configure + /my/sources/gmp-4.0.1/configure Not all `make' programs have the necessary features (`VPATH') to support this. In particular, SunOS and Slowaris `make' have bugs @@ -538,15 +540,19 @@ By default GMP chooses the best ABI available for a given system, and this generally gives significantly greater speed. But an ABI can be chosen explicitly to make GMP compatible with other libraries, or -particular application requirements. In all cases it's vital that all -object code used in a given program is compiled for the same ABI. +particular application requirements. For example, + + ./configure ABI=32 + + In all cases it's vital that all object code used in a given program +is compiled for the same ABI. Usually a limb is implemented as a `long'. When a `long long' limb -is used in a particular ABI, this is encoded in a generated `gmp.h'. -This is convenient for applications, but it does mean that `gmp.h' will -vary, and can't be just copied around. `gmp.h' remains compiler -independent though, since all compilers for a particular ABI will be -expected to use the same limb type. +is used this is encoded in the generated `gmp.h'. This is convenient +for applications, but it does mean that `gmp.h' will vary, and can't be +just copied around. `gmp.h' remains compiler independent though, since +all compilers for a particular ABI will be expected to use the same +limb type. Currently no attempt is made to follow whatever conventions a system has for installing library or header files built for a particular ABI. @@ -582,7 +588,7 @@ for CPU `hppa2.0n' only 2.0n or 1.0 are allowed. -MIPS under IRIX 6 (`mips*-*-irix[6789]' +MIPS under IRIX 6 (`mips*-*-irix[6789]') IRIX 6 supports the n32 and 64 ABIs and always has a 64-bit MIPS 3 or better CPU. In both these ABIs GMP uses a 64-bit limb. A new enough `gcc' is required (2.95 for instance). @@ -639,12 +645,13 @@ cc -xarch=v9 `ABI=32' - On Solaris 2.6 and earlier only the plain V8 32-bit ABI can - be used, since the kernel doesn't save all registers. GMP - still uses as much of the V9 ISA as it can in these - circumstances. No special compiler options are required for - applications, though using something like the following - requesting V9 code within the V8 ABI is recommended. + On Solaris 2.6 and earlier, and on Solaris 2.7 with the + kernel in 32-bit mode, only the plain V8 32-bit ABI can be + used, since the kernel doesn't save all registers. GMP still + uses as much of the V9 ISA as it can in these circumstances. + No special compiler options are required for applications, + though using something like the following requesting V9 code + within the V8 ABI is recommended. gcc -mv8plus cc -xarch=v8plus @@ -655,6 +662,13 @@ options, they're called `arch' but they effectively control the ABI. + On Solaris 2.7 with the kernel in 32-bit-mode, a normal native + build will reject `ABI=64' because the resulting executables won't + run. `ABI=64' can still be built if desired by making it look + like a cross-compile, for example + + ./configure --build=none --host=sparcv9-sun-solaris2.7 ABI=64 +  File: gmp.info, Node: Notes for Package Builds, Next: Notes for Particular Systems, Prev: ABI and ISA, Up: Installing GMP @@ -852,11 +866,16 @@ Use the GNU assembler instead of the system assembler, since the latter has serious bugs. +Solaris 2.6 + The system `sed' prints an error "Output line too long" when + libtool builds `libgmp.la'. This doesn't seem cause any obvious + ill effects, but GNU `sed' is recommended, to avoid any doubt. + Sparc Solaris 2.7 with gcc 2.95.2 in ABI=32 A shared library build of GMP seems to fail in this combination, it builds but then fails the tests, apparently due to some - incorrect data relocations within `gmp_randinit'. The exact cause - is unknown, `--disable-shared' is recommended. + incorrect data relocations within `gmp_randinit_lc_2exp_size'. + The exact cause is unknown, `--disable-shared' is recommended. Windows DLL test programs When creating a DLL version of `libgmp', libtool creates wrapper @@ -1131,8 +1150,8 @@ * On SCO systems the default `' macros use per-file static variables and may not be reentrant, depending whether the compiler - optimizes away fetches from them. The GMP functions affected are - `mpz_set_str', `mpz_inp_str', `mpf_set_str' and `mpf_inp_str'. + optimizes away fetches from them. The GMP text-based input + functions are affected.  File: gmp.info, Node: Useful Macros and Constants, Next: Compatibility with older versions, Prev: Reentrancy, Up: GMP Basics @@ -1153,7 +1172,7 @@ - Global Constant: const char * const gmp_version The GMP version number, as a null-terminated string, in the form - "i.j" or "i.j.k". This release is "4.0". + "i.j" or "i.j.k". This release is "4.0.1".  File: gmp.info, Node: Compatibility with older versions, Next: Efficiency, Prev: Useful Macros and Constants, Up: GMP Basics diff -Naur gmp-4.0/gmp.info-2 gmp-4.0.1/gmp.info-2 --- gmp-4.0/gmp.info-2 Sat Dec 1 01:24:31 2001 +++ gmp-4.0.1/gmp.info-2 Sun Jan 20 00:51:18 2002 @@ -215,7 +215,7 @@ absolute path to the source directory. cd /my/build/dir - /my/source/dir/gmp-4.0/configure + /my/source/dir/gmp-4.0.1/configure This works via `VPATH', and might require GNU `make'. Alternately it might be possible to change the `.c.lo' rules appropriately. @@ -304,14 +304,14 @@ error if not found. For example, AC_CHECK_LIB(gmp, __gmpz_init, , [AC_MSG_ERROR( - [GNU MP not found, see http://www.swox.com/gmp])]) + [GNU MP not found, see http://swox.com/gmp])]) If functions added in some particular version of GMP are required, then one of those can be used when checking. For example `mpz_mul_si' was added in GMP 3.1, AC_CHECK_LIB(gmp, __gmpz_mul_si, , [AC_MSG_ERROR( - [GNU MP not found, or not 3.1 or up, see http://www.swox.com/gmp])]) + [GNU MP not found, or not 3.1 or up, see http://swox.com/gmp])]) An alternative would be to test the version number in `gmp.h' using say `AC_EGREP_CPP'. That would make it possible to test the exact @@ -348,7 +348,7 @@ AC_CHECK_LIB(mpfr, mpfr_add, , [AC_MSG_ERROR( [Need MPFR either from GNU MP 4 or separate MPFR package. - See http://www.mpfr.org or http://www.swox.com/gmp]) + See http://www.mpfr.org or http://swox.com/gmp])  File: gmp.info, Node: Reporting Bugs, Next: Integer Functions, Prev: GMP Basics, Up: Top @@ -573,8 +573,8 @@ after a minus sign or within or after "0x". We are considering changing the definition of this function, making it fail when there is any white-space in the input, since that makes a lot of - sense. Please tell us your opinion about this change. Do you - really want it to accept "3 14" as meaning 314 as it does now?] + sense. Send your opinion of this change to . Do + you really want it to accept "3 14" as meaning 314 as it does now?] - Function: void mpz_swap (mpz_t ROP1, mpz_t ROP2) Swap the values ROP1 and ROP2 efficiently. diff -Naur gmp-4.0/gmp.info-4 gmp-4.0.1/gmp.info-4 --- gmp-4.0/gmp.info-4 Sat Dec 1 01:24:31 2001 +++ gmp-4.0.1/gmp.info-4 Sun Jan 20 00:51:18 2002 @@ -540,7 +540,7 @@ mpf_t f; int n; - gmp_printf ("fixed point mpf %.*f with %d digits\n", n, f, n); + gmp_printf ("fixed point mpf %.*Ff with %d digits\n", n, f, n); All the standard C `printf' types behave the same as the C library `printf', and can be freely intermixed with the GMP extensions. In the diff -Naur gmp-4.0/gmp.info-5 gmp-4.0.1/gmp.info-5 --- gmp-4.0/gmp.info-5 Sat Dec 1 01:24:31 2001 +++ gmp-4.0.1/gmp.info-5 Sun Jan 20 00:51:18 2002 @@ -182,18 +182,26 @@ `gmp_randclass' to hold an algorithm selection and current state, as per `gmp_randstate_t'. - - Function: gmp_randclass::gmp_randclass (gmp_randalg_t ALG, ...) - Construct a `gmp_randclass' using the same parameters as - `gmp_randinit' (*note Random State Initialization::). - - Function: gmp_randclass::gmp_randclass (void (*RANDINIT) - (gmp_randstate_t, mpz_t, unsigned long, unsigned long), - mpz_class A, unsigned long C, unsigned long M2EXP) + (gmp_randstate_t, ...), ...) Construct a `gmp_randclass', using a call to the given RANDINIT - function. Currently `gmp_randinit_lc_2exp' is the only choice for - this, for example, + function (*note Random State Initialization::). The arguments + expected are the same as RANDINIT, but with `mpz_class' instead of + `mpz_t'. For example, + + gmp_randclass r1 (gmp_randinit_default); + gmp_randclass r2 (gmp_randinit_lc_2exp_size, 32); + gmp_randclass r3 (gmp_randinit_lc_2exp, a, c, m2exp); + + `gmp_randinit_lc_2exp_size' can fail if the size requested is too + big, the behaviour of `gmp_randclass::gmp_randclass' is undefined + in this case (perhaps this will change in the future). - gmp_randclass r (gmp_randinit_lc_2exp, a, c, m2exp); + - Function: gmp_randclass::gmp_randclass (gmp_randalg_t ALG, ...) + Construct a `gmp_randclass' using the same parameters as + `gmp_randinit' (*note Random State Initialization::). This + function is obsolete and the above RANDINIT style should be + preferred. - Function: void gmp_randclass::seed (unsigned long int S) - Function: void gmp_randclass::seed (mpz_class S) @@ -1111,7 +1119,7 @@ (see `invert_limb') and then multiply by the high limb (plus one bit) of the dividend to get a quotient q. With d normalized (high bit set), q is no more than 1 too small. Subtracting q*d from the dividend gives -a remainder, and reveals whether q or q+1 is correct. +a remainder, and reveals whether q or q-1 is correct. The result is a division done with two multiplications and four or five arithmetic operations. On CPUs with low latency multipliers this diff -Naur gmp-4.0/gmp.info-6 gmp-4.0.1/gmp.info-6 --- gmp-4.0/gmp.info-6 Sat Dec 1 01:24:31 2001 +++ gmp-4.0.1/gmp.info-6 Sun Jan 20 00:51:18 2002 @@ -288,7 +288,8 @@ The multipliers at each step are found using single limb calculations for sizes up to `GCDEXT_THRESHOLD', or double limb calculations above that. The single limb code is faster but doesn't -produce full-limb multipliers. +produce full-limb multipliers, hence not making full use of the +`mpn_addmul_1' calls. When a CPU has a data-dependent multiplier, meaning one which is faster on operands with fewer bits, the extra work in the double-limb @@ -655,7 +656,7 @@ saved. Trailing zero bits on n can be handled with a single square each. - L[2k] = = L[k]^2 - 2*(-1)^k + L[2k] = L[k]^2 - 2*(-1)^k And the lowest 1 bit can be handled with one multiply of a pair of Fibonacci numbers, similar to what `mpz_fib_ui' does. diff -Naur gmp-4.0/gmp.info-7 gmp-4.0.1/gmp.info-7 --- gmp-4.0/gmp.info-7 Sat Dec 1 01:24:31 2001 +++ gmp-4.0.1/gmp.info-7 Sun Jan 20 00:51:18 2002 @@ -177,9 +177,9 @@ +------+------------------------+ The size is 4 bytes written most significant byte first, being the -number of subsequent data bytes, or the negative of that when a -negative integer is represented. The data bytes are the absolute value -of the integer, written most significant byte first. +number of subsequent data bytes, or the twos complement negative of +that when a negative integer is represented. The data bytes are the +absolute value of the integer, written most significant byte first. The most significant data byte is always non-zero, so the output is the same on all systems, irrespective of limb size. @@ -190,6 +190,9 @@ The use of "big endian" for both the size and data fields is deliberate, it makes the data easy to read in a hex dump of a file. +Unfortunately it also means that the limb data must be reversed when +reading or writing, so neither a big endian nor little endian system +can just read and write `_mp_d'.  File: gmp.info, Node: C++ Interface Internals, Prev: Raw Output Internals, Up: Internals @@ -320,10 +323,11 @@ Joachim Hollman was involved in the design of the `mpf' interface, and in the `mpz' design revisions for version 2. - Bennet Yee contributed the functions `mpz_jacobi' and `mpz_legendre'. + Bennet Yee contributed the initial versions of `mpz_jacobi' and +`mpz_legendre'. Andreas Schwab contributed the files `mpn/m68k/lshift.S' and -`mpn/m68k/rshift.S'. +`mpn/m68k/rshift.S' (now in `.asm' form). The development of floating point functions of GNU MP 2, were supported in part by the ESPRIT-BRA (Basic Research Activities) 6846 @@ -364,11 +368,11 @@ Steve Root helped write the optimized alpha 21264 assembly code. - Gerardo Ballabio wrote the gmpxx.h C++ class interface and the C++ + Gerardo Ballabio wrote the `gmpxx.h' C++ class interface and the C++ istream input routines. - GNU MP 3.1 was finished and released by Torbjorn Granlund and Kevin -Ryde. Torbjorn's work was partially funded by the IDA Center for + GNU MP 4.0.1 was finished and released by Torbjorn Granlund and +Kevin Ryde. Torbjorn's work was partially funded by the IDA Center for Computing Sciences, USA. (This list is chronological, not ordered after significance. If you @@ -389,7 +393,7 @@ `http://www.math.u-bordeaux.fr/~cohen' * Donald E. Knuth, "The Art of Computer Programming", volume 2, - "Seminumerical Algorithms", 3rd edition, Addison-Wesley, 1988. + "Seminumerical Algorithms", 3rd edition, Addison-Wesley, 1998. `http://www-cs-faculty.stanford.edu/~knuth/taocp.html' * John D. Lipson, "Elements of Algebra and Algebraic Computing", The @@ -402,7 +406,7 @@ * Richard M. Stallman, "Using and Porting GCC", Free Software Foundation, 1999, available online `http://www.gnu.org/software/gcc/onlinedocs/', and in the GCC - package `ftp://ftp.gnu.org/pub/gnu/gcc/' + package `ftp://ftp.gnu.org/gnu/gcc/' Papers ====== diff -Naur gmp-4.0/gmp.texi gmp-4.0.1/gmp.texi --- gmp-4.0/gmp.texi Thu Nov 29 14:53:40 2001 +++ gmp-4.0.1/gmp.texi Sun Jan 20 00:36:06 2002 @@ -65,7 +65,7 @@ @c Ensure copyright stuff gets into info and html output. @end iftex -Copyright 1991, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 +Copyright 1991, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc. Permission is granted to copy, distribute and/or modify this document under @@ -460,7 +460,7 @@ The latest version of the library is available at @display -@uref{ftp://ftp.gnu.org/pub/gnu/gmp} +@uref{ftp://ftp.gnu.org/gnu/gmp} @end display Many sites around the world mirror @samp{ftp.gnu.org}, please use a mirror @@ -471,7 +471,9 @@ @cindex About this manual Everyone should read @ref{GMP Basics}. If you need to install the library -yourself, you need to read @ref{Installing GMP}, too. +yourself, then read @ref{Installing GMP}. If you have a system with multiple +ABIs, then read @ref{ABI and ISA}, for the compiler options that must be used +on applications. The rest of the manual can be used for later reference, although it is probably a good idea to glance through it. @@ -986,15 +988,20 @@ By default GMP chooses the best ABI available for a given system, and this generally gives significantly greater speed. But an ABI can be chosen explicitly to make GMP compatible with other libraries, or particular -application requirements. In all cases it's vital that all object code used -in a given program is compiled for the same ABI. +application requirements. For example, + +@example +./configure ABI=32 +@end example + +In all cases it's vital that all object code used in a given program is +compiled for the same ABI. Usually a limb is implemented as a @code{long}. When a @code{long long} limb -is used in a particular ABI, this is encoded in a generated @file{gmp.h}. -This is convenient for applications, but it does mean that @file{gmp.h} will -vary, and can't be just copied around. @file{gmp.h} remains compiler -independent though, since all compilers for a particular ABI will be expected -to use the same limb type. +is used this is encoded in the generated @file{gmp.h}. This is convenient for +applications, but it does mean that @file{gmp.h} will vary, and can't be just +copied around. @file{gmp.h} remains compiler independent though, since all +compilers for a particular ABI will be expected to use the same limb type. Currently no attempt is made to follow whatever conventions a system has for installing library or header files built for a particular ABI. This will @@ -1041,7 +1048,7 @@ @sp 1 @need 1000 -@item MIPS under IRIX 6 (@samp{mips*-*-irix[6789]} +@item MIPS under IRIX 6 (@samp{mips*-*-irix[6789]}) IRIX 6 supports the n32 and 64 ABIs and always has a 64-bit MIPS 3 or better CPU. In both these ABIs GMP uses a 64-bit limb. A new enough @command{gcc} @@ -1119,11 +1126,12 @@ @item @samp{ABI=32} -On Solaris 2.6 and earlier only the plain V8 32-bit ABI can be used, since the -kernel doesn't save all registers. GMP still uses as much of the V9 ISA as it -can in these circumstances. No special compiler options are required for -applications, though using something like the following requesting V9 code -within the V8 ABI is recommended. +On Solaris 2.6 and earlier, and on Solaris 2.7 with the kernel in 32-bit mode, +only the plain V8 32-bit ABI can be used, since the kernel doesn't save all +registers. GMP still uses as much of the V9 ISA as it can in these +circumstances. No special compiler options are required for applications, +though using something like the following requesting V9 code within the V8 ABI +is recommended. @example gcc -mv8plus @@ -1135,6 +1143,15 @@ Don't be confused by the names of these sparc @samp{-m} and @samp{-x} options, they're called @samp{arch} but they effectively control the ABI. + +On Solaris 2.7 with the kernel in 32-bit-mode, a normal native build will +reject @samp{ABI=64} because the resulting executables won't run. +@samp{ABI=64} can still be built if desired by making it look like a +cross-compile, for example + +@example +./configure --build=none --host=sparcv9-sun-solaris2.7 ABI=64 +@end example @end table @@ -1278,8 +1295,8 @@ both. @samp{pentium4} and an SSE2 capable assembler are important for best results -on Pentium 4. The specific code is for instance roughly a 2x to 3x speedup -over the generic @samp{i386} code. +on Pentium 4. The specific code is for instance roughly a 2@cross{} to +3@cross{} speedup over the generic @samp{i386} code. @item x86 MMX and SSE2 Code @@ -1362,12 +1379,18 @@ Use the GNU assembler instead of the system assembler, since the latter has serious bugs. +@item Solaris 2.6 + +The system @command{sed} prints an error ``Output line too long'' when libtool +builds @file{libgmp.la}. This doesn't seem cause any obvious ill effects, but +GNU @command{sed} is recommended, to avoid any doubt. + @item Sparc Solaris 2.7 with gcc 2.95.2 in ABI=32 A shared library build of GMP seems to fail in this combination, it builds but then fails the tests, apparently due to some incorrect data relocations within -@code{gmp_randinit}. The exact cause is unknown, @samp{--disable-shared} is -recommended. +@code{gmp_randinit_lc_2exp_size}. The exact cause is unknown, +@samp{--disable-shared} is recommended. @item Windows DLL test programs @@ -1679,8 +1702,7 @@ @item On SCO systems the default @code{} macros use per-file static variables and may not be reentrant, depending whether the compiler optimizes -away fetches from them. The GMP functions affected are @code{mpz_set_str}, -@code{mpz_inp_str}, @code{mpf_set_str} and @code{mpf_inp_str}. +away fetches from them. The GMP text-based input functions are affected. @end itemize @@ -2080,7 +2102,7 @@ @example AC_CHECK_LIB(gmp, __gmpz_init, , [AC_MSG_ERROR( -[GNU MP not found, see http://www.swox.com/gmp])]) +[GNU MP not found, see http://swox.com/gmp])]) @end example If functions added in some particular version of GMP are required, then one of @@ -2089,7 +2111,7 @@ @example AC_CHECK_LIB(gmp, __gmpz_mul_si, , [AC_MSG_ERROR( -[GNU MP not found, or not 3.1 or up, see http://www.swox.com/gmp])]) +[GNU MP not found, or not 3.1 or up, see http://swox.com/gmp])]) @end example An alternative would be to test the version number in @file{gmp.h} using say @@ -2132,7 +2154,7 @@ @example AC_CHECK_LIB(mpfr, mpfr_add, , [AC_MSG_ERROR( [Need MPFR either from GNU MP 4 or separate MPFR package. -See http://www.mpfr.org or http://www.swox.com/gmp]) +See http://www.mpfr.org or http://swox.com/gmp]) @end example @@ -2380,8 +2402,9 @@ white-space. It does ignore it between digits, but not after a minus sign or within or after ``0x''. We are considering changing the definition of this function, making it fail when there is any white-space in the input, since -that makes a lot of sense. Please tell us your opinion about this change. Do -you really want it to accept @nicode{"3 14"} as meaning 314 as it does now?] +that makes a lot of sense. Send your opinion of this change to +@email{bug-gmp@@gnu.org}. Do you really want it to accept @nicode{"3 14"} as +meaning 314 as it does now?] @end deftypefun @deftypefun void mpz_swap (mpz_t @var{rop1}, mpz_t @var{rop2}) @@ -4569,7 +4592,7 @@ mpf_t f; int n; -gmp_printf ("fixed point mpf %.*f with %d digits\n", n, f, n); +gmp_printf ("fixed point mpf %.*Ff with %d digits\n", n, f, n); @end example All the standard C @code{printf} types behave the same as the C library @@ -5448,19 +5471,27 @@ @code{gmp_randstate_t}. @end deftp -@deftypefun {} gmp_randclass::gmp_randclass (gmp_randalg_t @var{alg}, ...) -Construct a @code{gmp_randclass} using the same parameters as -@code{gmp_randinit} (@pxref{Random State Initialization}). -@end deftypefun - -@deftypefun {} gmp_randclass::gmp_randclass (void (*@var{randinit}) (gmp_randstate_t, mpz_t, unsigned long, unsigned long), mpz_class @var{a}, unsigned long @var{c}, unsigned long @var{M2EXP}) +@deftypefun {} gmp_randclass::gmp_randclass (void (*@var{randinit}) (gmp_randstate_t, ...), ...) Construct a @code{gmp_randclass}, using a call to the given @var{randinit} -function. Currently @code{gmp_randinit_lc_2exp} is the only choice for this, -for example, +function (@pxref{Random State Initialization}). The arguments expected are +the same as @var{randinit}, but with @code{mpz_class} instead of @code{mpz_t}. +For example, @example -gmp_randclass r (gmp_randinit_lc_2exp, a, c, m2exp); +gmp_randclass r1 (gmp_randinit_default); +gmp_randclass r2 (gmp_randinit_lc_2exp_size, 32); +gmp_randclass r3 (gmp_randinit_lc_2exp, a, c, m2exp); @end example + +@code{gmp_randinit_lc_2exp_size} can fail if the size requested is too big, +the behaviour of @code{gmp_randclass::gmp_randclass} is undefined in this case +(perhaps this will change in the future). +@end deftypefun + +@deftypefun {} gmp_randclass::gmp_randclass (gmp_randalg_t @var{alg}, ...) +Construct a @code{gmp_randclass} using the same parameters as +@code{gmp_randinit} (@pxref{Random State Initialization}). This function is +obsolete and the above @var{randinit} style should be preferred. @end deftypefun @deftypefun void gmp_randclass::seed (unsigned long int @var{s}) @@ -6739,7 +6770,7 @@ multiply by the high limb (plus one bit) of the dividend to get a quotient @ma{q}. With @ma{d} normalized (high bit set), @ma{q} is no more than 1 too small. Subtracting @m{qd,q*d} from the dividend gives a remainder, and -reveals whether @ma{q} or @ma{q+1} is correct. +reveals whether @ma{q} or @ma{q-1} is correct. The result is a division done with two multiplications and four or five arithmetic operations. On CPUs with low latency multipliers this can be much @@ -7024,8 +7055,8 @@ When the implied quotient is large, meaning @ma{b} is much smaller than @ma{a}, then a division is worthwhile. This is the basis for the initial @ma{a @bmod b} reductions in @code{mpn_gcd} and @code{mpn_gcd_1} (the latter -for both Nx1 and 1x1 cases). But after that initial reduction, big quotients -occur too rarely to make it worth checking for them. +for both N@cross{}1 and 1@cross{}1 cases). But after that initial reduction, +big quotients occur too rarely to make it worth checking for them. @node Accelerated GCD, Extended GCD, Binary GCD, Greatest Common Divisor Algorithms @@ -7072,7 +7103,8 @@ The multipliers at each step are found using single limb calculations for sizes up to @code{GCDEXT_THRESHOLD}, or double limb calculations above that. -The single limb code is faster but doesn't produce full-limb multipliers. +The single limb code is faster but doesn't produce full-limb multipliers, +hence not making full use of the @code{mpn_addmul_1} calls. When a CPU has a data-dependent multiplier, meaning one which is faster on operands with fewer bits, the extra work in the double-limb calculation might @@ -7304,8 +7336,8 @@ Arranging for multiplications to have operands the same (or nearly the same) size means the Karatsuba and higher multiplication algorithms can be used. -And even on sizes below the Karatsuba threshold an NxN multiply will give a -basecase multiply more to work on. +And even on sizes below the Karatsuba threshold an N@cross{}N multiply will +give a basecase multiply more to work on. An obvious improvement not currently implemented would be to strip factors of 2 from the products and apply them at the end with a bit shift. Another @@ -7453,7 +7485,7 @@ @ifnottex @example -L[2k] = = L[k]^2 - 2*(-1)^k +L[2k] = L[k]^2 - 2*(-1)^k @end example @end ifnottex @@ -8051,9 +8083,9 @@ @end ifnottex The size is 4 bytes written most significant byte first, being the number of -subsequent data bytes, or the negative of that when a negative integer is -represented. The data bytes are the absolute value of the integer, written -most significant byte first. +subsequent data bytes, or the twos complement negative of that when a negative +integer is represented. The data bytes are the absolute value of the integer, +written most significant byte first. The most significant data byte is always non-zero, so the output is the same on all systems, irrespective of limb size. @@ -8063,7 +8095,9 @@ compatibility. The use of ``big endian'' for both the size and data fields is deliberate, it -makes the data easy to read in a hex dump of a file. +makes the data easy to read in a hex dump of a file. Unfortunately it also +means that the limb data must be reversed when reading or writing, so neither +a big endian nor little endian system can just read and write @code{_mp_d}. @node C++ Interface Internals, , Raw Output Internals, Internals @@ -8202,10 +8236,11 @@ Joachim Hollman was involved in the design of the @code{mpf} interface, and in the @code{mpz} design revisions for version 2. -Bennet Yee contributed the functions @code{mpz_jacobi} and @code{mpz_legendre}. +Bennet Yee contributed the initial versions of @code{mpz_jacobi} and +@code{mpz_legendre}. Andreas Schwab contributed the files @file{mpn/m68k/lshift.S} and -@file{mpn/m68k/rshift.S}. +@file{mpn/m68k/rshift.S} (now in @file{.asm} form). The development of floating point functions of GNU MP 2, were supported in part by the ESPRIT-BRA (Basic Research Activities) 6846 project POSSO (POlynomial @@ -8244,10 +8279,10 @@ Steve Root helped write the optimized alpha 21264 assembly code. -Gerardo Ballabio wrote the gmpxx.h C++ class interface and the C++ istream -input routines. +Gerardo Ballabio wrote the @file{gmpxx.h} C++ class interface and the C++ +istream input routines. -GNU MP 3.1 was finished and released by Torbjorn Granlund and Kevin Ryde. +GNU MP 4.0.1 was finished and released by Torbjorn Granlund and Kevin Ryde. Torbjorn's work was partially funded by the IDA Center for Computing Sciences, USA. @@ -8278,7 +8313,7 @@ @item Donald E. Knuth, ``The Art of Computer Programming'', volume 2, -``Seminumerical Algorithms'', 3rd edition, Addison-Wesley, 1988. +``Seminumerical Algorithms'', 3rd edition, Addison-Wesley, 1998. @texlinebreak{} @uref{http://www-cs-faculty.stanford.edu/~knuth/taocp.html} @item @@ -8292,7 +8327,7 @@ @item Richard M. Stallman, ``Using and Porting GCC'', Free Software Foundation, 1999, available online @uref{http://www.gnu.org/software/gcc/onlinedocs/}, and in -the GCC package @uref{ftp://ftp.gnu.org/pub/gnu/gcc/} +the GCC package @uref{ftp://ftp.gnu.org/gnu/gcc/} @end itemize @section Papers diff -Naur gmp-4.0/gmpxx.h gmp-4.0.1/gmpxx.h --- gmp-4.0/gmpxx.h Tue Nov 27 00:07:39 2001 +++ gmp-4.0.1/gmpxx.h Fri Dec 7 00:20:22 2001 @@ -36,7 +36,7 @@ #include #include -// #include +#include // for mpf_class::get_str2 #include @@ -5030,10 +5030,21 @@ break; } } + + // gmp_randinit_default + gmp_randclass(void (*f)(gmp_randstate_t)) + { f(state); } + + // gmp_randinit_lc_2exp gmp_randclass(void (*f)(gmp_randstate_t, mpz_srcptr, unsigned long int, unsigned long int), mpz_class z, unsigned long int l1, unsigned long int l2) { f(state, z.get_mpz_t(), l1, l2); } + + // gmp_randinit_lc_2exp_size + gmp_randclass(int (*f)(gmp_randstate_t, unsigned long int), + unsigned long int size) + { f(state, size); } ~gmp_randclass() { gmp_randclear(state); } diff -Naur gmp-4.0/mp-h.in gmp-4.0.1/mp-h.in --- gmp-4.0/mp-h.in Mon Oct 1 02:46:28 2001 +++ gmp-4.0.1/mp-h.in Fri Dec 7 00:34:01 2001 @@ -148,26 +148,26 @@ #endif #define mp_set_memory_functions __gmp_set_memory_functions -void __GMP_DECLSPEC mp_set_memory_functions _PROTO ((void *(*) (size_t), +__GMP_DECLSPEC void mp_set_memory_functions _PROTO ((void *(*) (size_t), void *(*) (void *, size_t, size_t), void (*) (void *, size_t))); -MINT __GMP_DECLSPEC *itom _PROTO ((signed short int)); -MINT __GMP_DECLSPEC *xtom _PROTO ((const char *)); -void __GMP_DECLSPEC move _PROTO ((const MINT *, MINT *)); -void __GMP_DECLSPEC madd _PROTO ((const MINT *, const MINT *, MINT *)); -void __GMP_DECLSPEC msub _PROTO ((const MINT *, const MINT *, MINT *)); -void __GMP_DECLSPEC mult _PROTO ((const MINT *, const MINT *, MINT *)); -void __GMP_DECLSPEC mdiv _PROTO ((const MINT *, const MINT *, MINT *, MINT *)); -void __GMP_DECLSPEC sdiv _PROTO ((const MINT *, signed short int, MINT *, signed short int *)); -void __GMP_DECLSPEC msqrt _PROTO ((const MINT *, MINT *, MINT *)); -void __GMP_DECLSPEC pow _PROTO ((const MINT *, const MINT *, const MINT *, MINT *)); -void __GMP_DECLSPEC rpow _PROTO ((const MINT *, signed short int, MINT *)); -void __GMP_DECLSPEC gcd _PROTO ((const MINT *, const MINT *, MINT *)); -int __GMP_DECLSPEC mcmp _PROTO ((const MINT *, const MINT *)); -void __GMP_DECLSPEC min _PROTO ((MINT *)); -void __GMP_DECLSPEC mout _PROTO ((const MINT *)); -char __GMP_DECLSPEC *mtox _PROTO ((const MINT *)); -void __GMP_DECLSPEC mfree _PROTO ((MINT *)); +__GMP_DECLSPEC MINT *itom _PROTO ((signed short int)); +__GMP_DECLSPEC MINT *xtom _PROTO ((const char *)); +__GMP_DECLSPEC void move _PROTO ((const MINT *, MINT *)); +__GMP_DECLSPEC void madd _PROTO ((const MINT *, const MINT *, MINT *)); +__GMP_DECLSPEC void msub _PROTO ((const MINT *, const MINT *, MINT *)); +__GMP_DECLSPEC void mult _PROTO ((const MINT *, const MINT *, MINT *)); +__GMP_DECLSPEC void mdiv _PROTO ((const MINT *, const MINT *, MINT *, MINT *)); +__GMP_DECLSPEC void sdiv _PROTO ((const MINT *, signed short int, MINT *, signed short int *)); +__GMP_DECLSPEC void msqrt _PROTO ((const MINT *, MINT *, MINT *)); +__GMP_DECLSPEC void pow _PROTO ((const MINT *, const MINT *, const MINT *, MINT *)); +__GMP_DECLSPEC void rpow _PROTO ((const MINT *, signed short int, MINT *)); +__GMP_DECLSPEC void gcd _PROTO ((const MINT *, const MINT *, MINT *)); +__GMP_DECLSPEC int mcmp _PROTO ((const MINT *, const MINT *)); +__GMP_DECLSPEC void min _PROTO ((MINT *)); +__GMP_DECLSPEC void mout _PROTO ((const MINT *)); +__GMP_DECLSPEC char *mtox _PROTO ((const MINT *)); +__GMP_DECLSPEC void mfree _PROTO ((MINT *)); #if defined (__cplusplus) } diff -Naur gmp-4.0/mpbsd/mtox.c gmp-4.0.1/mpbsd/mtox.c --- gmp-4.0/mpbsd/mtox.c Wed Feb 28 21:55:19 2001 +++ gmp-4.0.1/mpbsd/mtox.c Wed Jan 16 23:33:25 2002 @@ -1,7 +1,7 @@ /* mtox -- Convert OPERAND to hexadecimal and return a malloc'ed string with the result of the conversion. -Copyright 1991, 1994, 2000, 2001 Free Software Foundation, Inc. +Copyright 1991, 1994, 2000, 2001, 2002 Free Software Foundation, Inc. This file is part of the GNU MP Library. @@ -71,5 +71,6 @@ s[i] = "0123456789abcdef"[s[zeros + i]]; s[str_size] = 0; + TMP_FREE (marker); return (char *) str; } diff -Naur gmp-4.0/mpf/out_str.c gmp-4.0.1/mpf/out_str.c --- gmp-4.0/mpf/out_str.c Thu Nov 15 21:51:51 2001 +++ gmp-4.0.1/mpf/out_str.c Wed Jan 16 23:33:26 2002 @@ -2,7 +2,7 @@ the float OP to STREAM in base BASE. Return the number of characters written, or 0 if an error occurred. -Copyright 1996, 1997, 2001 Free Software Foundation, Inc. +Copyright 1996, 1997, 2001, 2002 Free Software Foundation, Inc. This file is part of the GNU MP Library. @@ -46,8 +46,7 @@ if (base == 0) base = 10; if (n_digits == 0) - n_digits = (((op->_mp_prec - 1) * BITS_PER_MP_LIMB) - * __mp_bases[base].chars_per_bit_exactly); + MPF_SIGNIFICANT_DIGITS (n_digits, base, op->_mp_prec); if (stream == 0) stream = stdout; diff -Naur gmp-4.0/printf/Makefile.am gmp-4.0.1/printf/Makefile.am --- gmp-4.0/printf/Makefile.am Fri Oct 26 01:39:41 2001 +++ gmp-4.0.1/printf/Makefile.am Wed Jan 16 23:33:37 2002 @@ -1,6 +1,6 @@ ## Process this file with automake to generate Makefile.in -# Copyright 2001 Free Software Foundation, Inc. +# Copyright 2001, 2002 Free Software Foundation, Inc. # # This file is part of the GNU MP Library. # @@ -24,7 +24,8 @@ INCLUDES = -D__GMP_WITHIN_GMP -I$(top_srcdir) -noinst_LTLIBRARIES = libdummy.la libprintf.la +noinst_LTLIBRARIES = libprintf.la +EXTRA_LTLIBRARIES = libdummy.la libprintf_la_SOURCES = \ asprintf.c asprntffuns.c doprnt.c doprntf.c doprnti.c \ diff -Naur gmp-4.0/printf/Makefile.in gmp-4.0.1/printf/Makefile.in --- gmp-4.0/printf/Makefile.in Sat Dec 1 01:24:25 2001 +++ gmp-4.0.1/printf/Makefile.in Sat Jan 19 23:32:49 2002 @@ -13,7 +13,7 @@ @SET_MAKE@ -# Copyright 2001 Free Software Foundation, Inc. +# Copyright 2001, 2002 Free Software Foundation, Inc. # # This file is part of the GNU MP Library. # @@ -131,7 +131,8 @@ INCLUDES = -D__GMP_WITHIN_GMP -I$(top_srcdir) -noinst_LTLIBRARIES = libdummy.la libprintf.la +noinst_LTLIBRARIES = libprintf.la +EXTRA_LTLIBRARIES = libdummy.la libprintf_la_SOURCES = \ asprintf.c asprntffuns.c doprnt.c doprntf.c doprnti.c \ diff -Naur gmp-4.0/printf/doprnti.c gmp-4.0.1/printf/doprnti.c --- gmp-4.0/printf/doprnti.c Wed Oct 24 02:23:52 2001 +++ gmp-4.0.1/printf/doprnti.c Fri Dec 7 00:26:11 2001 @@ -47,9 +47,9 @@ { int retval = 0; int slen, justlen, showbaselen, sign, signlen, slashlen, zeros; - int justify; + int justify, den_showbaselen; const char *slash, *showbase; - + /* '+' or ' ' if wanted, and don't already have '-' */ sign = p->sign; if (s[0] == '-') @@ -59,40 +59,39 @@ } signlen = (sign != '\0'); - showbase = NULL; - showbaselen = 0; - switch (p->showbase) { - default: - ASSERT (0); - /*FALLTHRU*/ - case DOPRNT_SHOWBASE_NO: - break; - case DOPRNT_SHOWBASE_NONZERO: - if (s[0] == '0') - break; - /*FALLTHRU*/ - case DOPRNT_SHOWBASE_YES: - switch (p->base) { - case 16: showbase = "0x"; showbaselen = 2; break; - case -16: showbase = "0X"; showbaselen = 2; break; - case 8: showbase = "0"; showbaselen = 1; break; - } - break; - } - /* if the precision was explicitly 0, print nothing for a 0 value */ if (*s == '0' && p->prec == 0) s++; - + slen = strlen (s); slash = strchr (s, '/'); + showbase = NULL; + showbaselen = 0; + + if (p->showbase != DOPRNT_SHOWBASE_NO) + { + switch (p->base) { + case 16: showbase = "0x"; showbaselen = 2; break; + case -16: showbase = "0X"; showbaselen = 2; break; + case 8: showbase = "0"; showbaselen = 1; break; + } + } + + den_showbaselen = showbaselen; + if (slash == NULL + || (p->showbase == DOPRNT_SHOWBASE_NONZERO && slash[1] == '0')) + den_showbaselen = 0; + + if (p->showbase == DOPRNT_SHOWBASE_NONZERO && s[0] == '0') + showbaselen = 0; + + /* the influence of p->prec on mpq is currently undefined */ zeros = MAX (0, p->prec - slen); /* space left over after actual output length */ - justlen = p->width - (strlen(s) + signlen + showbaselen + zeros); - if (slash != NULL) - justlen -= showbaselen; + justlen = p->width + - (strlen(s) + signlen + showbaselen + den_showbaselen + zeros); justify = p->justify; if (justlen <= 0) /* no justifying if exceed width */ @@ -110,16 +109,19 @@ if (justify == DOPRNT_JUSTIFY_INTERNAL) /* pad internal */ DOPRNT_REPS (p->fill, justlen); - if (slash != NULL && showbaselen != 0) + /* if there's a showbase on the denominator, then print the numerator + separately so it can be inserted */ + if (den_showbaselen != 0) { + ASSERT (slash != NULL); slashlen = slash+1 - s; - DOPRNT_MEMORY (s, slashlen); /* possible numerator */ + DOPRNT_MEMORY (s, slashlen); /* numerator and slash */ slen -= slashlen; s += slashlen; - DOPRNT_MEMORY_MAYBE (showbase, showbaselen); /* possible extra base */ + DOPRNT_MEMORY (showbase, den_showbaselen); } - DOPRNT_MEMORY (s, slen); /* number or denominator */ + DOPRNT_MEMORY (s, slen); /* number, or denominator */ if (justify == DOPRNT_JUSTIFY_LEFT) /* pad left */ DOPRNT_REPS (p->fill, justlen); diff -Naur gmp-4.0/stamp-h1.in gmp-4.0.1/stamp-h1.in --- gmp-4.0/stamp-h1.in Sat Dec 1 01:23:54 2001 +++ gmp-4.0.1/stamp-h1.in Tue Jan 22 01:19:25 2002 @@ -0,0 +1 @@ +timestamp diff -Naur gmp-4.0/stamp-vti gmp-4.0.1/stamp-vti --- gmp-4.0/stamp-vti Sat Dec 1 01:24:08 2001 +++ gmp-4.0.1/stamp-vti Sun Jan 20 00:51:09 2002 @@ -1,4 +1,4 @@ -@set UPDATED 29 November 2001 -@set UPDATED-MONTH November 2001 -@set EDITION 4.0 -@set VERSION 4.0 +@set UPDATED 20 January 2002 +@set UPDATED-MONTH January 2002 +@set EDITION 4.0.1 +@set VERSION 4.0.1 diff -Naur gmp-4.0/tests/cxx/Makefile.am gmp-4.0.1/tests/cxx/Makefile.am --- gmp-4.0/tests/cxx/Makefile.am Fri Nov 30 00:21:59 2001 +++ gmp-4.0.1/tests/cxx/Makefile.am Mon Dec 3 23:35:26 2001 @@ -27,14 +27,15 @@ $(top_builddir)/libgmpxx.la $(top_builddir)/libgmp.la if WANT_CXX -check_PROGRAMS = t-ostream t-locale t-constr t-expr +check_PROGRAMS = t-headers t-ostream t-locale t-constr t-expr TESTS = $(check_PROGRAMS) endif +t_headers_SOURCES = t-headers.cc +t_constr_SOURCES = t-constr.cc +t_expr_SOURCES = t-expr.cc +t_locale_SOURCES = t-locale.cc t_ostream_SOURCES = t-ostream.cc -t_locale_SOURCES = t-locale.cc -t_constr_SOURCES = t-constr.cc -t_expr_SOURCES = t-expr.cc $(top_builddir)/tests/libtests.la: cd $(top_builddir)/tests; $(MAKE) $(AM_MAKEFLAGS) libtests.la diff -Naur gmp-4.0/tests/cxx/Makefile.in gmp-4.0.1/tests/cxx/Makefile.in --- gmp-4.0/tests/cxx/Makefile.in Sat Dec 1 01:24:17 2001 +++ gmp-4.0.1/tests/cxx/Makefile.in Mon Dec 3 23:35:55 2001 @@ -134,19 +134,21 @@ $(top_builddir)/libgmpxx.la $(top_builddir)/libgmp.la -@WANT_CXX_TRUE@check_PROGRAMS = t-ostream t-locale t-constr t-expr +@WANT_CXX_TRUE@check_PROGRAMS = t-headers t-ostream t-locale t-constr t-expr @WANT_CXX_TRUE@TESTS = $(check_PROGRAMS) -t_ostream_SOURCES = t-ostream.cc -t_locale_SOURCES = t-locale.cc +t_headers_SOURCES = t-headers.cc t_constr_SOURCES = t-constr.cc t_expr_SOURCES = t-expr.cc +t_locale_SOURCES = t-locale.cc +t_ostream_SOURCES = t-ostream.cc subdir = tests/cxx mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = -@WANT_CXX_TRUE@check_PROGRAMS = t-ostream$(EXEEXT) t-locale$(EXEEXT) \ -@WANT_CXX_TRUE@ t-constr$(EXEEXT) t-expr$(EXEEXT) +@WANT_CXX_TRUE@check_PROGRAMS = t-headers$(EXEEXT) t-ostream$(EXEEXT) \ +@WANT_CXX_TRUE@ t-locale$(EXEEXT) t-constr$(EXEEXT) \ +@WANT_CXX_TRUE@ t-expr$(EXEEXT) @WANT_CXX_FALSE@check_PROGRAMS = am_t_constr_OBJECTS = t-constr.$(OBJEXT) t_constr_OBJECTS = $(am_t_constr_OBJECTS) @@ -160,6 +162,12 @@ t_expr_DEPENDENCIES = $(top_builddir)/tests/libtests.la \ $(top_builddir)/libgmpxx.la $(top_builddir)/libgmp.la t_expr_LDFLAGS = +am_t_headers_OBJECTS = t-headers.$(OBJEXT) +t_headers_OBJECTS = $(am_t_headers_OBJECTS) +t_headers_LDADD = $(LDADD) +t_headers_DEPENDENCIES = $(top_builddir)/tests/libtests.la \ + $(top_builddir)/libgmpxx.la $(top_builddir)/libgmp.la +t_headers_LDFLAGS = am_t_locale_OBJECTS = t-locale.$(OBJEXT) t_locale_OBJECTS = $(am_t_locale_OBJECTS) t_locale_LDADD = $(LDADD) @@ -188,10 +196,10 @@ CXXLINK = $(LIBTOOL) --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ CXXFLAGS = @CXXFLAGS@ -DIST_SOURCES = $(t_constr_SOURCES) $(t_expr_SOURCES) $(t_locale_SOURCES) \ - $(t_ostream_SOURCES) +DIST_SOURCES = $(t_constr_SOURCES) $(t_expr_SOURCES) \ + $(t_headers_SOURCES) $(t_locale_SOURCES) $(t_ostream_SOURCES) DIST_COMMON = Makefile.am Makefile.in -SOURCES = $(t_constr_SOURCES) $(t_expr_SOURCES) $(t_locale_SOURCES) $(t_ostream_SOURCES) +SOURCES = $(t_constr_SOURCES) $(t_expr_SOURCES) $(t_headers_SOURCES) $(t_locale_SOURCES) $(t_ostream_SOURCES) all: all-am @@ -222,6 +230,9 @@ t-expr$(EXEEXT): $(t_expr_OBJECTS) $(t_expr_DEPENDENCIES) @rm -f t-expr$(EXEEXT) $(CXXLINK) $(t_expr_LDFLAGS) $(t_expr_OBJECTS) $(t_expr_LDADD) $(LIBS) +t-headers$(EXEEXT): $(t_headers_OBJECTS) $(t_headers_DEPENDENCIES) + @rm -f t-headers$(EXEEXT) + $(CXXLINK) $(t_headers_LDFLAGS) $(t_headers_OBJECTS) $(t_headers_LDADD) $(LIBS) t-locale$(EXEEXT): $(t_locale_OBJECTS) $(t_locale_DEPENDENCIES) @rm -f t-locale$(EXEEXT) $(CXXLINK) $(t_locale_LDFLAGS) $(t_locale_OBJECTS) $(t_locale_LDADD) $(LIBS) diff -Naur gmp-4.0/tests/cxx/t-headers.cc gmp-4.0.1/tests/cxx/t-headers.cc --- gmp-4.0/tests/cxx/t-headers.cc Thu Jan 1 01:00:00 1970 +++ gmp-4.0.1/tests/cxx/t-headers.cc Thu Dec 6 22:06:40 2001 @@ -0,0 +1,28 @@ +/* Test gmpxx.h doesn't depend on any other headers. + +Copyright 2001 Free Software Foundation, Inc. + +This file is part of the GNU MP Library. + +The GNU MP Library is free software; you can redistribute it and/or modify +it under the terms of the GNU Lesser General Public License as published by +the Free Software Foundation; either version 2.1 of the License, or (at your +option) any later version. + +The GNU MP Library is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public +License for more details. + +You should have received a copy of the GNU Lesser General Public License +along with the GNU MP Library; see the file COPYING.LIB. If not, write to +the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, +MA 02111-1307, USA. */ + +#include "gmpxx.h" + +int +main (void) +{ + return 0; +} diff -Naur gmp-4.0/tests/cxx/t-locale.cc gmp-4.0.1/tests/cxx/t-locale.cc --- gmp-4.0/tests/cxx/t-locale.cc Sat Nov 17 22:11:53 2001 +++ gmp-4.0.1/tests/cxx/t-locale.cc Thu Dec 6 22:02:59 2001 @@ -130,12 +130,12 @@ mpf_set_d (f, 1.5); ostrstream got; got << f << '\0'; + mpf_clear (f); if (strcmp (got.str(), "1,5") != 0) { printf ("Test skipped, replacing localeconv doesn't work\n"); goto done; } - mpf_clear (f); } check_input (); diff -Naur gmp-4.0/tests/cxx/t-ostream.cc gmp-4.0.1/tests/cxx/t-ostream.cc --- gmp-4.0/tests/cxx/t-ostream.cc Tue Oct 16 02:44:20 2001 +++ gmp-4.0.1/tests/cxx/t-ostream.cc Fri Dec 7 00:27:04 2001 @@ -195,6 +195,19 @@ { "5/8", "5/8", ios::dec }, { "5/8", "0X5/0X8", ios::hex | ios::showbase | ios::uppercase }, + + /* zero denominator with showbase */ + { "0/0", " 0/0", ios::oct | ios::showbase, 10 }, + { "0/0", " 0/0", ios::dec | ios::showbase, 10 }, + { "0/0", " 0x0/0x0", ios::hex | ios::showbase, 10 }, + { "123/0", " 0173/0", ios::oct | ios::showbase, 10 }, + { "123/0", " 123/0", ios::dec | ios::showbase, 10 }, + { "123/0", " 0x7b/0x0", ios::hex | ios::showbase, 10 }, + { "123/0", " 0X7B/0X0", ios::hex | ios::showbase | ios::uppercase, 10 }, + { "0/123", " 0/0173", ios::oct | ios::showbase, 10 }, + { "0/123", " 0/123", ios::dec | ios::showbase, 10 }, + { "0/123", " 0x0/0x7b", ios::hex | ios::showbase, 10 }, + { "0/123", " 0X0/0X7B", ios::hex | ios::showbase | ios::uppercase, 10 }, }; size_t i; @@ -207,6 +220,8 @@ for (i = 0; i < numberof (data); i++) { mpq_set_str_or_abort (q, data[i].q, 0); + MPZ_CHECK_FORMAT (mpq_numref (q)); + MPZ_CHECK_FORMAT (mpq_denref (q)); if (option_check_standard && mpz_fits_slong_p (mpq_numref(q)) @@ -226,7 +241,6 @@ { ostrstream got; - MPQ_CHECK_FORMAT (q); CALL (operator<< (got, q) << '\0'); if (strcmp (got.str(), data[i].want) != 0) { diff -Naur gmp-4.0/tests/misc/t-locale.c gmp-4.0.1/tests/misc/t-locale.c --- gmp-4.0/tests/misc/t-locale.c Sat Nov 24 23:41:25 2001 +++ gmp-4.0.1/tests/misc/t-locale.c Thu Dec 6 22:02:45 2001 @@ -151,12 +151,12 @@ decimal_point = ","; mpf_set_d (f, 1.5); gmp_snprintf (buf, sizeof(buf), "%.1Ff", f); + mpf_clear (f); if (strcmp (buf, "1,5") != 0) { printf ("Test skipped, replacing localeconv doesn't work\n"); goto done; } - mpf_clear (f); } check_input (); diff -Naur gmp-4.0/tests/misc/t-printf.c gmp-4.0.1/tests/misc/t-printf.c --- gmp-4.0/tests/misc/t-printf.c Thu Nov 15 22:15:29 2001 +++ gmp-4.0.1/tests/misc/t-printf.c Fri Dec 7 00:26:35 2001 @@ -408,6 +408,10 @@ { "%+#08Zx", "123", "+0x0007b" }, { "%+#08Zx", "-123", "-0x0007b" }, + { "%.0Zd", "0", "" }, + { "%.1Zd", "0", "0" }, + { "%.2Zd", "0", "00" }, + { "%.3Zd", "0", "000" }, }; int i; @@ -484,6 +488,19 @@ { "%#Qo", "5/7", "05/07" }, { "%#Qo", "-5/7", "-05/07" }, + /* zero denominator and showbase */ + { "%#10Qo", "0/0", " 0/0" }, + { "%#10Qd", "0/0", " 0/0" }, + { "%#10Qx", "0/0", " 0/0" }, + { "%#10Qo", "123/0", " 0173/0" }, + { "%#10Qd", "123/0", " 123/0" }, + { "%#10Qx", "123/0", " 0x7b/0" }, + { "%#10QX", "123/0", " 0X7B/0" }, + { "%#10Qo", "-123/0", " -0173/0" }, + { "%#10Qd", "-123/0", " -123/0" }, + { "%#10Qx", "-123/0", " -0x7b/0" }, + { "%#10QX", "-123/0", " -0X7B/0" }, + { "%10Qd", "0", " 0" }, { "%-10Qd", "0", "0 " }, { "%10Qd", "123", " 123" }, @@ -511,7 +528,6 @@ { "%+#08Qx", "0", "+0000000" }, { "%+#08Qx", "123", "+0x0007b" }, { "%+#08Qx", "-123", "-0x0007b" }, - }; int i; diff -Naur gmp-4.0/tests/refmpn.c gmp-4.0.1/tests/refmpn.c --- gmp-4.0/tests/refmpn.c Sat Nov 3 17:53:27 2001 +++ gmp-4.0.1/tests/refmpn.c Wed Jan 16 23:33:37 2002 @@ -1,7 +1,8 @@ /* Reference mpn functions, designed to be simple, portable and independent of the normal gmp code. Speed isn't a consideration. -Copyright 1996, 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc. +Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002 Free Software Foundation, +Inc. This file is part of the GNU MP Library. @@ -716,14 +717,25 @@ *r >>= n; } +/* This little subroutine avoids some bad code generation from i386 gcc 3.0 + -fPIC -O2 -fomit-frame-pointer (%ebp being used uninitialized). */ +static mp_limb_t +refmpn_divmod_1c_workaround (mp_ptr rp, mp_srcptr sp, mp_size_t size, + mp_limb_t divisor, mp_limb_t carry) +{ + mp_size_t i; + for (i = size-1; i >= 0; i--) + refmpn_udiv_qrnnd (&rp[i], &carry, carry, sp[i], divisor); + return carry; +} + mp_limb_t -refmpn_divmod_1c (mp_ptr rp, mp_srcptr sp, mp_size_t size, mp_limb_t divisor, - mp_limb_t carry) +refmpn_divmod_1c (mp_ptr rp, mp_srcptr sp, mp_size_t size, + mp_limb_t divisor, mp_limb_t carry) { mp_ptr sp_orig; mp_ptr prod; mp_limb_t carry_orig; - mp_size_t i; ASSERT (refmpn_overlap_fullonly_p (rp, sp, size)); ASSERT (size >= 0); @@ -736,8 +748,7 @@ prod = refmpn_malloc_limbs (size); carry_orig = carry; - for (i = size-1; i >= 0; i--) - refmpn_udiv_qrnnd (&rp[i], &carry, carry, sp[i], divisor); + carry = refmpn_divmod_1c_workaround (rp, sp, size, divisor, carry); /* check by multiplying back */ #if 0 diff -Naur gmp-4.0/tune/Makefile.am gmp-4.0.1/tune/Makefile.am --- gmp-4.0/tune/Makefile.am Tue Aug 28 01:07:30 2001 +++ gmp-4.0.1/tune/Makefile.am Wed Dec 12 00:35:33 2001 @@ -71,7 +71,7 @@ speed_dynamic_SOURCES = speed.c -speed_ext_SOURCES = speed.c +speed_ext_SOURCES = speed-ext.c speed_ext_LDFLAGS = -static tuneup_SOURCES = tuneup.c diff -Naur gmp-4.0/tune/Makefile.in gmp-4.0.1/tune/Makefile.in --- gmp-4.0/tune/Makefile.in Sat Dec 1 01:24:31 2001 +++ gmp-4.0.1/tune/Makefile.in Wed Dec 12 00:35:33 2001 @@ -198,7 +198,7 @@ speed_dynamic_SOURCES = speed.c -speed_ext_SOURCES = speed.c +speed_ext_SOURCES = speed-ext.c speed_ext_LDFLAGS = -static tuneup_SOURCES = tuneup.c @@ -295,7 +295,7 @@ speed_dynamic_LDADD = $(LDADD) speed_dynamic_DEPENDENCIES = libspeed.la speed_dynamic_LDFLAGS = -am_speed_ext_OBJECTS = speed$U.$(OBJEXT) +am_speed_ext_OBJECTS = speed-ext$U.$(OBJEXT) speed_ext_OBJECTS = $(am_speed_ext_OBJECTS) speed_ext_LDADD = $(LDADD) speed_ext_DEPENDENCIES = libspeed.la @@ -449,6 +449,8 @@ $(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/sb_inv.c; then echo $(srcdir)/sb_inv.c; else echo sb_inv.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > sb_inv_.c || rm -f sb_inv_.c speed_.c: speed.c $(ANSI2KNR) $(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/speed.c; then echo $(srcdir)/speed.c; else echo speed.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > speed_.c || rm -f speed_.c +speed-ext_.c: speed-ext.c $(ANSI2KNR) + $(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/speed-ext.c; then echo $(srcdir)/speed-ext.c; else echo speed-ext.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > speed-ext_.c || rm -f speed-ext_.c sqr_basecase_.c: sqr_basecase.c $(ANSI2KNR) $(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/sqr_basecase.c; then echo $(srcdir)/sqr_basecase.c; else echo sqr_basecase.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > sqr_basecase_.c || rm -f sqr_basecase_.c tdiv_qr_.c: tdiv_qr.c $(ANSI2KNR) @@ -473,9 +475,10 @@ mul_n_open_.lo noop_.$(OBJEXT) noop_.lo powm_mod_.$(OBJEXT) \ powm_mod_.lo powm_redc_.$(OBJEXT) powm_redc_.lo sb_div_.$(OBJEXT) \ sb_div_.lo sb_divrem_mn_.$(OBJEXT) sb_divrem_mn_.lo sb_inv_.$(OBJEXT) \ -sb_inv_.lo speed_.$(OBJEXT) speed_.lo sqr_basecase_.$(OBJEXT) \ -sqr_basecase_.lo tdiv_qr_.$(OBJEXT) tdiv_qr_.lo time_.$(OBJEXT) \ -time_.lo tuneup_.$(OBJEXT) tuneup_.lo : $(ANSI2KNR) +sb_inv_.lo speed_.$(OBJEXT) speed_.lo speed-ext_.$(OBJEXT) \ +speed-ext_.lo sqr_basecase_.$(OBJEXT) sqr_basecase_.lo \ +tdiv_qr_.$(OBJEXT) tdiv_qr_.lo time_.$(OBJEXT) time_.lo \ +tuneup_.$(OBJEXT) tuneup_.lo : $(ANSI2KNR) uninstall-info-am: tags: TAGS diff -Naur gmp-4.0/tune/common.c gmp-4.0.1/tune/common.c --- gmp-4.0/tune/common.c Sat Oct 27 02:34:29 2001 +++ gmp-4.0.1/tune/common.c Wed Dec 12 00:35:33 2001 @@ -1739,13 +1739,17 @@ #else #define COUNT_LEADING_ZEROS_0_ALLOWED 0 #endif - SPEED_ROUTINE_COUNT_LEADING_ZEROS_C (count_leading_zeros (c, n), - COUNT_LEADING_ZEROS_0_ALLOWED) + + SPEED_ROUTINE_COUNT_ZEROS_A (1, COUNT_LEADING_ZEROS_0_ALLOWED); + count_leading_zeros (c, n); + SPEED_ROUTINE_COUNT_ZEROS_B (); } double speed_count_trailing_zeros (struct speed_params *s) { - SPEED_ROUTINE_COUNT_TRAILING_ZEROS_C (count_trailing_zeros (c, n), 0) + SPEED_ROUTINE_COUNT_ZEROS_A (0, 0); + count_trailing_zeros (c, n); + SPEED_ROUTINE_COUNT_ZEROS_B (); } diff -Naur gmp-4.0/tune/speed-ext.c gmp-4.0.1/tune/speed-ext.c --- gmp-4.0/tune/speed-ext.c Thu Jan 1 01:00:00 1970 +++ gmp-4.0.1/tune/speed-ext.c Sun Oct 15 01:18:06 2000 @@ -0,0 +1,226 @@ +/* An example of extending the speed program to measure routines not in GMP. */ + +/* +Copyright 1999, 2000 Free Software Foundation, Inc. + +This file is part of the GNU MP Library. + +The GNU MP Library is free software; you can redistribute it and/or modify +it under the terms of the GNU Lesser General Public License as published by +the Free Software Foundation; either version 2.1 of the License, or (at your +option) any later version. + +The GNU MP Library is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public +License for more details. + +You should have received a copy of the GNU Lesser General Public License +along with the GNU MP Library; see the file COPYING.LIB. If not, write to +the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, +MA 02111-1307, USA. +*/ + + +/* The extension here is three versions of an mpn arithmetic mean. These + aren't meant to be particularly useful, just examples. + + You can run something like the following to compare their speeds. + + ./speed-ext -s 1-20 -c mean_calls mean_open mean_open2 + + On RISC chips, mean_open() might be fastest if the compiler is doing a + good job. On the register starved x86s, mean_calls will be fastest. + + + Notes: + + SPEED_EXTRA_PROTOS and SPEED_EXTRA_ROUTINES are macros that get expanded + by speed.c in useful places. SPEED_EXTRA_PROTOS goes after the header + files, and SPEED_EXTRA_ROUTINES goes in the array of available routines. + + The advantage of this #include "speed.c" scheme is that there's no + editing of a copy of that file, and new features in new versions of it + will be immediately available. + + In a real program the routines mean_calls() etc would probably be in + separate C or assembler source files, and just the measuring + speed_mean_calls() etc would be here. Linking against other libraries + for things to measure is perfectly possible too. + + When attempting to compare two versions of the same named routine, say + like the generic and assembler versions of mpn_add_n(), creative use of + cc -D or #define is suggested, so one or both can be renamed and linked + into the same program. It'll be much easier to compare them side by side + than with separate programs for each. + + common.c has notes on writing speed measuring routines. + + Remember to link against tune/libspeed.la (or tune/.libs/libspeed.a if + not using libtool) to get common.o and other objects needed by speed.c. */ + + +#define SPEED_EXTRA_PROTOS \ + double speed_mean_calls (struct speed_params *s); \ + double speed_mean_open (struct speed_params *s); \ + double speed_mean_open2 (struct speed_params *s); + +#define SPEED_EXTRA_ROUTINES \ + { "mean_calls", speed_mean_calls }, \ + { "mean_open", speed_mean_open }, \ + { "mean_open2", speed_mean_open2 }, + +#include "speed.c" + + +/* A straightforward implementation calling mpn subroutines. + + wp,size is set to (xp,size + yp,size) / 2. The return value is the + remainder from the division. The other versions are the same. */ + +mp_limb_t +mean_calls (mp_ptr wp, mp_srcptr xp, mp_srcptr yp, mp_size_t size) +{ + mp_limb_t c, ret; + + ASSERT (size >= 1); + + c = mpn_add_n (wp, xp, yp, size); + ret = mpn_rshift (wp, wp, size, 1) >> (BITS_PER_MP_LIMB-1); + wp[size-1] |= (c << (BITS_PER_MP_LIMB-1)); + return ret; +} + + +/* An open-coded version, making one pass over the data. The right shift is + done as the added limbs are produced. The addition code follows + mpn/generic/add_n.c. */ + +mp_limb_t +mean_open (mp_ptr wp, mp_srcptr xp, mp_srcptr yp, mp_size_t size) +{ + mp_limb_t w, wprev, x, y, c, ret; + mp_size_t i; + + ASSERT (size >= 1); + + x = xp[0]; + y = yp[0]; + + wprev = x + y; + c = (wprev < x); + ret = (wprev & 1); + +#define RSHIFT(hi,lo) (((lo) >> 1) | ((hi) << (BITS_PER_MP_LIMB-1))) + + for (i = 1; i < size; i++) + { + x = xp[i]; + y = yp[i]; + + w = x + c; + c = (w < x); + w += y; + c += (w < y); + + wp[i-1] = RSHIFT (w, wprev); + wprev = w; + } + + wp[i-1] = RSHIFT (c, wprev); + + return ret; +} + + +/* Another one-pass version, but right shifting the source limbs rather than + the result limbs. There's not much chance of this being better than the + above, but it's an alternative at least. */ + +mp_limb_t +mean_open2 (mp_ptr wp, mp_srcptr xp, mp_srcptr yp, mp_size_t size) +{ + mp_limb_t w, x, y, xnext, ynext, c, ret; + mp_size_t i; + + ASSERT (size >= 1); + + x = xp[0]; + y = yp[0]; + + /* ret is the low bit of x+y, c is the carry out of that low bit add */ + ret = (x ^ y) & 1; + c = (x & y) & 1; + + for (i = 0; i < size-1; i++) + { + xnext = xp[i+1]; + ynext = yp[i+1]; + x = RSHIFT (xnext, x); + y = RSHIFT (ynext, y); + + w = x + c; + c = (w < x); + w += y; + c += (w < y); + wp[i] = w; + + x = xnext; + y = ynext; + } + + wp[i] = (x >> 1) + (y >> 1) + c; + + return ret; +} + + +/* The speed measuring routines are the same apart from which function they + run, so a macro is used. Actually this macro is the same as + SPEED_ROUTINE_MPN_BINARY_N. */ + +#define SPEED_ROUTINE_MEAN(mean_fun) \ + { \ + unsigned i; \ + mp_ptr wp; \ + double t; \ + TMP_DECL (marker); \ + \ + SPEED_RESTRICT_COND (s->size >= 1); \ + \ + TMP_MARK (marker); \ + wp = SPEED_TMP_ALLOC_LIMBS (s->size, s->align_wp); \ + \ + speed_operand_src (s, s->xp, s->size); \ + speed_operand_src (s, s->yp, s->size); \ + speed_operand_dst (s, wp, s->size); \ + speed_cache_fill (s); \ + \ + speed_starttime (); \ + i = s->reps; \ + do \ + mean_fun (wp, s->xp, s->yp, s->size); \ + while (--i != 0); \ + t = speed_endtime (); \ + \ + TMP_FREE (marker); \ + return t; \ + } + +double +speed_mean_calls (struct speed_params *s) +{ + SPEED_ROUTINE_MEAN (mean_calls); +} + +double +speed_mean_open (struct speed_params *s) +{ + SPEED_ROUTINE_MEAN (mean_open); +} + +double +speed_mean_open2 (struct speed_params *s) +{ + SPEED_ROUTINE_MEAN (mean_open2); +} diff -Naur gmp-4.0/tune/speed.h gmp-4.0.1/tune/speed.h --- gmp-4.0/tune/speed.h Sat Oct 27 02:33:00 2001 +++ gmp-4.0.1/tune/speed.h Wed Dec 12 00:35:33 2001 @@ -1846,7 +1846,7 @@ Give leading=1 if foo is leading zeros, leading=0 for trailing. Give zero=1 if n=0 is allowed in the call, zero=0 if not. */ -#define SPEED_ROUTINE_COUNT_ZEROS_C(call, leading, zero) \ +#define SPEED_ROUTINE_COUNT_ZEROS_A(leading, zero) \ { \ mp_ptr xp; \ int i, c; \ @@ -1871,7 +1871,8 @@ { \ n = xp[i]; \ n ^= c; \ - call; \ + +#define SPEED_ROUTINE_COUNT_ZEROS_B() \ } \ } while (--j != 0); \ t = speed_endtime (); \ @@ -1884,7 +1885,14 @@ TMP_FREE (marker); \ return t; \ } \ - + +#define SPEED_ROUTINE_COUNT_ZEROS_C(call, leading, zero) \ + do { \ + SPEED_ROUTINE_COUNT_ZEROS_A (leading, zero); \ + call; \ + SPEED_ROUTINE_COUNT_ZEROS_B (); \ + } while (0) \ + #define SPEED_ROUTINE_COUNT_LEADING_ZEROS_C(call,zero) \ SPEED_ROUTINE_COUNT_ZEROS_C (call, 1, zero) #define SPEED_ROUTINE_COUNT_LEADING_ZEROS(fun) \ diff -Naur gmp-4.0/version.texi gmp-4.0.1/version.texi --- gmp-4.0/version.texi Sat Dec 1 01:24:08 2001 +++ gmp-4.0.1/version.texi Sun Jan 20 00:18:24 2002 @@ -1,4 +1,4 @@ -@set UPDATED 29 November 2001 -@set UPDATED-MONTH November 2001 -@set EDITION 4.0 -@set VERSION 4.0 +@set UPDATED 20 January 2002 +@set UPDATED-MONTH January 2002 +@set EDITION 4.0.1 +@set VERSION 4.0.1