Changeset 126cfa in git


Ignore:
Timestamp:
May 4, 1997, 1:11:54 PM (27 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'spielwiese', '82fc009ea2b0098c1a4896c841bb70860976bdfc')
Children:
0bbd0edd89d414dafebcc5580e22fe46da78612c
Parents:
1eed4ee3e5d96c4420bb542d28e2fe2f8facab45
Message:
Sun May  4 11:14:44 1997  Olaf Bachmann
<obachman@ratchwum.mathematik.uni-kl.de (Olaf Bachmann)>

	* Added make target mpcheck; Update INSTALL file

	* mpsr_PutPoly.cc (PutRationalNumber): Normalize if number->s == 0
	  and not if number->s == 2

	* mpsr_GetPoly.cc (GetGaloisNumber): Introduced special routines,
	  since npInit op in GetModuloNumber messed things up


git-svn-id: file:///usr/local/Singular/svn/trunk@234 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
Singular
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • Singular/ChangeLog

    r1eed4e r126cfa  
     1Sun 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
    111Sat 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
    214
    315        * febase.cc (feFopen): fixed bug in opening library from
     
    719        * small mpsr Changes to reflect some name changes of MP Dicts
    820
    9         * configure.in Makefile.in: new schem for updating Makefile mod2.h
     21        * configure.in Makefile.in: new scheme for updating Makefile mod2.h
    1022          based on time-stamps
    1123
  • Singular/INSTALL

    r1eed4e r126cfa  
    6868     with the distribution.
    6969
    70   6. Other make targets are:
     70  6. Other make targets include:
    7171     'dist'      : Creates a distribution of all source files of
    7272                   Singular.
     
    7979                   target created (i.e. Singular's executable program,
    8080                   Singular's info file, and Singular's libraries)
     81     'check'     : Tests basic Singular functionality
    8182
    8283Compilers and Options
  • Singular/Makefile.in

    r1eed4e r126cfa  
    4646CXXFLAGS        = @CXXFLAGS@
    4747CXXTEMPLFLAGS   = @CXXTEMPLFLAGS@
    48 CPPFLAGS        = @CPPFLAGS@ -I${srcdir}
     48CPPFLAGS        = -I${srcdir} @CPPFLAGS@
    4949DEFS            = @DEFS@ -DNDEBUG
    5050LDFLAGS         = @LDFLAGS@
     
    5454## subdirectories
    5555##
    56 docdir          = doc   # where the doumentation files are
    57 testsdir        = tests # where the tests files are
     56# where the doumentation files are
     57docdir          = doc
     58# where the tests files are
     59testdir         = tests
    5860
    5961##
     
    224226
    225227clean:
    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*
    227230        cd ${docdir}; ${MAKE} clean
    228231
     
    241244        cd ${docdir}; ${MAKE} $@
    242245
    243 check:  Singular ${testdir}/check ${testdir}/output
     246check:  Singular ${testdir}/check ${testdir}/out.should
    244247        cd ${testdir}; SINGULARPATH=./../LIB/ ./check ./../Singular
     248        if test -n "@HAVE_MPSR@"; then echo; ${MAKE} mpcheck; fi
     249
     250mpcheck: Singular ${testdir}/mpcheck ${testdir}/mpcheck.data
     251        cd ${testdir}; ./mpcheck `pwd`/.. mpcheck.data
    245252
    246253##
  • Singular/configure

    r1eed4e r126cfa  
    17641764
    17651765      NEED_LIBS="-lMPT -lMP ${NEED_LIBS}"
     1766      HAVE_MPSR=HAVE_MP
    17661767    elif test "$enable_MP" = yes; then
    17671768      cat >> confdefs.h <<\EOF
     
    17701771
    17711772      NEED_LIBS="-lMPT -lMP ${NEED_LIBS}"
     1773      HAVE_MPSR=HAVE_MP
    17721774      echo "configure: warning: install MP before making Singular or configure --without-MP" 1>&2
    17731775    else
     
    17761778  fi
    17771779fi
     1780
    17781781
    17791782if test "$with_factory" != no; then
     
    17901793LIBS="-lsingcf  $LIBS"
    17911794cat > conftest.$ac_ext <<EOF
    1792 #line 1793 "configure"
     1795#line 1796 "configure"
    17931796#include "confdefs.h"
    17941797/* Override any gcc2 internal prototype to avoid an error.  */
     
    18001803; return 0; }
    18011804EOF
    1802 if { (eval echo configure:1803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1805if { (eval echo configure:1806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    18031806  rm -rf conftest*
    18041807  eval "ac_cv_lib_$ac_lib_var=yes"
     
    18331836else
    18341837  cat > conftest.$ac_ext <<EOF
    1835 #line 1836 "configure"
     1838#line 1839 "configure"
    18361839#include "confdefs.h"
    18371840#include <$ac_hdr>
    18381841EOF
    18391842ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1840 { (eval echo configure:1841: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1843{ (eval echo configure:1844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    18411844ac_err=`grep -v '^ *+' conftest.out`
    18421845if test -z "$ac_err"; then
     
    18971900LIBS="-lsinglibfac  $LIBS"
    18981901cat > conftest.$ac_ext <<EOF
    1899 #line 1900 "configure"
     1902#line 1903 "configure"
    19001903#include "confdefs.h"
    19011904/* Override any gcc2 internal prototype to avoid an error.  */
     
    19071910; return 0; }
    19081911EOF
    1909 if { (eval echo configure:1910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1912if { (eval echo configure:1913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    19101913  rm -rf conftest*
    19111914  eval "ac_cv_lib_$ac_lib_var=yes"
     
    19401943else
    19411944  cat > conftest.$ac_ext <<EOF
    1942 #line 1943 "configure"
     1945#line 1946 "configure"
    19431946#include "confdefs.h"
    19441947#include <$ac_hdr>
    19451948EOF
    19461949ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1947 { (eval echo configure:1948: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1950{ (eval echo configure:1951: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    19481951ac_err=`grep -v '^ *+' conftest.out`
    19491952if test -z "$ac_err"; then
     
    20012004else
    20022005cat > conftest.$ac_ext <<EOF
    2003 #line 2004 "configure"
     2006#line 2007 "configure"
    20042007#include "confdefs.h"
    20052008main(){return(0);}
    20062009EOF
    2007 { (eval echo configure:2008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
     2010{ (eval echo configure:2011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
    20082011if test -s conftest && (./conftest; exit) 2>/dev/null; then
    20092012  ac_cv_c_cross=no
     
    20232026else
    20242027  cat > conftest.$ac_ext <<EOF
    2025 #line 2026 "configure"
     2028#line 2029 "configure"
    20262029#include "confdefs.h"
    20272030#include <stdlib.h>
     
    20312034EOF
    20322035ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2033 { (eval echo configure:2034: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2036{ (eval echo configure:2037: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    20342037ac_err=`grep -v '^ *+' conftest.out`
    20352038if test -z "$ac_err"; then
     
    20462049  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    20472050cat > conftest.$ac_ext <<EOF
    2048 #line 2049 "configure"
     2051#line 2052 "configure"
    20492052#include "confdefs.h"
    20502053#include <string.h>
     
    20642067  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    20652068cat > conftest.$ac_ext <<EOF
    2066 #line 2067 "configure"
     2069#line 2070 "configure"
    20672070#include "confdefs.h"
    20682071#include <stdlib.h>
     
    20852088else
    20862089cat > conftest.$ac_ext <<EOF
    2087 #line 2088 "configure"
     2090#line 2091 "configure"
    20882091#include "confdefs.h"
    20892092#include <ctype.h>
     
    20962099
    20972100EOF
    2098 { (eval echo configure:2099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
     2101{ (eval echo configure:2102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
    20992102if test -s conftest && (./conftest; exit) 2>/dev/null; then
    21002103  :
     
    21242127else
    21252128  cat > conftest.$ac_ext <<EOF
    2126 #line 2127 "configure"
     2129#line 2130 "configure"
    21272130#include "confdefs.h"
    21282131#include <$ac_hdr>
    21292132EOF
    21302133ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2131 { (eval echo configure:2132: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2134{ (eval echo configure:2135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    21322135ac_err=`grep -v '^ *+' conftest.out`
    21332136if test -z "$ac_err"; then
     
    21632166else
    21642167  cat > conftest.$ac_ext <<EOF
    2165 #line 2166 "configure"
     2168#line 2169 "configure"
    21662169#include "confdefs.h"
    21672170#include <$ac_hdr>
    21682171EOF
    21692172ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2170 { (eval echo configure:2171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2173{ (eval echo configure:2174: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    21712174ac_err=`grep -v '^ *+' conftest.out`
    21722175if test -z "$ac_err"; then
     
    21982201else
    21992202  cat > conftest.$ac_ext <<EOF
    2200 #line 2201 "configure"
     2203#line 2204 "configure"
    22012204#include "confdefs.h"
    22022205
     
    22482251; return 0; }
    22492252EOF
    2250 if { (eval echo configure:2251: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2253if { (eval echo configure:2254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    22512254  rm -rf conftest*
    22522255  ac_cv_c_const=yes
     
    22742277for ac_kw in inline __inline__ __inline; do
    22752278  cat > conftest.$ac_ext <<EOF
    2276 #line 2277 "configure"
     2279#line 2280 "configure"
    22772280#include "confdefs.h"
    22782281
     
    22822285; return 0; }
    22832286EOF
    2284 if { (eval echo configure:2285: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2287if { (eval echo configure:2288: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    22852288  rm -rf conftest*
    22862289  ac_cv_c_inline=$ac_kw; break
     
    23102313else
    23112314  cat > conftest.$ac_ext <<EOF
    2312 #line 2313 "configure"
     2315#line 2316 "configure"
    23132316#include "confdefs.h"
    23142317#include <sys/types.h>
     
    23412344else
    23422345  cat > conftest.$ac_ext <<EOF
    2343 #line 2344 "configure"
     2346#line 2347 "configure"
    23442347#include "confdefs.h"
    23452348#include <sys/types.h>
     
    23512354; return 0; }
    23522355EOF
    2353 if { (eval echo configure:2354: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2356if { (eval echo configure:2357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    23542357  rm -rf conftest*
    23552358  ac_cv_header_time=yes
     
    23752378else
    23762379  cat > conftest.$ac_ext <<EOF
    2377 #line 2378 "configure"
     2380#line 2381 "configure"
    23782381#include "confdefs.h"
    23792382#include <sys/types.h>
     
    23842387; return 0; }
    23852388EOF
    2386 if { (eval echo configure:2387: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2389if { (eval echo configure:2390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    23872390  rm -rf conftest*
    23882391  ac_cv_struct_tm=time.h
     
    24112414else
    24122415  cat > conftest.$ac_ext <<EOF
    2413 #line 2414 "configure"
     2416#line 2417 "configure"
    24142417#include "confdefs.h"
    24152418#include <alloca.h>
     
    24192422; return 0; }
    24202423EOF
    2421 if { (eval echo configure:2422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     2424if { (eval echo configure:2425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    24222425  rm -rf conftest*
    24232426  ac_cv_header_alloca_h=yes
     
    24432446else
    24442447  cat > conftest.$ac_ext <<EOF
    2445 #line 2446 "configure"
     2448#line 2449 "configure"
    24462449#include "confdefs.h"
    24472450
     
    24672470; return 0; }
    24682471EOF
    2469 if { (eval echo configure:2470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     2472if { (eval echo configure:2473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    24702473  rm -rf conftest*
    24712474  ac_cv_func_alloca=yes
     
    25022505else
    25032506  cat > conftest.$ac_ext <<EOF
    2504 #line 2505 "configure"
     2507#line 2508 "configure"
    25052508#include "confdefs.h"
    25062509#if defined(CRAY) && ! defined(CRAY2)
     
    25312534else
    25322535  cat > conftest.$ac_ext <<EOF
    2533 #line 2534 "configure"
     2536#line 2537 "configure"
    25342537#include "confdefs.h"
    25352538/* System header to define __stub macros and hopefully few prototypes,
     
    25532556; return 0; }
    25542557EOF
    2555 if { (eval echo configure:2556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     2558if { (eval echo configure:2559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    25562559  rm -rf conftest*
    25572560  eval "ac_cv_func_$ac_func=yes"
     
    25852588else
    25862589cat > conftest.$ac_ext <<EOF
    2587 #line 2588 "configure"
     2590#line 2591 "configure"
    25882591#include "confdefs.h"
    25892592find_stack_direction ()
     
    26042607}
    26052608EOF
    2606 { (eval echo configure:2607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
     2609{ (eval echo configure:2610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
    26072610if test -s conftest && (./conftest; exit) 2>/dev/null; then
    26082611  ac_cv_c_stack_direction=1
     
    26282631    ac_pattern="Autoconf.*'x'"
    26292632  cat > conftest.$ac_ext <<EOF
    2630 #line 2631 "configure"
     2633#line 2634 "configure"
    26312634#include "confdefs.h"
    26322635#include <sgtty.h>
     
    26462649  if test $ac_cv_prog_gcc_traditional = no; then
    26472650    cat > conftest.$ac_ext <<EOF
    2648 #line 2649 "configure"
     2651#line 2652 "configure"
    26492652#include "confdefs.h"
    26502653#include <termio.h>
     
    26742677else
    26752678  cat > conftest.$ac_ext <<EOF
    2676 #line 2677 "configure"
     2679#line 2680 "configure"
    26772680#include "confdefs.h"
    26782681/* System header to define __stub macros and hopefully few prototypes,
     
    26962699; return 0; }
    26972700EOF
    2698 if { (eval echo configure:2699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     2701if { (eval echo configure:2702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    26992702  rm -rf conftest*
    27002703  eval "ac_cv_func_$ac_func=yes"
     
    27262729else
    27272730cat > conftest.$ac_ext <<EOF
    2728 #line 2729 "configure"
     2731#line 2732 "configure"
    27292732#include "confdefs.h"
    27302733
     
    27952798
    27962799EOF
    2797 { (eval echo configure:2798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
     2800{ (eval echo configure:2801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
    27982801if test -s conftest && (./conftest; exit) 2>/dev/null; then
    27992802  ac_cv_func_mmap=yes
     
    28182821else
    28192822  cat > conftest.$ac_ext <<EOF
    2820 #line 2821 "configure"
     2823#line 2824 "configure"
    28212824#include "confdefs.h"
    28222825#include <sys/types.h>
     
    28362839; return 0; }
    28372840EOF
    2838 if { (eval echo configure:2839: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2841if { (eval echo configure:2842: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    28392842  rm -rf conftest*
    28402843  ac_cv_type_signal=void
     
    28582861else
    28592862  cat > conftest.$ac_ext <<EOF
    2860 #line 2861 "configure"
     2863#line 2864 "configure"
    28612864#include "confdefs.h"
    28622865/* System header to define __stub macros and hopefully few prototypes,
     
    28802883; return 0; }
    28812884EOF
    2882 if { (eval echo configure:2883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     2885if { (eval echo configure:2886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    28832886  rm -rf conftest*
    28842887  eval "ac_cv_func_vprintf=yes"
     
    29062909else
    29072910  cat > conftest.$ac_ext <<EOF
    2908 #line 2909 "configure"
     2911#line 2912 "configure"
    29092912#include "confdefs.h"
    29102913/* System header to define __stub macros and hopefully few prototypes,
     
    29282931; return 0; }
    29292932EOF
    2930 if { (eval echo configure:2931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     2933if { (eval echo configure:2934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    29312934  rm -rf conftest*
    29322935  eval "ac_cv_func__doprnt=yes"
     
    29572960else
    29582961  cat > conftest.$ac_ext <<EOF
    2959 #line 2960 "configure"
     2962#line 2963 "configure"
    29602963#include "confdefs.h"
    29612964/* System header to define __stub macros and hopefully few prototypes,
     
    29792982; return 0; }
    29802983EOF
    2981 if { (eval echo configure:2982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     2984if { (eval echo configure:2985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    29822985  rm -rf conftest*
    29832986  eval "ac_cv_func_$ac_func=yes"
     
    30113014else
    30123015cat > conftest.$ac_ext <<EOF
    3013 #line 3014 "configure"
     3016#line 3017 "configure"
    30143017#include "confdefs.h"
    30153018 int main() { if (-2 >> 1 == -1) exit(0); else exit(1); }
    30163019EOF
    3017 { (eval echo configure:3018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
     3020{ (eval echo configure:3021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
    30183021if test -s conftest && (./conftest; exit) 2>/dev/null; then
    30193022  ac_cv_shift=yes
     
    30413044else
    30423045cat > conftest.$ac_ext <<EOF
    3043 #line 3044 "configure"
     3046#line 3047 "configure"
    30443047#include "confdefs.h"
    30453048 int main() {if (sizeof(int) == 4)  exit(0); else exit(1); }
    30463049EOF
    3047 { (eval echo configure:3048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
     3050{ (eval echo configure:3051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
    30483051if test -s conftest && (./conftest; exit) 2>/dev/null; then
    30493052  ac_cv_sizeof_int_equals_four=yes
     
    30713074else
    30723075cat > conftest.$ac_ext <<EOF
    3073 #line 3074 "configure"
     3076#line 3077 "configure"
    30743077#include "confdefs.h"
    30753078 int main() {if (sizeof(long) == sizeof(void*))  exit(0); else exit(1); }
    30763079EOF
    3077 { (eval echo configure:3078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
     3080{ (eval echo configure:3081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
    30783081if test -s conftest && (./conftest; exit) 2>/dev/null; then
    30793082  ac_cv_sizeof_long_equals_voidp=yes
     
    31003103else
    31013104cat > conftest.$ac_ext <<EOF
    3102 #line 3103 "configure"
     3105#line 3106 "configure"
    31033106#include "confdefs.h"
    31043107#include <stdio.h>
    31053108 main() { char *str=(char*)malloc(20); if (((int) sprintf(str,"123456789")) == 9) exit(0); else exit(1); }
    31063109EOF
    3107 { (eval echo configure:3108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
     3110{ (eval echo configure:3111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
    31083111if test -s conftest && (./conftest; exit) 2>/dev/null; then
    31093112  ac_cv_returns_n_of_chars=yes
     
    31333136else
    31343137cat > conftest.$ac_ext <<EOF
    3135 #line 3136 "configure"
     3138#line 3139 "configure"
    31363139#include "confdefs.h"
    31373140#include <stdio.h>
     
    31443147}
    31453148EOF
    3146 { (eval echo configure:3147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
     3149{ (eval echo configure:3150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
    31473150if test -s conftest && (./conftest; exit) 2>/dev/null; then
    31483151  ac_cv_sizeof_voidp=`cat conftestval`
     
    33023305s%@INSTALL_DATA@%$INSTALL_DATA%g
    33033306s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
     3307s%@HAVE_MPSR@%$HAVE_MPSR%g
    33043308s%@NEED_LIBS@%$NEED_LIBS%g
    33053309s%@ALLOCA@%$ALLOCA%g
  • Singular/configure.in

    r1eed4e r126cfa  
    220220      AC_DEFINE(HAVE_MPSR)
    221221      NEED_LIBS="-lMPT -lMP ${NEED_LIBS}"
     222      HAVE_MPSR=HAVE_MP
    222223    elif test "$enable_MP" = yes; then
    223224      AC_DEFINE(HAVE_MPSR)
    224225      NEED_LIBS="-lMPT -lMP ${NEED_LIBS}"
     226      HAVE_MPSR=HAVE_MP
    225227      AC_MSG_WARN(install MP before making Singular or configure --without-MP)
    226228    else
     
    229231  fi
    230232fi
     233AC_SUBST(HAVE_MPSR)
    231234
    232235dnl Check factory
  • Singular/mpsr_GetPoly.cc

    r1eed4e r126cfa  
    33****************************************/
    44
    5 /* $Id: mpsr_GetPoly.cc,v 1.6 1997-05-02 22:09:27 obachman Exp $ */
     5/* $Id: mpsr_GetPoly.cc,v 1.7 1997-05-04 11:11:53 obachman Exp $ */
    66
    77/***************************************************************
     
    7474static void        SetGetFuncs(ring r);
    7575static mpsr_Status_t GetModuloNumber(MP_Link_pt link, number *a);
     76static mpsr_Status_t GetGaloisNumber(MP_Link_pt link, number *a);
    7677static mpsr_Status_t GetFloatNumber(MP_Link_pt link, number *a);
    7778static mpsr_Status_t GetApInt(MP_Link_pt link, mpz_ptr ap);
     
    118119    GetCoeff = GetRationalNumber;
    119120  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  }
    123127  else if ((r->ch) == -1)
    124128    GetCoeff = GetFloatNumber;
     
    154158  *a=npInit((int)x);
    155159  return mpsr_Success;
     160}
     161
     162static mpsr_Status_t GetGaloisNumber(MP_Link_pt link, number *a)
     163{
     164  mp_return(IMP_GetUint32(link, (MP_Uint32_t *) a));
    156165}
    157166
  • Singular/mpsr_PutPoly.cc

    r1eed4e r126cfa  
    33****************************************/
    44
    5 /* $Id: mpsr_PutPoly.cc,v 1.6 1997-05-02 22:09:29 obachman Exp $ */
     5/* $Id: mpsr_PutPoly.cc,v 1.7 1997-05-04 11:11:54 obachman Exp $ */
    66
    77/***************************************************************
     
    161161  // Now we have a fraction
    162162  // normalize, if necessary
    163   if ((a->s) == 2)
     163  if ((a->s) == 0)
     164  {
    164165    nlNormalize(a);
     166    return PutRationalNumber(link, a);
     167  }
     168 
    165169  // send number itself
    166170  mp_failr(MP_PutCommonOperatorPacket(link,
Note: See TracChangeset for help on using the changeset viewer.