Changeset 126cfa in git
- Timestamp:
- May 4, 1997, 1:11:54 PM (27 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 0bbd0edd89d414dafebcc5580e22fe46da78612c
- Parents:
- 1eed4ee3e5d96c4420bb542d28e2fe2f8facab45
- Location:
- Singular
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/ChangeLog
r1eed4e r126cfa 1 Sun May 4 11:14:44 1997 Olaf Bachmann <obachman@ratchwum.mathematik.uni-kl.de (Olaf Bachmann)> 2 3 * Added make target mpcheck; Update INSTALL file 4 5 * mpsr_PutPoly.cc (PutRationalNumber): Normalize if number->s == 0 6 and not if number->s == 2 7 8 * mpsr_GetPoly.cc (GetGaloisNumber): Introduced special routines, 9 since npInit op in GetModuloNumber messed things up 10 1 11 Sat May 3 00:07:55 1997 Olaf Bachmann <obachman@ratchwum.mathematik.uni-kl.de (Olaf Bachmann)> 12 13 * Makefile.in (CPPFLAGS): put -I. before other CPPFLAGS 2 14 3 15 * febase.cc (feFopen): fixed bug in opening library from … … 7 19 * small mpsr Changes to reflect some name changes of MP Dicts 8 20 9 * configure.in Makefile.in: new schem for updating Makefile mod2.h21 * configure.in Makefile.in: new scheme for updating Makefile mod2.h 10 22 based on time-stamps 11 23 -
Singular/INSTALL
r1eed4e r126cfa 68 68 with the distribution. 69 69 70 6. Other make targets are:70 6. Other make targets include: 71 71 'dist' : Creates a distribution of all source files of 72 72 Singular. … … 79 79 target created (i.e. Singular's executable program, 80 80 Singular's info file, and Singular's libraries) 81 'check' : Tests basic Singular functionality 81 82 82 83 Compilers and Options -
Singular/Makefile.in
r1eed4e r126cfa 46 46 CXXFLAGS = @CXXFLAGS@ 47 47 CXXTEMPLFLAGS = @CXXTEMPLFLAGS@ 48 CPPFLAGS = @CPPFLAGS@ -I${srcdir}48 CPPFLAGS = -I${srcdir} @CPPFLAGS@ 49 49 DEFS = @DEFS@ -DNDEBUG 50 50 LDFLAGS = @LDFLAGS@ … … 54 54 ## subdirectories 55 55 ## 56 docdir = doc # where the doumentation files are 57 testsdir = tests # where the tests files are 56 # where the doumentation files are 57 docdir = doc 58 # where the tests files are 59 testdir = tests 58 60 59 61 ## … … 224 226 225 227 clean: 226 -rm -rf Singular* *.o *.og core *.d *.dd *~ \#* ${testdir}/out 228 -rm -rf Singular* *.o *.og core *.d *.dd *~ \#* /tmp/mp* 229 cd ${testdir} rm -f out.got *dump* 227 230 cd ${docdir}; ${MAKE} clean 228 231 … … 241 244 cd ${docdir}; ${MAKE} $@ 242 245 243 check: Singular ${testdir}/check ${testdir}/out put246 check: Singular ${testdir}/check ${testdir}/out.should 244 247 cd ${testdir}; SINGULARPATH=./../LIB/ ./check ./../Singular 248 if test -n "@HAVE_MPSR@"; then echo; ${MAKE} mpcheck; fi 249 250 mpcheck: Singular ${testdir}/mpcheck ${testdir}/mpcheck.data 251 cd ${testdir}; ./mpcheck `pwd`/.. mpcheck.data 245 252 246 253 ## -
Singular/configure
r1eed4e r126cfa 1764 1764 1765 1765 NEED_LIBS="-lMPT -lMP ${NEED_LIBS}" 1766 HAVE_MPSR=HAVE_MP 1766 1767 elif test "$enable_MP" = yes; then 1767 1768 cat >> confdefs.h <<\EOF … … 1770 1771 1771 1772 NEED_LIBS="-lMPT -lMP ${NEED_LIBS}" 1773 HAVE_MPSR=HAVE_MP 1772 1774 echo "configure: warning: install MP before making Singular or configure --without-MP" 1>&2 1773 1775 else … … 1776 1778 fi 1777 1779 fi 1780 1778 1781 1779 1782 if test "$with_factory" != no; then … … 1790 1793 LIBS="-lsingcf $LIBS" 1791 1794 cat > conftest.$ac_ext <<EOF 1792 #line 179 3"configure"1795 #line 1796 "configure" 1793 1796 #include "confdefs.h" 1794 1797 /* Override any gcc2 internal prototype to avoid an error. */ … … 1800 1803 ; return 0; } 1801 1804 EOF 1802 if { (eval echo configure:180 3: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then1805 if { (eval echo configure:1806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1803 1806 rm -rf conftest* 1804 1807 eval "ac_cv_lib_$ac_lib_var=yes" … … 1833 1836 else 1834 1837 cat > conftest.$ac_ext <<EOF 1835 #line 183 6"configure"1838 #line 1839 "configure" 1836 1839 #include "confdefs.h" 1837 1840 #include <$ac_hdr> 1838 1841 EOF 1839 1842 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1840 { (eval echo configure:184 1: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1843 { (eval echo configure:1844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1841 1844 ac_err=`grep -v '^ *+' conftest.out` 1842 1845 if test -z "$ac_err"; then … … 1897 1900 LIBS="-lsinglibfac $LIBS" 1898 1901 cat > conftest.$ac_ext <<EOF 1899 #line 190 0"configure"1902 #line 1903 "configure" 1900 1903 #include "confdefs.h" 1901 1904 /* Override any gcc2 internal prototype to avoid an error. */ … … 1907 1910 ; return 0; } 1908 1911 EOF 1909 if { (eval echo configure:191 0: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then1912 if { (eval echo configure:1913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1910 1913 rm -rf conftest* 1911 1914 eval "ac_cv_lib_$ac_lib_var=yes" … … 1940 1943 else 1941 1944 cat > conftest.$ac_ext <<EOF 1942 #line 194 3"configure"1945 #line 1946 "configure" 1943 1946 #include "confdefs.h" 1944 1947 #include <$ac_hdr> 1945 1948 EOF 1946 1949 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1947 { (eval echo configure:19 48: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1950 { (eval echo configure:1951: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1948 1951 ac_err=`grep -v '^ *+' conftest.out` 1949 1952 if test -z "$ac_err"; then … … 2001 2004 else 2002 2005 cat > conftest.$ac_ext <<EOF 2003 #line 200 4"configure"2006 #line 2007 "configure" 2004 2007 #include "confdefs.h" 2005 2008 main(){return(0);} 2006 2009 EOF 2007 { (eval echo configure:20 08: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }2010 { (eval echo configure:2011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } 2008 2011 if test -s conftest && (./conftest; exit) 2>/dev/null; then 2009 2012 ac_cv_c_cross=no … … 2023 2026 else 2024 2027 cat > conftest.$ac_ext <<EOF 2025 #line 202 6"configure"2028 #line 2029 "configure" 2026 2029 #include "confdefs.h" 2027 2030 #include <stdlib.h> … … 2031 2034 EOF 2032 2035 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2033 { (eval echo configure:203 4: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }2036 { (eval echo configure:2037: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2034 2037 ac_err=`grep -v '^ *+' conftest.out` 2035 2038 if test -z "$ac_err"; then … … 2046 2049 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2047 2050 cat > conftest.$ac_ext <<EOF 2048 #line 20 49"configure"2051 #line 2052 "configure" 2049 2052 #include "confdefs.h" 2050 2053 #include <string.h> … … 2064 2067 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2065 2068 cat > conftest.$ac_ext <<EOF 2066 #line 20 67"configure"2069 #line 2070 "configure" 2067 2070 #include "confdefs.h" 2068 2071 #include <stdlib.h> … … 2085 2088 else 2086 2089 cat > conftest.$ac_ext <<EOF 2087 #line 20 88"configure"2090 #line 2091 "configure" 2088 2091 #include "confdefs.h" 2089 2092 #include <ctype.h> … … 2096 2099 2097 2100 EOF 2098 { (eval echo configure:2 099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }2101 { (eval echo configure:2102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } 2099 2102 if test -s conftest && (./conftest; exit) 2>/dev/null; then 2100 2103 : … … 2124 2127 else 2125 2128 cat > conftest.$ac_ext <<EOF 2126 #line 21 27"configure"2129 #line 2130 "configure" 2127 2130 #include "confdefs.h" 2128 2131 #include <$ac_hdr> 2129 2132 EOF 2130 2133 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2131 { (eval echo configure:213 2: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }2134 { (eval echo configure:2135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2132 2135 ac_err=`grep -v '^ *+' conftest.out` 2133 2136 if test -z "$ac_err"; then … … 2163 2166 else 2164 2167 cat > conftest.$ac_ext <<EOF 2165 #line 216 6"configure"2168 #line 2169 "configure" 2166 2169 #include "confdefs.h" 2167 2170 #include <$ac_hdr> 2168 2171 EOF 2169 2172 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2170 { (eval echo configure:217 1: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }2173 { (eval echo configure:2174: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2171 2174 ac_err=`grep -v '^ *+' conftest.out` 2172 2175 if test -z "$ac_err"; then … … 2198 2201 else 2199 2202 cat > conftest.$ac_ext <<EOF 2200 #line 220 1"configure"2203 #line 2204 "configure" 2201 2204 #include "confdefs.h" 2202 2205 … … 2248 2251 ; return 0; } 2249 2252 EOF 2250 if { (eval echo configure:225 1: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then2253 if { (eval echo configure:2254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2251 2254 rm -rf conftest* 2252 2255 ac_cv_c_const=yes … … 2274 2277 for ac_kw in inline __inline__ __inline; do 2275 2278 cat > conftest.$ac_ext <<EOF 2276 #line 22 77"configure"2279 #line 2280 "configure" 2277 2280 #include "confdefs.h" 2278 2281 … … 2282 2285 ; return 0; } 2283 2286 EOF 2284 if { (eval echo configure:228 5: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then2287 if { (eval echo configure:2288: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2285 2288 rm -rf conftest* 2286 2289 ac_cv_c_inline=$ac_kw; break … … 2310 2313 else 2311 2314 cat > conftest.$ac_ext <<EOF 2312 #line 231 3"configure"2315 #line 2316 "configure" 2313 2316 #include "confdefs.h" 2314 2317 #include <sys/types.h> … … 2341 2344 else 2342 2345 cat > conftest.$ac_ext <<EOF 2343 #line 234 4"configure"2346 #line 2347 "configure" 2344 2347 #include "confdefs.h" 2345 2348 #include <sys/types.h> … … 2351 2354 ; return 0; } 2352 2355 EOF 2353 if { (eval echo configure:235 4: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then2356 if { (eval echo configure:2357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2354 2357 rm -rf conftest* 2355 2358 ac_cv_header_time=yes … … 2375 2378 else 2376 2379 cat > conftest.$ac_ext <<EOF 2377 #line 23 78"configure"2380 #line 2381 "configure" 2378 2381 #include "confdefs.h" 2379 2382 #include <sys/types.h> … … 2384 2387 ; return 0; } 2385 2388 EOF 2386 if { (eval echo configure:23 87: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then2389 if { (eval echo configure:2390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2387 2390 rm -rf conftest* 2388 2391 ac_cv_struct_tm=time.h … … 2411 2414 else 2412 2415 cat > conftest.$ac_ext <<EOF 2413 #line 241 4"configure"2416 #line 2417 "configure" 2414 2417 #include "confdefs.h" 2415 2418 #include <alloca.h> … … 2419 2422 ; return 0; } 2420 2423 EOF 2421 if { (eval echo configure:242 2: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then2424 if { (eval echo configure:2425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 2422 2425 rm -rf conftest* 2423 2426 ac_cv_header_alloca_h=yes … … 2443 2446 else 2444 2447 cat > conftest.$ac_ext <<EOF 2445 #line 244 6"configure"2448 #line 2449 "configure" 2446 2449 #include "confdefs.h" 2447 2450 … … 2467 2470 ; return 0; } 2468 2471 EOF 2469 if { (eval echo configure:247 0: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then2472 if { (eval echo configure:2473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 2470 2473 rm -rf conftest* 2471 2474 ac_cv_func_alloca=yes … … 2502 2505 else 2503 2506 cat > conftest.$ac_ext <<EOF 2504 #line 250 5"configure"2507 #line 2508 "configure" 2505 2508 #include "confdefs.h" 2506 2509 #if defined(CRAY) && ! defined(CRAY2) … … 2531 2534 else 2532 2535 cat > conftest.$ac_ext <<EOF 2533 #line 253 4"configure"2536 #line 2537 "configure" 2534 2537 #include "confdefs.h" 2535 2538 /* System header to define __stub macros and hopefully few prototypes, … … 2553 2556 ; return 0; } 2554 2557 EOF 2555 if { (eval echo configure:255 6: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then2558 if { (eval echo configure:2559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 2556 2559 rm -rf conftest* 2557 2560 eval "ac_cv_func_$ac_func=yes" … … 2585 2588 else 2586 2589 cat > conftest.$ac_ext <<EOF 2587 #line 25 88"configure"2590 #line 2591 "configure" 2588 2591 #include "confdefs.h" 2589 2592 find_stack_direction () … … 2604 2607 } 2605 2608 EOF 2606 { (eval echo configure:26 07: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }2609 { (eval echo configure:2610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } 2607 2610 if test -s conftest && (./conftest; exit) 2>/dev/null; then 2608 2611 ac_cv_c_stack_direction=1 … … 2628 2631 ac_pattern="Autoconf.*'x'" 2629 2632 cat > conftest.$ac_ext <<EOF 2630 #line 263 1"configure"2633 #line 2634 "configure" 2631 2634 #include "confdefs.h" 2632 2635 #include <sgtty.h> … … 2646 2649 if test $ac_cv_prog_gcc_traditional = no; then 2647 2650 cat > conftest.$ac_ext <<EOF 2648 #line 26 49"configure"2651 #line 2652 "configure" 2649 2652 #include "confdefs.h" 2650 2653 #include <termio.h> … … 2674 2677 else 2675 2678 cat > conftest.$ac_ext <<EOF 2676 #line 26 77"configure"2679 #line 2680 "configure" 2677 2680 #include "confdefs.h" 2678 2681 /* System header to define __stub macros and hopefully few prototypes, … … 2696 2699 ; return 0; } 2697 2700 EOF 2698 if { (eval echo configure:2 699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then2701 if { (eval echo configure:2702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 2699 2702 rm -rf conftest* 2700 2703 eval "ac_cv_func_$ac_func=yes" … … 2726 2729 else 2727 2730 cat > conftest.$ac_ext <<EOF 2728 #line 27 29"configure"2731 #line 2732 "configure" 2729 2732 #include "confdefs.h" 2730 2733 … … 2795 2798 2796 2799 EOF 2797 { (eval echo configure:2 798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }2800 { (eval echo configure:2801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } 2798 2801 if test -s conftest && (./conftest; exit) 2>/dev/null; then 2799 2802 ac_cv_func_mmap=yes … … 2818 2821 else 2819 2822 cat > conftest.$ac_ext <<EOF 2820 #line 282 1"configure"2823 #line 2824 "configure" 2821 2824 #include "confdefs.h" 2822 2825 #include <sys/types.h> … … 2836 2839 ; return 0; } 2837 2840 EOF 2838 if { (eval echo configure:28 39: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then2841 if { (eval echo configure:2842: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2839 2842 rm -rf conftest* 2840 2843 ac_cv_type_signal=void … … 2858 2861 else 2859 2862 cat > conftest.$ac_ext <<EOF 2860 #line 286 1"configure"2863 #line 2864 "configure" 2861 2864 #include "confdefs.h" 2862 2865 /* System header to define __stub macros and hopefully few prototypes, … … 2880 2883 ; return 0; } 2881 2884 EOF 2882 if { (eval echo configure:288 3: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then2885 if { (eval echo configure:2886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 2883 2886 rm -rf conftest* 2884 2887 eval "ac_cv_func_vprintf=yes" … … 2906 2909 else 2907 2910 cat > conftest.$ac_ext <<EOF 2908 #line 29 09"configure"2911 #line 2912 "configure" 2909 2912 #include "confdefs.h" 2910 2913 /* System header to define __stub macros and hopefully few prototypes, … … 2928 2931 ; return 0; } 2929 2932 EOF 2930 if { (eval echo configure:293 1: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then2933 if { (eval echo configure:2934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 2931 2934 rm -rf conftest* 2932 2935 eval "ac_cv_func__doprnt=yes" … … 2957 2960 else 2958 2961 cat > conftest.$ac_ext <<EOF 2959 #line 296 0"configure"2962 #line 2963 "configure" 2960 2963 #include "confdefs.h" 2961 2964 /* System header to define __stub macros and hopefully few prototypes, … … 2979 2982 ; return 0; } 2980 2983 EOF 2981 if { (eval echo configure:298 2: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then2984 if { (eval echo configure:2985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 2982 2985 rm -rf conftest* 2983 2986 eval "ac_cv_func_$ac_func=yes" … … 3011 3014 else 3012 3015 cat > conftest.$ac_ext <<EOF 3013 #line 301 4"configure"3016 #line 3017 "configure" 3014 3017 #include "confdefs.h" 3015 3018 int main() { if (-2 >> 1 == -1) exit(0); else exit(1); } 3016 3019 EOF 3017 { (eval echo configure:30 18: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }3020 { (eval echo configure:3021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } 3018 3021 if test -s conftest && (./conftest; exit) 2>/dev/null; then 3019 3022 ac_cv_shift=yes … … 3041 3044 else 3042 3045 cat > conftest.$ac_ext <<EOF 3043 #line 304 4"configure"3046 #line 3047 "configure" 3044 3047 #include "confdefs.h" 3045 3048 int main() {if (sizeof(int) == 4) exit(0); else exit(1); } 3046 3049 EOF 3047 { (eval echo configure:30 48: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }3050 { (eval echo configure:3051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } 3048 3051 if test -s conftest && (./conftest; exit) 2>/dev/null; then 3049 3052 ac_cv_sizeof_int_equals_four=yes … … 3071 3074 else 3072 3075 cat > conftest.$ac_ext <<EOF 3073 #line 307 4"configure"3076 #line 3077 "configure" 3074 3077 #include "confdefs.h" 3075 3078 int main() {if (sizeof(long) == sizeof(void*)) exit(0); else exit(1); } 3076 3079 EOF 3077 { (eval echo configure:30 78: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }3080 { (eval echo configure:3081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } 3078 3081 if test -s conftest && (./conftest; exit) 2>/dev/null; then 3079 3082 ac_cv_sizeof_long_equals_voidp=yes … … 3100 3103 else 3101 3104 cat > conftest.$ac_ext <<EOF 3102 #line 310 3"configure"3105 #line 3106 "configure" 3103 3106 #include "confdefs.h" 3104 3107 #include <stdio.h> 3105 3108 main() { char *str=(char*)malloc(20); if (((int) sprintf(str,"123456789")) == 9) exit(0); else exit(1); } 3106 3109 EOF 3107 { (eval echo configure:31 08: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }3110 { (eval echo configure:3111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } 3108 3111 if test -s conftest && (./conftest; exit) 2>/dev/null; then 3109 3112 ac_cv_returns_n_of_chars=yes … … 3133 3136 else 3134 3137 cat > conftest.$ac_ext <<EOF 3135 #line 313 6"configure"3138 #line 3139 "configure" 3136 3139 #include "confdefs.h" 3137 3140 #include <stdio.h> … … 3144 3147 } 3145 3148 EOF 3146 { (eval echo configure:31 47: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }3149 { (eval echo configure:3150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } 3147 3150 if test -s conftest && (./conftest; exit) 2>/dev/null; then 3148 3151 ac_cv_sizeof_voidp=`cat conftestval` … … 3302 3305 s%@INSTALL_DATA@%$INSTALL_DATA%g 3303 3306 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g 3307 s%@HAVE_MPSR@%$HAVE_MPSR%g 3304 3308 s%@NEED_LIBS@%$NEED_LIBS%g 3305 3309 s%@ALLOCA@%$ALLOCA%g -
Singular/configure.in
r1eed4e r126cfa 220 220 AC_DEFINE(HAVE_MPSR) 221 221 NEED_LIBS="-lMPT -lMP ${NEED_LIBS}" 222 HAVE_MPSR=HAVE_MP 222 223 elif test "$enable_MP" = yes; then 223 224 AC_DEFINE(HAVE_MPSR) 224 225 NEED_LIBS="-lMPT -lMP ${NEED_LIBS}" 226 HAVE_MPSR=HAVE_MP 225 227 AC_MSG_WARN(install MP before making Singular or configure --without-MP) 226 228 else … … 229 231 fi 230 232 fi 233 AC_SUBST(HAVE_MPSR) 231 234 232 235 dnl Check factory -
Singular/mpsr_GetPoly.cc
r1eed4e r126cfa 3 3 ****************************************/ 4 4 5 /* $Id: mpsr_GetPoly.cc,v 1. 6 1997-05-02 22:09:27obachman Exp $ */5 /* $Id: mpsr_GetPoly.cc,v 1.7 1997-05-04 11:11:53 obachman Exp $ */ 6 6 7 7 /*************************************************************** … … 74 74 static void SetGetFuncs(ring r); 75 75 static mpsr_Status_t GetModuloNumber(MP_Link_pt link, number *a); 76 static mpsr_Status_t GetGaloisNumber(MP_Link_pt link, number *a); 76 77 static mpsr_Status_t GetFloatNumber(MP_Link_pt link, number *a); 77 78 static mpsr_Status_t GetApInt(MP_Link_pt link, mpz_ptr ap); … … 118 119 GetCoeff = GetRationalNumber; 119 120 else if ((r->ch) > 1) 120 // Form our point of view, ModuloP numbers and numbers from 121 // GF(p,n) are the same, here. They only differ in the annots 122 GetCoeff = GetModuloNumber; 121 { 122 if (r->parameter == NULL) 123 GetCoeff = GetModuloNumber; 124 else 125 GetCoeff = GetGaloisNumber; 126 } 123 127 else if ((r->ch) == -1) 124 128 GetCoeff = GetFloatNumber; … … 154 158 *a=npInit((int)x); 155 159 return mpsr_Success; 160 } 161 162 static mpsr_Status_t GetGaloisNumber(MP_Link_pt link, number *a) 163 { 164 mp_return(IMP_GetUint32(link, (MP_Uint32_t *) a)); 156 165 } 157 166 -
Singular/mpsr_PutPoly.cc
r1eed4e r126cfa 3 3 ****************************************/ 4 4 5 /* $Id: mpsr_PutPoly.cc,v 1. 6 1997-05-02 22:09:29obachman Exp $ */5 /* $Id: mpsr_PutPoly.cc,v 1.7 1997-05-04 11:11:54 obachman Exp $ */ 6 6 7 7 /*************************************************************** … … 161 161 // Now we have a fraction 162 162 // normalize, if necessary 163 if ((a->s) == 2) 163 if ((a->s) == 0) 164 { 164 165 nlNormalize(a); 166 return PutRationalNumber(link, a); 167 } 168 165 169 // send number itself 166 170 mp_failr(MP_PutCommonOperatorPacket(link,
Note: See TracChangeset
for help on using the changeset viewer.