Changeset 6b32990 in git
- Timestamp:
- Dec 12, 2000, 9:44:55 AM (22 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a657104b677b4c461d018cbf3204d72d34ad66a9')
- Children:
- de7793b9aaa39c2f00b6e30ee4ad5c82915497aa
- Parents:
- 52ea3f939ec0aa2915d2d6a747bab3976eb9bfb7
- Location:
- Singular
- Files:
-
- 5 added
- 1 deleted
- 31 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
Singular/LIB/tst.lib
r52ea3f r6b32990 1 // $Id: tst.lib,v 1.2 7 2000-09-25 10:44:50obachman Exp $1 // $Id: tst.lib,v 1.28 2000-12-12 08:44:55 obachman Exp $ 2 2 //(obachman, last modified 6/30/98) 3 3 ///////////////////////////////////////////////////////////////////////////// 4 4 5 version="$Id: tst.lib,v 1.2 7 2000-09-25 10:44:50obachman Exp $";5 version="$Id: tst.lib,v 1.28 2000-12-12 08:44:55 obachman Exp $"; 6 6 info=" 7 7 LIBRARY: tst.lib PROCEDURES FOR RUNNING AUTOMATIC TST TESTS … … 34 34 s = read(tmpfile); 35 35 errno = system("sh", "rm -f " + tmpfile); 36 if (size(#) > 0 )37 { 38 36 if (size(#) > 0 && size(s) > 1) 37 { 38 s = s[1, size(s) -1]; 39 39 } 40 40 return (s); -
Singular/Makefile.in
r52ea3f r6b32990 61 61 STATIC_LDFLAGS = @STATIC_LDFLAGS@ 62 62 LIBS = -lm @NEED_LIBS@ 63 MP_LIBS = @MP_LIBS@ 63 64 DL_KERNEL = @DL_KERNEL@ 65 HAVE_MPSR = @HAVE_MPSR@ 64 66 65 67 ifdef LD_STATIC 66 68 LDFLAGS := ${STATIC_LDFLAGS} ${LDFLAGS} 67 69 SING_EXEC = Singular-static 70 LIBS := ${MP_LIBS} ${LIBS} 68 71 DL_KERNEL = 69 72 else … … 72 75 endif 73 76 77 # CXXFLAGS = -g -Wall -Wno-unused 78 # CFLAGS = -g -Wall -Wno-unused 74 79 ## 75 80 ## End configuration dependend stuff … … 95 100 fglm.cc fglmzero.cc fglmvec.cc fglmgauss.cc fglmhom.cc fglmcomb.cc \ 96 101 numbers.cc polys.cc p_polys.cc polys0.cc polys1.cc polys-impl.cc \ 97 ring.cc shortfl.cc silink.cc sing_mp.cc\ 98 sing_dbm.cc kspoly.cc \ 102 ring.cc shortfl.cc silink.cc kspoly.cc \ 99 103 subexpr.cc syz.cc syz0.cc syz1.cc syz2.cc syz3.cc\ 100 104 timer.cc weight.cc \ 101 mpsr_Put.cc mpsr_PutPoly.cc mpsr_GetPoly.cc \102 mpsr_Get.cc mpsr_GetMisc.cc mpsr_Error.cc \103 105 GMPrat.cc multicnt.cc npolygon.cc semic.cc spectrum.cc splist.cc \ 104 ndbm.cclibparse.cc mod_raw.cc \106 libparse.cc mod_raw.cc \ 105 107 pcv.cc kbuckets.cc\ 106 108 mpr_inout.cc mpr_base.cc mpr_numeric.cc \ … … 109 111 pShallowCopyDelete.cc 110 112 113 # stuff for MP 114 MPSR_SOURCES = mpsr_Put.cc mpsr_PutPoly.cc mpsr_GetPoly.cc mpsr_sl.cc\ 115 mpsr_Get.cc mpsr_GetMisc.cc mpsr_Error.cc \ 116 117 # stuff for dbm 118 DBMSR_SOURCES = ndbm.cc sing_dbm.cc 119 111 120 # normal C source files 112 121 CSOURCES=weight0.c fegetopt.c fereadl.c page.c feOpenWinntUrl.c dError.c mmstd.c 113 122 114 115 123 # C++ sources which are used if part of the kernel are dynamically linked 116 DL_KERNEL_SOURCES=p_Procs_Dynamic.cc 124 DL_KERNEL_SOURCES=p_Procs_Dynamic.cc slInit_Dynamic.cc 117 125 118 126 # C++ sources which are used for dynamic libraries if part of the kernel is 119 127 # dynamically linked 120 DL_LIB_SOURCES=p_Procs_Lib.cc 128 DL_LIB_SOURCES=p_Procs_Lib.cc 121 129 122 130 # C++ sources which are used if no parts of the kernel are dynamically linked 123 STATIC_SOURCES=p_Procs_Static.cc 131 STATIC_SOURCES=p_Procs_Static.cc slInit_Static.cc 132 133 # C++ sources for which both, shared and static object files are needed 134 COMMON_SOURCES = $(MPSR_SOURCES) $(DBMSR_SOURCES) 124 135 125 136 # special C++ source files (need extra compiling and/or linking), for which 126 137 # dependencies should be generated 127 ESOURCES=mmalloc.cc iparith.cc \128 $(DL_KERNEL_SOURCES) $(DL_LIB_SOURCES) $(STATIC_SOURCES) 129 130 SOURCES=${CSOURCES} ${CXXSOURCES} ${ESOURCES}\138 ESOURCES=mmalloc.cc iparith.cc $(COMMON_SOURCES) \ 139 $(DL_KERNEL_SOURCES) $(DL_LIB_SOURCES) $(STATIC_SOURCES) 140 141 SOURCES=${CSOURCES} ${CXXSOURCES} \ 131 142 grammar.y scanner.l libparse.l syz2.cc prCopyTemplate.cc \ 132 143 p_Delete__Template.cc p_ShallowCopyDelete__Template.cc \ … … 149 160 ffields.h khstd.h silink.h sparsmat.h gnumpfl.h gnumpc.h \ 150 161 fglm.h kstd1.h modulop.h sing_dbm.h weight.h \ 151 fglmgauss.h fglmvec.h mpsr.h sing_mp.h\162 fglmgauss.h fglmvec.h mpsr.h mpsr_sl.h\ 152 163 kstdfac.h mpsr_Get.h kmatrix.h\ 153 164 kutil.h mpsr_Put.h\ 154 ndbm.h polys-impl.h libparse.h \165 ndbm.h dbm_sl.h polys-impl.h libparse.h \ 155 166 GMPrat.h multicnt.h npolygon.h semic.h spectrum.h splist.h multicnt.h \ 156 167 pcv.h mod_raw.h kbuckets.h \ … … 174 185 endif 175 186 187 P_PROCS_MODULES = FieldZp FieldIndep FieldQ FieldGeneral 188 176 189 ifeq ($(DL_KERNEL),1) 177 OBJS := $(OBJS) $(DL_KERNEL_SOURCES:.cc=.o) 178 DL_LIBS=p_Procs.so 190 OBJS := $(OBJS) $(DL_KERNEL_SOURCES:.cc=.o) 191 DBMSR_SO= dbmsr.so 192 DL_LIBS := $(P_PROCS_MODULES:%=p_Procs_%.so) $(DBMSR_SO) 193 ifeq ($(HAVE_MPSR), 1) 194 MPSR_SO = mpsr.so 195 DL_LIBS := $(DL_LIBS) $(MPSR_SO) 196 endif 179 197 else 180 OBJS := $(OBJS) $(STATIC_SOURCES:.cc=.o) 198 ifndef LD_STATIC 199 LIBS := $(MP_LIBS) $(LIBS) 200 endif 201 OBJS := $(OBJS) $(STATIC_SOURCES:.cc=.o) $(COMMON_SOURCES:.c=.o) 181 202 DL_LIBS= 182 203 endif … … 225 246 226 247 # building objects for shared libraries 248 p_Procs_Lib_%.dl_o : p_Procs_Lib.cc p_Procs_Dynamic.o 249 ${CXX} ${CXXFLAGS} ${CXXTEMPLFLAGS} ${CPPFLAGS} ${DEFS} ${SFLAGS} -Dp_Procs_$* -c $< -o $@ 250 227 251 %.dl_o : %.cc 228 252 ${CXX} ${CXXFLAGS} ${CXXTEMPLFLAGS} ${CPPFLAGS} ${DEFS} ${SFLAGS} -c $< -o $@ … … 231 255 all: $(SING_EXEC) 232 256 233 Singular-static: mod2.h Makefile version.h scanner.cc \ 234 ${OBJS} iparith.o tesths.cc libparse.cc claptmpl.o mpsr_Tok.o 257 Singular-static: version.h 235 258 sleep 1 236 259 echo "#define HAVE_STATIC" > static.h 237 ${MAKE} LD_STATIC=1 S ingular260 ${MAKE} LD_STATIC=1 S_EXT="-static" Singular-static 238 261 echo "#undef HAVE_STATIC" > static.h 239 ${INSTALL_PROGRAM} Singular Singular-static 240 241 Singular: mod2.h Makefile version.h scanner.cc ${OBJS} mmalloc.o \ 262 263 Singular${S_EXT}: mod2.h Makefile version.h scanner.cc ${OBJS} mmalloc.o \ 242 264 iparith.o tesths.cc libparse.cc claptmpl.o mpsr_Tok.o $(DL_LIBS) 243 265 ${CXX} ${CXXFLAGS} ${CPPFLAGS} ${CXXTEMPLFLAGS} ${DEFS} \ 244 -o Singular \266 -o Singular${S_EXT} \ 245 267 tesths.cc iparith.o mpsr_Tok.o claptmpl.o\ 246 268 ${OBJS} ${LDFLAGS} ${LIBS} -lomalloc_ndebug mmalloc.o 247 269 248 270 %.static: version.h 249 test -r $* && cp $* save_$* 250 ${MAKE} DL_KERNEL=0 $* 251 ${INSTALL_PROGRAM} $* $*.static 252 rm -f $* 253 test -r save_$* && mv save_$* $* 271 ${MAKE} DL_KERNEL=0 S_EXT=".static" $@ 254 272 255 273 iparith.o mpsr_Tok.o : iparith.inc mpsr_Tok.inc … … 325 343 p_Procs_Static.o: p_Procs_Static.inc 326 344 p_Procs_Static.inc: p_Procs_Static.h 327 p_Procs_Dynamic.o: p_Procs_Dynamic.inc 328 p_Procs_Lib.o: p_Procs_Lib.inc 345 p_Procs_Dynamic.o p_Procs_Lib.o: p_Procs_Dynamic.inc 329 346 p_Procs_Dynamic.inc p_Procs_Lib.inc: p_Procs_Dynamic.h 330 347 331 # here is how p_Procs_[Static|Dynamic |Lib].inc is generated332 p_Procs_%.inc: 348 # here is how p_Procs_[Static|Dynamic].inc is generated 349 p_Procs_%.inc: p_Procs_Generate.cc p_Procs_Impl.h mod2.h 333 350 $(CXX) -g -Wall -Dp_Procs_$* p_Procs_Generate.cc -o p_Procs_$* 334 351 ./p_Procs_$* > p_Procs_$*.inc 335 352 336 353 337 p_Procs .so: p_Procs_Lib.dl_o354 p_Procs_%.so: p_Procs_Lib_%.dl_o 338 355 ${CXX} ${CXXFLAGS} ${SFLAGS} ${SLDFLAGS} $< -o $@ 356 357 mpsr.so: $(MPSR_SOURCES:.cc=.dl_o) 358 ${CXX} ${CXXFLAGS} ${SFLAGS} ${SLDFLAGS} ${LDFLAGS} -o $@ $^ ${MP_LIBS} 359 360 dbmsr.so: $(DBMSR_SOURCES:.cc=.dl_o) 361 ${CXX} ${CXXFLAGS} ${SFLAGS} ${SLDFLAGS} ${LDFLAGS} -o $@ $^ ${MP_LIBS} 339 362 340 363 src: scanner.cc grammar.h grammar.cc libparse.cc … … 511 534 OBJA=$(OBJA1) $(OBJA2) 512 535 536 DL_TAILG=\"sog\" 537 DL_TAILP=\"sop\" 538 DL_TAILB=\"sob\" 539 DL_TAILT=\"sot\" 540 DL_TAILA=\"soa\" 541 542 513 543 ifeq ($(DL_KERNEL),1) 514 544 515 545 OBJG := $(OBJG) $(DL_KERNEL_SOURCES:.cc=.og) 516 DL_LIBSG=p_Procs.sog 517 DL_TAILG=\"sog\" 546 DL_LIBSG := $(P_PROCS_MODULES:%=p_Procs_%.sog) $(MPSR_SO:%.so=%.sog) $(DBMSR_SO:%.so=%.sog) 518 547 519 548 OBJP := $(OBJP) $(DL_KERNEL_SOURCES:.cc=.op) 520 DL_LIBSP=p_Procs.sop 521 DL_TAILP=\"sop\" 549 DL_LIBSP := $(P_PROCS_MODULES:%=p_Procs_%.sop) $(MPSR_SO:%.so=%.sop) $(DBMSR_SO:%.so=%.sop) 522 550 523 551 OBJB := $(OBJB) $(DL_KERNEL_SOURCES:.cc=.ob) 524 DL_LIBSB=p_Procs.sob 525 DL_TAILB=\"sob\" 552 DL_LIBSB := $(P_PROCS_MODULES:%=p_Procs_%.sob) $(MPSR_SO:%.so=%.sob) $(DBMSR_SO:%.so=%.sob) 526 553 527 554 OBJT := $(OBJT) $(DL_KERNEL_SOURCES:.cc=.ot) 528 DL_LIBST=p_Procs.sot 529 DL_TAILT=\"sot\" 555 DL_LIBST := $(P_PROCS_MODULES:%=p_Procs_%.sot) $(MPSR_SO:%.so=%.sot) $(DBMSR_SO:%.so=%.sot) 530 556 531 557 OBJA := $(OBJA) $(DL_KERNEL_SOURCES:.cc=.oa) 532 DL_LIBSA=p_Procs.soa 533 DL_TAILA=\"soa\" 558 DL_LIBSA := $(P_PROCS_MODULES:%=p_Procs_%.soa) $(MPSR_SO:%.so=%.soa) $(DBMSR_SO:%.so=%.soa) 534 559 535 560 else 536 561 537 OBJG := $(OBJG) $(STATIC_SOURCES:.cc=.og) 562 OBJG := $(OBJG) $(STATIC_SOURCES:.cc=.og) $(COMMON_SOURCES:.cc=.og) 538 563 DL_LIBSG= 539 564 540 OBJP := $(OBJP) $(STATIC_SOURCES:.cc=.op) 565 OBJP := $(OBJP) $(STATIC_SOURCES:.cc=.op) $(COMMON_SOURCES:.cc=.op) 541 566 DL_LIBSP= 542 567 543 OBJB := $(OBJB) $(STATIC_SOURCES:.cc=.ob) 568 OBJB := $(OBJB) $(STATIC_SOURCES:.cc=.ob) $(COMMON_SOURCES:.cc=.ob) 544 569 DL_LIBSB= 545 570 546 OBJT := $(OBJT) $(STATIC_SOURCES:.cc=.ot) 571 OBJT := $(OBJT) $(STATIC_SOURCES:.cc=.ot) $(COMMON_SOURCES:.cc=.ot) 547 572 DL_LIBST= 548 573 549 OBJA := $(OBJA) $(STATIC_SOURCES:.cc=.oa) 574 OBJA := $(OBJA) $(STATIC_SOURCES:.cc=.oa) $(COMMON_SOURCES:.cc=.oa) 550 575 DL_LIBST= 551 576 … … 571 596 ## 572 597 573 p_Procs .sog: p_Procs_Lib.dl_og598 p_Procs_%.sog: p_Procs_Lib_%.dl_og 574 599 ${CXXG} ${CXXFLAGSG} ${SFLAGS} ${SLDFLAGS} $< -o $@ 575 600 601 p_Procs_Lib_%.dl_og : p_Procs_Lib.cc p_Procs_Dynamic.og 602 ${CXX} ${CXXFLAGSG} ${CXXTEMPLFLAGS} ${CPPFLAGS} ${DEFS} ${SFLAGS} -Dp_Procs_$* -c $< -o $@ 576 603 577 604 %.dl_og: %.cc 578 605 ${CXXG} ${CXXFLAGSG} ${CXXTEMPLFLAGSG} ${CPPFLAGS} ${DEFSG} ${SFLAGS} -c $< -o $@ 579 606 607 mpsr.sog: $(MPSR_SOURCES:.cc=.dl_og) 608 ${CXXG} ${CXXFLAGSG} ${SFLAGS} ${SLDFLAGS} ${LDFLAGS} -o $@ $^ ${MP_LIBS} 609 610 dbmsr.sog: $(DBMSR_SOURCES:.cc=.dl_og) 611 ${CXXG} ${CXXFLAGSG} ${SFLAGS} ${SLDFLAGS} ${LDFLAGS} -o $@ $^ ${MP_LIBS} 612 580 613 claptmpl.og: claptmpl.cc mod2.h 581 614 $(CXXG) ${CXXFLAGSG} ${CPPFLAGS} ${DEFSG} -c $< -o $@ … … 587 620 $(CCG) ${CFLAGSG} ${CPPFLAGS} ${DEFSG} -c $< -o $@ 588 621 589 Singularg : scanner.cc $(OBJG) mmalloc.og $(DL_LIBSG)\622 Singularg${S_EXT}: scanner.cc $(OBJG) mmalloc.og $(DL_LIBSG)\ 590 623 iparith.og mpsr_Tok.og claptmpl.og tesths.cc version.h 591 $(CXXG) ${CXXFLAGSG} ${CXXTEMPLFLAGSG} ${CPPFLAGS} ${DEFSG} -o Singularg \624 $(CXXG) ${CXXFLAGSG} ${CXXTEMPLFLAGSG} ${CPPFLAGS} ${DEFSG} -o Singularg${S_EXT} \ 592 625 tesths.cc iparith.og mpsr_Tok.og claptmpl.og $(OBJG) ${LDFLAGS} ${LIBS} -lomalloc mmalloc.og \ 593 626 ${LD_DYN_FLAGS} ${LD_LIBC} … … 644 677 645 678 ## for gprof 646 p_Procs .sop: p_Procs_Lib.dl_op679 p_Procs_%.sop: p_Procs_Lib_%.dl_op 647 680 ${CXXP} ${CXXFLAGSP} ${SFLAGS} ${SLDFLAGS} $< -o $@ 681 682 p_Procs_Lib_%.dl_op : p_Procs_Lib.cc p_Procs_Dynamic.op 683 ${CXX} ${CXXFLAGS} ${CXXTEMPLFLAGS} ${CPPFLAGS} ${DEFS} ${SFLAGS} -Dp_Procs_$* -c $< -o $@ 648 684 649 685 %.dl_op: %.cc … … 651 687 652 688 689 mpsr.sop: $(MPSR_SOURCES:.cc=.dl_op) 690 ${CXXP} ${CXXFLAGSP} ${SFLAGS} ${SLDFLAGS} ${LDFLAGS} -o $@ $^ ${MP_LIBS} 691 692 dbmsr.sop: $(DBMSR_SOURCES:.cc=.dl_op) 693 ${CXXP} ${CXXFLAGSP} ${SFLAGS} ${SLDFLAGS} ${LDFLAGS} -o $@ $^ ${MP_LIBS} 694 653 695 claptmpl.op: claptmpl.cc mod2.h 654 696 $(CXXP) ${CXXFLAGSP} ${CPPFLAGS} ${DEFSP} -c $< -o $@ … … 660 702 $(CCP) ${CFLAGSP} ${CPPFLAGS} ${DEFSP} -c $< -o $@ 661 703 662 Singularp : scanner.cc $(OBJP) mmalloc.op\704 Singularp${S_EXT}: scanner.cc $(OBJP) mmalloc.op\ 663 705 iparith.op mpsr_Tok.op claptmpl.op tesths.cc version.h $(DL_LIBSP) 664 $(CXXP) ${CXXFLAGSP} ${CXXTEMPLFLAGSP} ${CPPFLAGS} ${DEFSP} -o Singularp \706 $(CXXP) ${CXXFLAGSP} ${CXXTEMPLFLAGSP} ${CPPFLAGS} ${DEFSP} -o Singularp${S_EXT} \ 665 707 tesths.cc iparith.op mpsr_Tok.op claptmpl.op $(OBJP) ${LDFLAGSP} ${LIBS} -lomalloc_p mmalloc.op\ 666 708 ${LD_DYN_FLAGS} … … 674 716 675 717 ## for bprof 676 p_Procs .sob: p_Procs_Lib.dl_ob718 p_Procs_%.sob: p_Procs_Lib_%.dl_ob 677 719 ${CXXP} ${CXXFLAGSB} ${SFLAGS} ${SLDFLAGS} $< -o $@ 678 720 721 p_Procs_Lib_%.dl_ob : p_Procs_Lib.cc p_Procs_Dynamic.ob 722 ${CXX} ${CXXFLAGS} ${CXXTEMPLFLAGS} ${CPPFLAGS} ${DEFS} ${SFLAGS} -Dp_Procs_$* -c $< -o $@ 679 723 680 724 %.dl_ob: %.cc 681 725 ${CXXP} ${CXXFLAGSB} ${CXXTEMPLFLAGS} ${CPPFLAGS} ${DEFSB} ${SFLAGS} -c $< -o $@ 682 726 727 mpsr.sob: $(MPSR_SOURCES:.cc=.dl_ob) 728 ${CXXP} ${CXXFLAGSB} ${SFLAGS} ${SLDFLAGS} ${LDFLAGS} -o $@ $^ ${MP_LIBS} 729 730 dbmsr.sob: $(DBMSR_SOURCES:.cc=.dl_ob) 731 ${CXXP} ${CXXFLAGSB} ${SFLAGS} ${SLDFLAGS} ${LDFLAGS} -o $@ $^ ${MP_LIBS} 683 732 684 733 claptmpl.ob: claptmpl.cc mod2.h … … 691 740 $(CCP) ${CFLAGSP} ${CPPFLAGS} ${DEFSB} -c $< -o $@ 692 741 693 Singularb : scanner.cc $(OBJB) iparith.ob mpsr_Tok.ob claptmpl.ob tesths.cc version.h mmalloc.ob694 $(CXXP) ${CXXFLAGSP} ${CPPFLAGS} ${DEFSB} -o Singularb \742 Singularb${S_EXT}: scanner.cc $(OBJB) iparith.ob mpsr_Tok.ob claptmpl.ob tesths.cc version.h mmalloc.ob 743 $(CXXP) ${CXXFLAGSP} ${CPPFLAGS} ${DEFSB} -o Singularb${S_EXT} \ 695 744 tesths.cc iparith.ob mpsr_Tok.ob claptmpl.ob $(OBJB) $(BPROFOBJ) \ 696 745 ${LDFLAGSP} ${LIBS} -lomalloc_ndebug mmalloc.ob ${LD_DYN_FLAGS} … … 705 754 # for mtrack 706 755 # 707 p_Procs.sot: p_Procs_Lib.dl_ot 708 ${CXXP} ${CXXFLAGST} ${SFLAGS} ${SLDFLAGS} $< -o $@ 756 p_Procs_%.sot: p_Procs_Lib_%.dl_ot 757 ${CXX} ${CXXFLAGST} ${SFLAGS} ${SLDFLAGS} $< -o $@ 758 759 p_Procs_Lib_%.dl_ot : p_Procs_Lib.cc p_Procs_Dynamic.ot 760 ${CXX} ${CXXFLAGS} ${CXXTEMPLFLAGS} ${CPPFLAGS} ${DEFS} ${SFLAGS} -Dp_Procs_$* -c $< -o $@ 709 761 710 762 %.dl_ot: %.cc 711 763 ${CXXP} ${CXXFLAGST} ${CXXTEMPLFLAGS} ${CPPFLAGS} ${DEFST} ${SFLAGS} -c $< -o $@ 712 764 765 mpsr.sot: $(MPSR_SOURCES:.cc=.dl_ot) 766 ${CXX} ${CXXFLAGST} ${SFLAGS} ${SLDFLAGS} ${LDFLAGS} -o $@ $^ ${MP_LIBS} 767 768 dbmsr.sot: $(DBMSR_SOURCES:.cc=.dl_ot) 769 ${CXX} ${CXXFLAGST} ${SFLAGS} ${SLDFLAGS} ${LDFLAGS} -o $@ $^ ${MP_LIBS} 713 770 714 771 claptmpl.ot: claptmpl.cc mod2.h … … 721 778 $(CCP) ${CFLAGST} ${CPPFLAGS} ${DEFST} -c $< -o $@ 722 779 723 Singulart : scanner.cc $(OBJT) iparith.ot mpsr_Tok.ot claptmpl.ot tesths.cc version.h mmalloc.ot724 $(CXXP) ${CXXFLAGST} ${CPPFLAGS} ${DEFST} -o Singulart \780 Singulart${S_EXT}: scanner.cc $(OBJT) iparith.ot mpsr_Tok.ot claptmpl.ot tesths.cc version.h mmalloc.ot 781 $(CXXP) ${CXXFLAGST} ${CPPFLAGS} ${DEFST} -o Singulart${S_EXT} \ 725 782 tesths.cc iparith.ot mpsr_Tok.ot claptmpl.ot $(OBJT) ${LDFLAGST} ${LIBS} -lomalloc mmalloc.ot \ 726 783 ${LD_DYN_FLAGS} … … 740 797 CXXFLAGSA = -g -O -Wall -Wno-unused ${PIPE} 741 798 742 p_Procs .soa: p_Procs_Lib.dl_oa799 p_Procs_%.soa: p_Procs_Lib_%.dl_oa 743 800 ${CXX} ${CXXFLAGSA} ${SFLAGS} ${SLDFLAGS} $< -o $@ 801 802 p_Procs_Lib_%.dl_oa : p_Procs_Lib.cc p_Procs_Dynamic.oa 803 ${CXX} ${CXXFLAGS} ${CXXTEMPLFLAGS} ${CPPFLAGS} ${DEFS} ${SFLAGS} -Dp_Procs_$* -c $< -o $@ 744 804 745 805 %.dl_oa: %.cc 746 806 ${CXX} ${CXXFLAGSA} ${CXXTEMPLFLAGS} ${CPPFLAGS} ${DEFSA} ${SFLAGS} -c $< -o $@ 747 807 808 mpsr.soa: $(MPSR_SOURCES:.cc=.dl_oa) 809 ${CXX} ${CXXFLAGSA} ${SFLAGS} ${SLDFLAGS} ${LDFLAGS} -o $@ $^ ${MP_LIBS} 810 811 dbmsr.soa: $(DBMSR_SOURCES:.cc=.dl_oa) 812 ${CXX} ${CXXFLAGSA} ${SFLAGS} ${SLDFLAGS} ${LDFLAGS} -o $@ $^ ${MP_LIBS} 813 814 748 815 claptmpl.oa: claptmpl.cc mod2.h 749 816 $(CXX) ${CXXFLAGSA} ${CPPFLAGS} ${DEFSA} -c $< -o $@ … … 755 822 $(CCP) ${CFLAGSA} ${CPPFLAGS} ${DEFSA} -c $< -o $@ 756 823 757 Singulara : scanner.cc $(OBJA) iparith.oa mpsr_Tok.oa claptmpl.oa tesths.cc version.h mmalloc.oa $(DL_LIBSA)758 $(CXXP) ${CXXFLAGSA} ${CPPFLAGS} ${DEFSA} -o Singulara \824 Singulara${S_EXT}: scanner.cc $(OBJA) iparith.oa mpsr_Tok.oa claptmpl.oa tesths.cc version.h mmalloc.oa $(DL_LIBSA) 825 $(CXXP) ${CXXFLAGSA} ${CPPFLAGS} ${DEFSA} -o Singulara${S_EXT} \ 759 826 tesths.cc iparith.oa mpsr_Tok.oa claptmpl.oa $(OBJA) ${LDFLAGS} ${LIBS} -lomalloc mmalloc.oa \ 760 827 ${LD_DYN_FLAGS} … … 808 875 809 876 %.d: %.c mod2.h 810 echo $(@:.d=.og) $(@:.d=.od) $(@:.dd=_d.c) $(@:.d=.op) $(@:.d=.ob) $(@:.d=.ot) $(@:.d d=.oa)" " \\ > $@877 echo $(@:.d=.og) $(@:.d=.od) $(@:.dd=_d.c) $(@:.d=.op) $(@:.d=.ob) $(@:.d=.ot) $(@:.d=.oa)" " \\ > $@ 811 878 $(CCM) ${CPPFLAGS} ${DEFSG} $< >> $@ 812 879 -
Singular/configure
r52ea3f r6b32990 1593 1593 fi 1594 1594 1595 SAVE_LIBS=${LIBS} 1596 LIBS= 1595 1597 echo $ac_n "checking for socket in -lbsd""... $ac_c" 1>&6 1596 echo "configure:159 7: checking for socket in -lbsd" >&51598 echo "configure:1599: checking for socket in -lbsd" >&5 1597 1599 ac_lib_var=`echo bsd'_'socket | sed 'y%./+-%__p_%'` 1598 1600 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 1602 1604 LIBS="-lbsd $LIBS" 1603 1605 cat > conftest.$ac_ext <<EOF 1604 #line 160 5"configure"1606 #line 1607 "configure" 1605 1607 #include "confdefs.h" 1606 1608 /* Override any gcc2 internal prototype to avoid an error. */ … … 1613 1615 ; return 0; } 1614 1616 EOF 1615 if { (eval echo configure:161 6: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1617 if { (eval echo configure:1618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1616 1618 rm -rf conftest* 1617 1619 eval "ac_cv_lib_$ac_lib_var=yes" … … 1641 1643 1642 1644 echo $ac_n "checking for listen in -lsocket""... $ac_c" 1>&6 1643 echo "configure:164 4: checking for listen in -lsocket" >&51645 echo "configure:1646: checking for listen in -lsocket" >&5 1644 1646 ac_lib_var=`echo socket'_'listen | sed 'y%./+-%__p_%'` 1645 1647 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 1649 1651 LIBS="-lsocket $LIBS" 1650 1652 cat > conftest.$ac_ext <<EOF 1651 #line 165 2"configure"1653 #line 1654 "configure" 1652 1654 #include "confdefs.h" 1653 1655 /* Override any gcc2 internal prototype to avoid an error. */ … … 1660 1662 ; return 0; } 1661 1663 EOF 1662 if { (eval echo configure:166 3: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1664 if { (eval echo configure:1665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1663 1665 rm -rf conftest* 1664 1666 eval "ac_cv_lib_$ac_lib_var=yes" … … 1688 1690 1689 1691 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 1690 echo "configure:169 1: checking for gethostbyname in -lnsl" >&51692 echo "configure:1693: checking for gethostbyname in -lnsl" >&5 1691 1693 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` 1692 1694 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 1696 1698 LIBS="-lnsl $LIBS" 1697 1699 cat > conftest.$ac_ext <<EOF 1698 #line 1 699"configure"1700 #line 1701 "configure" 1699 1701 #include "confdefs.h" 1700 1702 /* Override any gcc2 internal prototype to avoid an error. */ … … 1707 1709 ; return 0; } 1708 1710 EOF 1709 if { (eval echo configure:171 0: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1711 if { (eval echo configure:1712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1710 1712 rm -rf conftest* 1711 1713 eval "ac_cv_lib_$ac_lib_var=yes" … … 1735 1737 1736 1738 echo $ac_n "checking for index in -lucb""... $ac_c" 1>&6 1737 echo "configure:17 38: checking for index in -lucb" >&51739 echo "configure:1740: checking for index in -lucb" >&5 1738 1740 ac_lib_var=`echo ucb'_'index | sed 'y%./+-%__p_%'` 1739 1741 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 1743 1745 LIBS="-lucb $LIBS" 1744 1746 cat > conftest.$ac_ext <<EOF 1745 #line 174 6"configure"1747 #line 1748 "configure" 1746 1748 #include "confdefs.h" 1747 1749 /* Override any gcc2 internal prototype to avoid an error. */ … … 1754 1756 ; return 0; } 1755 1757 EOF 1756 if { (eval echo configure:175 7: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1758 if { (eval echo configure:1759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1757 1759 rm -rf conftest* 1758 1760 eval "ac_cv_lib_$ac_lib_var=yes" … … 1781 1783 fi 1782 1784 1785 MP_LIBS=${LIBS} 1786 LIBS= 1783 1787 1784 1788 # check for dl lib … … 1786 1790 HPUX*) 1787 1791 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 1788 echo "configure:17 89: checking for shl_load in -ldld" >&51792 echo "configure:1793: checking for shl_load in -ldld" >&5 1789 1793 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` 1790 1794 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 1794 1798 LIBS="-ldld $LIBS" 1795 1799 cat > conftest.$ac_ext <<EOF 1796 #line 1 797"configure"1800 #line 1801 "configure" 1797 1801 #include "confdefs.h" 1798 1802 /* Override any gcc2 internal prototype to avoid an error. */ … … 1805 1809 ; return 0; } 1806 1810 EOF 1807 if { (eval echo configure:18 08: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1811 if { (eval echo configure:1812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1808 1812 rm -rf conftest* 1809 1813 eval "ac_cv_lib_$ac_lib_var=yes" … … 1841 1845 *Linux*) 1842 1846 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 1843 echo "configure:184 4: checking for dlopen in -ldl" >&51847 echo "configure:1848: checking for dlopen in -ldl" >&5 1844 1848 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` 1845 1849 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 1849 1853 LIBS="-ldl $LIBS" 1850 1854 cat > conftest.$ac_ext <<EOF 1851 #line 185 2"configure"1855 #line 1856 "configure" 1852 1856 #include "confdefs.h" 1853 1857 /* Override any gcc2 internal prototype to avoid an error. */ … … 1860 1864 ; return 0; } 1861 1865 EOF 1862 if { (eval echo configure:186 3: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1866 if { (eval echo configure:1867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1863 1867 rm -rf conftest* 1864 1868 eval "ac_cv_lib_$ac_lib_var=yes" … … 1898 1902 1899 1903 1904 LIBS=${SAVE_LIBS} 1900 1905 1901 1906 # heder file checks 1902 1907 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 1903 echo "configure:190 4: checking for ANSI C header files" >&51908 echo "configure:1909: checking for ANSI C header files" >&5 1904 1909 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 1905 1910 echo $ac_n "(cached) $ac_c" 1>&6 1906 1911 else 1907 1912 cat > conftest.$ac_ext <<EOF 1908 #line 19 09"configure"1913 #line 1914 "configure" 1909 1914 #include "confdefs.h" 1910 1915 #include <stdlib.h> … … 1914 1919 EOF 1915 1920 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1916 { (eval echo configure:19 17: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1921 { (eval echo configure:1922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1917 1922 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1918 1923 if test -z "$ac_err"; then … … 1931 1936 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 1932 1937 cat > conftest.$ac_ext <<EOF 1933 #line 193 4"configure"1938 #line 1939 "configure" 1934 1939 #include "confdefs.h" 1935 1940 #include <string.h> … … 1949 1954 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 1950 1955 cat > conftest.$ac_ext <<EOF 1951 #line 195 2"configure"1956 #line 1957 "configure" 1952 1957 #include "confdefs.h" 1953 1958 #include <stdlib.h> … … 1970 1975 else 1971 1976 cat > conftest.$ac_ext <<EOF 1972 #line 197 3"configure"1977 #line 1978 "configure" 1973 1978 #include "confdefs.h" 1974 1979 #include <ctype.h> … … 1981 1986 1982 1987 EOF 1983 if { (eval echo configure:198 4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null1988 if { (eval echo configure:1989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1984 1989 then 1985 1990 : … … 2008 2013 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2009 2014 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2010 echo "configure:201 1: checking for $ac_hdr" >&52015 echo "configure:2016: checking for $ac_hdr" >&5 2011 2016 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2012 2017 echo $ac_n "(cached) $ac_c" 1>&6 2013 2018 else 2014 2019 cat > conftest.$ac_ext <<EOF 2015 #line 20 16"configure"2020 #line 2021 "configure" 2016 2021 #include "confdefs.h" 2017 2022 #include <$ac_hdr> 2018 2023 EOF 2019 2024 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2020 { (eval echo configure:202 1: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }2025 { (eval echo configure:2026: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2021 2026 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2022 2027 if test -z "$ac_err"; then … … 2050 2055 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2051 2056 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2052 echo "configure:205 3: checking for $ac_hdr" >&52057 echo "configure:2058: checking for $ac_hdr" >&5 2053 2058 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2054 2059 echo $ac_n "(cached) $ac_c" 1>&6 2055 2060 else 2056 2061 cat > conftest.$ac_ext <<EOF 2057 #line 20 58"configure"2062 #line 2063 "configure" 2058 2063 #include "confdefs.h" 2059 2064 #include <$ac_hdr> 2060 2065 EOF 2061 2066 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2062 { (eval echo configure:206 3: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }2067 { (eval echo configure:2068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2063 2068 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2064 2069 if test -z "$ac_err"; then … … 2089 2094 # typedefs, structures 2090 2095 echo $ac_n "checking for working const""... $ac_c" 1>&6 2091 echo "configure:209 2: checking for working const" >&52096 echo "configure:2097: checking for working const" >&5 2092 2097 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 2093 2098 echo $ac_n "(cached) $ac_c" 1>&6 2094 2099 else 2095 2100 cat > conftest.$ac_ext <<EOF 2096 #line 2 097"configure"2101 #line 2102 "configure" 2097 2102 #include "confdefs.h" 2098 2103 … … 2143 2148 ; return 0; } 2144 2149 EOF 2145 if { (eval echo configure:21 46: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then2150 if { (eval echo configure:2151: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2146 2151 rm -rf conftest* 2147 2152 ac_cv_c_const=yes … … 2164 2169 2165 2170 echo $ac_n "checking for inline""... $ac_c" 1>&6 2166 echo "configure:21 67: checking for inline" >&52171 echo "configure:2172: checking for inline" >&5 2167 2172 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then 2168 2173 echo $ac_n "(cached) $ac_c" 1>&6 … … 2171 2176 for ac_kw in inline __inline__ __inline; do 2172 2177 cat > conftest.$ac_ext <<EOF 2173 #line 217 4"configure"2178 #line 2179 "configure" 2174 2179 #include "confdefs.h" 2175 2180 … … 2178 2183 ; return 0; } 2179 2184 EOF 2180 if { (eval echo configure:218 1: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then2185 if { (eval echo configure:2186: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2181 2186 rm -rf conftest* 2182 2187 ac_cv_c_inline=$ac_kw; break … … 2204 2209 2205 2210 echo $ac_n "checking for size_t""... $ac_c" 1>&6 2206 echo "configure:22 07: checking for size_t" >&52211 echo "configure:2212: checking for size_t" >&5 2207 2212 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then 2208 2213 echo $ac_n "(cached) $ac_c" 1>&6 2209 2214 else 2210 2215 cat > conftest.$ac_ext <<EOF 2211 #line 221 2"configure"2216 #line 2217 "configure" 2212 2217 #include "confdefs.h" 2213 2218 #include <sys/types.h> … … 2237 2242 2238 2243 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 2239 echo "configure:224 0: checking whether time.h and sys/time.h may both be included" >&52244 echo "configure:2245: checking whether time.h and sys/time.h may both be included" >&5 2240 2245 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then 2241 2246 echo $ac_n "(cached) $ac_c" 1>&6 2242 2247 else 2243 2248 cat > conftest.$ac_ext <<EOF 2244 #line 22 45"configure"2249 #line 2250 "configure" 2245 2250 #include "confdefs.h" 2246 2251 #include <sys/types.h> … … 2251 2256 ; return 0; } 2252 2257 EOF 2253 if { (eval echo configure:225 4: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then2258 if { (eval echo configure:2259: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2254 2259 rm -rf conftest* 2255 2260 ac_cv_header_time=yes … … 2272 2277 2273 2278 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 2274 echo "configure:22 75: checking whether struct tm is in sys/time.h or time.h" >&52279 echo "configure:2280: checking whether struct tm is in sys/time.h or time.h" >&5 2275 2280 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then 2276 2281 echo $ac_n "(cached) $ac_c" 1>&6 2277 2282 else 2278 2283 cat > conftest.$ac_ext <<EOF 2279 #line 228 0"configure"2284 #line 2285 "configure" 2280 2285 #include "confdefs.h" 2281 2286 #include <sys/types.h> … … 2285 2290 ; return 0; } 2286 2291 EOF 2287 if { (eval echo configure:22 88: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then2292 if { (eval echo configure:2293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2288 2293 rm -rf conftest* 2289 2294 ac_cv_struct_tm=time.h … … 2310 2315 # for constant arguments. Useless! 2311 2316 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 2312 echo "configure:231 3: checking for working alloca.h" >&52317 echo "configure:2318: checking for working alloca.h" >&5 2313 2318 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then 2314 2319 echo $ac_n "(cached) $ac_c" 1>&6 2315 2320 else 2316 2321 cat > conftest.$ac_ext <<EOF 2317 #line 23 18"configure"2322 #line 2323 "configure" 2318 2323 #include "confdefs.h" 2319 2324 #include <alloca.h> … … 2322 2327 ; return 0; } 2323 2328 EOF 2324 if { (eval echo configure:23 25: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2329 if { (eval echo configure:2330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2325 2330 rm -rf conftest* 2326 2331 ac_cv_header_alloca_h=yes … … 2343 2348 2344 2349 echo $ac_n "checking for alloca""... $ac_c" 1>&6 2345 echo "configure:23 46: checking for alloca" >&52350 echo "configure:2351: checking for alloca" >&5 2346 2351 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then 2347 2352 echo $ac_n "(cached) $ac_c" 1>&6 2348 2353 else 2349 2354 cat > conftest.$ac_ext <<EOF 2350 #line 235 1"configure"2355 #line 2356 "configure" 2351 2356 #include "confdefs.h" 2352 2357 … … 2376 2381 ; return 0; } 2377 2382 EOF 2378 if { (eval echo configure:23 79: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2383 if { (eval echo configure:2384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2379 2384 rm -rf conftest* 2380 2385 ac_cv_func_alloca_works=yes … … 2408 2413 2409 2414 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 2410 echo "configure:241 1: checking whether alloca needs Cray hooks" >&52415 echo "configure:2416: checking whether alloca needs Cray hooks" >&5 2411 2416 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then 2412 2417 echo $ac_n "(cached) $ac_c" 1>&6 2413 2418 else 2414 2419 cat > conftest.$ac_ext <<EOF 2415 #line 24 16"configure"2420 #line 2421 "configure" 2416 2421 #include "confdefs.h" 2417 2422 #if defined(CRAY) && ! defined(CRAY2) … … 2438 2443 for ac_func in _getb67 GETB67 getb67; do 2439 2444 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2440 echo "configure:244 1: checking for $ac_func" >&52445 echo "configure:2446: checking for $ac_func" >&5 2441 2446 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2442 2447 echo $ac_n "(cached) $ac_c" 1>&6 2443 2448 else 2444 2449 cat > conftest.$ac_ext <<EOF 2445 #line 24 46"configure"2450 #line 2451 "configure" 2446 2451 #include "confdefs.h" 2447 2452 /* System header to define __stub macros and hopefully few prototypes, … … 2466 2471 ; return 0; } 2467 2472 EOF 2468 if { (eval echo configure:24 69: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2473 if { (eval echo configure:2474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2469 2474 rm -rf conftest* 2470 2475 eval "ac_cv_func_$ac_func=yes" … … 2493 2498 2494 2499 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 2495 echo "configure:2 496: checking stack direction for C alloca" >&52500 echo "configure:2501: checking stack direction for C alloca" >&5 2496 2501 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then 2497 2502 echo $ac_n "(cached) $ac_c" 1>&6 … … 2501 2506 else 2502 2507 cat > conftest.$ac_ext <<EOF 2503 #line 250 4"configure"2508 #line 2509 "configure" 2504 2509 #include "confdefs.h" 2505 2510 find_stack_direction () … … 2520 2525 } 2521 2526 EOF 2522 if { (eval echo configure:252 3: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null2527 if { (eval echo configure:2528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2523 2528 then 2524 2529 ac_cv_c_stack_direction=1 … … 2543 2548 if test $ac_cv_prog_gcc = yes; then 2544 2549 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 2545 echo "configure:25 46: checking whether ${CC-cc} needs -traditional" >&52550 echo "configure:2551: checking whether ${CC-cc} needs -traditional" >&5 2546 2551 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then 2547 2552 echo $ac_n "(cached) $ac_c" 1>&6 … … 2549 2554 ac_pattern="Autoconf.*'x'" 2550 2555 cat > conftest.$ac_ext <<EOF 2551 #line 255 2"configure"2556 #line 2557 "configure" 2552 2557 #include "confdefs.h" 2553 2558 #include <sgtty.h> … … 2567 2572 if test $ac_cv_prog_gcc_traditional = no; then 2568 2573 cat > conftest.$ac_ext <<EOF 2569 #line 257 0"configure"2574 #line 2575 "configure" 2570 2575 #include "confdefs.h" 2571 2576 #include <termio.h> … … 2592 2597 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2593 2598 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2594 echo "configure:2 595: checking for $ac_hdr" >&52599 echo "configure:2600: checking for $ac_hdr" >&5 2595 2600 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2596 2601 echo $ac_n "(cached) $ac_c" 1>&6 2597 2602 else 2598 2603 cat > conftest.$ac_ext <<EOF 2599 #line 260 0"configure"2604 #line 2605 "configure" 2600 2605 #include "confdefs.h" 2601 2606 #include <$ac_hdr> 2602 2607 EOF 2603 2608 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2604 { (eval echo configure:26 05: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }2609 { (eval echo configure:2610: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2605 2610 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2606 2611 if test -z "$ac_err"; then … … 2631 2636 do 2632 2637 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2633 echo "configure:263 4: checking for $ac_func" >&52638 echo "configure:2639: checking for $ac_func" >&5 2634 2639 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2635 2640 echo $ac_n "(cached) $ac_c" 1>&6 2636 2641 else 2637 2642 cat > conftest.$ac_ext <<EOF 2638 #line 26 39"configure"2643 #line 2644 "configure" 2639 2644 #include "confdefs.h" 2640 2645 /* System header to define __stub macros and hopefully few prototypes, … … 2659 2664 ; return 0; } 2660 2665 EOF 2661 if { (eval echo configure:266 2: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2666 if { (eval echo configure:2667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2662 2667 rm -rf conftest* 2663 2668 eval "ac_cv_func_$ac_func=yes" … … 2684 2689 2685 2690 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 2686 echo "configure:26 87: checking for working mmap" >&52691 echo "configure:2692: checking for working mmap" >&5 2687 2692 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then 2688 2693 echo $ac_n "(cached) $ac_c" 1>&6 … … 2692 2697 else 2693 2698 cat > conftest.$ac_ext <<EOF 2694 #line 2 695"configure"2699 #line 2700 "configure" 2695 2700 #include "confdefs.h" 2696 2701 … … 2832 2837 2833 2838 EOF 2834 if { (eval echo configure:28 35: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null2839 if { (eval echo configure:2840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2835 2840 then 2836 2841 ac_cv_func_mmap_fixed_mapped=yes … … 2855 2860 2856 2861 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 2857 echo "configure:28 58: checking return type of signal handlers" >&52862 echo "configure:2863: checking return type of signal handlers" >&5 2858 2863 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then 2859 2864 echo $ac_n "(cached) $ac_c" 1>&6 2860 2865 else 2861 2866 cat > conftest.$ac_ext <<EOF 2862 #line 286 3"configure"2867 #line 2868 "configure" 2863 2868 #include "confdefs.h" 2864 2869 #include <sys/types.h> … … 2877 2882 ; return 0; } 2878 2883 EOF 2879 if { (eval echo configure:288 0: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then2884 if { (eval echo configure:2885: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2880 2885 rm -rf conftest* 2881 2886 ac_cv_type_signal=void … … 2896 2901 2897 2902 echo $ac_n "checking for vprintf""... $ac_c" 1>&6 2898 echo "configure:2 899: checking for vprintf" >&52903 echo "configure:2904: checking for vprintf" >&5 2899 2904 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then 2900 2905 echo $ac_n "(cached) $ac_c" 1>&6 2901 2906 else 2902 2907 cat > conftest.$ac_ext <<EOF 2903 #line 290 4"configure"2908 #line 2909 "configure" 2904 2909 #include "confdefs.h" 2905 2910 /* System header to define __stub macros and hopefully few prototypes, … … 2924 2929 ; return 0; } 2925 2930 EOF 2926 if { (eval echo configure:29 27: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2931 if { (eval echo configure:2932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2927 2932 rm -rf conftest* 2928 2933 eval "ac_cv_func_vprintf=yes" … … 2948 2953 if test "$ac_cv_func_vprintf" != yes; then 2949 2954 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 2950 echo "configure:295 1: checking for _doprnt" >&52955 echo "configure:2956: checking for _doprnt" >&5 2951 2956 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then 2952 2957 echo $ac_n "(cached) $ac_c" 1>&6 2953 2958 else 2954 2959 cat > conftest.$ac_ext <<EOF 2955 #line 29 56"configure"2960 #line 2961 "configure" 2956 2961 #include "confdefs.h" 2957 2962 /* System header to define __stub macros and hopefully few prototypes, … … 2976 2981 ; return 0; } 2977 2982 EOF 2978 if { (eval echo configure:29 79: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2983 if { (eval echo configure:2984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2979 2984 rm -rf conftest* 2980 2985 eval "ac_cv_func__doprnt=yes" … … 3003 3008 do 3004 3009 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3005 echo "configure:30 06: checking for $ac_func" >&53010 echo "configure:3011: checking for $ac_func" >&5 3006 3011 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3007 3012 echo $ac_n "(cached) $ac_c" 1>&6 3008 3013 else 3009 3014 cat > conftest.$ac_ext <<EOF 3010 #line 301 1"configure"3015 #line 3016 "configure" 3011 3016 #include "confdefs.h" 3012 3017 /* System header to define __stub macros and hopefully few prototypes, … … 3031 3036 ; return 0; } 3032 3037 EOF 3033 if { (eval echo configure:303 4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then3038 if { (eval echo configure:3039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3034 3039 rm -rf conftest* 3035 3040 eval "ac_cv_func_$ac_func=yes" … … 3059 3064 # arithmetic shifts 3060 3065 echo $ac_n "checking whether your machine has correct arithmetic shifts""... $ac_c" 1>&6 3061 echo "configure:306 2: checking whether your machine has correct arithmetic shifts" >&53066 echo "configure:3067: checking whether your machine has correct arithmetic shifts" >&5 3062 3067 if eval "test \"`echo '$''{'ac_cv_shift'+set}'`\" = set"; then 3063 3068 echo $ac_n "(cached) $ac_c" 1>&6 … … 3072 3077 else 3073 3078 cat > conftest.$ac_ext <<EOF 3074 #line 30 75"configure"3079 #line 3080 "configure" 3075 3080 #include "confdefs.h" 3076 3081 int main() { if (-2 >> 1 == -1) exit(0); else exit(1); } 3077 3082 EOF 3078 if { (eval echo configure:30 79: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null3083 if { (eval echo configure:3084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3079 3084 then 3080 3085 ac_cv_shift=yes … … 3101 3106 # check for a peculiar constructor initialization 3102 3107 echo $ac_n "checking whether explicit C++ constructor calls are allowed""... $ac_c" 1>&6 3103 echo "configure:310 4: checking whether explicit C++ constructor calls are allowed" >&53108 echo "configure:3109: checking whether explicit C++ constructor calls are allowed" >&5 3104 3109 3105 3110 ac_ext=C … … 3114 3119 else 3115 3120 cat > conftest.$ac_ext <<EOF 3116 #line 31 17"configure"3121 #line 3122 "configure" 3117 3122 #include "confdefs.h" 3118 3123 … … 3132 3137 ; return 0; } 3133 3138 EOF 3134 if { (eval echo configure:31 35: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then3139 if { (eval echo configure:3140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3135 3140 rm -rf conftest* 3136 3141 ac_cv_explicit_const=yes … … 3161 3166 # sprintf returns number of printed chars 3162 3167 echo $ac_n "checking whether vsprintf returns number of printed chars""... $ac_c" 1>&6 3163 echo "configure:316 4: checking whether vsprintf returns number of printed chars" >&53168 echo "configure:3169: checking whether vsprintf returns number of printed chars" >&5 3164 3169 if eval "test \"`echo '$''{'ac_cv_returns_n_of_chars'+set}'`\" = set"; then 3165 3170 echo $ac_n "(cached) $ac_c" 1>&6 … … 3169 3174 else 3170 3175 cat > conftest.$ac_ext <<EOF 3171 #line 317 2"configure"3176 #line 3177 "configure" 3172 3177 #include "confdefs.h" 3173 3178 #include <stdio.h> 3174 3179 main() { char *str=(char*)malloc(20); if (((int) sprintf(str,"123456789")) == 9) exit(0); else exit(1); } 3175 3180 EOF 3176 if { (eval echo configure:31 77: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null3181 if { (eval echo configure:3182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3177 3182 then 3178 3183 ac_cv_returns_n_of_chars=yes … … 3200 3205 # determine ALIGN_8 3201 3206 echo $ac_n "checking size of char""... $ac_c" 1>&6 3202 echo "configure:320 3: checking size of char" >&53207 echo "configure:3208: checking size of char" >&5 3203 3208 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then 3204 3209 echo $ac_n "(cached) $ac_c" 1>&6 … … 3208 3213 else 3209 3214 cat > conftest.$ac_ext <<EOF 3210 #line 321 1"configure"3215 #line 3216 "configure" 3211 3216 #include "confdefs.h" 3212 3217 #include <stdio.h> … … 3219 3224 } 3220 3225 EOF 3221 if { (eval echo configure:322 2: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null3226 if { (eval echo configure:3227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3222 3227 then 3223 3228 ac_cv_sizeof_char=`cat conftestval` … … 3239 3244 3240 3245 echo $ac_n "checking size of short""... $ac_c" 1>&6 3241 echo "configure:324 2: checking size of short" >&53246 echo "configure:3247: checking size of short" >&5 3242 3247 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then 3243 3248 echo $ac_n "(cached) $ac_c" 1>&6 … … 3247 3252 else 3248 3253 cat > conftest.$ac_ext <<EOF 3249 #line 325 0"configure"3254 #line 3255 "configure" 3250 3255 #include "confdefs.h" 3251 3256 #include <stdio.h> … … 3258 3263 } 3259 3264 EOF 3260 if { (eval echo configure:326 1: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null3265 if { (eval echo configure:3266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3261 3266 then 3262 3267 ac_cv_sizeof_short=`cat conftestval` … … 3278 3283 3279 3284 echo $ac_n "checking size of int""... $ac_c" 1>&6 3280 echo "configure:328 1: checking size of int" >&53285 echo "configure:3286: checking size of int" >&5 3281 3286 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then 3282 3287 echo $ac_n "(cached) $ac_c" 1>&6 … … 3286 3291 else 3287 3292 cat > conftest.$ac_ext <<EOF 3288 #line 32 89"configure"3293 #line 3294 "configure" 3289 3294 #include "confdefs.h" 3290 3295 #include <stdio.h> … … 3297 3302 } 3298 3303 EOF 3299 if { (eval echo configure:330 0: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null3304 if { (eval echo configure:3305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3300 3305 then 3301 3306 ac_cv_sizeof_int=`cat conftestval` … … 3317 3322 3318 3323 echo $ac_n "checking size of long""... $ac_c" 1>&6 3319 echo "configure:332 0: checking size of long" >&53324 echo "configure:3325: checking size of long" >&5 3320 3325 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then 3321 3326 echo $ac_n "(cached) $ac_c" 1>&6 … … 3325 3330 else 3326 3331 cat > conftest.$ac_ext <<EOF 3327 #line 33 28"configure"3332 #line 3333 "configure" 3328 3333 #include "confdefs.h" 3329 3334 #include <stdio.h> … … 3336 3341 } 3337 3342 EOF 3338 if { (eval echo configure:33 39: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null3343 if { (eval echo configure:3344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3339 3344 then 3340 3345 ac_cv_sizeof_long=`cat conftestval` … … 3356 3361 3357 3362 echo $ac_n "checking size of void*""... $ac_c" 1>&6 3358 echo "configure:33 59: checking size of void*" >&53363 echo "configure:3364: checking size of void*" >&5 3359 3364 if eval "test \"`echo '$''{'ac_cv_sizeof_voidp'+set}'`\" = set"; then 3360 3365 echo $ac_n "(cached) $ac_c" 1>&6 … … 3364 3369 else 3365 3370 cat > conftest.$ac_ext <<EOF 3366 #line 33 67"configure"3371 #line 3372 "configure" 3367 3372 #include "confdefs.h" 3368 3373 #include <stdio.h> … … 3375 3380 } 3376 3381 EOF 3377 if { (eval echo configure:33 78: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null3382 if { (eval echo configure:3383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3378 3383 then 3379 3384 ac_cv_sizeof_voidp=`cat conftestval` … … 3395 3400 3396 3401 echo $ac_n "checking size of double""... $ac_c" 1>&6 3397 echo "configure:3 398: checking size of double" >&53402 echo "configure:3403: checking size of double" >&5 3398 3403 if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then 3399 3404 echo $ac_n "(cached) $ac_c" 1>&6 … … 3403 3408 else 3404 3409 cat > conftest.$ac_ext <<EOF 3405 #line 34 06"configure"3410 #line 3411 "configure" 3406 3411 #include "confdefs.h" 3407 3412 #include <stdio.h> … … 3414 3419 } 3415 3420 EOF 3416 if { (eval echo configure:34 17: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null3421 if { (eval echo configure:3422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3417 3422 then 3418 3423 ac_cv_sizeof_double=`cat conftestval` … … 3434 3439 3435 3440 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 3436 echo "configure:34 37: checking whether byte ordering is bigendian" >&53441 echo "configure:3442: checking whether byte ordering is bigendian" >&5 3437 3442 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then 3438 3443 echo $ac_n "(cached) $ac_c" 1>&6 … … 3441 3446 # See if sys/param.h defines the BYTE_ORDER macro. 3442 3447 cat > conftest.$ac_ext <<EOF 3443 #line 344 4"configure"3448 #line 3449 "configure" 3444 3449 #include "confdefs.h" 3445 3450 #include <sys/types.h> … … 3452 3457 ; return 0; } 3453 3458 EOF 3454 if { (eval echo configure:34 55: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then3459 if { (eval echo configure:3460: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3455 3460 rm -rf conftest* 3456 3461 # It does; now see whether it defined to BIG_ENDIAN or not. 3457 3462 cat > conftest.$ac_ext <<EOF 3458 #line 34 59"configure"3463 #line 3464 "configure" 3459 3464 #include "confdefs.h" 3460 3465 #include <sys/types.h> … … 3467 3472 ; return 0; } 3468 3473 EOF 3469 if { (eval echo configure:347 0: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then3474 if { (eval echo configure:3475: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3470 3475 rm -rf conftest* 3471 3476 ac_cv_c_bigendian=yes … … 3487 3492 else 3488 3493 cat > conftest.$ac_ext <<EOF 3489 #line 349 0"configure"3494 #line 3495 "configure" 3490 3495 #include "confdefs.h" 3491 3496 main () { … … 3500 3505 } 3501 3506 EOF 3502 if { (eval echo configure:350 3: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null3507 if { (eval echo configure:3508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3503 3508 then 3504 3509 ac_cv_c_bigendian=no … … 3618 3623 3619 3624 echo $ac_n "checking whether to use dynamic linking""... $ac_c" 1>&6 3620 echo "configure:362 1: checking whether to use dynamic linking" >&53625 echo "configure:3626: checking whether to use dynamic linking" >&5 3621 3626 if test "$with_dl" != no && test "$ac_lib_dl" = yes; then 3622 3627 cat >> confdefs.h <<\EOF … … 3631 3636 3632 3637 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6 3633 echo "configure:363 4: checking for tgetent in -lncurses" >&53638 echo "configure:3639: checking for tgetent in -lncurses" >&5 3634 3639 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'` 3635 3640 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 3639 3644 LIBS="-lncurses $LIBS" 3640 3645 cat > conftest.$ac_ext <<EOF 3641 #line 364 2"configure"3646 #line 3647 "configure" 3642 3647 #include "confdefs.h" 3643 3648 /* Override any gcc2 internal prototype to avoid an error. */ … … 3650 3655 ; return 0; } 3651 3656 EOF 3652 if { (eval echo configure:365 3: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then3657 if { (eval echo configure:3658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3653 3658 rm -rf conftest* 3654 3659 eval "ac_cv_lib_$ac_lib_var=yes" … … 3677 3682 \ 3678 3683 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6 3679 echo "configure:368 0: checking for tgetent in -lcurses" >&53684 echo "configure:3685: checking for tgetent in -lcurses" >&5 3680 3685 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` 3681 3686 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 3685 3690 LIBS="-lcurses $LIBS" 3686 3691 cat > conftest.$ac_ext <<EOF 3687 #line 36 88"configure"3692 #line 3693 "configure" 3688 3693 #include "confdefs.h" 3689 3694 /* Override any gcc2 internal prototype to avoid an error. */ … … 3696 3701 ; return 0; } 3697 3702 EOF 3698 if { (eval echo configure:3 699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then3703 if { (eval echo configure:3704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3699 3704 rm -rf conftest* 3700 3705 eval "ac_cv_lib_$ac_lib_var=yes" … … 3723 3728 \ 3724 3729 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 3725 echo "configure:37 26: checking for tgetent in -ltermcap" >&53730 echo "configure:3731: checking for tgetent in -ltermcap" >&5 3726 3731 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` 3727 3732 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 3731 3736 LIBS="-ltermcap $LIBS" 3732 3737 cat > conftest.$ac_ext <<EOF 3733 #line 373 4"configure"3738 #line 3739 "configure" 3734 3739 #include "confdefs.h" 3735 3740 /* Override any gcc2 internal prototype to avoid an error. */ … … 3742 3747 ; return 0; } 3743 3748 EOF 3744 if { (eval echo configure:37 45: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then3749 if { (eval echo configure:3750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3745 3750 rm -rf conftest* 3746 3751 eval "ac_cv_lib_$ac_lib_var=yes" … … 3775 3780 3776 3781 # readline 3777 if test "$with_readline" = dynamic && test "$ac_ cv_have_dl" != yes; then3782 if test "$with_readline" = dynamic && test "$ac_have_dl" != yes; then 3778 3783 echo "configure: warning: can not build dynamic readline without dynamic linking" 1>&2 3779 3784 with_readline=static … … 3791 3796 3792 3797 echo $ac_n "checking for rl_abort in -lreadline""... $ac_c" 1>&6 3793 echo "configure:379 4: checking for rl_abort in -lreadline" >&53798 echo "configure:3799: checking for rl_abort in -lreadline" >&5 3794 3799 ac_lib_var=`echo readline'_'rl_abort | sed 'y%./+-%__p_%'` 3795 3800 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 3799 3804 LIBS="-lreadline $LIBS" 3800 3805 cat > conftest.$ac_ext <<EOF 3801 #line 380 2"configure"3806 #line 3807 "configure" 3802 3807 #include "confdefs.h" 3803 3808 /* Override any gcc2 internal prototype to avoid an error. */ … … 3813 3818 ; return 0; } 3814 3819 EOF 3815 if { (eval echo configure:38 16: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then3820 if { (eval echo configure:3821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3816 3821 rm -rf conftest* 3817 3822 eval "ac_cv_lib_$ac_lib_var=yes" … … 3841 3846 3842 3847 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 3843 echo "configure:384 4: checking how to run the C++ preprocessor" >&53848 echo "configure:3849: checking how to run the C++ preprocessor" >&5 3844 3849 if test -z "$CXXCPP"; then 3845 3850 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then … … 3854 3859 CXXCPP="${CXX-g++} -E" 3855 3860 cat > conftest.$ac_ext <<EOF 3856 #line 38 57"configure"3861 #line 3862 "configure" 3857 3862 #include "confdefs.h" 3858 3863 #include <stdlib.h> 3859 3864 EOF 3860 3865 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3861 { (eval echo configure:386 2: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }3866 { (eval echo configure:3867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3862 3867 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3863 3868 if test -z "$ac_err"; then … … 3887 3892 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3888 3893 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3889 echo "configure:389 0: checking for $ac_hdr" >&53894 echo "configure:3895: checking for $ac_hdr" >&5 3890 3895 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 3891 3896 echo $ac_n "(cached) $ac_c" 1>&6 3892 3897 else 3893 3898 cat > conftest.$ac_ext <<EOF 3894 #line 3 895"configure"3899 #line 3900 "configure" 3895 3900 #include "confdefs.h" 3896 3901 #include <$ac_hdr> 3897 3902 EOF 3898 3903 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3899 { (eval echo configure:390 0: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }3904 { (eval echo configure:3905: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3900 3905 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3901 3906 if test -z "$ac_err"; then … … 3926 3931 test "$ac_cv_header_readline_readline_h" = yes; then 3927 3932 echo $ac_n "checking whether readline.h is ok""... $ac_c" 1>&6 3928 echo "configure:39 29: checking whether readline.h is ok" >&53933 echo "configure:3934: checking whether readline.h is ok" >&5 3929 3934 if eval "test \"`echo '$''{'ac_cv_header_readline_readline_h_ok'+set}'`\" = set"; then 3930 3935 echo $ac_n "(cached) $ac_c" 1>&6 3931 3936 else 3932 3937 cat > conftest.$ac_ext <<EOF 3933 #line 393 4"configure"3938 #line 3939 "configure" 3934 3939 #include "confdefs.h" 3935 3940 #include<unistd.h> … … 3956 3961 ; return 0; } 3957 3962 EOF 3958 if { (eval echo configure:39 59: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then3963 if { (eval echo configure:3964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3959 3964 rm -rf conftest* 3960 3965 ac_cv_header_readline_readline_h_ok="yes" … … 3972 3977 #not ok -- try once more with explicitly declaring everything 3973 3978 echo $ac_n "checking whether or not we nevertheless can use readline""... $ac_c" 1>&6 3974 echo "configure:39 75: checking whether or not we nevertheless can use readline" >&53979 echo "configure:3980: checking whether or not we nevertheless can use readline" >&5 3975 3980 if eval "test \"`echo '$''{'ac_cv_have_readline'+set}'`\" = set"; then 3976 3981 echo $ac_n "(cached) $ac_c" 1>&6 3977 3982 else 3978 3983 cat > conftest.$ac_ext <<EOF 3979 #line 398 0"configure"3984 #line 3985 "configure" 3980 3985 #include "confdefs.h" 3981 3986 #include <stdio.h> … … 4011 4016 ; return 0; } 4012 4017 EOF 4013 if { (eval echo configure:401 4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then4018 if { (eval echo configure:4019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4014 4019 rm -rf conftest* 4015 4020 ac_cv_have_readline="yes" … … 4050 4055 4051 4056 echo $ac_n "checking which readline to use""... $ac_c" 1>&6 4052 echo "configure:405 3: checking which readline to use" >&54057 echo "configure:4058: checking which readline to use" >&5 4053 4058 if test "$ac_cv_with_readline" = dynamic; then 4054 4059 echo "$ac_t""dynamic" 1>&6 … … 4068 4073 # gmp, smallgmp, MP, MPT, factory, libfac 4069 4074 echo $ac_n "checking for main in -lgmp""... $ac_c" 1>&6 4070 echo "configure:407 1: checking for main in -lgmp" >&54075 echo "configure:4076: checking for main in -lgmp" >&5 4071 4076 ac_lib_var=`echo gmp'_'main | sed 'y%./+-%__p_%'` 4072 4077 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 4076 4081 LIBS="-lgmp $LIBS" 4077 4082 cat > conftest.$ac_ext <<EOF 4078 #line 40 79"configure"4083 #line 4084 "configure" 4079 4084 #include "confdefs.h" 4080 4085 … … 4083 4088 ; return 0; } 4084 4089 EOF 4085 if { (eval echo configure:40 86: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then4090 if { (eval echo configure:4091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4086 4091 rm -rf conftest* 4087 4092 eval "ac_cv_lib_$ac_lib_var=yes" … … 4111 4116 4112 4117 if test "ac_cv_lib_gmp_main" = yes && test "$with-apint" = smallgmp; then 4113 LIBS= NEED_LIBS4118 LIBS=${NEED_LIBS} 4114 4119 fi 4115 4120 echo $ac_n "checking for main in -lsmallgmp""... $ac_c" 1>&6 4116 echo "configure:41 17: checking for main in -lsmallgmp" >&54121 echo "configure:4122: checking for main in -lsmallgmp" >&5 4117 4122 ac_lib_var=`echo smallgmp'_'main | sed 'y%./+-%__p_%'` 4118 4123 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 4122 4127 LIBS="-lsmallgmp $LIBS" 4123 4128 cat > conftest.$ac_ext <<EOF 4124 #line 41 25"configure"4129 #line 4130 "configure" 4125 4130 #include "confdefs.h" 4126 4131 … … 4129 4134 ; return 0; } 4130 4135 EOF 4131 if { (eval echo configure:413 2: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then4136 if { (eval echo configure:4137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4132 4137 rm -rf conftest* 4133 4138 eval "ac_cv_lib_$ac_lib_var=yes" … … 4156 4161 fi 4157 4162 4163 SAVE_LIBS=$LIBS 4158 4164 echo $ac_n "checking for IMP_PutGmpInt in -lMP""... $ac_c" 1>&6 4159 echo "configure:416 0: checking for IMP_PutGmpInt in -lMP" >&54165 echo "configure:4166: checking for IMP_PutGmpInt in -lMP" >&5 4160 4166 ac_lib_var=`echo MP'_'IMP_PutGmpInt | sed 'y%./+-%__p_%'` 4161 4167 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 4163 4169 else 4164 4170 ac_save_LIBS="$LIBS" 4165 LIBS="-lMP $LIBS"4171 LIBS="-lMP $MP_LIBS $LIBS" 4166 4172 cat > conftest.$ac_ext <<EOF 4167 #line 41 68"configure"4173 #line 4174 "configure" 4168 4174 #include "confdefs.h" 4169 4175 /* Override any gcc2 internal prototype to avoid an error. */ … … 4176 4182 ; return 0; } 4177 4183 EOF 4178 if { (eval echo configure:41 79: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then4184 if { (eval echo configure:4185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4179 4185 rm -rf conftest* 4180 4186 eval "ac_cv_lib_$ac_lib_var=yes" … … 4203 4209 fi 4204 4210 4205 echo $ac_n "checking for MPT_GetTre in -lMPT""... $ac_c" 1>&64206 echo "configure:42 07: checking for MPT_GetTre in -lMPT" >&54207 ac_lib_var=`echo MPT'_'MPT_GetTre | sed 'y%./+-%__p_%'`4211 echo $ac_n "checking for MPT_GetTree in -lMPT""... $ac_c" 1>&6 4212 echo "configure:4213: checking for MPT_GetTree in -lMPT" >&5 4213 ac_lib_var=`echo MPT'_'MPT_GetTree | sed 'y%./+-%__p_%'` 4208 4214 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4209 4215 echo $ac_n "(cached) $ac_c" 1>&6 4210 4216 else 4211 4217 ac_save_LIBS="$LIBS" 4212 LIBS="-lMPT $LIBS"4218 LIBS="-lMPT $MP_LIBS $LIBS" 4213 4219 cat > conftest.$ac_ext <<EOF 4214 #line 42 15"configure"4220 #line 4221 "configure" 4215 4221 #include "confdefs.h" 4216 4222 /* Override any gcc2 internal prototype to avoid an error. */ 4217 4223 /* We use char because int might match the return type of a gcc2 4218 4224 builtin and then its argument prototype would still apply. */ 4219 char MPT_GetTre ();4225 char MPT_GetTree(); 4220 4226 4221 4227 int main() { 4222 MPT_GetTre ()4228 MPT_GetTree() 4223 4229 ; return 0; } 4224 4230 EOF 4225 if { (eval echo configure:42 26: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then4231 if { (eval echo configure:4232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4226 4232 rm -rf conftest* 4227 4233 eval "ac_cv_lib_$ac_lib_var=yes" … … 4250 4256 fi 4251 4257 4258 LIBS=$SAVE_LIBS 4252 4259 echo $ac_n "checking for atof in -lsingcf""... $ac_c" 1>&6 4253 echo "configure:42 54: checking for atof in -lsingcf" >&54260 echo "configure:4261: checking for atof in -lsingcf" >&5 4254 4261 ac_lib_var=`echo singcf'_'atof | sed 'y%./+-%__p_%'` 4255 4262 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 4259 4266 LIBS="-lsingcf $LIBS" 4260 4267 cat > conftest.$ac_ext <<EOF 4261 #line 426 2"configure"4268 #line 4269 "configure" 4262 4269 #include "confdefs.h" 4263 4270 /* Override any gcc2 internal prototype to avoid an error. */ … … 4270 4277 ; return 0; } 4271 4278 EOF 4272 if { (eval echo configure:42 73: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then4279 if { (eval echo configure:4280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4273 4280 rm -rf conftest* 4274 4281 eval "ac_cv_lib_$ac_lib_var=yes" … … 4298 4305 4299 4306 echo $ac_n "checking for atof in -lsingfac""... $ac_c" 1>&6 4300 echo "configure:430 1: checking for atof in -lsingfac" >&54307 echo "configure:4308: checking for atof in -lsingfac" >&5 4301 4308 ac_lib_var=`echo singfac'_'atof | sed 'y%./+-%__p_%'` 4302 4309 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 4306 4313 LIBS="-lsingfac $LIBS" 4307 4314 cat > conftest.$ac_ext <<EOF 4308 #line 43 09"configure"4315 #line 4316 "configure" 4309 4316 #include "confdefs.h" 4310 4317 /* Override any gcc2 internal prototype to avoid an error. */ … … 4317 4324 ; return 0; } 4318 4325 EOF 4319 if { (eval echo configure:432 0: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then4326 if { (eval echo configure:4327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4320 4327 rm -rf conftest* 4321 4328 eval "ac_cv_lib_$ac_lib_var=yes" … … 4345 4352 4346 4353 echo $ac_n "checking for omTestAddr in -lomalloc""... $ac_c" 1>&6 4347 echo "configure:43 48: checking for omTestAddr in -lomalloc" >&54354 echo "configure:4355: checking for omTestAddr in -lomalloc" >&5 4348 4355 ac_lib_var=`echo omalloc'_'omTestAddr | sed 'y%./+-%__p_%'` 4349 4356 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 4353 4360 LIBS="-lomalloc $LIBS" 4354 4361 cat > conftest.$ac_ext <<EOF 4355 #line 43 56"configure"4362 #line 4363 "configure" 4356 4363 #include "confdefs.h" 4357 4364 /* Override any gcc2 internal prototype to avoid an error. */ … … 4364 4371 ; return 0; } 4365 4372 EOF 4366 if { (eval echo configure:43 67: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then4373 if { (eval echo configure:4374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4367 4374 rm -rf conftest* 4368 4375 eval "ac_cv_lib_$ac_lib_var=yes" … … 4392 4399 4393 4400 echo $ac_n "checking for main in -lomalloc_ndebug""... $ac_c" 1>&6 4394 echo "configure:4 395: checking for main in -lomalloc_ndebug" >&54401 echo "configure:4402: checking for main in -lomalloc_ndebug" >&5 4395 4402 ac_lib_var=`echo omalloc_ndebug'_'main | sed 'y%./+-%__p_%'` 4396 4403 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 4400 4407 LIBS="-lomalloc_ndebug $LIBS" 4401 4408 cat > conftest.$ac_ext <<EOF 4402 #line 44 03"configure"4409 #line 4410 "configure" 4403 4410 #include "confdefs.h" 4404 4411 … … 4407 4414 ; return 0; } 4408 4415 EOF 4409 if { (eval echo configure:441 0: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then4416 if { (eval echo configure:4417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4410 4417 rm -rf conftest* 4411 4418 eval "ac_cv_lib_$ac_lib_var=yes" … … 4439 4446 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 4440 4447 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 4441 echo "configure:444 2: checking for $ac_hdr" >&54448 echo "configure:4449: checking for $ac_hdr" >&5 4442 4449 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4443 4450 echo $ac_n "(cached) $ac_c" 1>&6 4444 4451 else 4445 4452 cat > conftest.$ac_ext <<EOF 4446 #line 44 47"configure"4453 #line 4454 "configure" 4447 4454 #include "confdefs.h" 4448 4455 #include <$ac_hdr> 4449 4456 EOF 4450 4457 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4451 { (eval echo configure:445 2: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }4458 { (eval echo configure:4459: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4452 4459 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4453 4460 if test -z "$ac_err"; then … … 4518 4525 4519 4526 echo $ac_n "checking which apint package to use""... $ac_c" 1>&6 4520 echo "configure:452 1: checking which apint package to use" >&54527 echo "configure:4528: checking which apint package to use" >&5 4521 4528 if test "${with_apint}" != gmp && test "${with_apint}" != smallgmp; then 4522 4529 if test "$ac_gmp_ok" = yes || test "$enable_gmp" = yes; then … … 4560 4567 # 4561 4568 echo $ac_n "checking whether to have MP""... $ac_c" 1>&6 4562 echo "configure:45 63: checking whether to have MP" >&54569 echo "configure:4570: checking whether to have MP" >&5 4563 4570 if test "${with_MP}" != yes && test "${with_MP}" != no; then 4564 4571 if (test "${will_have_gmp}" = yes) && \ … … 4569 4576 EOF 4570 4577 4571 NEED_LIBS="-lMPT -lMP ${NEED_LIBS}" 4578 HAVE_MPSR=1 4579 MP_LIBS="-lMPT -lMP ${MP_LIBS}" 4572 4580 else 4573 4581 echo "$ac_t""no" 1>&6 … … 4581 4589 EOF 4582 4590 4583 NEED_LIBS="-lMPT -lMP ${NEED_LIBS}" 4591 HAVE_MPSR=1 4592 MP_LIBS="-lMPT -lMP ${MP_LIBS}" 4584 4593 else 4585 4594 echo "$ac_t""no" 1>&6 … … 4590 4599 fi 4591 4600 4601 4602 4592 4603 echo $ac_n "checking whether to have factory""... $ac_c" 1>&6 4593 echo "configure:4 594: checking whether to have factory" >&54604 echo "configure:4605: checking whether to have factory" >&5 4594 4605 if test "${with_factory}" != yes && test "${with_factory}" != no; then 4595 4606 if test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then … … 4622 4633 4623 4634 echo $ac_n "checking whether to have libfac""... $ac_c" 1>&6 4624 echo "configure:46 25: checking whether to have libfac" >&54635 echo "configure:4636: checking whether to have libfac" >&5 4625 4636 if test "${with_libfac}" != yes && test "${with_libfac}" != no; then 4626 4637 if (test "${will_have_factory}" = yes) && \ … … 4656 4667 4657 4668 echo $ac_n "checking whether to have dbm links""... $ac_c" 1>&6 4658 echo "configure:46 59: checking whether to have dbm links" >&54669 echo "configure:4670: checking whether to have dbm links" >&5 4659 4670 if test "$with_dbm" != no; then 4660 4671 cat >> confdefs.h <<\EOF … … 4668 4679 4669 4680 echo $ac_n "checking whether to have namespaces""... $ac_c" 1>&6 4670 echo "configure:46 71: checking whether to have namespaces" >&54681 echo "configure:4682: checking whether to have namespaces" >&5 4671 4682 if test "$with_namespaces" != yes; then 4672 4683 echo "$ac_t""no" 1>&6 … … 4680 4691 4681 4692 echo $ac_n "checking whether to have dynamic modules""... $ac_c" 1>&6 4682 echo "configure:46 83: checking whether to have dynamic modules" >&54693 echo "configure:4694: checking whether to have dynamic modules" >&5 4683 4694 if test "$with_dynamic_modules" != yes || test "$ac_have_dl" != yes; then 4684 4695 echo "$ac_t""no" 1>&6 … … 4692 4703 4693 4704 echo $ac_n "checking whether to have dynamic kernel""... $ac_c" 1>&6 4694 echo "configure:4 695: checking whether to have dynamic kernel" >&54705 echo "configure:4706: checking whether to have dynamic kernel" >&5 4695 4706 if test "$with_dynamic_kernel" != no && test "$ac_lib_dl" = yes; then 4696 4707 DL_KERNEL=1 … … 4700 4711 4701 4712 echo $ac_n "checking whether to have Plural""... $ac_c" 1>&6 4702 echo "configure:47 03: checking whether to have Plural" >&54713 echo "configure:4714: checking whether to have Plural" >&5 4703 4714 if test "$with_plural" != yes; then 4704 4715 echo "$ac_t""no" 1>&6 … … 4880 4891 s%@ALLOCA@%$ALLOCA%g 4881 4892 s%@CXXCPP@%$CXXCPP%g 4893 s%@HAVE_MPSR@%$HAVE_MPSR%g 4894 s%@MP_LIBS@%$MP_LIBS%g 4882 4895 s%@NEED_LIBS@%$NEED_LIBS%g 4883 4896 s%@DL_KERNEL@%$DL_KERNEL%g -
Singular/configure.in
r52ea3f r6b32990 250 250 # lib checks 251 251 AC_CHECK_LIB(m, atof) 252 SAVE_LIBS=${LIBS} 253 LIBS= 252 254 AC_CHECK_LIB(bsd, socket) 253 255 AC_CHECK_LIB(socket, listen) 254 256 AC_CHECK_LIB(nsl, gethostbyname) 255 257 AC_CHECK_LIB(ucb, index) 258 MP_LIBS=${LIBS} 259 LIBS= 256 260 257 261 # check for dl lib … … 279 283 AC_SUBST(SFLAGS) 280 284 AC_SUBST(SLDFLAGS) 285 LIBS=${SAVE_LIBS} 281 286 282 287 # heder file checks … … 453 458 454 459 # readline 455 if test "$with_readline" = dynamic && test "$ac_ cv_have_dl" != yes; then460 if test "$with_readline" = dynamic && test "$ac_have_dl" != yes; then 456 461 AC_MSG_WARN(can not build dynamic readline without dynamic linking) 457 462 with_readline=static … … 559 564 AC_CHECK_LIB(gmp, main) 560 565 if test "ac_cv_lib_gmp_main" = yes && test "$with-apint" = smallgmp; then 561 LIBS= NEED_LIBS566 LIBS=${NEED_LIBS} 562 567 fi 563 568 AC_CHECK_LIB(smallgmp, main) 564 AC_CHECK_LIB(MP, IMP_PutGmpInt) 565 AC_CHECK_LIB(MPT, MPT_GetTre) 569 SAVE_LIBS=$LIBS 570 AC_CHECK_LIB(MP, IMP_PutGmpInt,,,$MP_LIBS) 571 AC_CHECK_LIB(MPT, MPT_GetTree,,,$MP_LIBS) 572 LIBS=$SAVE_LIBS 566 573 AC_CHECK_LIB(singcf, atof) 567 574 AC_CHECK_LIB(singfac, atof) … … 656 663 AC_MSG_RESULT(yes) 657 664 AC_DEFINE(HAVE_MPSR) 658 NEED_LIBS="-lMPT -lMP ${NEED_LIBS}" 665 HAVE_MPSR=1 666 MP_LIBS="-lMPT -lMP ${MP_LIBS}" 659 667 else 660 668 AC_MSG_RESULT(no) … … 665 673 AC_MSG_RESULT(yes) 666 674 AC_DEFINE(HAVE_MPSR) 667 NEED_LIBS="-lMPT -lMP ${NEED_LIBS}" 675 HAVE_MPSR=1 676 MP_LIBS="-lMPT -lMP ${MP_LIBS}" 668 677 else 669 678 AC_MSG_RESULT(no) … … 673 682 AC_MSG_RESULT(no) 674 683 fi 684 AC_SUBST(HAVE_MPSR) 685 AC_SUBST(MP_LIBS) 675 686 676 687 AC_MSG_CHECKING(whether to have factory) -
Singular/extra.cc
r52ea3f r6b32990 2 2 * Computer Algebra System SINGULAR * 3 3 *****************************************/ 4 /* $Id: extra.cc,v 1.15 1 2000-12-07 15:42:30obachman Exp $ */4 /* $Id: extra.cc,v 1.152 2000-12-12 08:44:43 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT: general interface to internals of Singular ("system" command) … … 78 78 79 79 #include "silink.h" 80 #ifdef HAVE_MPSR81 #include "mpsr.h"82 #include "MPT_GP.h"83 #endif84 80 #include "walk.h" 85 81 … … 1089 1085 else 1090 1086 #endif 1091 /*==================== gp =================*/1092 #ifdef HAVE_MPSR1093 if (strcmp(sys_cmd, "gp") == 0)1094 {1095 if (h->Typ() != LINK_CMD)1096 {1097 WerrorS("No Link arg");1098 return FALSE;1099 }1100 si_link l = (si_link) h->Data();1101 if (strcmp(l->m->type, "MPfile") != 0)1102 {1103 WerrorS("No MPfile link");1104 return TRUE;1105 }1106 if( ! SI_LINK_R_OPEN_P(l)) // open r ?1107 {1108 if (slOpen(l, SI_LINK_READ)) return TRUE;1109 }1110 1111 MP_Link_pt link = (MP_Link_pt) l->data;1112 if (MP_InitMsg(link) != MP_Success)1113 {1114 WerrorS("Can not Init");1115 }1116 MPT_Tree_pt tree = NULL;1117 if (MPT_GetTree(link, &tree) != MPT_Success)1118 {1119 WerrorS("Can not get tree");1120 return TRUE;1121 }1122 MPT_GP_pt gp_tree = MPT_GetGP(tree);1123 if (gp_tree == NULL || ! gp_tree->IsOk(gp_tree))1124 {1125 WerrorS("gp error");1126 return TRUE;1127 }1128 delete gp_tree;1129 MPT_DeleteTree(tree);1130 return FALSE;1131 }1132 else1133 #endif1134 1087 /*==================== sdb_flags =================*/ 1135 1088 if (strcmp(sys_cmd, "sdb_flags") == 0) -
Singular/hilb.cc
r52ea3f r6b32990 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: hilb.cc,v 1.1 6 2000-11-08 15:34:55obachman Exp $ */4 /* $Id: hilb.cc,v 1.17 2000-12-12 08:44:44 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT - Hilbert series … … 223 223 } 224 224 if (wdegree == NULL) 225 hWeight(); 225 { 226 // hWeight(); 227 } 226 228 else 227 229 hWDegree(wdegree); -
Singular/ideals.cc
r52ea3f r6b32990 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: ideals.cc,v 1.11 6 2000-12-06 11:03:10 SingularExp $ */4 /* $Id: ideals.cc,v 1.117 2000-12-12 08:44:44 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT - all basic methods to manipulate ideals … … 2298 2298 //pChangeRing(pVariables,currRing->OrdSgn,ord,block0,block1,wv); 2299 2299 rChangeCurrRing(&tmpR); 2300 currRing = &tmpR;2301 2300 h = idInit(IDELEMS(h1),h1->rank); 2302 2301 // fetch data from the old ring -
Singular/khstd.cc
r52ea3f r6b32990 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: khstd.cc,v 1.1 2 2000-11-08 15:34:57obachman Exp $ */4 /* $Id: khstd.cc,v 1.13 2000-12-12 08:44:45 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT:utils for hilbert driven kStd … … 16 16 #include "kstd1.h" 17 17 #include "khstd.h" 18 18 19 19 20 /*2 … … 51 52 // then pFDeg == degp == kHomModDeg (see kStd) 52 53 if ((degp!=kModDeg) && (degp!=kHomModDeg)) degp=pTotaldegree; 54 // degp = pWDegree; 53 55 l = hilb->length()-1; 54 56 mw = (*hilb)[l]; -
Singular/kstd1.cc
r52ea3f r6b32990 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: kstd1.cc,v 1.6 8 2000-11-28 11:50:52obachman Exp $ */4 /* $Id: kstd1.cc,v 1.69 2000-12-12 08:44:45 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT: … … 10 10 // #define NO_LDEG 11 11 12 // define if buckets should be use 13 #define MORA_USE_BUCKETS 12 // define if buckets should be used 13 // #define MORA_USE_BUCKETS 14 15 // define if tailrings should be used 16 // #define HAVE_TAIL_RING 14 17 15 18 #include "mod2.h" … … 204 207 strat->T[i].length < li)) 205 208 && 206 p LmShortDivisibleBy(strat->T[i].p, strat->sevT[i], h->p, ~h->sev))209 p_LmShortDivisibleBy(strat->T[i].GetLmTailRing(), strat->sevT[i], h->GetLmTailRing(), ~h->sev, strat->tailRing)) 207 210 #else 208 211 j = kFindDivisibleByInT(strat->T, strat->sevT, strat->tl, h, i); … … 475 478 if (H.p==NULL) return NULL; 476 479 } 477 if (p LmShortDivisibleBy(strat->T[j].p, strat->sevT[j], H.p, not_sev))480 if (p_LmShortDivisibleBy(strat->T[j].GetLmTailRing(), strat->sevT[j], H.GetLmTailRing(), not_sev, strat->tailRing)) 478 481 { 479 482 //if (strat->interpt) test_int_std(strat->kIdeal); … … 1106 1109 strat->use_buckets = kMoraUseBucket(strat); 1107 1110 /*- compute-------------------------------------------*/ 1111 1112 #ifdef HAVE_TAIL_RING 1113 kStratInitChangeTailRing(strat); 1114 #endif 1115 1108 1116 while (strat->Ll >= 0) 1109 1117 { … … 1522 1530 long kModDeg(poly p, ring r) 1523 1531 { 1524 long o=pWDegree(p, r); 1532 // Hmm obachman: on 1-2, this is pTotalDegree 1533 // I think that I had changed this to pWDegree sometime in 10/2000 1534 // However, this breaks eliminate, etc 1535 // long o=pWDegree(p, r); 1536 long o=pTotaldegree(p, r); 1525 1537 long i=p_GetComp(p, r); 1526 1538 if (i==0) return o; -
Singular/kstd2.cc
r52ea3f r6b32990 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: kstd2.cc,v 1.6 5 2000-12-07 15:03:55obachman Exp $ */4 /* $Id: kstd2.cc,v 1.66 2000-12-12 08:44:46 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT - Kernel: alg. of Buchberger … … 647 647 strat->enterS(strat->P, pos, strat, strat->tl); 648 648 if (hilb!=NULL) khCheck(Q,w,hilb,hilbeledeg,hilbcount,strat); 649 // Print("[%d]",hilbeledeg); 649 650 if (strat->P.lcm!=NULL) pLmFree(strat->P.lcm); 650 651 if (strat->sl>srmax) srmax = strat->sl; -
Singular/kutil.cc
r52ea3f r6b32990 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: kutil.cc,v 1.8 1 2000-11-28 11:50:53obachman Exp $ */4 /* $Id: kutil.cc,v 1.82 2000-12-12 08:44:46 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT: kernel: utils for kStd … … 20 20 #define KDEBUG 2 21 21 #endif 22 22 23 // define if enterL, enterT should use memmove instead of doing it manually 23 // on topgun, this is slightly faster (see monodromy_l.tst )24 // on topgun, this is slightly faster (see monodromy_l.tst, homog_gonnet.sing) 24 25 #define ENTER_USE_MEMMOVE 26 27 // define, if the my_memmove inlines should be used instead of 28 // system memmove -- it does not seem to pay off, though 29 // #define ENTER_USE_MYMEMMOVE 25 30 26 31 #include "tok.h" … … 44 49 #endif 45 50 51 #ifdef ENTER_USE_MYMEMMOVE 52 inline void _my_memmove_d_gt_s(unsigned long* d, unsigned long* s, long l) 53 { 54 register unsigned long* _dl = (unsigned long*) d; 55 register unsigned long* _sl = (unsigned long*) s; 56 register long _i = l - 1; 57 58 do 59 { 60 _dl[_i] = _sl[_i]; 61 _i--; 62 } 63 while (_i >= 0); 64 } 65 66 inline void _my_memmove_d_lt_s(unsigned long* d, unsigned long* s, long l) 67 { 68 register long _ll = l; 69 register unsigned long* _dl = (unsigned long*) d; 70 register unsigned long* _sl = (unsigned long*) s; 71 register long _i = 0; 72 73 do 74 { 75 _dl[_i] = _sl[_i]; 76 _i++; 77 } 78 while (_i < _ll); 79 } 80 81 inline void _my_memmove(void* d, void* s, long l) 82 { 83 unsigned long _d = (unsigned long) d; 84 unsigned long _s = (unsigned long) s; 85 unsigned long _l = ((l) + SIZEOF_LONG - 1) >> LOG_SIZEOF_LONG; 86 87 if (_d > _s) _my_memmove_d_gt_s(_d, _s, _l); 88 else _my_memmove_d_lt_s(_d, _s, _l); 89 } 90 91 #undef memmove 92 #define memmove(d,s,l) _my_memmove(d, s, l) 93 #endif 94 46 95 47 96 static poly redMora (poly h,int maxIndex,kStrategy strat); … … 427 476 } 428 477 478 int kFindInT(poly p, kStrategy strat) 479 { 480 int i; 481 do 482 { 483 i = kFindInT(p, strat->T, strat->tl); 484 if (i >= 0) return i; 485 strat = strat->next; 486 } 487 while (strat != NULL); 488 return -1; 489 } 490 429 491 #ifdef KDEBUG 430 492 … … 750 812 void deleteInL (LSet set, int *length, int j,kStrategy strat) 751 813 { 752 int i;753 754 814 if (set[j].lcm!=NULL) 755 815 pLmFree(set[j].lcm); … … 764 824 { 765 825 // search p in T, if it is there, do not delete it 766 int i=strat->tl; 767 poly p=set[j].p; 768 if (p!=NULL) 769 loop 770 { 771 if (i < 0) 772 { 773 if (strat->next!=NULL) 774 { 775 strat=strat->next; 776 i=strat->tl; 777 } 778 else 779 { 780 /* not found : */ 781 if (set[j].bucket != NULL) 782 { 783 kBucketDeleteAndDestroy(&set[j].bucket); 784 pNext(p) = NULL; 785 if (set[j].t_p != NULL) pNext(set[j].t_p) = NULL; 786 } 787 if (set[j].t_p != NULL) 788 { 789 p_Delete(&(set[j].t_p), set[j].tailRing); 790 p_LmFree(p, currRing); 791 } 792 else 793 { 794 pDelete(&p); 795 } 796 break; 797 } 798 } 799 else 800 { 801 if (strat->T[i].p==p) 802 { 803 /* found : */ 804 p=NULL; 805 break; 806 } 807 i--; 808 } 809 } 810 } 811 set[j].p=NULL; 812 } 813 if ((*length)>0) 814 { 826 if (pOrdSgn != -1 || kFindInT(set[j].p, strat) < 0) 827 { 828 // assure that for global ordereings kFindInT fails 829 assume(pOrdSgn == -1 || kFindInT(set[j].p, strat) < 0); 830 set[j].Delete(); 831 } 832 } 833 } 834 if (*length > 0 && j < *length) 835 { 836 #ifdef ENTER_USE_MEMMOVE 837 memmove(&(set[j]), &(set[j+1]), (*length - j)*sizeof(LObject)); 838 #else 839 int i; 815 840 for (i=j; i < (*length); i++) 816 841 set[i] = set[i+1]; 842 #endif 817 843 } 818 844 #ifdef KDEBUG … … 4058 4084 // Hmmm .. the condition pFDeg == pDeg 4059 4085 // might be too strong 4060 (strat->homog && pFDeg == pDeg ),4086 (strat->homog && pFDeg == pDeg && pOrdSgn == 1), 4061 4087 !strat->ak, 4062 4088 expbound); -
Singular/misc.cc
r52ea3f r6b32990 106 106 memset(&sLastPrinted,0,sizeof(sleftv)); 107 107 sLastPrinted.rtyp=NONE; 108 #ifdef HAVE_MPSR109 extern void mpsr_Init();110 mpsr_Init();111 #endif112 108 return t; 113 109 } -
Singular/mod2.h.in
r52ea3f r6b32990 6 6 * DO NOT EDIT! 7 7 * 8 * Version: $Id: mod2.h.in,v 1.9 4 2000-12-07 15:03:56obachman Exp $8 * Version: $Id: mod2.h.in,v 1.95 2000-12-12 08:44:47 obachman Exp $ 9 9 *******************************************************************/ 10 10 #ifndef MOD2_H … … 312 312 #endif 313 313 314 /* define LINKAGE to "extern C" if compiling for shared libs */ 315 #ifndef LINKAGE 316 #if defined(PIC) 317 #define LINKAGE extern "C" 318 #else 319 #define LINKAGE 320 #endif 321 #endif 322 314 323 315 324 /******************************************************************* -
Singular/mod_raw.cc
r52ea3f r6b32990 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: mod_raw.cc,v 1. 9 2000-12-07 15:03:57obachman Exp $ */4 /* $Id: mod_raw.cc,v 1.10 2000-12-12 08:44:48 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT: machine depend code for dynamic modules … … 12 12 */ 13 13 14 #include <stdio.h> 15 14 16 #include "mod2.h" 15 17 #include "static.h" … … 36 38 #endif 37 39 38 void* dynl_open_binary_warn(char* binary_name )40 void* dynl_open_binary_warn(char* binary_name, const char* msg) 39 41 { 40 42 void* handle = NULL; … … 50 52 Warn("Could not open dynamic library: %s", path_name); 51 53 Warn("Error message from system: %s", dynl_error()); 52 Warn("Singular will work properly, but much slower.");54 if (msg != NULL) Warn("%s", msg); 53 55 Warn("See the INSTALL section in the Singular manual for details."); 54 56 warn_handle = TRUE; … … 58 60 } 59 61 60 void* dynl_sym_warn(void* handle, char* proc )62 void* dynl_sym_warn(void* handle, char* proc, const char* msg) 61 63 { 62 64 void *proc_ptr = NULL; … … 68 70 Warn("Could load a procedure from a dynamic library"); 69 71 Warn("Error message from system: %s", dynl_error()); 70 Warn("Singular will work properly, but much slower.");72 if (msg != NULL) Warn("%s", msg); 71 73 Warn("See the INSTALL section in the Singular manual for details."); 72 74 warn_proc = TRUE; … … 83 85 #include <dlfcn.h> 84 86 87 static void* kernel_handle = NULL; 85 88 void *dynl_open( 86 89 char *filename /* I: filename to load */ … … 92 95 void *dynl_sym(void *handle, char *symbol) 93 96 { 97 if (handle == DYNL_KERNEL_HANDLE) 98 { 99 if (kernel_handle == NULL) 100 kernel_handle = dynl_open(NULL); 101 handle = kernel_handle; 102 } 94 103 return(dlsym(handle, symbol)); 95 104 } -
Singular/mod_raw.h
r52ea3f r6b32990 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: mod_raw.h,v 1. 5 2000-12-07 15:03:57obachman Exp $ */6 /* $Id: mod_raw.h,v 1.6 2000-12-12 08:44:48 obachman Exp $ */ 7 7 /* 8 8 * ABSTRACT: machine depend code for dynamic modules … … 15 15 16 16 #if defined(HAVE_DL) 17 void* dynl_open_binary_warn(char* binary_name); 18 void* dynl_sym_warn(void* handle, char* proc); 17 18 void* dynl_open_binary_warn(char* binary_name, const char* msg = NULL); 19 void* dynl_sym_warn(void* handle, char* proc, const char* msg = NULL); 19 20 20 21 void * dynl_open(char *filename); 22 // if handle == DYNL_KERNEL_HANDLE, then symbol is searched for 23 // in kernel of program 24 #define DYNL_KERNEL_HANDLE ((void*) 0x1) 21 25 void * dynl_sym(void *handle, char *symbol); 22 26 int dynl_close (void *handle); -
Singular/mpsr_GetMisc.cc
r52ea3f r6b32990 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: mpsr_GetMisc.cc,v 1.2 3 2000-12-06 11:03:22 SingularExp $ */4 /* $Id: mpsr_GetMisc.cc,v 1.24 2000-12-12 08:44:48 obachman Exp $ */ 5 5 6 6 /*************************************************************** … … 444 444 #include "mmalloc.h" 445 445 446 void mpsr_Init() 447 { 446 static int mpsr_is_initialized = 0; 447 448 LINKAGE void mpsr_Init() 449 { 450 if (mpsr_is_initialized) return; 448 451 #ifndef EXTERNAL_MALLOC_H 449 452 // memory management functions of MP (and MPT) -
Singular/mpsr_Tok.cc
r52ea3f r6b32990 3 3 ****************************************/ 4 4 5 /* $Id: mpsr_Tok.cc,v 1.2 6 2000-05-16 08:50:49 SingularExp $ */5 /* $Id: mpsr_Tok.cc,v 1.27 2000-12-12 08:44:48 obachman Exp $ */ 6 6 7 7 /*************************************************************** … … 88 88 } 89 89 else 90 return mpsr_ SetError(mpsr_UnknownSingularToken);90 return mpsr_UnknownSingularToken; 91 91 } 92 92 … … 97 97 98 98 if (sr_dict == MAX_SR_DICT) 99 return mpsr_ SetError(mpsr_UnknownDictionary);99 return mpsr_UnknownDictionary; 100 100 101 101 tok = mp2tok[sr_dict][cop]; 102 102 if (tok == MAX_TOK) 103 return mpsr_ SetError(mpsr_UnkownOperator);103 return mpsr_UnkownOperator; 104 104 105 105 *o_tok = tok; -
Singular/mpsr_sl.cc
r52ea3f r6b32990 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: sing_mp.cc,v 1.34 2000-11-21 15:35:46 Singular Exp $ */ 5 6 /* 7 * ABSTRACT: interface to MP links 8 */ 4 /*************************************************************** 5 * File: mpsr_sl.cc 6 * Purpose: implementation of sl_link routines for MP 7 * Author: obachman (Olaf Bachmann) 8 * Created: 12/00 9 * Version: $Id: mpsr_sl.cc,v 1.1 2000-12-12 08:44:49 obachman Exp $ 10 *******************************************************************/ 9 11 10 12 #include "mod2.h" … … 24 26 #include "feOpt.h" 25 27 28 26 29 static int Batch_ReadEval(si_link silink); 27 30 … … 34 37 #endif 35 38 36 MP_Env_pt mp_Env = NULL;39 static MP_Env_pt mp_Env = NULL; 37 40 38 41 /* =============== general utilities ====================================== */ … … 106 109 * 107 110 ***************************************************************/ 108 staticBOOLEAN slOpenMPFile(si_link l, short flag)111 LINKAGE BOOLEAN slOpenMPFile(si_link l, short flag) 109 112 { 110 113 char *argv[] = {"--MPtransp", "FILE", "--MPmode", "append", … … 166 169 ***************************************************************/ 167 170 168 staticMP_Link_pt slOpenMPConnect(int n_argc, char **n_argv)171 LINKAGE MP_Link_pt slOpenMPConnect(int n_argc, char **n_argv) 169 172 { 170 173 char *argv[] = {"--MPtransp", "TCP", "--MPmode", "connect", "--MPport", … … 187 190 } 188 191 189 staticMP_Link_pt slOpenMPListen(int n_argc, char **n_argv)192 LINKAGE MP_Link_pt slOpenMPListen(int n_argc, char **n_argv) 190 193 { 191 194 char *argv[] = {"--MPtransp", "TCP", "--MPmode", "listen", … … 200 203 } 201 204 202 staticMP_Link_pt slOpenMPLaunch(int n_argc, char **n_argv)205 MP_Link_pt slOpenMPLaunch(int n_argc, char **n_argv) 203 206 { 204 207 char *argv[] = {"--MPtransp", "TCP", "--MPmode", "launch", … … 249 252 } 250 253 251 staticMP_Link_pt slOpenMPFork(si_link l, int n_argc, char **n_argv)254 LINKAGE MP_Link_pt slOpenMPFork(si_link l, int n_argc, char **n_argv) 252 255 { 253 256 MP_Link_pt link = NULL; … … 288 291 289 292 290 staticBOOLEAN slOpenMPTcp(si_link l, short flag)293 LINKAGE BOOLEAN slOpenMPTcp(si_link l, short flag) 291 294 { 292 295 MP_Link_pt link = NULL; … … 336 339 ***************************************************************/ 337 340 338 staticBOOLEAN slWriteMP(si_link l, leftv v)341 LINKAGE BOOLEAN slWriteMP(si_link l, leftv v) 339 342 { 340 343 leftv next = (v != NULL ? v->next : (leftv) NULL); … … 367 370 } 368 371 369 leftv slReadMP(si_link l)372 LINKAGE leftv slReadMP(si_link l) 370 373 { 371 374 leftv v = NULL; … … 390 393 } 391 394 392 staticBOOLEAN slCloseMP(si_link l)395 LINKAGE BOOLEAN slCloseMP(si_link l) 393 396 { 394 397 if ((strcmp(l->mode, "launch") == 0 || strcmp(l->mode, "fork") == 0) && … … 400 403 } 401 404 402 staticBOOLEAN slKillMP(si_link l)405 LINKAGE BOOLEAN slKillMP(si_link l) 403 406 { 404 407 MP_KillLink((MP_Link_pt) l->data); … … 407 410 } 408 411 409 staticBOOLEAN slDumpMP(si_link l)412 LINKAGE BOOLEAN slDumpMP(si_link l) 410 413 { 411 414 mpsr_ClearError(); … … 419 422 } 420 423 421 staticBOOLEAN slGetDumpMP(si_link l)424 LINKAGE BOOLEAN slGetDumpMP(si_link l) 422 425 { 423 426 mpsr_ClearError(); … … 431 434 } 432 435 433 staticchar* slStatusMP(si_link l, char* request)436 LINKAGE char* slStatusMP(si_link l, char* request) 434 437 { 435 438 if (strcmp(request, "read") == 0) … … 456 459 ***************************************************************/ 457 460 458 int Batch_ReadEval(si_link silink)461 static int Batch_ReadEval(si_link silink) 459 462 { 460 463 leftv v = NULL; … … 502 505 503 506 504 int Batch_do(const char* port, const char* host)507 LINKAGE int Batch_do(const char* port, const char* host) 505 508 { 506 509 #ifdef MPSR_BATCH_DEBUG … … 540 543 return Batch_ReadEval(silink); 541 544 } 542 543 /***************************************************************544 *545 * MP link Extension inits546 *547 ***************************************************************/548 549 void slInitMPFileExtension(si_link_extension s)550 {551 s->Open=slOpenMPFile;552 s->Close=slCloseMP;553 s->Close=slKillMP;554 s->Read=slReadMP;555 //s->Read2=NULL;556 s->Dump=slDumpMP;557 s->GetDump=slGetDumpMP;558 s->Write=slWriteMP;559 s->Status=slStatusMP;560 s->type="MPfile";561 }562 563 void slInitMPTcpExtension(si_link_extension s)564 {565 s->Open=slOpenMPTcp;566 s->Close=slCloseMP;567 s->Kill=slKillMP;568 s->Read=slReadMP;569 //s->Read2=NULL;570 s->Dump=slDumpMP;571 s->GetDump=slGetDumpMP;572 s->Write=slWriteMP;573 s->Status=slStatusMP;574 s->type="MPtcp";575 }576 545 #endif -
Singular/p_Procs_Dynamic.cc
r52ea3f r6b32990 6 6 * Purpose: source for dynamically loaded version of p_Procs 7 7 * Author: obachman (Olaf Bachmann) 8 * Created: 8/009 * Version: $Id: p_Procs_Dynamic.cc,v 1. 1 2000-12-07 15:03:59 obachman Exp $8 * Created: 12/00 9 * Version: $Id: p_Procs_Dynamic.cc,v 1.2 2000-12-12 08:44:49 obachman Exp $ 10 10 *******************************************************************/ 11 11 #include "mod2.h" … … 23 23 BOOLEAN p_procs_dynamic = TRUE; 24 24 25 // no external linkage 26 #define LINKAGE 25 #define WARN_MSG "Singular will work properly, but much slower." 26 27 // need external linkage, so that dynl_sym works 28 #undef LINKAGE 29 #define LINKAGE extern "C" 30 #define p_Procs_Kernel 27 31 #include "p_Procs_Dynamic.inc" 28 32 … … 35 39 #define MAX_PROCNAME_LEN 200 36 40 37 static void* p_procs_handle = NULL; 38 void InitSetDynamicProcs() 39 { 40 if (p_procs_handle == NULL) 41 p_procs_handle = dynl_open_binary_warn("p_Procs"); 42 } 43 #define InitSetProcs(f, l, o) InitSetDynamicProcs() 44 45 46 void* GetGeneralProc(p_Proc proc) 41 static void* p_procs_handle_FieldIndep = NULL; 42 static void* p_procs_handle_FieldZp = NULL; 43 static void* p_procs_handle_FieldQ = NULL; 44 static void* p_procs_handle_FieldGeneral = NULL; 45 46 static void* p_ProcInitHandle(void** handle, const char* module) 47 { 48 if (*handle == NULL) 49 { 50 char name[25]; 51 sprintf(name, "p_Procs_%s", module); 52 *handle = dynl_open_binary_warn(name, WARN_MSG); 53 } 54 return *handle; 55 } 56 57 static inline void* p_ProcGetHandle(p_Proc proc, p_Field field) 58 { 59 const char* module = p_ProcField_2_Module(proc, field); 60 61 if (strcmp(module, "FieldIndep") == 0) 62 return p_ProcInitHandle(&p_procs_handle_FieldIndep, module); 63 else if (strcmp(module, "FieldZp") == 0) 64 return p_ProcInitHandle(&p_procs_handle_FieldZp, module); 65 else if (strcmp(module, "FieldQ") == 0) 66 return p_ProcInitHandle(&p_procs_handle_FieldQ, module); 67 else if (strcmp(module, "FieldGeneral") == 0) 68 return p_ProcInitHandle(&p_procs_handle_FieldGeneral, module); 69 else 70 { 71 assume(0); 72 return NULL; 73 } 74 } 75 76 77 #define InitSetProcs(f, l, o) ((void)0) 78 79 static void* GetGeneralProc(p_Proc proc) 47 80 { 48 81 switch(proc) … … 86 119 #include "omalloc.h" 87 120 88 char* GetGeneralProcName(p_Proc proc)121 static char* GetGeneralProcName(p_Proc proc) 89 122 { 90 123 switch(proc) … … 123 156 return "p_Unknown_Proc"; 124 157 } 125 char* GetDynamicProcName(const char* proc_s, p_Proc proc, 126 p_Field field, p_Length length, p_Ord ord) 158 #endif 159 160 161 static void* GetDynamicProc(const char* proc_s, p_Proc proc, 162 p_Field field, p_Length length, p_Ord ord 163 #ifdef RDEBUG 164 , int get_name = 0 165 #endif 166 ) 127 167 { 128 168 void* proc_ptr = NULL; 129 169 char proc_name[MAX_PROCNAME_LEN]; 130 131 if (p_procs_handle != NULL && 132 (field != FieldGeneral || length != LengthGeneral || ord != OrdGeneral)) 133 { 134 sprintf(proc_name, "%s__%s_%s_%s", proc_s, 135 p_FieldEnum_2_String(field), 136 p_LengthEnum_2_String(length), 137 p_OrdEnum_2_String(ord)); 138 proc_ptr = dynl_sym_warn(p_procs_handle, proc_name); 139 if (proc_ptr != NULL) 170 sprintf(proc_name, "%s__%s_%s_%s", proc_s, 171 p_FieldEnum_2_String(field), 172 p_LengthEnum_2_String(length), 173 p_OrdEnum_2_String(ord)); 174 // first, try to get the proc from the kernel 175 proc_ptr = dynl_sym(DYNL_KERNEL_HANDLE, proc_name); 176 if (proc_ptr == NULL) 177 { 178 proc_ptr = dynl_sym_warn(p_ProcGetHandle(proc, field), proc_name, WARN_MSG); 179 // last but not least use general proc 180 if (proc_ptr == NULL) 140 181 { 141 char* name = omStrDup(proc_name); 142 omMarkAsStaticAddr(name); 143 return name; 182 proc_ptr = GetGeneralProc(proc); 183 #ifdef RDEBUG 184 sprintf(proc_name, GetGeneralProcName(proc)); 185 #endif 144 186 } 145 187 } 146 return GetGeneralProcName(proc); 147 } 148 149 #endif 150 151 152 void* GetDynamicProc(const char* proc_s, p_Proc proc, 153 p_Field field, p_Length length, p_Ord ord) 154 { 155 void* proc_ptr = NULL; 156 157 if (p_procs_handle != NULL && 158 (field != FieldGeneral || length != LengthGeneral || ord != OrdGeneral)) 159 { 160 char proc_name[MAX_PROCNAME_LEN]; 161 sprintf(proc_name, "%s__%s_%s_%s", proc_s, 162 p_FieldEnum_2_String(field), 163 p_LengthEnum_2_String(length), 164 p_OrdEnum_2_String(ord)); 165 proc_ptr = dynl_sym(p_procs_handle, proc_name); 166 } 167 if (proc_ptr == NULL) 168 proc_ptr = GetGeneralProc(proc); 169 188 #ifdef RDEBUG 189 if (get_name) 190 { 191 char* name = omStrDup(proc_name); 192 omMarkAsStaticAddr(name); 193 return (void*) name; 194 } 195 #endif 170 196 return proc_ptr; 171 197 } … … 182 208 if (set_names) \ 183 209 _p_procs->what = (what##_Proc_Ptr) \ 184 GetDynamicProc Name(#what, what##_Proc, field, length, ord);\210 GetDynamicProc(#what, what##_Proc, field, length, ord, 1); \ 185 211 else \ 186 212 DoReallySetProc(what, field, length, ord); \ -
Singular/p_Procs_Dynamic.h
r52ea3f r6b32990 7 7 * Purpose: Configuration for p_Procs as dynamic library procedures 8 8 * Author: obachman (Olaf Bachmann) 9 * Created: 8/0010 * Version: $Id: p_Procs_Dynamic.h,v 1. 2 2000-12-07 18:17:22obachman Exp $9 * Created: 12/00 10 * Version: $Id: p_Procs_Dynamic.h,v 1.3 2000-12-12 08:44:49 obachman Exp $ 11 11 *******************************************************************/ 12 12 … … 15 15 16 16 // see p_Procs_Impl.h for an explaination of these defines 17 #define HAVE_FAST_P_PROCS 218 #define HAVE_FAST_FIELD 317 #define HAVE_FAST_P_PROCS 5 18 #define HAVE_FAST_FIELD 2 19 19 #define HAVE_FAST_LENGTH 4 20 20 #define HAVE_FAST_ORD 4 21 #define HAVE_FAST_ZERO_ORD 0 21 #define HAVE_FAST_ZERO_ORD 2 22 23 // for the configuration of what goes into the kenel and what into 24 // shared libs, see p_Procs_Generate.cc:IsKernelProc(...) 22 25 23 26 #endif // P_PROCS_DYNAMC_H -
Singular/p_Procs_Generate.cc
r52ea3f r6b32990 8 8 * Author: obachman (Olaf Bachmann) 9 9 * Created: 8/00 10 * Version: $Id: p_Procs_Generate.cc,v 1. 1 2000-12-07 15:04:00 obachman Exp $10 * Version: $Id: p_Procs_Generate.cc,v 1.2 2000-12-12 08:44:50 obachman Exp $ 11 11 *******************************************************************/ 12 12 … … 20 20 #ifdef p_Procs_Static 21 21 #include "p_Procs_Static.h" 22 #el if defined(p_Procs_Dynamic) || defined(p_Procs_Lib)22 #else 23 23 #include "p_Procs_Dynamic.h" 24 24 #endif 25 25 26 26 #include "p_Procs_Impl.h" 27 28 #ifndef p_Procs_Static 29 int FieldGeneralProcs = 0, 30 FieldIndepProcs = 0, 31 FieldZpProcs = 0, 32 FieldQProcs = 0, 33 KernelProcs = 0, 34 UnknownProcs = 0; 35 36 // returns 1, if proc should go into kernel, 0 otherwise 37 int IsKernelProc(p_Proc proc, p_Field field, p_Length length, p_Ord ord) 38 { 39 // general procs go into kernel 40 if (field == FieldGeneral && length == LengthGeneral && ord == OrdGeneral) 41 return 1; 42 43 // plus procs with FieldZp 44 if (field == FieldZp && 45 // which are not general in length or ord 46 !((length == LengthGeneral && p_ProcDependsOn_Length(proc)) || 47 (ord == OrdGeneral && p_ProcDependsOn_Ord(proc))) && 48 // and whose length is smaller than five 49 (!p_ProcDependsOn_Length(proc) || (length >= LengthFour))) 50 return 1; 51 52 return 0; 53 } 54 55 #endif 27 56 28 57 #define DoSetProc(what, field, length, ord) \ … … 58 87 59 88 (generated_p_procs[proc])[index(proc, field, length, ord)] = s_full_proc_name; 60 61 89 // define all macros 62 90 printf("\n// definition of %s\n", s_full_proc_name); 91 #ifndef p_Procs_Static 92 if (IsKernelProc(proc, field, length, ord)) 93 { 94 KernelProcs++; 95 printf("#ifdef p_Procs_Kernel\n"); 96 } 97 else 98 { 99 const char* module = p_ProcField_2_Module(proc, field); 100 if (strcmp(module, "FieldGeneral") == 0) 101 FieldGeneralProcs++; 102 else if (strcmp(module, "FieldIndep") == 0) 103 FieldIndepProcs++; 104 else if (strcmp(module, "FieldZp") == 0) 105 FieldZpProcs++; 106 else if (strcmp(module, "FieldQ") == 0) 107 FieldQProcs++; 108 else 109 UnknownProcs++; 110 111 printf("#ifdef p_Procs_%s\n", module); 112 } 113 #endif 63 114 i = 0; 64 115 while (macros_field[i] != NULL) … … 107 158 printf("#include \"%s__Template.cc\"\n", s_what); 108 159 printf("#undef %s\n", s_what); 160 #ifndef p_Procs_Static 161 printf("#endif // p_Procs_[Kernel|Field*]\n"); 162 #endif 109 163 } 110 164 111 165 void GenerateProc(const char* s_what, p_Proc proc, p_Field field, p_Length length, p_Ord ord) 112 166 { 113 if ( 114 #ifdef p_Procs_Lib 115 (field != FieldGeneral || length != LengthGeneral || ord != OrdGeneral) && 116 #endif 117 ! AlreadyHaveProc(proc, field, length, ord)) 167 if (! AlreadyHaveProc(proc, field, length, ord)) 118 168 AddProc(s_what, proc, field, length, ord); 119 169 } … … 134 184 * %s 135 185 * See the end for a summary. 136 *******************************************************************/ 137 138 #define %s\n\n", 139 #ifdef p_Procs_Dynamic 140 "p_Procs_Dynamic", "p_Procs_Dynamic" 141 #elif defined(p_Procs_Static) 142 "p_Procs_Static", "p_Procs_Static" 186 *******************************************************************/\n", 187 188 #if defined(p_Procs_Static) 189 "p_Procs_Static" 143 190 #else 144 "p_Procs_ Lib", "p_Procs_Lib"191 "p_Procs_Dynamic" 145 192 #endif 146 193 ); … … 153 200 } 154 201 155 // only need FieldGeneral_LengthGeneral_OrdGeneral for p_Procs_Dynamic156 #ifndef p_Procs_Dynamic157 202 // set default procs 158 203 for (field = 0; field < (int) FieldUnknown; field++) … … 162 207 for (ord=0; ord < (int)OrdUnknown; ord++) 163 208 { 164 #endif165 209 if (IsValidSpec((p_Field) field, (p_Length) length, (p_Ord) ord)) 166 210 SetProcs((p_Field) field, (p_Length) length, (p_Ord) ord); 167 #ifndef p_Procs_Dynamic168 211 } 169 212 } 170 213 } 171 #endif172 214 173 215 // we only need lookup tables for p_Procs_Static … … 229 271 * HAVE_FAST_ZERO_ORD = %d 230 272 * 231 * Generated PolyProcs= %d 232 * 233 *******************************************************************/\n", 234 HAVE_FAST_P_PROCS, HAVE_FAST_FIELD, HAVE_FAST_LENGTH, HAVE_FAST_ORD, HAVE_FAST_ZERO_ORD, 235 NumberOfHaveProcs); 236 } 237 238 273 * Generated PolyProcs= %d\n", 274 HAVE_FAST_P_PROCS, HAVE_FAST_FIELD, HAVE_FAST_LENGTH, HAVE_FAST_ORD, 275 HAVE_FAST_ZERO_ORD, NumberOfHaveProcs); 276 277 #ifndef p_Procs_Static 278 printf(" * 279 * KernelProcs = %d 280 * FieldIndepProcs = %d 281 * FieldZpProcs = %d 282 * FieldQProcs = %d 283 * FieldGeneralProcs = %d 284 * FieldUnknownProcs = %d\n", 285 KernelProcs, FieldIndepProcs, FieldZpProcs,FieldQProcs, 286 FieldGeneralProcs, UnknownProcs); 287 #endif 288 289 printf(" * 290 *******************************************************************/\n"); 291 } 292 293 -
Singular/p_Procs_Impl.h
r52ea3f r6b32990 6 6 * Purpose: implementation of primitive procs for polys 7 7 * Author: obachman (Olaf Bachmann) 8 * Created: 8/009 * Version: $Id: p_Procs_Impl.h,v 1. 1 2000-12-07 15:04:00 obachman Exp $8 * Created: 12/00 9 * Version: $Id: p_Procs_Impl.h,v 1.2 2000-12-12 08:44:50 obachman Exp $ 10 10 *******************************************************************/ 11 11 #ifndef P_PROCS_IMPL_H … … 102 102 103 103 // If you add/remove things from here, also remeber to adjust the 104 // respective *_2_String 104 // respective *_2_String 105 105 typedef enum p_Field 106 106 { 107 107 FieldGeneral = 0, 108 108 FieldZp, 109 FieldQ, 109 110 FieldR, 110 111 FieldGF, 111 FieldQ,112 112 #if HAVE_MORE_FIELDS_IMPLEMENTED 113 113 FieldLong_R, … … 199 199 case FieldGeneral: return "FieldGeneral"; 200 200 case FieldZp: return "FieldZp"; 201 case FieldQ: return "FieldQ"; 201 202 case FieldR: return "FieldR"; 202 203 case FieldGF: return "FieldGF"; 203 case FieldQ: return "FieldQ";204 204 #if HAVE_MORE_FIELDS_IMPLEMENTED 205 205 case FieldLong_R: return "FieldLong_R"; … … 284 284 } 285 285 286 static inline int p_ProcDependsOn_Field(p_Proc proc) 287 { 288 if (proc == p_ShallowCopyDelete_Proc || 289 proc == p_Merge_q_Proc) 290 return 0; 291 return 1; 292 } 293 294 static inline int p_ProcDependsOn_Ord(p_Proc proc) 295 { 296 switch(proc) 297 { 298 case p_Add_q_Proc: 299 case p_Minus_mm_Mult_qq_Proc: 300 case pp_Mult_mm_Noether_Proc: 301 case p_kBucketSetLm_Proc: 302 case p_Merge_q_Proc: 303 return 1; 304 305 default: 306 return 0; 307 } 308 } 309 310 static inline int p_ProcDependsOn_Length(p_Proc proc) 311 { 312 switch(proc) 313 { 314 case p_Delete_Proc: 315 case p_Mult_nn_Proc: 316 case p_Neg_Proc: 317 return 0; 318 319 default: 320 return 1; 321 } 322 } 323 324 // returns string specifying the module into which the p_Proc 325 // should go 326 static inline const char* p_ProcField_2_Module(p_Proc proc, p_Field field) 327 { 328 if (! p_ProcDependsOn_Field(proc)) 329 return "FieldIndep"; 330 else 331 { 332 if (field > FieldQ) field = FieldGeneral; 333 return p_FieldEnum_2_String(field); 334 } 335 } 336 286 337 /*************************************************************** 287 338 * … … 454 505 break; 455 506 456 case p_kBucketSetLm_Proc:457 {458 if (field != FieldZp)459 {460 field = FieldGeneral;461 length = LengthGeneral;462 ord = OrdGeneral;463 return;464 }465 }466 467 507 default: break; 468 508 } -
Singular/p_Procs_Lib.cc
r52ea3f r6b32990 6 6 * Purpose: source for shared library of p_Procs 7 7 * Author: obachman (Olaf Bachmann) 8 * Created: 8/009 * Version: $Id: p_Procs_Lib.cc,v 1. 1 2000-12-07 15:06:39obachman Exp $8 * Created: 12/00 9 * Version: $Id: p_Procs_Lib.cc,v 1.2 2000-12-12 08:44:50 obachman Exp $ 10 10 *******************************************************************/ 11 11 #include "mod2.h" … … 20 20 #include "kbuckets.h" 21 21 22 # define LINKAGE extern "C"22 #include "p_Procs_Dynamic.inc" 23 23 24 #include "p_Procs_Lib.inc"25 -
Singular/p_Procs_Set.h
r52ea3f r6b32990 11 11 * have to be defined before this file is included 12 12 * Author: obachman (Olaf Bachmann) 13 * Created: 8/0014 * Version: $Id: p_Procs_Set.h,v 1. 1 2000-12-07 15:04:00 obachman Exp $13 * Created: 12/00 14 * Version: $Id: p_Procs_Set.h,v 1.2 2000-12-12 08:44:50 obachman Exp $ 15 15 *******************************************************************/ 16 16 -
Singular/p_Procs_Static.cc
r52ea3f r6b32990 6 6 * Purpose: source for static version of p_Procs 7 7 * Author: obachman (Olaf Bachmann) 8 * Created: 8/009 * Version: $Id: p_Procs_Static.cc,v 1. 1 2000-12-07 15:04:01obachman Exp $8 * Created: 12/00 9 * Version: $Id: p_Procs_Static.cc,v 1.2 2000-12-12 08:44:50 obachman Exp $ 10 10 *******************************************************************/ 11 11 #include "mod2.h" … … 22 22 BOOLEAN p_procs_dynamic = FALSE; 23 23 24 #define LINKAGE25 24 #include "p_Procs_Static.inc" 26 25 -
Singular/p_Procs_Static.h
r52ea3f r6b32990 6 6 * Purpose: Configuration for static p_Procs 7 7 * Author: obachman (Olaf Bachmann) 8 * Created: 8/009 * Version: $Id: p_Procs_Static.h,v 1. 1 2000-12-07 15:04:01 obachman Exp $8 * Created: 12/00 9 * Version: $Id: p_Procs_Static.h,v 1.2 2000-12-12 08:44:51 obachman Exp $ 10 10 *******************************************************************/ 11 11 -
Singular/p_kBucketSetLm__Template.cc
r52ea3f r6b32990 6 6 * Purpose: template for setting the Lm of a bucket 7 7 * Author: obachman (Olaf Bachmann) 8 * Created: 8/009 * Version: $Id: p_kBucketSetLm__Template.cc,v 1. 3 2000-12-07 15:04:01 obachman Exp $8 * Created: 12/00 9 * Version: $Id: p_kBucketSetLm__Template.cc,v 1.4 2000-12-12 08:44:51 obachman Exp $ 10 10 *******************************************************************/ 11 11 -
Singular/ring.cc
r52ea3f r6b32990 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: ring.cc,v 1.14 8 2000-12-07 15:04:02obachman Exp $ */4 /* $Id: ring.cc,v 1.149 2000-12-12 08:44:51 obachman Exp $ */ 5 5 6 6 /* … … 671 671 int nblocks=rBlocks(r); 672 672 673 omCheckAddrSize(r,sizeof(ip_sring));673 // omCheckAddrSize(r,sizeof(ip_sring)); 674 674 omCheckAddrSize(r->order,nblocks*sizeof(int)); 675 675 omCheckAddrSize(r->block0,nblocks*sizeof(int)); … … 677 677 omCheckAddrSize(r->wvhdl,nblocks*sizeof(int_ptr)); 678 678 omCheckAddrSize(r->names,r->N*sizeof(char_ptr)); 679 679 680 680 681 nblocks--; -
Singular/silink.cc
r52ea3f r6b32990 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: silink.cc,v 1.3 7 2000-12-06 11:03:29 SingularExp $ */4 /* $Id: silink.cc,v 1.38 2000-12-12 08:44:52 obachman Exp $ */ 5 5 6 6 /* … … 35 35 static BOOLEAN DumpQring(FILE *fd, idhdl h, char *type_str); 36 36 static BOOLEAN DumpAsciiMaps(FILE *fd, idhdl h, idhdl rhdl); 37 static si_link_extension slTypeInit(si_link_extension s, const char* type); 37 38 38 39 /* ====================================================================== */ … … 83 84 { 84 85 si_link_extension s = si_link_root; 85 86 while (s != NULL && (strcmp(s->type, type) != 0)) s = s->next; 86 si_link_extension prev = s; 87 88 while (strcmp(s->type, type) != 0) 89 { 90 if (s->next == NULL) 91 { 92 prev = s; 93 s = NULL; 94 break; 95 } 96 else 97 { 98 s = s->next; 99 } 100 } 87 101 88 102 if (s != NULL) … … 90 104 else 91 105 { 92 Warn("Found unknown link type: %s", type); 93 Warn("Use default link type: %s", si_link_root->type); 94 l->m = si_link_root; 106 l->m = slTypeInit(prev, type); 95 107 } 96 108 omFree(type); … … 99 111 l->m = si_link_root; 100 112 113 if (l->m == NULL) return TRUE; 114 101 115 l->name = (name != NULL ? name : omStrDup("")); 102 116 l->mode = (mode != NULL ? mode : omStrDup("")); … … 809 823 /*------------Initialization at Start-up time------------------------*/ 810 824 825 #include "slInit.h" 826 827 static si_link_extension slTypeInit(si_link_extension s, const char* type) 828 { 829 assume(s != NULL); 830 s->next = NULL; 831 si_link_extension ns = (si_link_extension)omAlloc0Bin(s_si_link_extension_bin); 832 833 #ifdef HAVE_MPSR 834 if (strcmp(type, "MPfile") == 0) 835 s->next = slInitMPFileExtension(ns); 836 else if (strcmp(type, "MPtcp") == 0) 837 s->next = slInitMPTcpExtension(ns); 811 838 #ifdef HAVE_DBM 812 #include "sing_dbm.h" 813 #endif 814 815 #ifdef HAVE_MPSR 816 #include "sing_mp.h" 817 #endif 839 else 840 #endif 841 #endif 842 #ifdef HAVE_DBM 843 if (strcmp(type, "DBM") == 0) 844 s->next = slInitDBMExtension(ns); 845 #endif 846 #if defined(HAVE_DBM) || defined(HAVE_MPSR) 847 else 848 #endif 849 { 850 Warn("Found unknown link type: %s", type); 851 Warn("Use default link type: %s", si_link_root->type); 852 omFreeBin(ns, s_si_link_extension_bin); 853 return si_link_root; 854 } 855 856 if (s->next == NULL) 857 { 858 Werror("Can not initialize link type %s", type); 859 omFreeBin(ns, s_si_link_extension_bin); 860 return NULL; 861 } 862 return s->next; 863 } 818 864 819 865 void slStandardInit() … … 832 878 si_link_root->type="ASCII"; 833 879 s = si_link_root; 834 #ifdef HAVE_DBM 835 #ifndef HAVE_MODULE_DBM 836 s->next = (si_link_extension)omAlloc0Bin(s_si_link_extension_bin); 837 s = s->next; 838 slInitDBMExtension(s); 839 #endif 840 #endif 841 #ifdef HAVE_MPSR 842 s->next = (si_link_extension)omAlloc0Bin(s_si_link_extension_bin); 843 s = s->next; 844 slInitMPFileExtension(s); 845 s->next = (si_link_extension)omAlloc0Bin(s_si_link_extension_bin); 846 s = s->next; 847 slInitMPTcpExtension(s); 848 #endif 849 } 880 s->next = NULL; 881 } -
Singular/silink.h
r52ea3f r6b32990 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: silink.h,v 1.1 4 2000-08-14 12:56:49obachman Exp $ */6 /* $Id: silink.h,v 1.15 2000-12-12 08:44:53 obachman Exp $ */ 7 7 /* 8 8 * ABSTRACT: general interface to links … … 47 47 }; 48 48 49 BOOLEAN slExtend(si_link_extension s);50 51 49 // flags: 52 50 #define SI_LINK_CLOSE 0 … … 85 83 return l; 86 84 } 85 86 #include "omalloc.h" 87 87 inline char* slString(si_link l) 88 88 { -
Singular/sing_dbm.cc
r52ea3f r6b32990 5 5 //**************************************************************************/ 6 6 // 7 // $Id: sing_dbm.cc,v 1.1 4 2000-09-18 09:19:33 obachman Exp $7 // $Id: sing_dbm.cc,v 1.15 2000-12-12 08:44:53 obachman Exp $ 8 8 // 9 9 //**************************************************************************/ … … 36 36 37 37 //**************************************************************************/ 38 BOOLEAN dbOpen(si_link l, short flag)38 LINKAGE BOOLEAN dbOpen(si_link l, short flag) 39 39 { 40 40 char *mode = "r"; … … 73 73 74 74 //**************************************************************************/ 75 BOOLEAN dbClose(si_link l)75 LINKAGE BOOLEAN dbClose(si_link l) 76 76 { 77 77 DBM_info *db = (DBM_info *)l->data; … … 86 86 //**************************************************************************/ 87 87 static datum d_value; 88 leftv dbRead2(si_link l, leftv key)88 LINKAGE leftv dbRead2(si_link l, leftv key) 89 89 { 90 90 DBM_info *db = (DBM_info *)l->data; … … 132 132 return v; 133 133 } 134 leftv dbRead1(si_link l)134 LINKAGE leftv dbRead1(si_link l) 135 135 { 136 136 return dbRead2(l,NULL); 137 137 } 138 138 //**************************************************************************/ 139 BOOLEAN dbWrite(si_link l, leftv key)139 LINKAGE BOOLEAN dbWrite(si_link l, leftv key) 140 140 { 141 141 DBM_info *db = (DBM_info *)l->data; … … 205 205 //} 206 206 //**************************************************************************/ 207 si_link_extension slInitDBMExtension(si_link_extension s) 208 { 209 s->Open=dbOpen; 210 s->Close=dbClose; 211 s->Kill=dbClose; 212 s->Read=dbRead1; 213 s->Read2=dbRead2; 214 s->Write=dbWrite; 215 //s->Dump=NULL; 216 //s->GetDump=NULL; 217 //s->Status=dbStatus; 218 s->Status=slStatusAscii; 219 s->type="DBM"; 220 return s; 221 } 207 222 208 #endif /* HAVE_DBM */ -
Singular/tesths.cc
r52ea3f r6b32990 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: tesths.cc,v 1.8 2 2000-09-18 09:19:38obachman Exp $ */4 /* $Id: tesths.cc,v 1.83 2000-12-12 08:44:55 obachman Exp $ */ 5 5 6 6 /* … … 30 30 #include "distrib.h" 31 31 #include "version.h" 32 #include "slInit.h" 32 33 33 34 #ifdef HAVE_FACTORY … … 213 214 { 214 215 #ifdef HAVE_MPSR 215 extern int Batch_do(const char* port, const char* host); 216 return Batch_do((char*) feOptValue(FE_OPT_MPPORT), 217 (char*) feOptValue(FE_OPT_MPHOST)); 216 BatchDoProc batch_do = slInitMPBatchDo(); 217 if (batch_do != NULL) 218 return (*batch_do)((char*) feOptValue(FE_OPT_MPPORT), 219 (char*) feOptValue(FE_OPT_MPHOST)); 220 else 221 return 1; 218 222 #else 219 223 assume(0);
Note: See TracChangeset
for help on using the changeset viewer.