Changeset 416465 in git
- Timestamp:
- Nov 15, 1999, 6:20:58 PM (24 years ago)
- Branches:
- (u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
- Children:
- 721650e849298f036e56d58feb3f554f1bd4d84b
- Parents:
- 57e94c4a2330bb253fb2189a2502d15dabe880e9
- Location:
- Singular
- Files:
-
- 5 added
- 165 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
Singular/Makefile.in
r57e94c4 r416465 88 88 GMPrat.cc multicnt.cc npolygon.cc semic.cc spectrum.cc splist.cc \ 89 89 ndbm.cc libparse.cc mod_raw.cc\ 90 pcv.cc kbuckets.cc pProcs.cc \ 91 mpr_inout.cc mpr_base.cc mpr_numeric.cc 90 pcv.cc kbuckets.cc prProcs.cc \ 91 mpr_inout.cc mpr_base.cc mpr_numeric.cc \ 92 prCopy.cc 92 93 93 94 … … 122 123 ndbm.h polys-impl.h polys-comp.h libparse.h \ 123 124 GMPrat.h multicnt.h npolygon.h semic.h spectrum.h splist.h multicnt.h \ 124 pcv.h mod_raw.h kbuckets.h p Procs.h \125 pcv.h mod_raw.h kbuckets.h prProcs.h \ 125 126 mpr_global.h mpr_inout.h mpr_base.h mpr_numeric.h \ 126 feOpt.h fegetopt.h distrib.h walk.h 127 feOpt.h fegetopt.h distrib.h walk.h \ 128 prCopy.h 127 129 128 130 INCS=febase.inc polys.inc iparith.inc mpsr_Tok.inc feOpt.inc … … 252 254 rm a.out 253 255 256 prCopy.cc : prCopy.inc 257 258 prCopy.inc : prCopyMacros.h prCopyTemplate.cc prCopy.pl 259 $(PERL5) prCopy.pl > prCopy.inc 260 254 261 src: scanner.cc grammar.h grammar.cc libparse.cc 255 262 -
Singular/algmap.cc
r57e94c4 r416465 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: algmap.cc,v 1.1 4 1999-10-14 14:26:56obachman Exp $ */4 /* $Id: algmap.cc,v 1.15 1999-11-15 17:19:47 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT - the mapping of polynomials from rings with -
Singular/algmap.h
r57e94c4 r416465 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: algmap.h,v 1. 3 1997-04-09 12:19:37 SingularExp $ */6 /* $Id: algmap.h,v 1.4 1999-11-15 17:19:48 obachman Exp $ */ 7 7 /* 8 8 * ABSTRACT: -
Singular/aso.h
r57e94c4 r416465 4 4 * aso.h: Header file for generation of ALLOC_SIZE_OF_ macros 5 5 * 6 * Version: $Id: aso.h,v 1. 2 1999-10-26 15:06:09obachman Exp $6 * Version: $Id: aso.h,v 1.3 1999-11-15 17:19:48 obachman Exp $ 7 7 *******************************************************************/ 8 8 #ifndef ASO_H -
Singular/attrib.cc
r57e94c4 r416465 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: attrib.cc,v 1.1 6 1999-10-14 14:26:57obachman Exp $ */4 /* $Id: attrib.cc,v 1.17 1999-11-15 17:19:48 obachman Exp $ */ 5 5 6 6 /* -
Singular/attrib.h
r57e94c4 r416465 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: attrib.h,v 1. 4 1999-10-14 14:26:57obachman Exp $ */6 /* $Id: attrib.h,v 1.5 1999-11-15 17:19:48 obachman Exp $ */ 7 7 /* 8 8 * ABSTRACT: attributes to leftv and idhdl -
Singular/binom.cc
r57e94c4 r416465 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: binom.cc,v 1.1 4 1998-03-23 22:50:54obachman Exp $ */4 /* $Id: binom.cc,v 1.15 1999-11-15 17:19:49 obachman Exp $ */ 5 5 6 6 /* -
Singular/binom.h
r57e94c4 r416465 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: binom.h,v 1.1 1 1998-01-27 18:51:18 SingularExp $ */6 /* $Id: binom.h,v 1.12 1999-11-15 17:19:49 obachman Exp $ */ 7 7 /* 8 8 * ABSTRACT - set order (=number of monomial) for dp -
Singular/check_aso.pl
r57e94c4 r416465 1 1 #!/usr/local/bin/perl 2 2 ########################################################################### 3 # $Id: check_aso.pl,v 1. 1 1999-10-14 14:46:48obachman Exp $3 # $Id: check_aso.pl,v 1.2 1999-11-15 17:19:49 obachman Exp $ 4 4 5 5 ########################################################################### -
Singular/clapconv.cc
r57e94c4 r416465 3 3 * Computer Algebra System SINGULAR * 4 4 ****************************************/ 5 // $Id: clapconv.cc,v 1.2 1 1999-10-14 14:26:57obachman Exp $5 // $Id: clapconv.cc,v 1.22 1999-11-15 17:19:50 obachman Exp $ 6 6 /* 7 7 * ABSTRACT: convert data between Singular and factory -
Singular/clapconv.h
r57e94c4 r416465 3 3 * Computer Algebra System SINGULAR * 4 4 ****************************************/ 5 // $Id: clapconv.h,v 1. 7 1999-06-15 08:33:13 SingularExp $5 // $Id: clapconv.h,v 1.8 1999-11-15 17:19:50 obachman Exp $ 6 6 /* 7 7 * ABSTRACT: convert data between Singular and factory -
Singular/clapmem.cc
r57e94c4 r416465 3 3 * Computer Algebra System SINGULAR * 4 4 ****************************************/ 5 // $Id: clapmem.cc,v 1. 3 1997-04-25 15:03:52obachman Exp $5 // $Id: clapmem.cc,v 1.4 1999-11-15 17:19:50 obachman Exp $ 6 6 /* 7 7 * ABSTRACT: map new[]/delete[] to Singular memeory management -
Singular/clapsing.cc
r57e94c4 r416465 3 3 * Computer Algebra System SINGULAR * 4 4 ****************************************/ 5 // $Id: clapsing.cc,v 1.5 7 1999-10-27 15:04:42 SingularExp $5 // $Id: clapsing.cc,v 1.58 1999-11-15 17:19:50 obachman Exp $ 6 6 /* 7 7 * ABSTRACT: interface between Singular and factory -
Singular/clapsing.h
r57e94c4 r416465 3 3 * Computer Algebra System SINGULAR * 4 4 ****************************************/ 5 // $Id: clapsing.h,v 1. 5 1998-12-16 18:43:36 SingularExp $5 // $Id: clapsing.h,v 1.6 1999-11-15 17:19:51 obachman Exp $ 6 6 /* 7 7 * ABSTRACT: interface between Singular and factory -
Singular/claptmpl.cc
r57e94c4 r416465 3 3 * Computer Algebra System SINGULAR * 4 4 ****************************************/ 5 // $Id: claptmpl.cc,v 1. 19 1999-08-12 10:57:32 SingularExp $5 // $Id: claptmpl.cc,v 1.20 1999-11-15 17:19:51 obachman Exp $ 6 6 /* 7 7 * ABSTRACT - instantiation of all templates -
Singular/cntrlc.cc
r57e94c4 r416465 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: cntrlc.cc,v 1.2 6 1999-10-26 15:06:10obachman Exp $ */4 /* $Id: cntrlc.cc,v 1.27 1999-11-15 17:19:52 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT - interupt handling -
Singular/cntrlc.h
r57e94c4 r416465 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: cntrlc.h,v 1. 6 1997-07-01 15:41:44 SingularExp $ */6 /* $Id: cntrlc.h,v 1.7 1999-11-15 17:19:52 obachman Exp $ */ 7 7 /* 8 8 * ABSTRACT - interupt and signal handling -
Singular/configure
r57e94c4 r416465 2 2 3 3 # Guess values for system-dependent variables and create Makefiles. 4 # Generated automatically using autoconf version 2.1 24 # Generated automatically using autoconf version 2.13 5 5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. 6 6 # … … 84 84 subdirs= 85 85 MFLAGS= MAKEFLAGS= 86 SHELL=${CONFIG_SHELL-/bin/sh} 86 87 # Maximum number of lines to put in a shell here document. 87 88 ac_max_here_lines=12 … … 367 368 368 369 -version | --version | --versio | --versi | --vers) 369 echo "configure generated by autoconf version 2.1 2"370 echo "configure generated by autoconf version 2.13" 370 371 exit 0 ;; 371 372 … … 537 538 ac_cpp='$CPP $CPPFLAGS' 538 539 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 539 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'540 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 540 541 cross_compiling=$ac_cv_prog_cc_cross 541 542 543 ac_exeext= 544 ac_objext=o 542 545 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 543 546 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. … … 557 560 558 561 echo $ac_n "checking uname for singular""... $ac_c" 1>&6 559 echo "configure:56 0: checking uname for singular" >&5562 echo "configure:563: checking uname for singular" >&5 560 563 if eval "test \"`echo '$''{'ac_cv_singuname'+set}'`\" = set"; then 561 564 echo $ac_n "(cached) $ac_c" 1>&6 … … 645 648 set dummy gcc; ac_word=$2 646 649 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 647 echo "configure:6 48: checking for $ac_word" >&5650 echo "configure:651: checking for $ac_word" >&5 648 651 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 649 652 echo $ac_n "(cached) $ac_c" 1>&6 … … 652 655 ac_cv_prog_CC="$CC" # Let the user override the test. 653 656 else 654 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 655 for ac_dir in $PATH; do 657 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 658 ac_dummy="$PATH" 659 for ac_dir in $ac_dummy; do 656 660 test -z "$ac_dir" && ac_dir=. 657 661 if test -f $ac_dir/$ac_word; then … … 674 678 set dummy cc; ac_word=$2 675 679 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 676 echo "configure:6 77: checking for $ac_word" >&5680 echo "configure:681: checking for $ac_word" >&5 677 681 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 678 682 echo $ac_n "(cached) $ac_c" 1>&6 … … 681 685 ac_cv_prog_CC="$CC" # Let the user override the test. 682 686 else 683 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=" ${IFS}:"687 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 684 688 ac_prog_rejected=no 685 for ac_dir in $PATH; do 689 ac_dummy="$PATH" 690 for ac_dir in $ac_dummy; do 686 691 test -z "$ac_dir" && ac_dir=. 687 692 if test -f $ac_dir/$ac_word; then … … 718 723 fi 719 724 725 if test -z "$CC"; then 726 case "`uname -s`" in 727 *win32* | *WIN32*) 728 # Extract the first word of "cl", so it can be a program name with args. 729 set dummy cl; ac_word=$2 730 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 731 echo "configure:732: checking for $ac_word" >&5 732 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 733 echo $ac_n "(cached) $ac_c" 1>&6 734 else 735 if test -n "$CC"; then 736 ac_cv_prog_CC="$CC" # Let the user override the test. 737 else 738 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 739 ac_dummy="$PATH" 740 for ac_dir in $ac_dummy; do 741 test -z "$ac_dir" && ac_dir=. 742 if test -f $ac_dir/$ac_word; then 743 ac_cv_prog_CC="cl" 744 break 745 fi 746 done 747 IFS="$ac_save_ifs" 748 fi 749 fi 750 CC="$ac_cv_prog_CC" 751 if test -n "$CC"; then 752 echo "$ac_t""$CC" 1>&6 753 else 754 echo "$ac_t""no" 1>&6 755 fi 756 ;; 757 esac 758 fi 720 759 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 721 760 fi 722 761 723 762 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 724 echo "configure:7 25: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5763 echo "configure:764: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 725 764 726 765 ac_ext=c … … 728 767 ac_cpp='$CPP $CPPFLAGS' 729 768 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 730 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'769 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 731 770 cross_compiling=$ac_cv_prog_cc_cross 732 771 733 cat > conftest.$ac_ext <<EOF 734 #line 735 "configure" 735 #include "confdefs.h" 772 cat > conftest.$ac_ext << EOF 773 774 #line 775 "configure" 775 #include "confdefs.h" 776 736 777 main(){return(0);} 737 778 EOF 738 if { (eval echo configure:7 39: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then779 if { (eval echo configure:780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 739 780 ac_cv_prog_cc_works=yes 740 781 # If we can't run a trivial program, we are probably using a cross compiler. … … 750 791 fi 751 792 rm -fr conftest* 793 ac_ext=c 794 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 795 ac_cpp='$CPP $CPPFLAGS' 796 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 797 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 798 cross_compiling=$ac_cv_prog_cc_cross 752 799 753 800 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 … … 756 803 fi 757 804 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 758 echo "configure: 759: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5805 echo "configure:806: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 759 806 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 760 807 cross_compiling=$ac_cv_prog_cc_cross 761 808 762 809 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 763 echo "configure: 764: checking whether we are using GNU C" >&5810 echo "configure:811: checking whether we are using GNU C" >&5 764 811 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 765 812 echo $ac_n "(cached) $ac_c" 1>&6 … … 770 817 #endif 771 818 EOF 772 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure: 773: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then819 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 773 820 ac_cv_prog_gcc=yes 774 821 else … … 781 828 if test $ac_cv_prog_gcc = yes; then 782 829 GCC=yes 783 ac_test_CFLAGS="${CFLAGS+set}" 784 ac_save_CFLAGS="$CFLAGS" 785 CFLAGS= 786 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 787 echo "configure:788: checking whether ${CC-cc} accepts -g" >&5 830 else 831 GCC= 832 fi 833 834 ac_test_CFLAGS="${CFLAGS+set}" 835 ac_save_CFLAGS="$CFLAGS" 836 CFLAGS= 837 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 838 echo "configure:839: checking whether ${CC-cc} accepts -g" >&5 788 839 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 789 840 echo $ac_n "(cached) $ac_c" 1>&6 … … 800 851 801 852 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 802 if test "$ac_test_CFLAGS" = set; then 803 CFLAGS="$ac_save_CFLAGS" 804 elif test $ac_cv_prog_cc_g = yes; then 853 if test "$ac_test_CFLAGS" = set; then 854 CFLAGS="$ac_save_CFLAGS" 855 elif test $ac_cv_prog_cc_g = yes; then 856 if test "$GCC" = yes; then 805 857 CFLAGS="-g -O2" 806 858 else 859 CFLAGS="-g" 860 fi 861 else 862 if test "$GCC" = yes; then 807 863 CFLAGS="-O2" 864 else 865 CFLAGS= 808 866 fi 809 else810 GCC=811 test "${CFLAGS+set}" = set || CFLAGS="-g"812 867 fi 813 868 814 869 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 815 echo "configure:8 16: checking how to run the C preprocessor" >&5870 echo "configure:871: checking how to run the C preprocessor" >&5 816 871 # On Suns, sometimes $CPP names a directory. 817 872 if test -n "$CPP" && test -d "$CPP"; then … … 828 883 # not just through cpp. 829 884 cat > conftest.$ac_ext <<EOF 830 #line 8 31"configure"885 #line 886 "configure" 831 886 #include "confdefs.h" 832 887 #include <assert.h> … … 834 889 EOF 835 890 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 836 { (eval echo configure:8 37: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }837 ac_err=`grep -v '^ *+' conftest.out `891 { (eval echo configure:892: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 892 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 838 893 if test -z "$ac_err"; then 839 894 : … … 845 900 CPP="${CC-cc} -E -traditional-cpp" 846 901 cat > conftest.$ac_ext <<EOF 847 #line 848"configure"902 #line 903 "configure" 848 903 #include "confdefs.h" 849 904 #include <assert.h> … … 851 906 EOF 852 907 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 853 { (eval echo configure: 854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }854 ac_err=`grep -v '^ *+' conftest.out `908 { (eval echo configure:909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 909 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 855 910 if test -z "$ac_err"; then 856 911 : … … 860 915 cat conftest.$ac_ext >&5 861 916 rm -rf conftest* 917 CPP="${CC-cc} -nologo -E" 918 cat > conftest.$ac_ext <<EOF 919 #line 920 "configure" 920 #include "confdefs.h" 921 #include <assert.h> 922 Syntax Error 923 EOF 924 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 925 { (eval echo configure:926: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 926 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 927 if test -z "$ac_err"; then 928 : 929 else 930 echo "$ac_err" >&5 931 echo "configure: failed program was:" >&5 932 cat conftest.$ac_ext >&5 933 rm -rf conftest* 862 934 CPP=/lib/cpp 863 935 fi … … 865 937 fi 866 938 rm -f conftest* 939 fi 940 rm -f conftest* 867 941 ac_cv_prog_CPP="$CPP" 868 942 fi … … 873 947 echo "$ac_t""$CPP" 1>&6 874 948 875 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ 949 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl 876 950 do 877 951 # Extract the first word of "$ac_prog", so it can be a program name with args. 878 952 set dummy $ac_prog; ac_word=$2 879 953 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 880 echo "configure: 881: checking for $ac_word" >&5954 echo "configure:955: checking for $ac_word" >&5 881 955 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then 882 956 echo $ac_n "(cached) $ac_c" 1>&6 … … 885 959 ac_cv_prog_CXX="$CXX" # Let the user override the test. 886 960 else 887 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 888 for ac_dir in $PATH; do 961 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 962 ac_dummy="$PATH" 963 for ac_dir in $ac_dummy; do 889 964 test -z "$ac_dir" && ac_dir=. 890 965 if test -f $ac_dir/$ac_word; then … … 909 984 910 985 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 911 echo "configure:9 12: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5986 echo "configure:987: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 912 987 913 988 ac_ext=C … … 915 990 ac_cpp='$CXXCPP $CPPFLAGS' 916 991 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 917 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'992 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 918 993 cross_compiling=$ac_cv_prog_cxx_cross 919 994 920 cat > conftest.$ac_ext <<EOF 921 #line 922 "configure" 922 #include "confdefs.h" 923 main(){return(0);} 924 EOF 925 if { (eval echo configure:926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 995 cat > conftest.$ac_ext << EOF 996 997 #line 998 "configure" 998 #include "confdefs.h" 999 1000 int main(){return(0);} 1001 EOF 1002 if { (eval echo configure:1003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 926 1003 ac_cv_prog_cxx_works=yes 927 1004 # If we can't run a trivial program, we are probably using a cross compiler. … … 941 1018 ac_cpp='$CPP $CPPFLAGS' 942 1019 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 943 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'1020 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 944 1021 cross_compiling=$ac_cv_prog_cc_cross 945 1022 … … 949 1026 fi 950 1027 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 951 echo "configure: 952: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&51028 echo "configure:1029: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 952 1029 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 953 1030 cross_compiling=$ac_cv_prog_cxx_cross 954 1031 955 1032 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 956 echo "configure: 957: checking whether we are using GNU C++" >&51033 echo "configure:1034: checking whether we are using GNU C++" >&5 957 1034 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then 958 1035 echo $ac_n "(cached) $ac_c" 1>&6 … … 963 1040 #endif 964 1041 EOF 965 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure: 966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then1042 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1043: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 966 1043 ac_cv_prog_gxx=yes 967 1044 else … … 974 1051 if test $ac_cv_prog_gxx = yes; then 975 1052 GXX=yes 976 ac_test_CXXFLAGS="${CXXFLAGS+set}" 977 ac_save_CXXFLAGS="$CXXFLAGS" 978 CXXFLAGS= 979 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 980 echo "configure:981: checking whether ${CXX-g++} accepts -g" >&5 1053 else 1054 GXX= 1055 fi 1056 1057 ac_test_CXXFLAGS="${CXXFLAGS+set}" 1058 ac_save_CXXFLAGS="$CXXFLAGS" 1059 CXXFLAGS= 1060 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 1061 echo "configure:1062: checking whether ${CXX-g++} accepts -g" >&5 981 1062 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then 982 1063 echo $ac_n "(cached) $ac_c" 1>&6 … … 993 1074 994 1075 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 995 if test "$ac_test_CXXFLAGS" = set; then 996 CXXFLAGS="$ac_save_CXXFLAGS" 997 elif test $ac_cv_prog_cxx_g = yes; then 1076 if test "$ac_test_CXXFLAGS" = set; then 1077 CXXFLAGS="$ac_save_CXXFLAGS" 1078 elif test $ac_cv_prog_cxx_g = yes; then 1079 if test "$GXX" = yes; then 998 1080 CXXFLAGS="-g -O2" 999 1081 else 1082 CXXFLAGS="-g" 1083 fi 1084 else 1085 if test "$GXX" = yes; then 1000 1086 CXXFLAGS="-O2" 1087 else 1088 CXXFLAGS= 1001 1089 fi 1002 else1003 GXX=1004 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"1005 1090 fi 1006 1091 1007 1092 echo $ac_n "checking for AIX""... $ac_c" 1>&6 1008 echo "configure:10 09: checking for AIX" >&51093 echo "configure:1094: checking for AIX" >&5 1009 1094 cat > conftest.$ac_ext <<EOF 1010 #line 10 11"configure"1095 #line 1096 "configure" 1011 1096 #include "confdefs.h" 1012 1097 #ifdef _AIX … … 1038 1123 # check whether the compiler accepts -pipe 1039 1124 echo $ac_n "checking whether compiler accepts -pipe""... $ac_c" 1>&6 1040 echo "configure:1 041: checking whether compiler accepts -pipe" >&51125 echo "configure:1126: checking whether compiler accepts -pipe" >&5 1041 1126 temp_cflags=${CFLAGS} 1042 1127 CFLAGS="${CFLAGS} -pipe" … … 1045 1130 else 1046 1131 cat > conftest.$ac_ext <<EOF 1047 #line 1 048"configure"1132 #line 1133 "configure" 1048 1133 #include "confdefs.h" 1049 1134 … … 1052 1137 ; return 0; } 1053 1138 EOF 1054 if { (eval echo configure:1 055: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then1139 if { (eval echo configure:1140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1055 1140 rm -rf conftest* 1056 1141 ac_cv_cxx_have_pipe=yes … … 1076 1161 # Customize CFLAGS 1077 1162 echo $ac_n "checking whether _AIX is defined""... $ac_c" 1>&6 1078 echo "configure:1 079: checking whether _AIX is defined" >&51163 echo "configure:1164: checking whether _AIX is defined" >&5 1079 1164 if eval "test \"`echo '$''{'ac_cv_is_aix'+set}'`\" = set"; then 1080 1165 echo $ac_n "(cached) $ac_c" 1>&6 1081 1166 else 1082 1167 cat > conftest.$ac_ext <<EOF 1083 #line 1 084"configure"1168 #line 1169 "configure" 1084 1169 #include "confdefs.h" 1085 1170 #ifdef _AIX … … 1132 1217 1133 1218 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 1134 echo "configure:1 135: checking whether ${MAKE-make} sets \${MAKE}" >&51219 echo "configure:1220: checking whether ${MAKE-make} sets \${MAKE}" >&5 1135 1220 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 1136 1221 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then … … 1205 1290 if test "${with_lex+set}" != set; then 1206 1291 echo $ac_n "checking for flex""... $ac_c" 1>&6 1207 echo "configure:12 08: checking for flex" >&51292 echo "configure:1293: checking for flex" >&5 1208 1293 if eval "test \"`echo '$''{'ac_cv_prog_flex'+set}'`\" = set"; then 1209 1294 echo $ac_n "(cached) $ac_c" 1>&6 … … 1236 1321 set dummy $ac_prog; ac_word=$2 1237 1322 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1238 echo "configure:1 239: checking for $ac_word" >&51323 echo "configure:1324: checking for $ac_word" >&5 1239 1324 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then 1240 1325 echo $ac_n "(cached) $ac_c" 1>&6 … … 1243 1328 ac_cv_prog_LEX="$LEX" # Let the user override the test. 1244 1329 else 1245 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1246 for ac_dir in $PATH; do 1330 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1331 ac_dummy="$PATH" 1332 for ac_dir in $ac_dummy; do 1247 1333 test -z "$ac_dir" && ac_dir=. 1248 1334 if test -f $ac_dir/$ac_word; then … … 1275 1361 set dummy $ac_prog; ac_word=$2 1276 1362 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1277 echo "configure:1 278: checking for $ac_word" >&51363 echo "configure:1364: checking for $ac_word" >&5 1278 1364 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then 1279 1365 echo $ac_n "(cached) $ac_c" 1>&6 … … 1282 1368 ac_cv_prog_BISON="$BISON" # Let the user override the test. 1283 1369 else 1284 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1285 for ac_dir in $PATH; do 1370 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1371 ac_dummy="$PATH" 1372 for ac_dir in $ac_dummy; do 1286 1373 test -z "$ac_dir" && ac_dir=. 1287 1374 if test -f $ac_dir/$ac_word; then … … 1309 1396 # ln -s 1310 1397 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 1311 echo "configure:13 12: checking whether ln -s works" >&51398 echo "configure:1399: checking whether ln -s works" >&5 1312 1399 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then 1313 1400 echo $ac_n "(cached) $ac_c" 1>&6 … … 1332 1419 # lib checks 1333 1420 echo $ac_n "checking for atof in -lm""... $ac_c" 1>&6 1334 echo "configure:1 335: checking for atof in -lm" >&51421 echo "configure:1422: checking for atof in -lm" >&5 1335 1422 ac_lib_var=`echo m'_'atof | sed 'y%./+-%__p_%'` 1336 1423 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 1340 1427 LIBS="-lm $LIBS" 1341 1428 cat > conftest.$ac_ext <<EOF 1342 #line 1 343"configure"1429 #line 1430 "configure" 1343 1430 #include "confdefs.h" 1344 1431 /* Override any gcc2 internal prototype to avoid an error. */ … … 1351 1438 ; return 0; } 1352 1439 EOF 1353 if { (eval echo configure:1 354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then1440 if { (eval echo configure:1441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1354 1441 rm -rf conftest* 1355 1442 eval "ac_cv_lib_$ac_lib_var=yes" … … 1379 1466 1380 1467 echo $ac_n "checking for socket in -lbsd""... $ac_c" 1>&6 1381 echo "configure:1 382: checking for socket in -lbsd" >&51468 echo "configure:1469: checking for socket in -lbsd" >&5 1382 1469 ac_lib_var=`echo bsd'_'socket | sed 'y%./+-%__p_%'` 1383 1470 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 1387 1474 LIBS="-lbsd $LIBS" 1388 1475 cat > conftest.$ac_ext <<EOF 1389 #line 1 390"configure"1476 #line 1477 "configure" 1390 1477 #include "confdefs.h" 1391 1478 /* Override any gcc2 internal prototype to avoid an error. */ … … 1398 1485 ; return 0; } 1399 1486 EOF 1400 if { (eval echo configure:14 01: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then1487 if { (eval echo configure:1488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1401 1488 rm -rf conftest* 1402 1489 eval "ac_cv_lib_$ac_lib_var=yes" … … 1426 1513 1427 1514 echo $ac_n "checking for listen in -lsocket""... $ac_c" 1>&6 1428 echo "configure:1 429: checking for listen in -lsocket" >&51515 echo "configure:1516: checking for listen in -lsocket" >&5 1429 1516 ac_lib_var=`echo socket'_'listen | sed 'y%./+-%__p_%'` 1430 1517 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 1434 1521 LIBS="-lsocket $LIBS" 1435 1522 cat > conftest.$ac_ext <<EOF 1436 #line 1 437"configure"1523 #line 1524 "configure" 1437 1524 #include "confdefs.h" 1438 1525 /* Override any gcc2 internal prototype to avoid an error. */ … … 1445 1532 ; return 0; } 1446 1533 EOF 1447 if { (eval echo configure:1 448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then1534 if { (eval echo configure:1535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1448 1535 rm -rf conftest* 1449 1536 eval "ac_cv_lib_$ac_lib_var=yes" … … 1473 1560 1474 1561 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 1475 echo "configure:1 476: checking for gethostbyname in -lnsl" >&51562 echo "configure:1563: checking for gethostbyname in -lnsl" >&5 1476 1563 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` 1477 1564 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 1481 1568 LIBS="-lnsl $LIBS" 1482 1569 cat > conftest.$ac_ext <<EOF 1483 #line 1 484"configure"1570 #line 1571 "configure" 1484 1571 #include "confdefs.h" 1485 1572 /* Override any gcc2 internal prototype to avoid an error. */ … … 1492 1579 ; return 0; } 1493 1580 EOF 1494 if { (eval echo configure:1 495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then1581 if { (eval echo configure:1582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1495 1582 rm -rf conftest* 1496 1583 eval "ac_cv_lib_$ac_lib_var=yes" … … 1520 1607 1521 1608 echo $ac_n "checking for index in -lucb""... $ac_c" 1>&6 1522 echo "configure:1 523: checking for index in -lucb" >&51609 echo "configure:1610: checking for index in -lucb" >&5 1523 1610 ac_lib_var=`echo ucb'_'index | sed 'y%./+-%__p_%'` 1524 1611 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 1528 1615 LIBS="-lucb $LIBS" 1529 1616 cat > conftest.$ac_ext <<EOF 1530 #line 1 531"configure"1617 #line 1618 "configure" 1531 1618 #include "confdefs.h" 1532 1619 /* Override any gcc2 internal prototype to avoid an error. */ … … 1539 1626 ; return 0; } 1540 1627 EOF 1541 if { (eval echo configure:1 542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then1628 if { (eval echo configure:1629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1542 1629 rm -rf conftest* 1543 1630 eval "ac_cv_lib_$ac_lib_var=yes" … … 1569 1656 # heder file checks 1570 1657 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 1571 echo "configure:1 572: checking for ANSI C header files" >&51658 echo "configure:1659: checking for ANSI C header files" >&5 1572 1659 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 1573 1660 echo $ac_n "(cached) $ac_c" 1>&6 1574 1661 else 1575 1662 cat > conftest.$ac_ext <<EOF 1576 #line 1 577"configure"1663 #line 1664 "configure" 1577 1664 #include "confdefs.h" 1578 1665 #include <stdlib.h> … … 1582 1669 EOF 1583 1670 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1584 { (eval echo configure:1 585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1585 ac_err=`grep -v '^ *+' conftest.out `1671 { (eval echo configure:1672: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1672 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1586 1673 if test -z "$ac_err"; then 1587 1674 rm -rf conftest* … … 1599 1686 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 1600 1687 cat > conftest.$ac_ext <<EOF 1601 #line 16 02"configure"1688 #line 1689 "configure" 1602 1689 #include "confdefs.h" 1603 1690 #include <string.h> … … 1617 1704 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 1618 1705 cat > conftest.$ac_ext <<EOF 1619 #line 1 620"configure"1706 #line 1707 "configure" 1620 1707 #include "confdefs.h" 1621 1708 #include <stdlib.h> … … 1638 1725 else 1639 1726 cat > conftest.$ac_ext <<EOF 1640 #line 1 641"configure"1727 #line 1728 "configure" 1641 1728 #include "confdefs.h" 1642 1729 #include <ctype.h> … … 1649 1736 1650 1737 EOF 1651 if { (eval echo configure:1 652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest&& (./conftest; exit) 2>/dev/null1738 if { (eval echo configure:1739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1652 1739 then 1653 1740 : … … 1676 1763 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1677 1764 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1678 echo "configure:1 679: checking for $ac_hdr" >&51765 echo "configure:1766: checking for $ac_hdr" >&5 1679 1766 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1680 1767 echo $ac_n "(cached) $ac_c" 1>&6 1681 1768 else 1682 1769 cat > conftest.$ac_ext <<EOF 1683 #line 1 684"configure"1770 #line 1771 "configure" 1684 1771 #include "confdefs.h" 1685 1772 #include <$ac_hdr> 1686 1773 EOF 1687 1774 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1688 { (eval echo configure:1 689: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1689 ac_err=`grep -v '^ *+' conftest.out `1775 { (eval echo configure:1776: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1776 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1690 1777 if test -z "$ac_err"; then 1691 1778 rm -rf conftest* … … 1718 1805 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1719 1806 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1720 echo "configure:1 721: checking for $ac_hdr" >&51807 echo "configure:1808: checking for $ac_hdr" >&5 1721 1808 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1722 1809 echo $ac_n "(cached) $ac_c" 1>&6 1723 1810 else 1724 1811 cat > conftest.$ac_ext <<EOF 1725 #line 1 726"configure"1812 #line 1813 "configure" 1726 1813 #include "confdefs.h" 1727 1814 #include <$ac_hdr> 1728 1815 EOF 1729 1816 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1730 { (eval echo configure:1 731: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1731 ac_err=`grep -v '^ *+' conftest.out `1817 { (eval echo configure:1818: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1818 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1732 1819 if test -z "$ac_err"; then 1733 1820 rm -rf conftest* … … 1757 1844 # typedefs, structures 1758 1845 echo $ac_n "checking for working const""... $ac_c" 1>&6 1759 echo "configure:1 760: checking for working const" >&51846 echo "configure:1847: checking for working const" >&5 1760 1847 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 1761 1848 echo $ac_n "(cached) $ac_c" 1>&6 1762 1849 else 1763 1850 cat > conftest.$ac_ext <<EOF 1764 #line 1 765"configure"1851 #line 1852 "configure" 1765 1852 #include "confdefs.h" 1766 1853 … … 1811 1898 ; return 0; } 1812 1899 EOF 1813 if { (eval echo configure:1 814: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then1900 if { (eval echo configure:1901: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1814 1901 rm -rf conftest* 1815 1902 ac_cv_c_const=yes … … 1832 1919 1833 1920 echo $ac_n "checking for inline""... $ac_c" 1>&6 1834 echo "configure:1 835: checking for inline" >&51921 echo "configure:1922: checking for inline" >&5 1835 1922 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then 1836 1923 echo $ac_n "(cached) $ac_c" 1>&6 … … 1839 1926 for ac_kw in inline __inline__ __inline; do 1840 1927 cat > conftest.$ac_ext <<EOF 1841 #line 1 842"configure"1928 #line 1929 "configure" 1842 1929 #include "confdefs.h" 1843 1930 … … 1846 1933 ; return 0; } 1847 1934 EOF 1848 if { (eval echo configure:1 849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then1935 if { (eval echo configure:1936: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1849 1936 rm -rf conftest* 1850 1937 ac_cv_c_inline=$ac_kw; break … … 1872 1959 1873 1960 echo $ac_n "checking for size_t""... $ac_c" 1>&6 1874 echo "configure:1 875: checking for size_t" >&51961 echo "configure:1962: checking for size_t" >&5 1875 1962 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then 1876 1963 echo $ac_n "(cached) $ac_c" 1>&6 1877 1964 else 1878 1965 cat > conftest.$ac_ext <<EOF 1879 #line 1 880"configure"1966 #line 1967 "configure" 1880 1967 #include "confdefs.h" 1881 1968 #include <sys/types.h> … … 1886 1973 EOF 1887 1974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1888 egrep " size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then1975 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 1889 1976 rm -rf conftest* 1890 1977 ac_cv_type_size_t=yes … … 1905 1992 1906 1993 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 1907 echo "configure:19 08: checking whether time.h and sys/time.h may both be included" >&51994 echo "configure:1995: checking whether time.h and sys/time.h may both be included" >&5 1908 1995 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then 1909 1996 echo $ac_n "(cached) $ac_c" 1>&6 1910 1997 else 1911 1998 cat > conftest.$ac_ext <<EOF 1912 #line 1913"configure"1999 #line 2000 "configure" 1913 2000 #include "confdefs.h" 1914 2001 #include <sys/types.h> … … 1919 2006 ; return 0; } 1920 2007 EOF 1921 if { (eval echo configure: 1922: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then2008 if { (eval echo configure:2009: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1922 2009 rm -rf conftest* 1923 2010 ac_cv_header_time=yes … … 1940 2027 1941 2028 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 1942 echo "configure: 1943: checking whether struct tm is in sys/time.h or time.h" >&52029 echo "configure:2030: checking whether struct tm is in sys/time.h or time.h" >&5 1943 2030 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then 1944 2031 echo $ac_n "(cached) $ac_c" 1>&6 1945 2032 else 1946 2033 cat > conftest.$ac_ext <<EOF 1947 #line 1948"configure"2034 #line 2035 "configure" 1948 2035 #include "confdefs.h" 1949 2036 #include <sys/types.h> … … 1953 2040 ; return 0; } 1954 2041 EOF 1955 if { (eval echo configure: 1956: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then2042 if { (eval echo configure:2043: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1956 2043 rm -rf conftest* 1957 2044 ac_cv_struct_tm=time.h … … 1978 2065 # for constant arguments. Useless! 1979 2066 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 1980 echo "configure: 1981: checking for working alloca.h" >&52067 echo "configure:2068: checking for working alloca.h" >&5 1981 2068 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then 1982 2069 echo $ac_n "(cached) $ac_c" 1>&6 1983 2070 else 1984 2071 cat > conftest.$ac_ext <<EOF 1985 #line 1986"configure"2072 #line 2073 "configure" 1986 2073 #include "confdefs.h" 1987 2074 #include <alloca.h> … … 1990 2077 ; return 0; } 1991 2078 EOF 1992 if { (eval echo configure: 1993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then2079 if { (eval echo configure:2080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1993 2080 rm -rf conftest* 1994 2081 ac_cv_header_alloca_h=yes … … 2011 2098 2012 2099 echo $ac_n "checking for alloca""... $ac_c" 1>&6 2013 echo "configure:2 014: checking for alloca" >&52100 echo "configure:2101: checking for alloca" >&5 2014 2101 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then 2015 2102 echo $ac_n "(cached) $ac_c" 1>&6 2016 2103 else 2017 2104 cat > conftest.$ac_ext <<EOF 2018 #line 2 019"configure"2105 #line 2106 "configure" 2019 2106 #include "confdefs.h" 2020 2107 … … 2022 2109 # define alloca __builtin_alloca 2023 2110 #else 2024 # if HAVE_ALLOCA_H 2025 # include <alloca.h> 2111 # ifdef _MSC_VER 2112 # include <malloc.h> 2113 # define alloca _alloca 2026 2114 # else 2027 # ifdef _AIX 2115 # if HAVE_ALLOCA_H 2116 # include <alloca.h> 2117 # else 2118 # ifdef _AIX 2028 2119 #pragma alloca 2029 # else2030 # ifndef alloca /* predefined by HP cc +Olibcalls */2120 # else 2121 # ifndef alloca /* predefined by HP cc +Olibcalls */ 2031 2122 char *alloca (); 2123 # endif 2032 2124 # endif 2033 2125 # endif … … 2039 2131 ; return 0; } 2040 2132 EOF 2041 if { (eval echo configure:2 042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then2133 if { (eval echo configure:2134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2042 2134 rm -rf conftest* 2043 2135 ac_cv_func_alloca_works=yes … … 2064 2156 # contain a buggy version. If you still want to use their alloca, 2065 2157 # use ar to extract alloca.o from them instead of compiling alloca.c. 2066 ALLOCA=alloca. o2158 ALLOCA=alloca.${ac_objext} 2067 2159 cat >> confdefs.h <<\EOF 2068 2160 #define C_ALLOCA 1 … … 2071 2163 2072 2164 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 2073 echo "configure:2 074: checking whether alloca needs Cray hooks" >&52165 echo "configure:2166: checking whether alloca needs Cray hooks" >&5 2074 2166 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then 2075 2167 echo $ac_n "(cached) $ac_c" 1>&6 2076 2168 else 2077 2169 cat > conftest.$ac_ext <<EOF 2078 #line 2 079"configure"2170 #line 2171 "configure" 2079 2171 #include "confdefs.h" 2080 2172 #if defined(CRAY) && ! defined(CRAY2) … … 2101 2193 for ac_func in _getb67 GETB67 getb67; do 2102 2194 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2103 echo "configure:21 04: checking for $ac_func" >&52195 echo "configure:2196: checking for $ac_func" >&5 2104 2196 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2105 2197 echo $ac_n "(cached) $ac_c" 1>&6 2106 2198 else 2107 2199 cat > conftest.$ac_ext <<EOF 2108 #line 2 109"configure"2200 #line 2201 "configure" 2109 2201 #include "confdefs.h" 2110 2202 /* System header to define __stub macros and hopefully few prototypes, … … 2129 2221 ; return 0; } 2130 2222 EOF 2131 if { (eval echo configure:2 132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then2223 if { (eval echo configure:2224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2132 2224 rm -rf conftest* 2133 2225 eval "ac_cv_func_$ac_func=yes" … … 2156 2248 2157 2249 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 2158 echo "configure:2 159: checking stack direction for C alloca" >&52250 echo "configure:2251: checking stack direction for C alloca" >&5 2159 2251 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then 2160 2252 echo $ac_n "(cached) $ac_c" 1>&6 … … 2164 2256 else 2165 2257 cat > conftest.$ac_ext <<EOF 2166 #line 2 167"configure"2258 #line 2259 "configure" 2167 2259 #include "confdefs.h" 2168 2260 find_stack_direction () … … 2183 2275 } 2184 2276 EOF 2185 if { (eval echo configure:2 186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest&& (./conftest; exit) 2>/dev/null2277 if { (eval echo configure:2278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2186 2278 then 2187 2279 ac_cv_c_stack_direction=1 … … 2206 2298 if test $ac_cv_prog_gcc = yes; then 2207 2299 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 2208 echo "configure:2 209: checking whether ${CC-cc} needs -traditional" >&52300 echo "configure:2301: checking whether ${CC-cc} needs -traditional" >&5 2209 2301 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then 2210 2302 echo $ac_n "(cached) $ac_c" 1>&6 … … 2212 2304 ac_pattern="Autoconf.*'x'" 2213 2305 cat > conftest.$ac_ext <<EOF 2214 #line 2 215"configure"2306 #line 2307 "configure" 2215 2307 #include "confdefs.h" 2216 2308 #include <sgtty.h> … … 2230 2322 if test $ac_cv_prog_gcc_traditional = no; then 2231 2323 cat > conftest.$ac_ext <<EOF 2232 #line 2 233"configure"2324 #line 2325 "configure" 2233 2325 #include "confdefs.h" 2234 2326 #include <termio.h> … … 2255 2347 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2256 2348 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2257 echo "configure:2 258: checking for $ac_hdr" >&52349 echo "configure:2350: checking for $ac_hdr" >&5 2258 2350 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2259 2351 echo $ac_n "(cached) $ac_c" 1>&6 2260 2352 else 2261 2353 cat > conftest.$ac_ext <<EOF 2262 #line 2 263"configure"2354 #line 2355 "configure" 2263 2355 #include "confdefs.h" 2264 2356 #include <$ac_hdr> 2265 2357 EOF 2266 2358 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2267 { (eval echo configure:2 268: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }2268 ac_err=`grep -v '^ *+' conftest.out `2359 { (eval echo configure:2360: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2360 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2269 2361 if test -z "$ac_err"; then 2270 2362 rm -rf conftest* … … 2294 2386 do 2295 2387 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2296 echo "configure:2 297: checking for $ac_func" >&52388 echo "configure:2389: checking for $ac_func" >&5 2297 2389 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2298 2390 echo $ac_n "(cached) $ac_c" 1>&6 2299 2391 else 2300 2392 cat > conftest.$ac_ext <<EOF 2301 #line 23 02"configure"2393 #line 2394 "configure" 2302 2394 #include "confdefs.h" 2303 2395 /* System header to define __stub macros and hopefully few prototypes, … … 2322 2414 ; return 0; } 2323 2415 EOF 2324 if { (eval echo configure:2 325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then2416 if { (eval echo configure:2417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2325 2417 rm -rf conftest* 2326 2418 eval "ac_cv_func_$ac_func=yes" … … 2347 2439 2348 2440 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 2349 echo "configure:2 350: checking for working mmap" >&52441 echo "configure:2442: checking for working mmap" >&5 2350 2442 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then 2351 2443 echo $ac_n "(cached) $ac_c" 1>&6 … … 2355 2447 else 2356 2448 cat > conftest.$ac_ext <<EOF 2357 #line 2 358"configure"2449 #line 2450 "configure" 2358 2450 #include "confdefs.h" 2359 2451 … … 2495 2587 2496 2588 EOF 2497 if { (eval echo configure:2 498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest&& (./conftest; exit) 2>/dev/null2589 if { (eval echo configure:2590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2498 2590 then 2499 2591 ac_cv_func_mmap_fixed_mapped=yes … … 2518 2610 2519 2611 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 2520 echo "configure:2 521: checking return type of signal handlers" >&52612 echo "configure:2613: checking return type of signal handlers" >&5 2521 2613 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then 2522 2614 echo $ac_n "(cached) $ac_c" 1>&6 2523 2615 else 2524 2616 cat > conftest.$ac_ext <<EOF 2525 #line 2 526"configure"2617 #line 2618 "configure" 2526 2618 #include "confdefs.h" 2527 2619 #include <sys/types.h> … … 2540 2632 ; return 0; } 2541 2633 EOF 2542 if { (eval echo configure:2 543: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then2634 if { (eval echo configure:2635: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2543 2635 rm -rf conftest* 2544 2636 ac_cv_type_signal=void … … 2559 2651 2560 2652 echo $ac_n "checking for vprintf""... $ac_c" 1>&6 2561 echo "configure:2 562: checking for vprintf" >&52653 echo "configure:2654: checking for vprintf" >&5 2562 2654 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then 2563 2655 echo $ac_n "(cached) $ac_c" 1>&6 2564 2656 else 2565 2657 cat > conftest.$ac_ext <<EOF 2566 #line 2 567"configure"2658 #line 2659 "configure" 2567 2659 #include "confdefs.h" 2568 2660 /* System header to define __stub macros and hopefully few prototypes, … … 2587 2679 ; return 0; } 2588 2680 EOF 2589 if { (eval echo configure:2 590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then2681 if { (eval echo configure:2682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2590 2682 rm -rf conftest* 2591 2683 eval "ac_cv_func_vprintf=yes" … … 2611 2703 if test "$ac_cv_func_vprintf" != yes; then 2612 2704 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 2613 echo "configure:2 614: checking for _doprnt" >&52705 echo "configure:2706: checking for _doprnt" >&5 2614 2706 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then 2615 2707 echo $ac_n "(cached) $ac_c" 1>&6 2616 2708 else 2617 2709 cat > conftest.$ac_ext <<EOF 2618 #line 2 619"configure"2710 #line 2711 "configure" 2619 2711 #include "confdefs.h" 2620 2712 /* System header to define __stub macros and hopefully few prototypes, … … 2639 2731 ; return 0; } 2640 2732 EOF 2641 if { (eval echo configure:2 642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then2733 if { (eval echo configure:2734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2642 2734 rm -rf conftest* 2643 2735 eval "ac_cv_func__doprnt=yes" … … 2666 2758 do 2667 2759 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2668 echo "configure:2 669: checking for $ac_func" >&52760 echo "configure:2761: checking for $ac_func" >&5 2669 2761 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2670 2762 echo $ac_n "(cached) $ac_c" 1>&6 2671 2763 else 2672 2764 cat > conftest.$ac_ext <<EOF 2673 #line 2 674"configure"2765 #line 2766 "configure" 2674 2766 #include "confdefs.h" 2675 2767 /* System header to define __stub macros and hopefully few prototypes, … … 2694 2786 ; return 0; } 2695 2787 EOF 2696 if { (eval echo configure:2 697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then2788 if { (eval echo configure:2789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2697 2789 rm -rf conftest* 2698 2790 eval "ac_cv_func_$ac_func=yes" … … 2722 2814 # arithmetic shifts 2723 2815 echo $ac_n "checking whether your machine has correct arithmetic shifts""... $ac_c" 1>&6 2724 echo "configure:2 725: checking whether your machine has correct arithmetic shifts" >&52816 echo "configure:2817: checking whether your machine has correct arithmetic shifts" >&5 2725 2817 if eval "test \"`echo '$''{'ac_cv_shift'+set}'`\" = set"; then 2726 2818 echo $ac_n "(cached) $ac_c" 1>&6 … … 2735 2827 else 2736 2828 cat > conftest.$ac_ext <<EOF 2737 #line 2 738"configure"2829 #line 2830 "configure" 2738 2830 #include "confdefs.h" 2739 2831 int main() { if (-2 >> 1 == -1) exit(0); else exit(1); } 2740 2832 EOF 2741 if { (eval echo configure:2 742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest&& (./conftest; exit) 2>/dev/null2833 if { (eval echo configure:2834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2742 2834 then 2743 2835 ac_cv_shift=yes … … 2764 2856 # check for a peculiar constructor initialization 2765 2857 echo $ac_n "checking whether explicit C++ constructor calls are allowed""... $ac_c" 1>&6 2766 echo "configure:2 767: checking whether explicit C++ constructor calls are allowed" >&52858 echo "configure:2859: checking whether explicit C++ constructor calls are allowed" >&5 2767 2859 2768 2860 ac_ext=C … … 2770 2862 ac_cpp='$CXXCPP $CPPFLAGS' 2771 2863 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 2772 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'2864 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 2773 2865 cross_compiling=$ac_cv_prog_cxx_cross 2774 2866 … … 2777 2869 else 2778 2870 cat > conftest.$ac_ext <<EOF 2779 #line 2 780"configure"2871 #line 2872 "configure" 2780 2872 #include "confdefs.h" 2781 2873 … … 2795 2887 ; return 0; } 2796 2888 EOF 2797 if { (eval echo configure:2 798: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then2889 if { (eval echo configure:2890: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2798 2890 rm -rf conftest* 2799 2891 ac_cv_explicit_const=yes … … 2811 2903 ac_cpp='$CPP $CPPFLAGS' 2812 2904 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 2813 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'2905 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 2814 2906 cross_compiling=$ac_cv_prog_cc_cross 2815 2907 … … 2824 2916 # sprintf returns number of printed chars 2825 2917 echo $ac_n "checking whether vsprintf returns number of printed chars""... $ac_c" 1>&6 2826 echo "configure:2 827: checking whether vsprintf returns number of printed chars" >&52918 echo "configure:2919: checking whether vsprintf returns number of printed chars" >&5 2827 2919 if eval "test \"`echo '$''{'ac_cv_returns_n_of_chars'+set}'`\" = set"; then 2828 2920 echo $ac_n "(cached) $ac_c" 1>&6 … … 2832 2924 else 2833 2925 cat > conftest.$ac_ext <<EOF 2834 #line 2 835"configure"2926 #line 2927 "configure" 2835 2927 #include "confdefs.h" 2836 2928 #include <stdio.h> 2837 2929 main() { char *str=(char*)malloc(20); if (((int) sprintf(str,"123456789")) == 9) exit(0); else exit(1); } 2838 2930 EOF 2839 if { (eval echo configure:2 840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest&& (./conftest; exit) 2>/dev/null2931 if { (eval echo configure:2932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2840 2932 then 2841 2933 ac_cv_returns_n_of_chars=yes … … 2863 2955 # determine ALIGN_8 2864 2956 echo $ac_n "checking size of char""... $ac_c" 1>&6 2865 echo "configure:2 866: checking size of char" >&52957 echo "configure:2958: checking size of char" >&5 2866 2958 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then 2867 2959 echo $ac_n "(cached) $ac_c" 1>&6 … … 2871 2963 else 2872 2964 cat > conftest.$ac_ext <<EOF 2873 #line 2 874"configure"2965 #line 2966 "configure" 2874 2966 #include "confdefs.h" 2875 2967 #include <stdio.h> … … 2882 2974 } 2883 2975 EOF 2884 if { (eval echo configure:2 885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest&& (./conftest; exit) 2>/dev/null2976 if { (eval echo configure:2977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2885 2977 then 2886 2978 ac_cv_sizeof_char=`cat conftestval` … … 2902 2994 2903 2995 echo $ac_n "checking size of short""... $ac_c" 1>&6 2904 echo "configure:29 05: checking size of short" >&52996 echo "configure:2997: checking size of short" >&5 2905 2997 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then 2906 2998 echo $ac_n "(cached) $ac_c" 1>&6 … … 2910 3002 else 2911 3003 cat > conftest.$ac_ext <<EOF 2912 #line 2913"configure"3004 #line 3005 "configure" 2913 3005 #include "confdefs.h" 2914 3006 #include <stdio.h> … … 2921 3013 } 2922 3014 EOF 2923 if { (eval echo configure: 2924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest&& (./conftest; exit) 2>/dev/null3015 if { (eval echo configure:3016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2924 3016 then 2925 3017 ac_cv_sizeof_short=`cat conftestval` … … 2941 3033 2942 3034 echo $ac_n "checking size of int""... $ac_c" 1>&6 2943 echo "configure: 2944: checking size of int" >&53035 echo "configure:3036: checking size of int" >&5 2944 3036 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then 2945 3037 echo $ac_n "(cached) $ac_c" 1>&6 … … 2949 3041 else 2950 3042 cat > conftest.$ac_ext <<EOF 2951 #line 2952"configure"3043 #line 3044 "configure" 2952 3044 #include "confdefs.h" 2953 3045 #include <stdio.h> … … 2960 3052 } 2961 3053 EOF 2962 if { (eval echo configure: 2963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest&& (./conftest; exit) 2>/dev/null3054 if { (eval echo configure:3055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2963 3055 then 2964 3056 ac_cv_sizeof_int=`cat conftestval` … … 2980 3072 2981 3073 echo $ac_n "checking size of long""... $ac_c" 1>&6 2982 echo "configure: 2983: checking size of long" >&53074 echo "configure:3075: checking size of long" >&5 2983 3075 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then 2984 3076 echo $ac_n "(cached) $ac_c" 1>&6 … … 2988 3080 else 2989 3081 cat > conftest.$ac_ext <<EOF 2990 #line 2991"configure"3082 #line 3083 "configure" 2991 3083 #include "confdefs.h" 2992 3084 #include <stdio.h> … … 2999 3091 } 3000 3092 EOF 3001 if { (eval echo configure:30 02: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest&& (./conftest; exit) 2>/dev/null3093 if { (eval echo configure:3094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3002 3094 then 3003 3095 ac_cv_sizeof_long=`cat conftestval` … … 3019 3111 3020 3112 echo $ac_n "checking size of void*""... $ac_c" 1>&6 3021 echo "configure:3 022: checking size of void*" >&53113 echo "configure:3114: checking size of void*" >&5 3022 3114 if eval "test \"`echo '$''{'ac_cv_sizeof_voidp'+set}'`\" = set"; then 3023 3115 echo $ac_n "(cached) $ac_c" 1>&6 … … 3027 3119 else 3028 3120 cat > conftest.$ac_ext <<EOF 3029 #line 3 030"configure"3121 #line 3122 "configure" 3030 3122 #include "confdefs.h" 3031 3123 #include <stdio.h> … … 3038 3130 } 3039 3131 EOF 3040 if { (eval echo configure:3 041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest&& (./conftest; exit) 2>/dev/null3132 if { (eval echo configure:3133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3041 3133 then 3042 3134 ac_cv_sizeof_voidp=`cat conftestval` … … 3058 3150 3059 3151 echo $ac_n "checking size of double""... $ac_c" 1>&6 3060 echo "configure:3 061: checking size of double" >&53152 echo "configure:3153: checking size of double" >&5 3061 3153 if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then 3062 3154 echo $ac_n "(cached) $ac_c" 1>&6 … … 3066 3158 else 3067 3159 cat > conftest.$ac_ext <<EOF 3068 #line 3 069"configure"3160 #line 3161 "configure" 3069 3161 #include "confdefs.h" 3070 3162 #include <stdio.h> … … 3077 3169 } 3078 3170 EOF 3079 if { (eval echo configure:3 080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest&& (./conftest; exit) 2>/dev/null3171 if { (eval echo configure:3172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3080 3172 then 3081 3173 ac_cv_sizeof_double=`cat conftestval` … … 3097 3189 3098 3190 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 3099 echo "configure:31 00: checking whether byte ordering is bigendian" >&53191 echo "configure:3192: checking whether byte ordering is bigendian" >&5 3100 3192 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then 3101 3193 echo $ac_n "(cached) $ac_c" 1>&6 … … 3104 3196 # See if sys/param.h defines the BYTE_ORDER macro. 3105 3197 cat > conftest.$ac_ext <<EOF 3106 #line 31 07"configure"3198 #line 3199 "configure" 3107 3199 #include "confdefs.h" 3108 3200 #include <sys/types.h> … … 3115 3207 ; return 0; } 3116 3208 EOF 3117 if { (eval echo configure:3 118: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then3209 if { (eval echo configure:3210: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3118 3210 rm -rf conftest* 3119 3211 # It does; now see whether it defined to BIG_ENDIAN or not. 3120 3212 cat > conftest.$ac_ext <<EOF 3121 #line 3 122"configure"3213 #line 3214 "configure" 3122 3214 #include "confdefs.h" 3123 3215 #include <sys/types.h> … … 3130 3222 ; return 0; } 3131 3223 EOF 3132 if { (eval echo configure:3 133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then3224 if { (eval echo configure:3225: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3133 3225 rm -rf conftest* 3134 3226 ac_cv_c_bigendian=yes … … 3150 3242 else 3151 3243 cat > conftest.$ac_ext <<EOF 3152 #line 3 153"configure"3244 #line 3245 "configure" 3153 3245 #include "confdefs.h" 3154 3246 main () { … … 3163 3255 } 3164 3256 EOF 3165 if { (eval echo configure:3 166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest&& (./conftest; exit) 2>/dev/null3257 if { (eval echo configure:3258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3166 3258 then 3167 3259 ac_cv_c_bigendian=no … … 3200 3292 3201 3293 echo $ac_n "checking size of system page""... $ac_c" 1>&6 3202 echo "configure:32 03: checking size of system page" >&53294 echo "configure:3295: checking size of system page" >&5 3203 3295 if eval "test \"`echo '$''{'ac_cv_pagesize'+set}'`\" = set"; then 3204 3296 echo $ac_n "(cached) $ac_c" 1>&6 … … 3208 3300 else 3209 3301 cat > conftest.$ac_ext <<EOF 3210 #line 3 211"configure"3302 #line 3303 "configure" 3211 3303 #include "confdefs.h" 3212 3304 #include <stdio.h> … … 3222 3314 } 3223 3315 EOF 3224 if { (eval echo configure:3 225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest&& (./conftest; exit) 2>/dev/null3316 if { (eval echo configure:3317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3225 3317 then 3226 3318 ac_cv_pagesize=`cat conftestval` … … 3246 3338 3247 3339 echo $ac_n "checking for page aligned valloc""... $ac_c" 1>&6 3248 echo "configure:3 249: checking for page aligned valloc" >&53340 echo "configure:3341: checking for page aligned valloc" >&5 3249 3341 if eval "test \"`echo '$''{'ac_cv_have_page_alignment'+set}'`\" = set"; then 3250 3342 echo $ac_n "(cached) $ac_c" 1>&6 … … 3292 3384 else 3293 3385 cat > conftest.$ac_ext <<EOF 3294 #line 3 295"configure"3386 #line 3387 "configure" 3295 3387 #include "confdefs.h" 3296 3388 … … 3299 3391 3300 3392 EOF 3301 if { (eval echo configure:33 02: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest&& (./conftest; exit) 2>/dev/null3393 if { (eval echo configure:3394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3302 3394 then 3303 3395 ac_cv_have_page_alignment="ac_cv_usable_pagesize="`cat conftestval` … … 3316 3408 else 3317 3409 cat > conftest.$ac_ext <<EOF 3318 #line 3 319"configure"3410 #line 3411 "configure" 3319 3411 #include "confdefs.h" 3320 3412 … … 3323 3415 3324 3416 EOF 3325 if { (eval echo configure:3 326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest&& (./conftest; exit) 2>/dev/null3417 if { (eval echo configure:3418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3326 3418 then 3327 3419 ac_cv_have_page_alignment="ac_cv_usable_pagesize="`cat conftestval` … … 3343 3435 else 3344 3436 cat > conftest.$ac_ext <<EOF 3345 #line 3 346"configure"3437 #line 3438 "configure" 3346 3438 #include "confdefs.h" 3347 3439 … … 3352 3444 3353 3445 EOF 3354 if { (eval echo configure:3 355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest&& (./conftest; exit) 2>/dev/null3446 if { (eval echo configure:3447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3355 3447 then 3356 3448 ac_cv_have_page_alignment="ac_cv_have_gmalloc=yes; ac_cv_usable_pagesize="`cat conftestval` … … 3369 3461 else 3370 3462 cat > conftest.$ac_ext <<EOF 3371 #line 3 372"configure"3463 #line 3464 "configure" 3372 3464 #include "confdefs.h" 3373 3465 … … 3378 3470 3379 3471 EOF 3380 if { (eval echo configure:3 381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest&& (./conftest; exit) 2>/dev/null3472 if { (eval echo configure:3473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3381 3473 then 3382 3474 ac_cv_have_page_alignment="ac_cv_have_gmalloc=yes; ac_cv_usable_pagesize="`cat conftestval` … … 3513 3605 if test "${with_perl5+set}" != set; then 3514 3606 echo $ac_n "checking for perl5""... $ac_c" 1>&6 3515 echo "configure:3 516: checking for perl5" >&53607 echo "configure:3608: checking for perl5" >&5 3516 3608 if eval "test \"`echo '$''{'ac_cv_prog_perl5'+set}'`\" = set"; then 3517 3609 echo $ac_n "(cached) $ac_c" 1>&6 … … 3550 3642 set dummy $ac_prog; ac_word=$2 3551 3643 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3552 echo "configure:3 553: checking for $ac_word" >&53644 echo "configure:3645: checking for $ac_word" >&5 3553 3645 if eval "test \"`echo '$''{'ac_cv_prog_PERL5'+set}'`\" = set"; then 3554 3646 echo $ac_n "(cached) $ac_c" 1>&6 … … 3557 3649 ac_cv_prog_PERL5="$PERL5" # Let the user override the test. 3558 3650 else 3559 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 3560 for ac_dir in $PATH; do 3651 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3652 ac_dummy="$PATH" 3653 for ac_dir in $ac_dummy; do 3561 3654 test -z "$ac_dir" && ac_dir=. 3562 3655 if test -f $ac_dir/$ac_word; then … … 3587 3680 if test "$with_readline" != no; then 3588 3681 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6 3589 echo "configure:3 590: checking for tgetent in -lncurses" >&53682 echo "configure:3683: checking for tgetent in -lncurses" >&5 3590 3683 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'` 3591 3684 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 3595 3688 LIBS="-lncurses $LIBS" 3596 3689 cat > conftest.$ac_ext <<EOF 3597 #line 3 598"configure"3690 #line 3691 "configure" 3598 3691 #include "confdefs.h" 3599 3692 /* Override any gcc2 internal prototype to avoid an error. */ … … 3606 3699 ; return 0; } 3607 3700 EOF 3608 if { (eval echo configure:3 609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then3701 if { (eval echo configure:3702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3609 3702 rm -rf conftest* 3610 3703 eval "ac_cv_lib_$ac_lib_var=yes" … … 3633 3726 \ 3634 3727 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6 3635 echo "configure:3 636: checking for tgetent in -lcurses" >&53728 echo "configure:3729: checking for tgetent in -lcurses" >&5 3636 3729 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` 3637 3730 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 3641 3734 LIBS="-lcurses $LIBS" 3642 3735 cat > conftest.$ac_ext <<EOF 3643 #line 3 644"configure"3736 #line 3737 "configure" 3644 3737 #include "confdefs.h" 3645 3738 /* Override any gcc2 internal prototype to avoid an error. */ … … 3652 3745 ; return 0; } 3653 3746 EOF 3654 if { (eval echo configure:3 655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then3747 if { (eval echo configure:3748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3655 3748 rm -rf conftest* 3656 3749 eval "ac_cv_lib_$ac_lib_var=yes" … … 3679 3772 \ 3680 3773 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 3681 echo "configure:3 682: checking for tgetent in -ltermcap" >&53774 echo "configure:3775: checking for tgetent in -ltermcap" >&5 3682 3775 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` 3683 3776 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 3687 3780 LIBS="-ltermcap $LIBS" 3688 3781 cat > conftest.$ac_ext <<EOF 3689 #line 3 690"configure"3782 #line 3783 "configure" 3690 3783 #include "confdefs.h" 3691 3784 /* Override any gcc2 internal prototype to avoid an error. */ … … 3698 3791 ; return 0; } 3699 3792 EOF 3700 if { (eval echo configure:37 01: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then3793 if { (eval echo configure:3794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3701 3794 rm -rf conftest* 3702 3795 eval "ac_cv_lib_$ac_lib_var=yes" … … 3730 3823 3731 3824 echo $ac_n "checking for rl_abort in -lreadline""... $ac_c" 1>&6 3732 echo "configure:3 733: checking for rl_abort in -lreadline" >&53825 echo "configure:3826: checking for rl_abort in -lreadline" >&5 3733 3826 ac_lib_var=`echo readline'_'rl_abort | sed 'y%./+-%__p_%'` 3734 3827 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 3738 3831 LIBS="-lreadline $LIBS" 3739 3832 cat > conftest.$ac_ext <<EOF 3740 #line 3 741"configure"3833 #line 3834 "configure" 3741 3834 #include "confdefs.h" 3742 3835 /* Override any gcc2 internal prototype to avoid an error. */ … … 3749 3842 ; return 0; } 3750 3843 EOF 3751 if { (eval echo configure:3 752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then3844 if { (eval echo configure:3845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3752 3845 rm -rf conftest* 3753 3846 eval "ac_cv_lib_$ac_lib_var=yes" … … 3780 3873 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3781 3874 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3782 echo "configure:3 783: checking for $ac_hdr" >&53875 echo "configure:3876: checking for $ac_hdr" >&5 3783 3876 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 3784 3877 echo $ac_n "(cached) $ac_c" 1>&6 3785 3878 else 3786 3879 cat > conftest.$ac_ext <<EOF 3787 #line 3 788"configure"3880 #line 3881 "configure" 3788 3881 #include "confdefs.h" 3789 3882 #include <$ac_hdr> 3790 3883 EOF 3791 3884 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3792 { (eval echo configure:3 793: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }3793 ac_err=`grep -v '^ *+' conftest.out `3885 { (eval echo configure:3886: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3886 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3794 3887 if test -z "$ac_err"; then 3795 3888 rm -rf conftest* … … 3819 3912 test "$ac_cv_header_readline_readline_h" = yes; then 3820 3913 echo $ac_n "checking whether readline.h is ok""... $ac_c" 1>&6 3821 echo "configure:3 822: checking whether readline.h is ok" >&53914 echo "configure:3915: checking whether readline.h is ok" >&5 3822 3915 if eval "test \"`echo '$''{'ac_cv_header_readline_readline_h_ok'+set}'`\" = set"; then 3823 3916 echo $ac_n "(cached) $ac_c" 1>&6 3824 3917 else 3825 3918 cat > conftest.$ac_ext <<EOF 3826 #line 3 827"configure"3919 #line 3920 "configure" 3827 3920 #include "confdefs.h" 3828 3921 #include<unistd.h> … … 3849 3942 ; return 0; } 3850 3943 EOF 3851 if { (eval echo configure:3 852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then3944 if { (eval echo configure:3945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3852 3945 rm -rf conftest* 3853 3946 ac_cv_header_readline_readline_h_ok="yes" … … 3865 3958 #not ok -- try once more with explicitly declaring everything 3866 3959 echo $ac_n "checking whether or not we nevertheless can use readline""... $ac_c" 1>&6 3867 echo "configure:3 868: checking whether or not we nevertheless can use readline" >&53960 echo "configure:3961: checking whether or not we nevertheless can use readline" >&5 3868 3961 if eval "test \"`echo '$''{'ac_cv_have_readline'+set}'`\" = set"; then 3869 3962 echo $ac_n "(cached) $ac_c" 1>&6 3870 3963 else 3871 3964 cat > conftest.$ac_ext <<EOF 3872 #line 3 873"configure"3965 #line 3966 "configure" 3873 3966 #include "confdefs.h" 3874 3967 #include <stdio.h> … … 3900 3993 ; return 0; } 3901 3994 EOF 3902 if { (eval echo configure:39 03: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then3995 if { (eval echo configure:3996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3903 3996 rm -rf conftest* 3904 3997 ac_cv_have_readline="yes" … … 3946 4039 # gmp, smallgmp, MP, MPT, factory, libfac 3947 4040 echo $ac_n "checking for mpq_init in -lgmp""... $ac_c" 1>&6 3948 echo "configure: 3949: checking for mpq_init in -lgmp" >&54041 echo "configure:4042: checking for mpq_init in -lgmp" >&5 3949 4042 ac_lib_var=`echo gmp'_'mpq_init | sed 'y%./+-%__p_%'` 3950 4043 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 3954 4047 LIBS="-lgmp $LIBS" 3955 4048 cat > conftest.$ac_ext <<EOF 3956 #line 3957"configure"4049 #line 4050 "configure" 3957 4050 #include "confdefs.h" 3958 4051 /* Override any gcc2 internal prototype to avoid an error. */ … … 3965 4058 ; return 0; } 3966 4059 EOF 3967 if { (eval echo configure: 3968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then4060 if { (eval echo configure:4061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3968 4061 rm -rf conftest* 3969 4062 eval "ac_cv_lib_$ac_lib_var=yes" … … 3996 4089 fi 3997 4090 echo $ac_n "checking for mpz_init in -lsmallgmp""... $ac_c" 1>&6 3998 echo "configure: 3999: checking for mpz_init in -lsmallgmp" >&54091 echo "configure:4092: checking for mpz_init in -lsmallgmp" >&5 3999 4092 ac_lib_var=`echo smallgmp'_'mpz_init | sed 'y%./+-%__p_%'` 4000 4093 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 4004 4097 LIBS="-lsmallgmp $LIBS" 4005 4098 cat > conftest.$ac_ext <<EOF 4006 #line 4 007"configure"4099 #line 4100 "configure" 4007 4100 #include "confdefs.h" 4008 4101 /* Override any gcc2 internal prototype to avoid an error. */ … … 4015 4108 ; return 0; } 4016 4109 EOF 4017 if { (eval echo configure:4 018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then4110 if { (eval echo configure:4111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4018 4111 rm -rf conftest* 4019 4112 eval "ac_cv_lib_$ac_lib_var=yes" … … 4043 4136 4044 4137 echo $ac_n "checking for IMP_PutGmpInt in -lMP""... $ac_c" 1>&6 4045 echo "configure:4 046: checking for IMP_PutGmpInt in -lMP" >&54138 echo "configure:4139: checking for IMP_PutGmpInt in -lMP" >&5 4046 4139 ac_lib_var=`echo MP'_'IMP_PutGmpInt | sed 'y%./+-%__p_%'` 4047 4140 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 4051 4144 LIBS="-lMP $LIBS" 4052 4145 cat > conftest.$ac_ext <<EOF 4053 #line 4 054"configure"4146 #line 4147 "configure" 4054 4147 #include "confdefs.h" 4055 4148 /* Override any gcc2 internal prototype to avoid an error. */ … … 4062 4155 ; return 0; } 4063 4156 EOF 4064 if { (eval echo configure:4 065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then4157 if { (eval echo configure:4158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4065 4158 rm -rf conftest* 4066 4159 eval "ac_cv_lib_$ac_lib_var=yes" … … 4090 4183 4091 4184 echo $ac_n "checking for MPT_GetTree in -lMPT""... $ac_c" 1>&6 4092 echo "configure:4 093: checking for MPT_GetTree in -lMPT" >&54185 echo "configure:4186: checking for MPT_GetTree in -lMPT" >&5 4093 4186 ac_lib_var=`echo MPT'_'MPT_GetTree | sed 'y%./+-%__p_%'` 4094 4187 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 4098 4191 LIBS="-lMPT $LIBS" 4099 4192 cat > conftest.$ac_ext <<EOF 4100 #line 41 01"configure"4193 #line 4194 "configure" 4101 4194 #include "confdefs.h" 4102 4195 /* Override any gcc2 internal prototype to avoid an error. */ … … 4109 4202 ; return 0; } 4110 4203 EOF 4111 if { (eval echo configure:4 112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then4204 if { (eval echo configure:4205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4112 4205 rm -rf conftest* 4113 4206 eval "ac_cv_lib_$ac_lib_var=yes" … … 4137 4230 4138 4231 echo $ac_n "checking for atof in -lsingcf""... $ac_c" 1>&6 4139 echo "configure:4 140: checking for atof in -lsingcf" >&54232 echo "configure:4233: checking for atof in -lsingcf" >&5 4140 4233 ac_lib_var=`echo singcf'_'atof | sed 'y%./+-%__p_%'` 4141 4234 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 4145 4238 LIBS="-lsingcf $LIBS" 4146 4239 cat > conftest.$ac_ext <<EOF 4147 #line 4 148"configure"4240 #line 4241 "configure" 4148 4241 #include "confdefs.h" 4149 4242 /* Override any gcc2 internal prototype to avoid an error. */ … … 4156 4249 ; return 0; } 4157 4250 EOF 4158 if { (eval echo configure:4 159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then4251 if { (eval echo configure:4252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4159 4252 rm -rf conftest* 4160 4253 eval "ac_cv_lib_$ac_lib_var=yes" … … 4184 4277 4185 4278 echo $ac_n "checking for atof in -lsingfac""... $ac_c" 1>&6 4186 echo "configure:4 187: checking for atof in -lsingfac" >&54279 echo "configure:4280: checking for atof in -lsingfac" >&5 4187 4280 ac_lib_var=`echo singfac'_'atof | sed 'y%./+-%__p_%'` 4188 4281 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 4192 4285 LIBS="-lsingfac $LIBS" 4193 4286 cat > conftest.$ac_ext <<EOF 4194 #line 4 195"configure"4287 #line 4288 "configure" 4195 4288 #include "confdefs.h" 4196 4289 /* Override any gcc2 internal prototype to avoid an error. */ … … 4203 4296 ; return 0; } 4204 4297 EOF 4205 if { (eval echo configure:42 06: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then4298 if { (eval echo configure:4299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4206 4299 rm -rf conftest* 4207 4300 eval "ac_cv_lib_$ac_lib_var=yes" … … 4235 4328 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 4236 4329 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 4237 echo "configure:4 238: checking for $ac_hdr" >&54330 echo "configure:4331: checking for $ac_hdr" >&5 4238 4331 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4239 4332 echo $ac_n "(cached) $ac_c" 1>&6 4240 4333 else 4241 4334 cat > conftest.$ac_ext <<EOF 4242 #line 4 243"configure"4335 #line 4336 "configure" 4243 4336 #include "confdefs.h" 4244 4337 #include <$ac_hdr> 4245 4338 EOF 4246 4339 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4247 { (eval echo configure:4 248: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }4248 ac_err=`grep -v '^ *+' conftest.out `4340 { (eval echo configure:4341: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4341 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4249 4342 if test -z "$ac_err"; then 4250 4343 rm -rf conftest* … … 4302 4395 # evaluate results 4303 4396 echo $ac_n "checking which apint package to use""... $ac_c" 1>&6 4304 echo "configure:43 05: checking which apint package to use" >&54397 echo "configure:4398: checking which apint package to use" >&5 4305 4398 if test "${with_apint}" != gmp && test "${with_apint}" != smallgmp; then 4306 4399 if test "$ac_gmp_ok" = yes || test "$enable_gmp" = yes; then … … 4346 4439 if test "$with_dl" != no; then 4347 4440 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 4348 echo "configure:4 349: checking for dlopen in -ldl" >&54441 echo "configure:4442: checking for dlopen in -ldl" >&5 4349 4442 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` 4350 4443 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 4354 4447 LIBS="-ldl $LIBS" 4355 4448 cat > conftest.$ac_ext <<EOF 4356 #line 4 357"configure"4449 #line 4450 "configure" 4357 4450 #include "confdefs.h" 4358 4451 /* Override any gcc2 internal prototype to avoid an error. */ … … 4365 4458 ; return 0; } 4366 4459 EOF 4367 if { (eval echo configure:4 368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then4460 if { (eval echo configure:4461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4368 4461 rm -rf conftest* 4369 4462 eval "ac_cv_lib_$ac_lib_var=yes" … … 4403 4496 fi 4404 4497 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 4405 echo "configure:44 06: checking for shl_load in -ldld" >&54498 echo "configure:4499: checking for shl_load in -ldld" >&5 4406 4499 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` 4407 4500 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 4411 4504 LIBS="-ldld $LIBS" 4412 4505 cat > conftest.$ac_ext <<EOF 4413 #line 4 414"configure"4506 #line 4507 "configure" 4414 4507 #include "confdefs.h" 4415 4508 /* Override any gcc2 internal prototype to avoid an error. */ … … 4422 4515 ; return 0; } 4423 4516 EOF 4424 if { (eval echo configure:4 425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then4517 if { (eval echo configure:4518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4425 4518 rm -rf conftest* 4426 4519 eval "ac_cv_lib_$ac_lib_var=yes" … … 4462 4555 4463 4556 echo $ac_n "checking whether to have MP""... $ac_c" 1>&6 4464 echo "configure:4 465: checking whether to have MP" >&54557 echo "configure:4558: checking whether to have MP" >&5 4465 4558 if test "${with_MP}" != yes && test "${with_MP}" != no; then 4466 4559 if (test "${will_have_gmp}" = yes) && \ … … 4493 4586 4494 4587 echo $ac_n "checking whether to have factory""... $ac_c" 1>&6 4495 echo "configure:4 496: checking whether to have factory" >&54588 echo "configure:4589: checking whether to have factory" >&5 4496 4589 if test "${with_factory}" != yes && test "${with_factory}" != no; then 4497 4590 if test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then … … 4524 4617 4525 4618 echo $ac_n "checking whether to have libfac""... $ac_c" 1>&6 4526 echo "configure:4 527: checking whether to have libfac" >&54619 echo "configure:4620: checking whether to have libfac" >&5 4527 4620 if test "${with_libfac}" != yes && test "${with_libfac}" != no; then 4528 4621 if (test "${will_have_factory}" = yes) && \ … … 4556 4649 4557 4650 echo $ac_n "checking whether to have dbm links""... $ac_c" 1>&6 4558 echo "configure:4 559: checking whether to have dbm links" >&54651 echo "configure:4652: checking whether to have dbm links" >&5 4559 4652 if test "$with_dbm" != no; then 4560 4653 cat >> confdefs.h <<\EOF … … 4568 4661 4569 4662 echo $ac_n "checking whether to have namespaces""... $ac_c" 1>&6 4570 echo "configure:4 571: checking whether to have namespaces" >&54663 echo "configure:4664: checking whether to have namespaces" >&5 4571 4664 if test "$with_namespaces" != yes; then 4572 4665 echo "$ac_t""no" 1>&6 … … 4580 4673 4581 4674 echo $ac_n "checking whether to have dynamic loading""... $ac_c" 1>&6 4582 echo "configure:4 583: checking whether to have dynamic loading" >&54675 echo "configure:4676: checking whether to have dynamic loading" >&5 4583 4676 if test "$with_dl" != yes; then 4584 4677 echo "$ac_t""no" 1>&6 … … 4593 4686 HPUX-9) 4594 4687 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 4595 echo "configure:4 596: checking for shl_load in -ldld" >&54688 echo "configure:4689: checking for shl_load in -ldld" >&5 4596 4689 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` 4597 4690 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 4601 4694 LIBS="-ldld $LIBS" 4602 4695 cat > conftest.$ac_ext <<EOF 4603 #line 46 04"configure"4696 #line 4697 "configure" 4604 4697 #include "confdefs.h" 4605 4698 /* Override any gcc2 internal prototype to avoid an error. */ … … 4612 4705 ; return 0; } 4613 4706 EOF 4614 if { (eval echo configure:4 615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then4707 if { (eval echo configure:4708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4615 4708 rm -rf conftest* 4616 4709 eval "ac_cv_lib_$ac_lib_var=yes" … … 4644 4737 HPUX-10) 4645 4738 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 4646 echo "configure:4 647: checking for shl_load in -ldld" >&54739 echo "configure:4740: checking for shl_load in -ldld" >&5 4647 4740 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` 4648 4741 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 4652 4745 LIBS="-ldld $LIBS" 4653 4746 cat > conftest.$ac_ext <<EOF 4654 #line 4 655"configure"4747 #line 4748 "configure" 4655 4748 #include "confdefs.h" 4656 4749 /* Override any gcc2 internal prototype to avoid an error. */ … … 4663 4756 ; return 0; } 4664 4757 EOF 4665 if { (eval echo configure:4 666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then4758 if { (eval echo configure:4759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4666 4759 rm -rf conftest* 4667 4760 eval "ac_cv_lib_$ac_lib_var=yes" … … 4702 4795 4703 4796 echo $ac_n "checking whether to use mtrack""... $ac_c" 1>&6 4704 echo "configure:47 05: checking whether to use mtrack" >&54797 echo "configure:4798: checking whether to use mtrack" >&5 4705 4798 if test "$with_mtrack" = yes && test "$ac_cv_singuname" = ix86-Linux; then 4706 4799 echo "$ac_t""yes" 1>&6 … … 4716 4809 4717 4810 echo $ac_n "checking which exponent type to use""... $ac_c" 1>&6 4718 echo "configure:4 719: checking which exponent type to use" >&54811 echo "configure:4812: checking which exponent type to use" >&5 4719 4812 if test "$with_exp_type" = "char"; then 4720 4813 echo "$ac_t""char" 1>&6 … … 4772 4865 # and sets the high bit in the cache file unless we assign to the vars. 4773 4866 (set) 2>&1 | 4774 case `(ac_space=' '; set ) 2>&1` in4867 case `(ac_space=' '; set | grep ac_space) 2>&1` in 4775 4868 *ac_space=\ *) 4776 4869 # `set' does not quote correctly, so add quotes (double-quote substitution … … 4839 4932 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 4840 4933 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 4841 echo "$CONFIG_STATUS generated by autoconf version 2.1 2"4934 echo "$CONFIG_STATUS generated by autoconf version 2.13" 4842 4935 exit 0 ;; 4843 4936 -help | --help | --hel | --he | --h) … … 4858 4951 $ac_vpsub 4859 4952 $extrasub 4953 s%@SHELL@%$SHELL%g 4860 4954 s%@CFLAGS@%$CFLAGS%g 4861 4955 s%@CPPFLAGS@%$CPPFLAGS%g 4862 4956 s%@CXXFLAGS@%$CXXFLAGS%g 4957 s%@FFLAGS@%$FFLAGS%g 4863 4958 s%@DEFS@%$DEFS%g 4864 4959 s%@LDFLAGS@%$LDFLAGS%g -
Singular/feOpt.cc
r57e94c4 r416465 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: feOpt.cc,v 1. 6 1999-10-14 14:27:02obachman Exp $ */4 /* $Id: feOpt.cc,v 1.7 1999-11-15 17:19:56 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT: Implementation of option buisness -
Singular/feOpt.h
r57e94c4 r416465 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: feOpt.h,v 1. 2 1999-10-14 14:27:03obachman Exp $ */6 /* $Id: feOpt.h,v 1.3 1999-11-15 17:19:56 obachman Exp $ */ 7 7 /* 8 8 * ABSTRACT: Declarations for working with Options -
Singular/feResource.cc
r57e94c4 r416465 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: feResource.cc,v 1.1 5 1999-10-25 18:21:50 SingularExp $ */4 /* $Id: feResource.cc,v 1.16 1999-11-15 17:19:57 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT: management of resources -
Singular/febase.h
r57e94c4 r416465 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: febase.h,v 1.4 2 1999-10-25 18:21:51 SingularExp $ */6 /* $Id: febase.h,v 1.43 1999-11-15 17:19:57 obachman Exp $ */ 7 7 /* 8 8 * ABSTRACT: basic i/o -
Singular/febase.inc
r57e94c4 r416465 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: febase.inc,v 1.2 7 1999-10-01 17:18:24 SingularExp $ */4 /* $Id: febase.inc,v 1.28 1999-11-15 17:19:57 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT: handling of 'voices' -
Singular/fegetopt.c
r57e94c4 r416465 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: fegetopt.c,v 1. 3 1999-09-22 15:42:13 SingularExp $ */4 /* $Id: fegetopt.c,v 1.4 1999-11-15 17:19:58 obachman Exp $ */ 5 5 6 6 /* Getopt for GNU. -
Singular/fereadl.c
r57e94c4 r416465 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: fereadl.c,v 1. 2 1999-09-22 14:11:24 SingularExp $ */4 /* $Id: fereadl.c,v 1.3 1999-11-15 17:19:58 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT: input from ttys, simulating fgets -
Singular/ffields.cc
r57e94c4 r416465 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: ffields.cc,v 1.2 3 1999-10-26 16:40:44 SingularExp $ */4 /* $Id: ffields.cc,v 1.24 1999-11-15 17:19:58 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT: finite fields with a none-prime number of elements (via tables) -
Singular/ffields.h
r57e94c4 r416465 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: ffields.h,v 1. 7 1999-10-26 16:40:44 SingularExp $ */6 /* $Id: ffields.h,v 1.8 1999-11-15 17:19:59 obachman Exp $ */ 7 7 /* 8 8 * ABSTRACT: finite fields with a none-prime number of elements (via tables) -
Singular/fglm.cc
r57e94c4 r416465 1 1 // emacs edit mode for this file is -*- C++ -*- 2 // $Id: fglm.cc,v 1.1 8 1999-09-16 12:33:54 SingularExp $2 // $Id: fglm.cc,v 1.19 1999-11-15 17:19:59 obachman Exp $ 3 3 4 4 /**************************************** -
Singular/fglm.h
r57e94c4 r416465 1 1 // emacs edit mode for this file is -*- C++ -*- 2 // $Id: fglm.h,v 1.1 0 1999-02-26 15:32:02 SingularExp $2 // $Id: fglm.h,v 1.11 1999-11-15 17:20:00 obachman Exp $ 3 3 4 4 /**************************************** -
Singular/fglmcomb.cc
r57e94c4 r416465 1 1 // emacs edit mode for this file is -*- C++ -*- 2 // $Id: fglmcomb.cc,v 1.1 5 1999-09-29 10:59:28obachman Exp $2 // $Id: fglmcomb.cc,v 1.16 1999-11-15 17:20:01 obachman Exp $ 3 3 4 4 /**************************************** -
Singular/fglmgauss.cc
r57e94c4 r416465 1 1 // emacs edit mode for this file is -*- C++ -*- 2 // $Id: fglmgauss.cc,v 1.1 0 1998-09-24 09:59:38 SingularExp $2 // $Id: fglmgauss.cc,v 1.11 1999-11-15 17:20:01 obachman Exp $ 3 3 4 4 /**************************************** -
Singular/fglmgauss.h
r57e94c4 r416465 1 1 // emacs edit mode for this file is -*- C++ -*- 2 // $Id: fglmgauss.h,v 1. 5 1999-02-26 15:32:03 SingularExp $2 // $Id: fglmgauss.h,v 1.6 1999-11-15 17:20:01 obachman Exp $ 3 3 4 4 /**************************************** -
Singular/fglmhom.cc
r57e94c4 r416465 1 1 // emacs edit mode for this file is -*- C++ -*- 2 // $Id: fglmhom.cc,v 1.1 4 1999-09-16 12:33:54 SingularExp $2 // $Id: fglmhom.cc,v 1.15 1999-11-15 17:20:02 obachman Exp $ 3 3 4 4 /**************************************** -
Singular/fglmvec.cc
r57e94c4 r416465 1 1 // emacs edit mode for this file is -*- C++ -*- 2 // $Id: fglmvec.cc,v 1.1 1 1998-09-24 09:59:40 SingularExp $2 // $Id: fglmvec.cc,v 1.12 1999-11-15 17:20:02 obachman Exp $ 3 3 4 4 /**************************************** -
Singular/fglmvec.h
r57e94c4 r416465 1 1 // emacs edit mode for this file is -*- C++ -*- 2 // $Id: fglmvec.h,v 1. 9 1998-12-16 18:43:38 SingularExp $2 // $Id: fglmvec.h,v 1.10 1999-11-15 17:20:02 obachman Exp $ 3 3 4 4 /**************************************** -
Singular/fglmzero.cc
r57e94c4 r416465 1 1 // emacs edit mode for this file is -*- C++ -*- 2 // $Id: fglmzero.cc,v 1.2 5 1999-10-14 14:27:03 obachman Exp $2 // $Id: fglmzero.cc,v 1.26 1999-11-15 17:20:03 obachman Exp $ 3 3 4 4 /**************************************** -
Singular/gnumpc.cc
r57e94c4 r416465 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: gnumpc.cc,v 1. 9 1999-09-16 12:33:55 SingularExp $ */4 /* $Id: gnumpc.cc,v 1.10 1999-11-15 17:20:03 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT: computations with GMP complex floating-point numbers -
Singular/gnumpc.h
r57e94c4 r416465 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: gnumpc.h,v 1. 4 1999-09-16 12:33:55 SingularExp $ */6 /* $Id: gnumpc.h,v 1.5 1999-11-15 17:20:03 obachman Exp $ */ 7 7 /* 8 8 * ABSTRACT: computations with GMP floating-point numbers -
Singular/gnumpfl.h
r57e94c4 r416465 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: gnumpfl.h,v 1. 4 1999-09-16 12:33:56 SingularExp $ */6 /* $Id: gnumpfl.h,v 1.5 1999-11-15 17:20:04 obachman Exp $ */ 7 7 /* 8 8 * ABSTRACT: computations with GMP floating-point numbers -
Singular/grammar.y
r57e94c4 r416465 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: grammar.y,v 1.7 3 1999-10-22 11:14:08obachman Exp $ */4 /* $Id: grammar.y,v 1.74 1999-11-15 17:20:04 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT: SINGULAR shell grammatik -
Singular/hdegree.cc
r57e94c4 r416465 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: hdegree.cc,v 1.1 8 1999-10-22 11:14:08obachman Exp $ */4 /* $Id: hdegree.cc,v 1.19 1999-11-15 17:20:04 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT - dimension, multiplicity, HC, kbase -
Singular/hilb.cc
r57e94c4 r416465 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: hilb.cc,v 1.1 1 1999-10-22 11:14:09obachman Exp $ */4 /* $Id: hilb.cc,v 1.12 1999-11-15 17:20:05 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT - Hilbert series -
Singular/hutil.cc
r57e94c4 r416465 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: hutil.cc,v 1.1 1 1999-09-07 18:15:31 SingularExp $ */4 /* $Id: hutil.cc,v 1.12 1999-11-15 17:20:05 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT: Utilities for staircase operations -
Singular/ideals.cc
r57e94c4 r416465 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: ideals.cc,v 1.7 2 1999-11-05 19:11:06 obachman Exp $ */4 /* $Id: ideals.cc,v 1.73 1999-11-15 17:20:06 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT - all basic methods to manipulate ideals … … 23 23 #include "ideals.h" 24 24 #include "lists.h" 25 #include "prCopy.h" 25 26 26 27 27 28 /* #define WITH_OLD_MINOR */ 29 #define pCopy_noCheck(p) pCopy(p) 28 30 29 31 static poly * idpower; … … 67 69 } 68 70 71 #ifndef __OPTIMIZE__ 72 // this is mainly for outputting an ideal within the debugger 69 73 void idPrint(ideal id) 70 74 { … … 79 83 } 80 84 } 85 #endif 81 86 82 87 /*2 … … 350 355 } 351 356 return h2; 352 }353 354 /*2355 * copy an ideal from ring r1 to currRing356 */357 ideal idRingCopy(ideal id, ring r)358 {359 if (id == NULL) return NULL;360 ideal res;361 362 int i;363 res = idInit(IDELEMS(id), id->rank);364 for (i=IDELEMS(id)-1; i>=0; i--)365 {366 res->m[i] = pFetchCopy(r, id->m[i]);367 }368 return res;369 357 } 370 358 … … 1099 1087 ring orig_ring=currRing; 1100 1088 ring syz_ring=rCurrRingAssureSyzComp(); 1101 pSetSyzComp(length);1089 rSetSyzComp(length); 1102 1090 1103 1091 while ((j>0) && (first->m[j-1]==NULL)) j--; … … 1110 1098 temp->m[k] = pCopy(first->m[i]); 1111 1099 else 1112 temp->m[k] = p FetchCopy(orig_ring,first->m[i]);1100 temp->m[k] = prCopyR(first->m[i], orig_ring); 1113 1101 q = pOne(); 1114 1102 pSetComp(q,i+1+length); … … 1130 1118 temp->m[k] = pCopy(second->m[i]); 1131 1119 else 1132 temp->m[k] = p FetchCopy(orig_ring,second->m[i]);1120 temp->m[k] = prCopyR(second->m[i], orig_ring); 1133 1121 if (slength==0) pShift(&(temp->m[k]),1); 1134 1122 k++; … … 1141 1129 if(syz_ring!=orig_ring) 1142 1130 rChangeCurrRing(orig_ring,TRUE); 1143 pSetSyzComp(0);1144 1131 1145 1132 result = idInit(IDELEMS(temp1),rank); … … 1153 1140 p = pCopy(temp1->m[i]); 1154 1141 else 1155 p = p FetchCopy(syz_ring,temp1->m[i]);1142 p = prCopyR(temp1->m[i], syz_ring); 1156 1143 while (p!=NULL) 1157 1144 { … … 1224 1211 ring orig_ring=currRing; 1225 1212 ring syz_ring=rCurrRingAssureSyzComp(); 1226 pSetSyzComp(syzComp);1213 rSetSyzComp(syzComp); 1227 1214 1228 1215 bigmat = idInit(j,(k+1)*maxrk); … … 1252 1239 bigmat->m[i] = pCopy(arg[j]->m[l]); 1253 1240 else 1254 bigmat->m[i] = p FetchCopy(orig_ring,arg[j]->m[l]);1241 bigmat->m[i] = prCopyR(arg[j]->m[l], orig_ring); 1255 1242 pShift(&(bigmat->m[i]),k*maxrk+isIdeal); 1256 1243 i++; … … 1267 1254 if(syz_ring!=orig_ring) 1268 1255 rChangeCurrRing(orig_ring,TRUE); 1269 pSetSyzComp(0);1270 1256 1271 1257 /* interprete result ----------------------------------------*/ … … 1284 1270 p = pCopy(tempstd->m[j]); 1285 1271 else 1286 p = p FetchCopy(syz_ring,tempstd->m[j]);1272 p = prCopyR(tempstd->m[j], syz_ring); 1287 1273 pShift(&p,-syzComp-isIdeal); 1288 1274 result->m[k] = p; … … 1308 1294 *works always in a ring with ringorder_s 1309 1295 */ 1310 static ideal idPrepare (ideal h1,ideal quot, tHomog h, 1311 int syzcomp, int *quotgen, int *quotdim, intvec **w) 1296 static ideal idPrepare (ideal h1, tHomog h, int syzcomp, intvec **w) 1312 1297 { 1313 1298 ideal h2, h3; … … 1329 1314 Warn("syzcomp too low, should be %d instead of %d",k,syzcomp); 1330 1315 syzcomp = k; 1331 pSetSyzComp(k);1316 rSetSyzComp(k); 1332 1317 } 1333 1318 h2->rank = syzcomp+i+1; … … 1350 1335 for(j=0;j<IDELEMS(h2);j++) pTest(h2->m[j]); 1351 1336 #endif 1352 h3=kStd(h2, quot,h,w,NULL,syzcomp);1337 h3=kStd(h2,currQuotient,h,w,NULL,syzcomp); 1353 1338 idDelete(&h2); 1354 1339 return h3; 1355 }1356 1357 ideal idSyzygies (ideal h1,ideal quot, tHomog h,intvec **w)1358 {1359 int d;1360 return idSyzygies(h1,quot,h,w,FALSE,d);1361 1340 } 1362 1341 … … 1365 1344 * weights of components are in w 1366 1345 * if setRegularity, return the regularity in deg 1367 * do not change h1, quot,w1368 */ 1369 ideal idSyzygies (ideal h1, ideal quot, tHomog h,intvec **w,1346 * do not change h1, w 1347 */ 1348 ideal idSyzygies (ideal h1, tHomog h,intvec **w, BOOLEAN setSyzComp, 1370 1349 BOOLEAN setRegularity, int °) 1371 1350 { 1372 ideal e;1351 ideal s_h1; 1373 1352 poly p; 1374 int i, j, k, quotdim, quotgen,length=0,reg;1353 int i, j, k, length=0,reg; 1375 1354 BOOLEAN isMonomial=TRUE; 1376 1355 … … 1378 1357 int ii; 1379 1358 for(ii=0;ii<IDELEMS(h1);ii++) pTest(h1->m[ii]); 1380 if (quot!=NULL)1381 {1382 for(ii=0;ii<IDELEMS(quot);ii++) pTest(quot->m[ii]);1383 }1384 1359 #endif 1385 1360 if (idIs0(h1)) … … 1391 1366 ring syz_ring=rCurrRingAssureSyzComp(); 1392 1367 1393 pSetSyzComp(k); 1394 1395 ideal s_h1=idRingCopy(h1,orig_ring); 1396 ideal s_quot=idRingCopy(quot,orig_ring); 1397 1398 ideal s_h3=idPrepare(s_h1,s_quot,h,k,"gen,"dim,w); 1399 idDelete(&s_h1); 1400 if(s_quot!=NULL) idDelete(&s_quot); 1401 1402 if (syz_ring!=orig_ring) 1403 rChangeCurrRing(orig_ring,TRUE); 1404 pSetSyzComp(0); 1368 if (setSyzComp) 1369 rSetSyzComp(k); 1370 1371 if (orig_ring != syz_ring) 1372 { 1373 s_h1=idrCopyR_NoSort(h1,orig_ring); 1374 } 1375 else 1376 { 1377 s_h1 = h1; 1378 } 1379 1380 ideal s_h3=idPrepare(s_h1,h,k,w); 1405 1381 1406 1382 if (s_h3==NULL) … … 1408 1384 return idFreeModule(IDELEMS(h1)); 1409 1385 } 1410 i = -1; 1411 e=idInit(16,s_h3->rank-k); 1386 1387 if (orig_ring != syz_ring) 1388 { 1389 idDelete(&s_h1); 1390 for (j=0; j<IDELEMS(s_h3); j++) 1391 { 1392 if (s_h3->m[j] != NULL) 1393 { 1394 if (pMinComp(s_h3->m[j],syz_ring) > k) 1395 pShift(&s_h3->m[j], -k); 1396 else 1397 pDelete(&s_h3->m[j]); 1398 } 1399 } 1400 idSkipZeroes(s_h3); 1401 s_h3->rank -= k; 1402 rChangeCurrRing(orig_ring, TRUE); 1403 s_h3 = idrMoveR_NoSort(s_h3, syz_ring); 1404 rKill(syz_ring); 1405 idTest(s_h3); 1406 return s_h3; 1407 } 1408 1409 ideal e = idInit(IDELEMS(s_h3), s_h3->rank); 1410 1412 1411 for (j=0; j<IDELEMS(s_h3); j++) 1413 1412 { 1414 1413 if (s_h3->m[j] != NULL) 1415 1414 { 1416 if (pMinComp(s_h3->m[j],syz_ring) > k) 1417 { 1418 if (syz_ring==orig_ring) 1419 { 1420 p=s_h3->m[j]; 1421 } 1422 else 1423 { 1424 p = pFetchCopy(syz_ring,s_h3->m[j]); 1425 rChangeCurrRing(syz_ring,FALSE); 1426 pDelete(&(s_h3->m[j])); 1427 rChangeCurrRing(orig_ring,TRUE); 1428 } 1429 s_h3->m[j]=NULL; 1430 pShift(&p,-k); 1431 if (p!=NULL) 1432 { 1433 i++; 1434 if (i+1 >= IDELEMS(e)) 1435 { 1436 pEnlargeSet(&(e->m),IDELEMS(e),16); 1437 IDELEMS(e) += 16; 1438 } 1439 e->m[i] = p; 1440 } 1441 } 1442 else 1443 { 1415 if (pMinComp(s_h3->m[j],syz_ring) <= k) 1416 { 1417 e->m[j] = s_h3->m[j]; 1444 1418 isMonomial=isMonomial && (pNext(s_h3->m[j])==NULL); 1445 if(syz_ring!=orig_ring) 1446 { 1447 rChangeCurrRing(syz_ring,FALSE); 1448 pDelete(&pNext(s_h3->m[j])); 1449 rChangeCurrRing(orig_ring,TRUE); 1450 } 1451 else 1452 { 1453 pDelete(&pNext(s_h3->m[j])); 1454 } 1455 } 1456 } 1457 } 1419 pDelete(&pNext(s_h3->m[j])); 1420 s_h3->m[j] = NULL; 1421 } 1422 } 1423 } 1424 1425 idSkipZeroes(s_h3); 1426 idSkipZeroes(e); 1427 1458 1428 if ((!isMonomial) 1459 1429 && (!TEST_OPT_NOTREGULARITY) … … 1461 1431 && (h==isHomog)) 1462 1432 { 1463 idSkipZeroes(s_h3); // works ring independend 1464 ideal h3=idRingCopy(s_h3,syz_ring); 1465 resolvente res = sySchreyerResolvente(h3,-1,&length,TRUE, TRUE); 1433 ring dp_C_ring = rCurrRingAssure_dp_C(); 1434 if (dp_C_ring != syz_ring) 1435 e = idrMoveR_NoSort(e, syz_ring); 1436 resolvente res = sySchreyerResolvente(e,-1,&length,TRUE, TRUE); 1466 1437 intvec * dummy = syBetti(res,length,®, *w); 1467 1438 deg = reg+2; … … 1472 1443 } 1473 1444 Free((ADDRESS)res,length*sizeof(ideal)); 1474 idDelete(&h3); 1475 } 1476 if (syz_ring!=orig_ring) 1477 { 1478 rChangeCurrRing(syz_ring,FALSE); 1479 idDelete(&s_h3); 1480 rChangeCurrRing(orig_ring,TRUE); 1481 rKill(syz_ring); 1445 idDelete(&e); 1446 if (dp_C_ring != syz_ring) 1447 { 1448 rChangeCurrRing(syz_ring, TRUE); 1449 rKill(dp_C_ring); 1450 } 1482 1451 } 1483 1452 else 1484 idDelete(&s_h3); 1485 idSkipZeroes(e); 1486 #ifdef PDEBUG 1487 idTest(e); 1488 idTest(h1); 1489 if (quot!=NULL) idTest(quot); 1490 #endif 1491 return e; 1453 { 1454 idDelete(&e); 1455 } 1456 idTest(s_h3); 1457 return s_h3; 1492 1458 } 1493 1459 … … 1496 1462 * in ma 1497 1463 */ 1498 ideal idLiftStd (ideal h1, ideal quot,matrix* ma, tHomog h)1499 { 1500 int i, j, k, t, quotgen,inputIsIdeal=idRankFreeModule(h1);1464 ideal idLiftStd (ideal h1, matrix* ma, tHomog h) 1465 { 1466 int i, j, k, t, inputIsIdeal=idRankFreeModule(h1); 1501 1467 poly p=NULL, q, qq; 1502 1468 intvec *w=NULL; … … 1510 1476 ring orig_ring=currRing; 1511 1477 ring syz_ring=rCurrRingAssureSyzComp(); 1512 pSetSyzComp(k); 1513 1514 ideal s_h1=idRingCopy(h1,orig_ring); 1515 ideal s_quot=idRingCopy(quot,orig_ring); 1516 1517 ideal s_h3=idPrepare(s_h1,s_quot,h,k,"gen,&i,&w); 1478 rSetSyzComp(k); 1479 1480 ideal s_h1=h1; 1481 1482 if (orig_ring != syz_ring) 1483 s_h1 = idrCopyR_NoSort(h1,orig_ring); 1484 else 1485 s_h1 = h1; 1486 1487 ideal s_h3=idPrepare(s_h1,h,k,&w); 1518 1488 ideal s_h2 = idInit(IDELEMS(s_h3), s_h3->rank); 1519 1489 … … 1548 1518 idSkipZeroes(s_h3); 1549 1519 j = IDELEMS(s_h1); 1550 if (s_quot!=NULL) idDelete(&s_quot);1551 idDelete(&s_h1);1552 1520 1553 1521 if (syz_ring!=orig_ring) 1522 { 1523 idDelete(&s_h1); 1554 1524 rChangeCurrRing(orig_ring,TRUE); 1555 pSetSyzComp(0); 1525 } 1526 1556 1527 idDelete((ideal*)ma); 1557 1528 *ma = mpNew(j,i); … … 1562 1533 if (s_h2->m[j] != NULL) 1563 1534 { 1564 q = p FetchCopyDelete(syz_ring, s_h2->m[j]);1535 q = prMoveR( s_h2->m[j], syz_ring); 1565 1536 s_h2->m[j] = NULL; 1566 1537 … … 1582 1553 for (i=0; i<IDELEMS(s_h3); i++) 1583 1554 { 1584 s_h3->m[i] = p FetchCopyDelete(syz_ring, s_h3->m[i]);1555 s_h3->m[i] = prMoveR_NoSort(s_h3->m[i], syz_ring); 1585 1556 } 1586 1557 … … 1595 1566 ideal idLiftNonStB (ideal mod, ideal submod,BOOLEAN goodShape) 1596 1567 { 1597 int lsmod =idRankFreeModule(submod), i, j, k , quotgen;1568 int lsmod =idRankFreeModule(submod), i, j, k; 1598 1569 1599 1570 if (idIs0(mod)) … … 1606 1577 ring orig_ring=currRing; 1607 1578 ring syz_ring=rCurrRingAssureSyzComp(); 1608 pSetSyzComp(k); 1609 1610 ideal s_mod=idRingCopy(mod,orig_ring); 1611 1612 ideal s_h3=idPrepare(s_mod,currQuotient,(tHomog)FALSE,k,"gen,&i,NULL); 1579 rSetSyzComp(k); 1580 1581 ideal s_mod, s_temp; 1582 if (orig_ring != syz_ring) 1583 { 1584 s_mod = idrCopyR_NoSort(mod,orig_ring); 1585 s_temp = idrCopyR_NoSort(submod,orig_ring); 1586 } 1587 else 1588 { 1589 s_mod = mod; 1590 s_temp = idCopy(submod); 1591 } 1592 1593 ideal s_h3=idPrepare(s_mod,(tHomog)FALSE,k,NULL); 1613 1594 1614 1595 if (!goodShape) … … 1621 1602 } 1622 1603 idSkipZeroes(s_h3); 1623 ideal s_temp = idRingCopy(submod,orig_ring);1624 1604 if (lsmod==0) 1625 1605 { … … 1655 1635 1656 1636 if(syz_ring!=orig_ring) 1637 { 1638 idDelete(&s_mod); 1657 1639 rChangeCurrRing(orig_ring,TRUE); 1658 pSetSyzComp(0); 1659 1660 if(syz_ring==orig_ring) 1661 return s_result; 1662 else 1663 { 1664 ideal result=idRingCopy(s_result,syz_ring); 1665 rChangeCurrRing(syz_ring,FALSE); 1666 idDelete(&s_result); 1667 rChangeCurrRing(orig_ring,TRUE); 1640 s_result = idrMoveR_NoSort(s_result, syz_ring); 1668 1641 rKill(syz_ring); 1669 return result;1670 }1642 } 1643 return s_result; 1671 1644 } 1672 1645 … … 1689 1662 ring orig_ring=currRing; 1690 1663 ring syz_ring=rCurrRingAssureSyzComp(); 1691 pSetSyzComp(max(k,1));1664 rSetSyzComp(max(k,1)); 1692 1665 1693 1666 ideal s_result=idInit(IDELEMS(submod),submod->rank); 1694 ideal s_temp=idRingCopy(mod,orig_ring); 1667 ideal s_temp; 1668 1669 if (syz_ring != orig_ring) 1670 { 1671 s_temp = idrCopyR_NoSort(mod,orig_ring); 1672 } 1673 else 1674 { 1675 s_temp = idCopy(mod); 1676 } 1677 1695 1678 if (k == 0) 1696 1679 { … … 1722 1705 p = pCopy(submod->m[j]); 1723 1706 else 1724 p=p FetchCopy(orig_ring,submod->m[j]);1707 p=prCopyR(submod->m[j], orig_ring); 1725 1708 if (pGetComp(p)==0) pSetCompP(p,1); 1726 1709 q = kNF(s_temp,currQuotient,p,k); … … 1751 1734 { 1752 1735 rChangeCurrRing(orig_ring,TRUE); 1753 ideal result=idRingCopy(s_result,syz_ring); 1754 rChangeCurrRing(syz_ring,TRUE); 1755 idDelete(&s_result); 1756 rChangeCurrRing(orig_ring,TRUE); 1736 s_result = idrMoveR_NoSort(s_result, syz_ring); 1757 1737 rKill(syz_ring); 1758 s_result=result; 1759 } 1760 pSetSyzComp(0); 1738 } 1761 1739 1762 1740 return s_result; 1763 1741 } 1764 1742 1743 1765 1744 /*2 1766 1745 *computes the quotient of h1,h2 1767 1746 */ 1768 #ifdef OLD_QUOT 1769 // nicht angepasst an syzcomp 1770 ideal idQuot (ideal h1, ideal h2, BOOLEAN h1IsSB, BOOLEAN resultIsIdeal) 1771 { 1772 int i,j = 0,l,ll,k,kkk,k1,k2,kmax; 1773 ideal h3,h4; 1747 static ideal idInitializeQuot (ideal h1, ideal h2, BOOLEAN h1IsStb, 1748 BOOLEAN *addOnlyOne, int *kkmax) 1749 { 1750 ideal temph1; 1774 1751 poly p,q = NULL; 1775 BOOLEAN b = FALSE; 1776 1777 k1 = idRankFreeModule(h1); 1778 k2 = idRankFreeModule(h2); 1752 int i,l,ll,k,kkk,kmax; 1753 int j = 0; 1754 int k1 = idRankFreeModule(h1); 1755 int k2 = idRankFreeModule(h2); 1756 tHomog hom=isNotHomog; 1757 1779 1758 k=max(k1,k2); 1780 if (k==0) { k = 1; b=TRUE; } 1781 h4 = idInit(1,1); 1759 if (k==0) 1760 k = 1; 1761 if ((k2==0) && (k>1)) *addOnlyOne = FALSE; 1762 1763 intvec * weights; 1764 hom = (tHomog)idHomModule(h1,currQuotient,&weights); 1765 if (addOnlyOne && (!h1IsStb)) 1766 temph1 = kStd(h1,currQuotient,hom,&weights,NULL); 1767 else 1768 temph1 = idCopy(h1); 1769 if (weights!=NULL) delete weights; 1770 idTest(temph1); 1771 /*--- making a single vector from h2 ---------------------*/ 1782 1772 for (i=0; i<IDELEMS(h2); i++) 1783 1773 { … … 1793 1783 } 1794 1784 } 1795 kmax = j*k+1; 1796 pSetSyzComp(kmax-1); 1797 p = pOne(); 1785 *kkmax = kmax = j*k+1; 1786 /*--- adding a monomial for the result (syzygy) ----------*/ 1787 p = q; 1788 while (pNext(p)!=NULL) pIter(p); 1789 pNext(p) = pOne(); 1790 pIter(p); 1798 1791 pSetComp(p,kmax); 1799 1792 pSetmComp(p); 1800 q = pAdd(q,p); 1793 /*--- constructing the big matrix ------------------------*/ 1794 ideal h4 = idInit(16,kmax); 1801 1795 h4->m[0] = q; 1802 1796 if (k2 == 0) … … 1809 1803 for (i=1; i<k; i++) 1810 1804 { 1811 p = pCopy (h4->m[i-1]);1805 p = pCopy_noCheck(h4->m[i-1]); 1812 1806 pShift(&p,1); 1813 1807 h4->m[i] = p; 1814 1808 } 1815 1809 } 1810 1816 1811 kkk = IDELEMS(h4); 1817 i = IDELEMS( h1);1818 while ( h1->m[i-1] == NULL) i--;1812 i = IDELEMS(temph1); 1813 while ((i>0) && (temph1->m[i-1]==NULL)) i--; 1819 1814 for (l=0; l<i; l++) 1820 1815 { 1821 if( h1->m[l]!=NULL)1816 if(temph1->m[l]!=NULL) 1822 1817 { 1823 1818 for (ll=0; ll<j; ll++) 1824 1819 { 1825 p = pCopy( h1->m[l]);1820 p = pCopy(temph1->m[l]); 1826 1821 if (k1 == 0) 1827 1822 pShift(&p,ll*k+1); … … 1838 1833 } 1839 1834 } 1840 h3 = kStd(h4,currQuotient,(tHomog)FALSE,NULL,NULL,kmax-1); 1841 pSetSyzComp(0); 1842 idDelete(&h4); 1843 for (i=0;i<IDELEMS(h3);i++) 1844 { 1845 if ((h3->m[i]!=NULL) && (pGetComp(h3->m[i])>=kmax)) 1846 { 1847 if (b) 1848 pShift(&h3->m[i],-kmax); 1849 else 1850 pShift(&h3->m[i],-kmax+1); 1851 } 1852 else 1853 pDelete(&h3->m[i]); 1854 } 1855 if (b) 1856 h3->rank = 1; 1857 else 1858 h3->rank = h1->rank; 1859 h4=idCompactify(h3); 1860 idDelete(&h3); 1835 /*--- if h2 goes in as single vector - the h1-part is just SB ---*/ 1836 if (*addOnlyOne) 1837 { 1838 p = h4->m[0]; 1839 for (i=0;i<IDELEMS(h4)-1;i++) 1840 { 1841 h4->m[i] = h4->m[i+1]; 1842 } 1843 h4->m[IDELEMS(h4)-1] = p; 1844 idSkipZeroes(h4); 1845 test |= Sy_bit(OPT_SB_1); 1846 } 1847 idDelete(&temph1); 1848 idTest(h4); 1861 1849 return h4; 1862 1850 } 1863 #else 1851 /*2 1852 *computes the quotient of h1,h2 1853 */ 1864 1854 ideal idQuot (ideal h1, ideal h2, BOOLEAN h1IsStb, BOOLEAN resultIsIdeal) 1865 1855 { … … 1877 1867 return res; 1878 1868 } 1879 1880 // the usual part:1881 ideal temph1;1882 1869 BITSET old_test=test; 1883 1870 poly p,q = NULL; 1884 1871 int i,l,ll,k,kkk,kmax; 1885 int j = 0;1886 int k1 = idRankFreeModule(h1);1887 int k2 = idRankFreeModule(h2);1888 1872 BOOLEAN addOnlyOne=TRUE; 1889 1873 tHomog hom=isNotHomog; 1890 1891 k=max(k1,k2); 1892 if (k==0) 1893 { 1894 k = 1; 1895 //resultIsIdeal=TRUE; 1896 } 1897 if ((k2==0) && (k>1)) addOnlyOne = FALSE; 1898 1899 intvec * weights; 1900 hom = (tHomog)idHomModule(h1,currQuotient,&weights); 1901 if (addOnlyOne && (!h1IsStb)) 1902 temph1 = kStd(h1,currQuotient,hom,&weights,NULL); 1903 else 1904 temph1 = h1; 1905 if (weights!=NULL) delete weights; 1906 idTest(temph1); 1907 1908 for (i=0; i<IDELEMS(h2); i++) 1909 { 1910 if (h2->m[i] != NULL) 1911 { 1912 p = pCopy(h2->m[i]); 1913 if (k2 == 0) 1914 pShift(&p,j*k+1); 1915 else 1916 pShift(&p,j*k); 1917 q = pAdd(q,p); 1918 j++; 1919 } 1920 } 1921 kmax = j*k+1; 1922 1874 intvec * weights1; 1875 1876 ideal s_h4 = idInitializeQuot (h1,h2,h1IsStb,&addOnlyOne,&kmax); 1877 hom = (tHomog)idHomModule(s_h4,currQuotient,&weights1); 1923 1878 ring orig_ring=currRing; 1924 1879 ring syz_ring=rCurrRingAssureSyzComp(); 1925 pSetSyzComp(kmax-1); 1926 1927 poly s_p = pOne(); 1928 pSetComp(s_p,kmax); 1929 pSetmComp(s_p); 1930 1931 poly s_q; 1932 if (syz_ring==orig_ring) 1933 s_q=pCopy(q); 1934 else 1935 s_q=pFetchCopy(orig_ring,q); 1936 1937 ideal s_h4 = idInit(16,kmax); 1938 s_q = pAdd(s_q,s_p); 1939 s_h4->m[0] = s_q; 1940 if (k2 == 0) 1941 { 1942 if (k > IDELEMS(s_h4)) 1943 { 1944 pEnlargeSet(&(s_h4->m),IDELEMS(s_h4),k-IDELEMS(s_h4)); 1945 IDELEMS(s_h4) = k; 1946 } 1947 for (i=1; i<k; i++) 1948 { 1949 s_p = pCopy(s_h4->m[i-1]); 1950 pShift(&s_p,1); 1951 s_h4->m[i] = s_p; 1952 } 1953 } 1954 1955 kkk = IDELEMS(s_h4); 1956 i = IDELEMS(temph1); 1957 while ((i>0) && (temph1->m[i-1]==NULL)) i--; 1958 for (l=0; l<i; l++) 1959 { 1960 if(temph1->m[l]!=NULL) 1961 { 1962 for (ll=0; ll<j; ll++) 1963 { 1964 if (syz_ring==orig_ring) 1965 s_p = pCopy(temph1->m[l]); 1966 else 1967 s_p=pFetchCopy(orig_ring,temph1->m[l]); 1968 if (k1 == 0) 1969 pShift(&s_p,ll*k+1); 1970 else 1971 pShift(&s_p,ll*k); 1972 if (kkk >= IDELEMS(s_h4)) 1973 { 1974 pEnlargeSet(&(s_h4->m),IDELEMS(s_h4),16); 1975 IDELEMS(s_h4) += 16; 1976 } 1977 s_h4->m[kkk] = s_p; 1978 kkk++; 1979 } 1980 } 1981 } 1982 1983 if (addOnlyOne) 1984 { 1985 s_p = s_h4->m[0]; 1986 for (i=0;i<IDELEMS(s_h4)-1;i++) 1987 { 1988 s_h4->m[i] = s_h4->m[i+1]; 1989 } 1990 s_h4->m[IDELEMS(s_h4)-1] = s_p; 1991 idSkipZeroes(s_h4); 1992 test |= Sy_bit(OPT_SB_1); 1993 } 1994 idTest(s_h4); 1995 intvec * weights1; 1996 hom = (tHomog)idHomModule(s_h4,currQuotient,&weights1); 1880 rSetSyzComp(kmax-1); 1881 if (orig_ring!=syz_ring) 1882 s_h4 = idrMoveR_NoSort(s_h4,syz_ring); 1883 1997 1884 ideal s_h3; 1998 1885 if (addOnlyOne) … … 2008 1895 idDelete(&s_h4); 2009 1896 2010 pSetSyzComp(0); 1897 1898 for (i=0;i<IDELEMS(s_h3);i++) 1899 { 1900 if ((s_h3->m[i]!=NULL) && (pGetComp(s_h3->m[i])>=kmax)) 1901 { 1902 if (resultIsIdeal) 1903 pShift(&s_h3->m[i],-kmax); 1904 else 1905 pShift(&s_h3->m[i],-kmax+1); 1906 } 1907 else 1908 pDelete(&s_h3->m[i]); 1909 } 1910 if (resultIsIdeal) 1911 s_h3->rank = 1; 1912 else 1913 s_h3->rank = h1->rank; 2011 1914 if(syz_ring!=orig_ring) 2012 1915 { 1916 // pDelete(&q); 2013 1917 rChangeCurrRing(orig_ring,TRUE); 2014 pDelete(&q); 2015 } 2016 2017 ideal h3=idRingCopy(s_h3,syz_ring); 2018 for (i=0;i<IDELEMS(h3);i++) 2019 { 2020 if ((h3->m[i]!=NULL) && (pRingGetComp(syz_ring,s_h3->m[i])>=kmax)) 2021 { 2022 if (resultIsIdeal) 2023 pShift(&h3->m[i],-kmax); 2024 else 2025 pShift(&h3->m[i],-kmax+1); 2026 } 2027 else 2028 pDelete(&h3->m[i]); 2029 } 2030 if (resultIsIdeal) 2031 h3->rank = 1; 2032 else 2033 h3->rank = h1->rank; 2034 if(syz_ring!=orig_ring) 2035 { 2036 rChangeCurrRing(syz_ring,FALSE); 2037 idDelete(&s_h3); 2038 rChangeCurrRing(orig_ring,TRUE); 1918 s_h3 = idrMoveR_NoSort(s_h3, syz_ring); 2039 1919 rKill(syz_ring); 2040 1920 } 2041 idSkipZeroes(h3); 2042 if ((addOnlyOne) && (!h1IsStb)) 2043 idDelete(&temph1); 1921 idSkipZeroes(s_h3); 2044 1922 test = old_test; 2045 idTest(h3); 2046 return h3; 2047 } 2048 #endif 1923 idTest(s_h3); 1924 return s_h3; 1925 } 2049 1926 2050 1927 /*2 … … 2315 2192 h = idInit(IDELEMS(h1),1); 2316 2193 // fetch data from the old ring 2317 for (k=0;k<IDELEMS(h1);k++) h->m[k] = p FetchCopy(origR, h1->m[k]);2194 for (k=0;k<IDELEMS(h1);k++) h->m[k] = prCopyR( h1->m[k], origR); 2318 2195 // compute kStd 2319 2196 hh = kStd(h,NULL,hom,&w,hilb); … … 2338 2215 IDELEMS(h3) += 16; 2339 2216 } 2340 h3->m[j] = p FetchCopy(&tmpR, hh->m[k]);2217 h3->m[j] = prCopyR( hh->m[k], &tmpR); 2341 2218 } 2342 2219 } … … 2927 2804 } 2928 2805 2806 /*3 2807 *handles for some ideal operations the ring/syzcomp managment 2808 *returns all syzygies (componentwise-)shifted by -syzcomp 2809 *or -syzcomp-1 (in case of ideals as input) 2810 static ideal idHandleIdealOp(ideal arg,int syzcomp,int isIdeal=FALSE) 2811 { 2812 ring orig_ring=currRing; 2813 ring syz_ring=rCurrRingAssureSyzComp(); 2814 rSetSyzComp(length); 2815 2816 ideal s_temp; 2817 if (orig_ring!=syz_ring) 2818 s_temp=idrMoveR_NoSort(arg,orig_ring); 2819 else 2820 s_temp=arg; 2821 2822 ideal s_temp1 = kStd(s_temp,currQuotient,testHomog,&w,NULL,length); 2823 if (w!=NULL) delete w; 2824 2825 if (syz_ring!=orig_ring) 2826 { 2827 idDelete(&s_temp); 2828 rChangeCurrRing(orig_ring,TRUE); 2829 } 2830 2831 idDelete(&temp); 2832 ideal temp1=idRingCopy(s_temp1,syz_ring); 2833 2834 if (syz_ring!=orig_ring) 2835 { 2836 rChangeCurrRing(syz_ring,FALSE); 2837 idDelete(&s_temp1); 2838 rChangeCurrRing(orig_ring,TRUE); 2839 rKill(syz_ring); 2840 } 2841 2842 for (i=0;i<IDELEMS(temp1);i++) 2843 { 2844 if ((temp1->m[i]!=NULL) 2845 && (pGetComp(temp1->m[i])<=length)) 2846 { 2847 pDelete(&(temp1->m[i])); 2848 } 2849 else 2850 { 2851 pShift(&(temp1->m[i]),-length); 2852 } 2853 } 2854 temp1->rank = rk; 2855 idSkipZeroes(temp1); 2856 2857 return temp1; 2858 } 2859 */ 2929 2860 /*2 2930 2861 * represents (h1+h2)/h2=h1/(h1 intersect h2) … … 2981 2912 ring orig_ring=currRing; 2982 2913 ring syz_ring=rCurrRingAssureSyzComp(); 2983 pSetSyzComp(length); 2984 2985 ideal s_temp=idRingCopy(temp,orig_ring); 2986 2914 rSetSyzComp(length); 2915 ideal s_temp; 2916 2917 if (syz_ring != orig_ring) 2918 { 2919 s_temp = idrCopyR_NoSort(temp, orig_ring); 2920 } 2921 else 2922 { 2923 s_temp = temp; 2924 } 2925 2987 2926 ideal s_temp1 = kStd(s_temp,currQuotient,testHomog,&w,NULL,length); 2988 idDelete(&s_temp);2989 2927 if (w!=NULL) delete w; 2990 2928 2929 for (i=0;i<IDELEMS(s_temp1);i++) 2930 { 2931 if ((s_temp1->m[i]!=NULL) 2932 && (pGetComp(s_temp1->m[i])<=length)) 2933 { 2934 pDelete(&(s_temp1->m[i])); 2935 } 2936 else 2937 { 2938 pShift(&(s_temp1->m[i]),-length); 2939 } 2940 } 2941 s_temp1->rank = rk; 2942 idSkipZeroes(s_temp1); 2943 2991 2944 if (syz_ring!=orig_ring) 2992 2945 { 2993 2946 rChangeCurrRing(orig_ring,TRUE); 2994 } 2995 pSetSyzComp(0); 2996 2997 idDelete(&temp); 2998 ideal temp1=idRingCopy(s_temp1,syz_ring); 2999 3000 if (syz_ring!=orig_ring) 3001 { 3002 rChangeCurrRing(syz_ring,FALSE); 3003 idDelete(&s_temp1); 3004 rChangeCurrRing(orig_ring,TRUE); 2947 s_temp = idrMoveR_NoSort(s_temp, syz_ring); 2948 idDelete(&temp); 3005 2949 rKill(syz_ring); 3006 2950 } 3007 3008 for (i=0;i<IDELEMS(temp1);i++) 3009 { 3010 if ((temp1->m[i]!=NULL) 3011 && (pGetComp(temp1->m[i])<=length)) 3012 { 3013 pDelete(&(temp1->m[i])); 3014 } 3015 else 3016 { 3017 pShift(&(temp1->m[i]),-length); 3018 } 3019 } 3020 temp1->rank = rk; 3021 idSkipZeroes(temp1); 3022 3023 return temp1; 2951 return s_temp1; 3024 2952 } 3025 2953 … … 3229 3157 } 3230 3158 3159 /*3 3160 * searches for units in the components of the module arg and 3161 * returns the first one 3162 */ 3163 static int idReadOutUnits(ideal arg,int* comp) 3164 { 3165 if (idIs0(arg)) return -1; 3166 int i=0,j,rk_arg=idRankFreeModule(arg),generator=-1; 3167 intvec * componentIsUsed =new intvec(rk_arg+1); 3168 poly p,q; 3169 3170 while ((i<IDELEMS(arg)) && (generator<0)) 3171 { 3172 for (j=rk_arg;j>=0;j--) 3173 (*componentIsUsed)[j]=0; 3174 p = arg->m[i]; 3175 while (p!=NULL) 3176 { 3177 j = pGetComp(p); 3178 if ((*componentIsUsed)[j]==0) 3179 { 3180 if (pIsConstantComp(p)) 3181 { 3182 generator = i; 3183 (*componentIsUsed)[j] = 1; 3184 } 3185 else 3186 { 3187 (*componentIsUsed)[j] = -1; 3188 } 3189 } 3190 else if ((*componentIsUsed)[j]>0) 3191 { 3192 ((*componentIsUsed)[j])++; 3193 } 3194 pIter(p); 3195 } 3196 i++; 3197 } 3198 i = 0; 3199 *comp = -1; 3200 for (j=0;j<=rk_arg;j++) 3201 { 3202 if ((*componentIsUsed)[j]>0) 3203 { 3204 if ((*comp==-1) || ((*componentIsUsed)[j]<i)) 3205 { 3206 *comp = j; 3207 i= (*componentIsUsed)[j]; 3208 } 3209 } 3210 } 3211 return generator; 3212 } 3213 3214 static void idDeleteComp(ideal arg,int red_comp) 3215 { 3216 int i,j; 3217 poly p; 3218 3219 for (i=IDELEMS(arg)-1;i>=0;i--) 3220 { 3221 p = arg->m[i]; 3222 while (p!=NULL) 3223 { 3224 j = pGetComp(p); 3225 if (j>red_comp) 3226 { 3227 pSetComp(p,j-1); 3228 pSetm(p); 3229 } 3230 pIter(p); 3231 } 3232 } 3233 (arg->rank)--; 3234 } 3235 3231 3236 /*2 3232 3237 * returns the presentation of an isomorphic, minimally 3233 3238 * embedded module 3234 3239 */ 3235 ideal idMinEmbedding(ideal arg )3240 ideal idMinEmbedding(ideal arg,BOOLEAN inPlace) 3236 3241 { 3237 3242 if (idIs0(arg)) return idInit(1,arg->rank); 3238 3239 int i,j,k,pC; 3240 poly p,q; 3241 int rg=arg->rank; 3242 ideal res = idCopy(arg); 3243 intvec *indexMap=NewIntvec1(rg+1); 3244 intvec *toKill=NewIntvec1(rg+1); 3245 3243 int next_gen,next_comp; 3244 ideal res=arg; 3245 3246 if (!inPlace) res = idCopy(arg); 3246 3247 loop 3247 3248 { 3248 k = 0; 3249 for (i=indexMap->length()-1;i>0;i--) 3250 { 3251 (*indexMap)[i] = i; 3252 (*toKill)[i] = 0; 3253 } 3254 for (j=IDELEMS(res)-1;j>=0;j--) 3255 { 3256 if ((res->m[j]!=NULL) && (pIsConstantComp(res->m[j])) && 3257 (pNext(res->m[j])==NULL)) 3258 { 3259 pC = pGetComp(res->m[j]); 3260 if ((*toKill)[pC]==0) 3261 { 3262 rg--; 3263 (*toKill)[pC] = 1; 3264 for (i=indexMap->length()-1;i>=pC;i--) 3265 (*indexMap)[i]--; 3266 } 3267 pDelete(&(res->m[j])); 3268 k++; 3269 } 3270 } 3271 idSkipZeroes(res); 3272 if (k==0) break; 3273 if (rg>0) 3274 { 3275 res->rank=rg; 3276 for (j=IDELEMS(res)-1;j>=0;j--) 3277 { 3278 while ((res->m[j]!=NULL) && ((*toKill)[pGetComp(res->m[j])]==1)) 3279 pDelete1(&res->m[j]); 3280 p = res->m[j]; 3281 while ((p!=NULL) && (pNext(p)!=NULL)) 3282 { 3283 pSetComp(p,(*indexMap)[pGetComp(p)]); 3284 pSetmComp(p); 3285 while ((pNext(p)!=NULL) && ((*toKill)[pGetComp(pNext(p))]==1)) 3286 pDelete1(&pNext(p)); 3287 pIter(p); 3288 } 3289 if (p!=NULL) 3290 { 3291 pSetComp(p,(*indexMap)[pGetComp(p)]); 3292 pSetmComp(p); 3293 } 3294 } 3295 idSkipZeroes(res); 3296 } 3297 else 3298 { 3299 idDelete(&res); 3300 res=idFreeModule(1); 3301 break; 3302 } 3303 } 3304 delete toKill; 3305 delete indexMap; 3249 next_gen = idReadOutUnits(res,&next_comp); 3250 if (next_gen<0) break; 3251 syGaussForOne(res,next_gen,next_comp,0,IDELEMS(res)); 3252 idDeleteComp(res,next_comp); 3253 } 3254 idSkipZeroes(res); 3306 3255 return res; 3307 3256 } -
Singular/ideals.h
r57e94c4 r416465 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: ideals.h,v 1.1 2 1999-10-19 12:42:42obachman Exp $ */6 /* $Id: ideals.h,v 1.13 1999-11-15 17:20:07 obachman Exp $ */ 7 7 /* 8 8 * ABSTRACT - all basic methods to manipulate ideals … … 21 21 /*- deletes an ideal -*/ 22 22 #endif 23 void idPrint(ideal id); 23 24 /*- initialise an ideal -*/ 24 25 ideal idMaxIdeal (int deg); … … 80 81 ideal idMultSect(resolvente arg, int length); 81 82 82 ideal idSyzygies (ideal h1,ideal quot, tHomog h,intvec **w);83 ideal idSyzygies (ideal h1, ideal quot, tHomog h,intvec **w,84 BOOLEAN setRegularity, int °);85 ideal idLiftStd (ideal h1, ideal quot,matrix *m, tHomog h=testHomog);83 //ideal idSyzygies (ideal h1, tHomog h,intvec **w); 84 ideal idSyzygies (ideal h1, tHomog h,intvec **w, BOOLEAN setSyzComp=TRUE, 85 BOOLEAN setRegularity=FALSE, int °=0); 86 ideal idLiftStd (ideal h1, matrix *m, tHomog h=testHomog); 86 87 87 88 ideal idLift (ideal mod, ideal sumod); … … 102 103 ideal idCompactify(ideal id); 103 104 104 ideal idMinEmbedding(ideal arg);105 ideal idMinEmbedding(ideal arg,BOOLEAN inPlace=FALSE); 105 106 106 107 ideal idHead(ideal h); -
Singular/intvec.cc
r57e94c4 r416465 2 2 * Computer Algebra System SINGULAR * 3 3 *****************************************/ 4 /* $Id: intvec.cc,v 1.1 5 1999-10-22 11:14:10obachman Exp $ */4 /* $Id: intvec.cc,v 1.16 1999-11-15 17:20:07 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT: class intvec: lists/vectors of integers … … 74 74 #endif // ! MDEBUG 75 75 76 76 77 intvec::intvec(intvec* iv) 77 78 { … … 163 164 } 164 165 return StringAppendS(""); 166 } 167 168 void intvec::resize(int new_length) 169 { 170 assume(new_length > 0 && col == 1); 171 v = (int*) ReAlloc0(v, row*sizeof(int), new_length*sizeof(int)); 172 row = new_length; 165 173 } 166 174 -
Singular/intvec.h
r57e94c4 r416465 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: intvec.h,v 1.1 1 1999-10-26 15:06:10obachman Exp $ */6 /* $Id: intvec.h,v 1.12 1999-11-15 17:20:07 obachman Exp $ */ 7 7 /* 8 8 * ABSTRACT: class intvec: lists/vectors of integers … … 51 51 intvec(int r, int c, int init); 52 52 intvec(intvec* iv); 53 53 54 void resize(int new_length); 54 55 int range(int i) 55 56 { return ((i<row) && (i>=0) && (col==1)); } -
Singular/iparith.cc
r57e94c4 r416465 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: iparith.cc,v 1.18 5 1999-11-11 16:03:31 SingularExp $ */4 /* $Id: iparith.cc,v 1.186 1999-11-15 17:20:08 obachman Exp $ */ 5 5 6 6 /* … … 1748 1748 idhdl h=(idhdl)v->data; 1749 1749 // CopyD for IDEAL_CMD and MODUL_CMD are identical: 1750 res->data = (char *)idLiftStd((ideal)u->Data(), currQuotient,1751 &(h->data.umatrix),testHomog);1750 res->data = (char *)idLiftStd((ideal)u->Data(), 1751 &(h->data.umatrix),testHomog); 1752 1752 setFlag(res,FLAG_STD); 1753 1753 return FALSE; … … 3035 3035 { 3036 3036 intvec *w=NULL; 3037 res->data = (char *)idSyzygies((ideal)v->Data(), currQuotient,testHomog,&w);3037 res->data = (char *)idSyzygies((ideal)v->Data(),testHomog,&w); 3038 3038 if (w!=NULL) delete w; 3039 3039 return FALSE; -
Singular/ipassign.cc
r57e94c4 r416465 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: ipassign.cc,v 1.5 1 1999-10-22 11:14:12obachman Exp $ */4 /* $Id: ipassign.cc,v 1.52 1999-11-15 17:20:09 obachman Exp $ */ 5 5 6 6 /* -
Singular/ipconv.cc
r57e94c4 r416465 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: ipconv.cc,v 1.2 0 1999-10-22 11:14:12obachman Exp $ */4 /* $Id: ipconv.cc,v 1.21 1999-11-15 17:20:09 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT: automatic type conversions -
Singular/ipconv.h
r57e94c4 r416465 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: ipconv.h,v 1. 3 1997-04-09 12:19:49 SingularExp $ */6 /* $Id: ipconv.h,v 1.4 1999-11-15 17:20:10 obachman Exp $ */ 7 7 /* 8 8 * ABSTRACT: interpreter: converting types -
Singular/ipid.cc
r57e94c4 r416465 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: ipid.cc,v 1.3 8 1999-10-27 15:04:44 SingularExp $ */4 /* $Id: ipid.cc,v 1.39 1999-11-15 17:20:10 obachman Exp $ */ 5 5 6 6 /* -
Singular/ipid.h
r57e94c4 r416465 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: ipid.h,v 1.2 7 1999-10-14 14:27:09obachman Exp $ */6 /* $Id: ipid.h,v 1.28 1999-11-15 17:20:10 obachman Exp $ */ 7 7 /* 8 8 * ABSTRACT: identfier handling -
Singular/iplib.cc
r57e94c4 r416465 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: iplib.cc,v 1.6 7 1999-11-06 15:07:56obachman Exp $ */4 /* $Id: iplib.cc,v 1.68 1999-11-15 17:20:11 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT: interpreter: LIB and help -
Singular/ipprint.cc
r57e94c4 r416465 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: ipprint.cc,v 1.1 4 1999-08-19 11:56:28 SingularExp $ */4 /* $Id: ipprint.cc,v 1.15 1999-11-15 17:20:11 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT: interpreter: printing -
Singular/ipprint.h
r57e94c4 r416465 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: ipprint.h,v 1. 4 1999-04-17 14:58:50obachman Exp $ */6 /* $Id: ipprint.h,v 1.5 1999-11-15 17:20:11 obachman Exp $ */ 7 7 /* 8 8 * ABSTRACT: interpreter: printing -
Singular/ipshell.cc
r57e94c4 r416465 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: ipshell.cc,v 1.5 1 1999-10-25 18:21:51 SingularExp $ */4 /* $Id: ipshell.cc,v 1.52 1999-11-15 17:20:12 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT: -
Singular/ipshell.h
r57e94c4 r416465 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: ipshell.h,v 1.2 2 1999-11-06 15:07:56obachman Exp $ */6 /* $Id: ipshell.h,v 1.23 1999-11-15 17:20:12 obachman Exp $ */ 7 7 /* 8 8 * ABSTRACT -
Singular/kbuckets.cc
r57e94c4 r416465 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: kbuckets.cc,v 1.1 1 1999-10-19 14:03:50obachman Exp $ */4 /* $Id: kbuckets.cc,v 1.12 1999-11-15 17:20:12 obachman Exp $ */ 5 5 6 6 #include "mod2.h" … … 10 10 #include "polys.h" 11 11 #include "febase.h" 12 #include "p Procs.h"12 #include "prProcs.h" 13 13 #include "kbuckets.h" 14 14 #include "numbers.h" … … 293 293 for (i=2; i<=bucket->buckets_used; i++) 294 294 { 295 p = p_Add_q(p, bucket->buckets[i], 296 &pl, bucket->buckets_length[i], 297 bucket->heap); 295 p = pr_Add_q(p, bucket->buckets[i], 296 &pl, bucket->buckets_length[i]); 298 297 bucket->buckets[i] = NULL; 299 298 bucket->buckets_length[i] = 0; … … 423 422 for (i=0; i<= bucket->buckets_used; i++) 424 423 if (bucket->buckets[i] != NULL) 425 bucket->buckets[i] = p _Mult_n(bucket->buckets[i], n);424 bucket->buckets[i] = pr_Mult_n(bucket->buckets[i], n); 426 425 #else 427 bucket->p = p _Mult_n(bucket->p, n);426 bucket->p = pr_Mult_n(bucket->p, n); 428 427 #endif 429 428 } … … 458 457 if (i <= bucket->buckets_used && bucket->buckets[i] != NULL) 459 458 { 460 p1 = p _Minus_m_Mult_q(bucket->buckets[i], m, p1,459 p1 = pr_Minus_m_Mult_q(bucket->buckets[i], m, p1, 461 460 spNoether, 462 &(bucket->buckets_length[i]), l1, 463 bucket->heap); 461 &(bucket->buckets_length[i]), l1); 464 462 l1 = bucket->buckets_length[i]; 465 463 bucket->buckets[i] = NULL; … … 468 466 while (bucket->buckets[i] != NULL) 469 467 { 470 p1 = p_Add_q(p1, bucket->buckets[i], 471 &l1, bucket->buckets_length[i], 472 bucket->heap); 468 p1 = pr_Add_q(p1, bucket->buckets[i], 469 &l1, bucket->buckets_length[i]); 473 470 bucket->buckets[i] = NULL; 474 471 bucket->buckets_length[i] = 0; … … 479 476 { 480 477 pSetCoeff0(m, nNeg(pGetCoeff(m))); 481 p1 = p _Mult_m(p1, m, spNoether, bucket->heap);478 p1 = pr_Mult_m(p1, m, spNoether); 482 479 pSetCoeff0(m, nNeg(pGetCoeff(m))); 483 480 } … … 490 487 kBucketAdjustBucketsUsed(bucket); 491 488 #else // HAVE_PSEUDO_BUCKETS 492 bucket->p = p _Minus_m_Mult_q(bucket->p, m, p,489 bucket->p = pr_Minus_m_Mult_q(bucket->p, m, p, 493 490 &(bucket->l), l1, 494 spNoether , bucket->heap);491 spNoether); 495 492 #endif 496 493 kbTests(bucket); … … 524 521 bucket->buckets_length[i] -= lq; 525 522 assume(pLength(bucket->buckets[i]) == bucket->buckets_length[i]); 526 p = p _Add_q(p, q, &lp, lq, bucket->heap);523 p = pr_Add_q(p, q, &lp, lq); 527 524 } 528 525 } … … 556 553 { 557 554 bucket->buckets_length[i] -= lq; 558 p = p _Add_q(p, q, &lp, lq, bucket->heap);555 p = pr_Add_q(p, q, &lp, lq); 559 556 } 560 557 } -
Singular/kbuckets.h
r57e94c4 r416465 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: kbuckets.h,v 1. 6 1999-10-14 14:27:11obachman Exp $ */6 /* $Id: kbuckets.h,v 1.7 1999-11-15 17:20:13 obachman Exp $ */ 7 7 #include "mod2.h" 8 8 #include "structs.h" -
Singular/khstd.cc
r57e94c4 r416465 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: khstd.cc,v 1. 9 1999-10-22 09:39:05 pohlExp $ */4 /* $Id: khstd.cc,v 1.10 1999-11-15 17:20:13 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT:utils for hilbert driven kStd -
Singular/khstd.h
r57e94c4 r416465 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: khstd.h,v 1. 3 1997-04-09 12:19:52 SingularExp $ */6 /* $Id: khstd.h,v 1.4 1999-11-15 17:20:13 obachman Exp $ */ 7 7 /* 8 8 * ABSTRACT:hilbert driven std -
Singular/kspoly.cc
r57e94c4 r416465 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: kspoly.cc,v 1. 5 1999-11-05 19:11:07obachman Exp $ */4 /* $Id: kspoly.cc,v 1.6 1999-11-15 17:20:14 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT - Routines for Spoly creation and reductions … … 9 9 #include "kutil.h" 10 10 #include "polys.h" 11 #include "p Procs.h"11 #include "prProcs.h" 12 12 #include "numbers.h" 13 13 … … 61 61 pSetCoeff(lm, bn); 62 62 if ((ct == 0) || (ct == 2)) 63 p1 = p _Mult_n(p1, an);63 p1 = pr_Mult_n(p1, an); 64 64 if (coef != NULL) *coef = an; 65 65 else nDelete(&an); … … 73 73 pMonSubFrom(lm, p2); 74 74 75 PR->p = p _Minus_m_Mult_q(p1, lm, a2, spNoether);75 PR->p = pr_Minus_m_Mult_q(p1, lm, a2, spNoether); 76 76 77 77 pDelete1(&lm); … … 138 138 139 139 // get m2 * a2 140 a2 = p _Mult_m(a2, m2, spNoether);140 a2 = pr_Mult_m(a2, m2, spNoether); 141 141 142 142 // and, finally, the spoly 143 Pair->p = p _Minus_m_Mult_q(a2, m1, a1, spNoether);143 Pair->p = pr_Minus_m_Mult_q(a2, m1, a1, spNoether); 144 144 145 145 // Clean-up time … … 184 184 { 185 185 pNext(Current) = NULL; 186 p _Mult_n(Lp, coef);186 pr_Mult_n(Lp, coef); 187 187 } 188 188 nDelete(&coef); -
Singular/kstd1.cc
r57e94c4 r416465 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: kstd1.cc,v 1.4 6 1999-11-05 19:11:07obachman Exp $ */4 /* $Id: kstd1.cc,v 1.47 1999-11-15 17:20:14 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT: … … 93 93 //pTest(*with); 94 94 #endif 95 assume(strat->syzComp == 0 ||96 pGetComp(h->p) <= strat->syzComp);97 95 if (!TEST_OPT_INTSTRATEGY) 98 96 pNorm(*with); … … 198 196 if ((strat->syzComp>0) && (pMinComp((*h).p) > strat->syzComp)) 199 197 { 200 if (TEST_OPT_DEBUG) PrintS(" > sy sComp\n");198 if (TEST_OPT_DEBUG) PrintS(" > syzComp\n"); 201 199 return -2; 202 200 } … … 255 253 unsigned long not_sev; 256 254 257 assume(strat->syzComp == 0 ||258 pGetComp(h->p) <= strat->syzComp);259 260 255 if (TEST_OPT_CANCELUNIT) cancelunit(h); 261 256 d = pFDeg((*h).p)+(*h).ecart; … … 359 354 if ((strat->syzComp>0) && (pMinComp((*h).p) > strat->syzComp)) 360 355 { 361 if (TEST_OPT_DEBUG) PrintS(" > sy sComp\n");356 if (TEST_OPT_DEBUG) PrintS(" > syzComp\n"); 362 357 return -2; 363 358 } 364 assume(pGetComp(h->p) <= strat->syzComp);365 359 366 360 } … … 469 463 if ((strat->syzComp>0) && (pMinComp((*h).p) > strat->syzComp)) 470 464 { 471 if (TEST_OPT_DEBUG) PrintS(" > sy sComp\n");465 if (TEST_OPT_DEBUG) PrintS(" > syzComp\n"); 472 466 return -2; 473 467 } … … 626 620 if ((strat->syzComp>0) && (pMinComp((*h).p) > strat->syzComp)) 627 621 { 628 if (TEST_OPT_DEBUG) PrintS(" > sy sComp\n");622 if (TEST_OPT_DEBUG) PrintS(" > syzComp\n"); 629 623 return -2; 630 624 } -
Singular/kstd1.h
r57e94c4 r416465 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: kstd1.h,v 1.1 0 1999-10-19 14:03:50obachman Exp $ */6 /* $Id: kstd1.h,v 1.11 1999-11-15 17:20:15 obachman Exp $ */ 7 7 /* 8 8 * ABSTRACT -
Singular/kstd2.cc
r57e94c4 r416465 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: kstd2.cc,v 1.3 8 1999-11-02 15:19:07 SingularExp $ */4 /* $Id: kstd2.cc,v 1.39 1999-11-15 17:20:15 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT - Kernel: alg. of Buchberger -
Singular/kstdfac.cc
r57e94c4 r416465 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: kstdfac.cc,v 1. 29 1999-11-02 17:15:31 SingularExp $ */4 /* $Id: kstdfac.cc,v 1.30 1999-11-15 17:20:15 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT - Kernel: factorizing alg. of Buchberger -
Singular/kstdfac.h
r57e94c4 r416465 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: kstdfac.h,v 1. 4 1998-05-14 13:04:18 SingularExp $ */6 /* $Id: kstdfac.h,v 1.5 1999-11-15 17:20:16 obachman Exp $ */ 7 7 /* 8 8 * ABSTRACT - Kernel: factorizing alg. of Buchberger -
Singular/kutil.cc
r57e94c4 r416465 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: kutil.cc,v 1.4 8 1999-11-02 17:15:31 SingularExp $ */4 /* $Id: kutil.cc,v 1.49 1999-11-15 17:20:16 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT: kernel: utils for kStd … … 2446 2446 wrp(strat->L[i].p); 2447 2447 Print(" o:%d e:%d l:%d", 2448 p GetOrder(strat->L[i].p),strat->L[i].ecart,strat->L[i].length);2448 pFDeg(strat->L[i].p),strat->L[i].ecart,strat->L[i].length); 2449 2449 } 2450 2450 PrintLn(); -
Singular/kutil.h
r57e94c4 r416465 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: kutil.h,v 1.2 1 1999-11-02 15:19:08 SingularExp $ */6 /* $Id: kutil.h,v 1.22 1999-11-15 17:20:17 obachman Exp $ */ 7 7 /* 8 8 * ABSTRACT: kernel: utils for kStd -
Singular/libparse.h
r57e94c4 r416465 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: libparse.h,v 1.1 0 1998-12-16 18:43:39 SingularExp $ */6 /* $Id: libparse.h,v 1.11 1999-11-15 17:20:17 obachman Exp $ */ 7 7 /* 8 8 * ABSTRACT: lib parsing -
Singular/libparse.l
r57e94c4 r416465 3 3 * Computer Algebra System SINGULAR * 4 4 ****************************************/ 5 /* $Id: libparse.l,v 1.3 5 1999-07-21 19:52:52obachman Exp $ */5 /* $Id: libparse.l,v 1.36 1999-11-15 17:20:18 obachman Exp $ */ 6 6 #include <stdio.h> 7 7 #include <string.h> -
Singular/lists.cc
r57e94c4 r416465 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: lists.cc,v 1. 19 1999-10-15 16:07:08 obachman Exp $ */4 /* $Id: lists.cc,v 1.20 1999-11-15 17:20:18 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT: handling of the list type -
Singular/lists.h
r57e94c4 r416465 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: lists.h,v 1.1 1 1999-10-15 16:07:08obachman Exp $ */6 /* $Id: lists.h,v 1.12 1999-11-15 17:20:19 obachman Exp $ */ 7 7 /* 8 8 * ABSTRACT: handling of the list type -
Singular/longalg.cc
r57e94c4 r416465 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: longalg.cc,v 1.3 7 1999-10-26 16:40:45 SingularExp $ */4 /* $Id: longalg.cc,v 1.38 1999-11-15 17:20:19 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT: algebraic numbers -
Singular/longalg.h
r57e94c4 r416465 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: longalg.h,v 1.1 1 1999-11-02 15:19:08 SingularExp $ */6 /* $Id: longalg.h,v 1.12 1999-11-15 17:20:19 obachman Exp $ */ 7 7 /* 8 8 * ABSTRACT: algebraic numbers -
Singular/longrat.cc
r57e94c4 r416465 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: longrat.cc,v 1.2 4 1999-10-14 14:27:15obachman Exp $ */4 /* $Id: longrat.cc,v 1.25 1999-11-15 17:20:20 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT: computation with long rational numbers (Hubert Grassmann) -
Singular/longrat.h
r57e94c4 r416465 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: longrat.h,v 1.1 4 1999-10-14 14:27:16obachman Exp $ */6 /* $Id: longrat.h,v 1.15 1999-11-15 17:20:20 obachman Exp $ */ 7 7 /* 8 8 * ABSTRACT: computation with long rational numbers -
Singular/longrat0.cc
r57e94c4 r416465 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: longrat0.cc,v 1. 9 1999-10-14 14:27:16obachman Exp $ */4 /* $Id: longrat0.cc,v 1.10 1999-11-15 17:20:21 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT - -
Singular/maps.cc
r57e94c4 r416465 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: maps.cc,v 1.2 0 1999-10-14 14:27:16obachman Exp $ */4 /* $Id: maps.cc,v 1.21 1999-11-15 17:20:21 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT - the mapping of polynomials to other rings … … 21 21 #include "longalg.h" 22 22 #include "maps.h" 23 #include "prCopy.h" 23 24 24 25 /* debug output: Tok2Cmdname in maApplyFetch*/ … … 522 523 case VECTOR_CMD: 523 524 if (what==FETCH_CMD) 524 res->data=(void *)p FetchCopy(preimage_r, (poly)data);525 res->data=(void *)prCopyR( (poly)data, preimage_r); 525 526 else 526 527 if (what==IMAP_CMD) … … 556 557 for (i=R*C-1;i>=0;i--) 557 558 { 558 m->m[i]=p FetchCopy(preimage_r,((ideal)data)->m[i]);559 m->m[i]=prCopyR(((ideal)data)->m[i], preimage_r); 559 560 pTest(m->m[i]); 560 561 } -
Singular/maps.h
r57e94c4 r416465 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: maps.h,v 1. 7 1999-03-09 12:28:49obachman Exp $ */6 /* $Id: maps.h,v 1.8 1999-11-15 17:20:21 obachman Exp $ */ 7 7 /* 8 8 * ABSTRACT - the mapping of polynomials to other rings -
Singular/matpol.cc
r57e94c4 r416465 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: matpol.cc,v 1.2 8 1999-10-14 14:27:17obachman Exp $ */4 /* $Id: matpol.cc,v 1.29 1999-11-15 17:20:22 obachman Exp $ */ 5 5 6 6 /* -
Singular/matpol.h
r57e94c4 r416465 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: matpol.h,v 1. 9 1999-10-14 14:27:17obachman Exp $ */6 /* $Id: matpol.h,v 1.10 1999-11-15 17:20:22 obachman Exp $ */ 7 7 /* 8 8 * ABSTRACT -
Singular/mmalloc.c
r57e94c4 r416465 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: mmalloc.c,v 1. 19 1999-10-22 16:31:21obachman Exp $ */4 /* $Id: mmalloc.c,v 1.20 1999-11-15 17:20:22 obachman Exp $ */ 5 5 6 6 /* -
Singular/mmbt.c
r57e94c4 r416465 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: mmbt.c,v 1.2 0 1999-10-25 18:21:52 SingularExp $ */4 /* $Id: mmbt.c,v 1.21 1999-11-15 17:20:23 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT: backtrace: part of memory subsystem (for linux/elf) -
Singular/mmbt.h
r57e94c4 r416465 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: mmbt.h,v 1. 6 1999-10-22 11:14:14obachman Exp $ */6 /* $Id: mmbt.h,v 1.7 1999-11-15 17:20:23 obachman Exp $ */ 7 7 /* 8 8 * ABSTRACT: backtrace: part of memory subsystem (for linux/elf) -
Singular/mmcheck.c
r57e94c4 r416465 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: mmcheck.c,v 1.1 6 1999-11-05 19:11:08obachman Exp $ */4 /* $Id: mmcheck.c,v 1.17 1999-11-15 17:20:23 obachman Exp $ */ 5 5 6 6 /* -
Singular/mmemory.h
r57e94c4 r416465 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: mmemory.h,v 1.3 0 1999-10-26 15:06:11obachman Exp $ */6 /* $Id: mmemory.h,v 1.31 1999-11-15 17:20:24 obachman Exp $ */ 7 7 /* 8 8 * ABSTRACT -
Singular/mmheap.c
r57e94c4 r416465 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: mmheap.c,v 1.1 5 1999-10-26 15:06:11obachman Exp $ */4 /* $Id: mmheap.c,v 1.16 1999-11-15 17:20:24 obachman Exp $ */ 5 5 #include <stdio.h> 6 6 #include "mod2.h" … … 99 99 100 100 page = heap->pages; 101 101 102 #if 0 102 103 while(page != NULL) 103 104 { … … 106 107 page = next_page; 107 108 } 109 #endif 108 110 heap->current = NULL; 109 111 heap->pages = NULL; … … 282 284 int mmNumberOfFreeHeapBlocks(memHeap heap) 283 285 { 284 mmListLength(heap->current);286 return mmListLength(heap->current); 285 287 } 286 288 -
Singular/mminit.cc
r57e94c4 r416465 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: mminit.cc,v 1.1 6 1999-09-24 16:39:46 SingularExp $ */4 /* $Id: mminit.cc,v 1.17 1999-11-15 17:20:25 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT: init of memory management -
Singular/mmisc.c
r57e94c4 r416465 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: mmisc.c,v 1.2 1 1999-11-05 19:11:08obachman Exp $ */4 /* $Id: mmisc.c,v 1.22 1999-11-15 17:20:25 obachman Exp $ */ 5 5 6 6 /* -
Singular/mmpage.c
r57e94c4 r416465 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: mmpage.c,v 1. 4 1999-10-19 14:55:40obachman Exp $ */4 /* $Id: mmpage.c,v 1.5 1999-11-15 17:20:25 obachman Exp $ */ 5 5 6 6 /* -
Singular/mmprivate.h
r57e94c4 r416465 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: mmprivate.h,v 1.1 5 1999-10-22 11:14:14obachman Exp $ */6 /* $Id: mmprivate.h,v 1.16 1999-11-15 17:20:26 obachman Exp $ */ 7 7 /* 8 8 * ABSTRACT -
Singular/mmtables.c
r57e94c4 r416465 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: mmtables.c,v 1. 6 1999-10-26 15:06:12obachman Exp $ */4 /* $Id: mmtables.c,v 1.7 1999-11-15 17:20:26 obachman Exp $ */ 5 5 6 6 /* -
Singular/mod2.h.in
r57e94c4 r416465 5 5 * DO NOT EDIT! 6 6 * 7 * Version: $Id: mod2.h.in,v 1.7 4 1999-11-15 12:53:27obachman Exp $7 * Version: $Id: mod2.h.in,v 1.75 1999-11-15 17:20:26 obachman Exp $ 8 8 *******************************************************************/ 9 9 #ifndef MOD2_H -
Singular/mod_raw.cc
r57e94c4 r416465 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: mod_raw.cc,v 1. 3 1999-09-22 12:03:33 hannesExp $ */4 /* $Id: mod_raw.cc,v 1.4 1999-11-15 17:20:28 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT: machine depend code for dynamic modules -
Singular/mod_raw.h
r57e94c4 r416465 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: mod_raw.h,v 1. 2 1999-09-22 12:01:09 SingularExp $ */6 /* $Id: mod_raw.h,v 1.3 1999-11-15 17:20:28 obachman Exp $ */ 7 7 /* 8 8 * ABSTRACT: machine depend code for dynamic modules -
Singular/modulop.cc
r57e94c4 r416465 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: modulop.cc,v 1.1 3 1999-10-26 16:40:45 SingularExp $ */4 /* $Id: modulop.cc,v 1.14 1999-11-15 17:20:28 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT: numbers modulo p (<=32003) -
Singular/modulop.h
r57e94c4 r416465 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: modulop.h,v 1. 8 1999-10-26 16:40:46 SingularExp $ */6 /* $Id: modulop.h,v 1.9 1999-11-15 17:20:29 obachman Exp $ */ 7 7 /* 8 8 * ABSTRACT: numbers modulo p (<=32003) -
Singular/mpr_base.cc
r57e94c4 r416465 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: mpr_base.cc,v 1.1 3 1999-10-26 15:06:12obachman Exp $ */4 /* $Id: mpr_base.cc,v 1.14 1999-11-15 17:20:29 obachman Exp $ */ 5 5 6 6 /* -
Singular/mpr_base.h
r57e94c4 r416465 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: mpr_base.h,v 1. 3 1999-06-29 09:03:44 wenkExp $ */6 /* $Id: mpr_base.h,v 1.4 1999-11-15 17:20:30 obachman Exp $ */ 7 7 8 8 /* -
Singular/mpr_global.h
r57e94c4 r416465 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: mpr_global.h,v 1. 7 1999-09-24 14:36:56obachman Exp $ */6 /* $Id: mpr_global.h,v 1.8 1999-11-15 17:20:30 obachman Exp $ */ 7 7 8 8 /* -
Singular/mpr_inout.cc
r57e94c4 r416465 3 3 ****************************************/ 4 4 5 /* $Id: mpr_inout.cc,v 1. 5 1999-10-14 14:27:23obachman Exp $ */5 /* $Id: mpr_inout.cc,v 1.6 1999-11-15 17:20:30 obachman Exp $ */ 6 6 7 7 /* -
Singular/mpr_inout.h
r57e94c4 r416465 5 5 ****************************************/ 6 6 7 /* $Id: mpr_inout.h,v 1. 4 1999-07-08 10:18:13 wenkExp $ */7 /* $Id: mpr_inout.h,v 1.5 1999-11-15 17:20:31 obachman Exp $ */ 8 8 9 9 /* -
Singular/mpr_numeric.cc
r57e94c4 r416465 3 3 ****************************************/ 4 4 5 /* $Id: mpr_numeric.cc,v 1. 5 1999-10-14 14:27:24obachman Exp $ */5 /* $Id: mpr_numeric.cc,v 1.6 1999-11-15 17:20:31 obachman Exp $ */ 6 6 7 7 /* -
Singular/mpr_numeric.h
r57e94c4 r416465 5 5 ****************************************/ 6 6 7 /* $Id: mpr_numeric.h,v 1. 3 1999-06-29 09:03:46 wenkExp $ */7 /* $Id: mpr_numeric.h,v 1.4 1999-11-15 17:20:31 obachman Exp $ */ 8 8 9 9 /* -
Singular/mpsr.h
r57e94c4 r416465 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: mpsr.h,v 1.1 6 1999-09-27 15:05:26obachman Exp $ */4 /* $Id: mpsr.h,v 1.17 1999-11-15 17:20:32 obachman Exp $ */ 5 5 /*************************************************************** 6 6 * -
Singular/mpsr_Error.cc
r57e94c4 r416465 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: mpsr_Error.cc,v 1.1 0 1999-09-29 10:59:34obachman Exp $ */4 /* $Id: mpsr_Error.cc,v 1.11 1999-11-15 17:20:32 obachman Exp $ */ 5 5 6 6 /*************************************************************** -
Singular/mpsr_Get.cc
r57e94c4 r416465 3 3 ****************************************/ 4 4 5 /* $Id: mpsr_Get.cc,v 1.2 8 1999-10-22 11:14:16obachman Exp $ */5 /* $Id: mpsr_Get.cc,v 1.29 1999-11-15 17:20:32 obachman Exp $ */ 6 6 /*************************************************************** 7 7 * -
Singular/mpsr_Get.h
r57e94c4 r416465 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: mpsr_Get.h,v 1. 8 1999-10-14 14:27:24obachman Exp $ */4 /* $Id: mpsr_Get.h,v 1.9 1999-11-15 17:20:33 obachman Exp $ */ 5 5 /*************************************************************** 6 6 * -
Singular/mpsr_GetMisc.cc
r57e94c4 r416465 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: mpsr_GetMisc.cc,v 1.1 8 1999-10-14 14:27:25obachman Exp $ */4 /* $Id: mpsr_GetMisc.cc,v 1.19 1999-11-15 17:20:33 obachman Exp $ */ 5 5 6 6 /*************************************************************** -
Singular/mpsr_GetPoly.cc
r57e94c4 r416465 3 3 ****************************************/ 4 4 5 /* $Id: mpsr_GetPoly.cc,v 1.2 5 1999-11-02 15:19:09 SingularExp $ */5 /* $Id: mpsr_GetPoly.cc,v 1.26 1999-11-15 17:20:33 obachman Exp $ */ 6 6 7 7 /*************************************************************** -
Singular/mpsr_Put.cc
r57e94c4 r416465 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: mpsr_Put.cc,v 1.1 8 1999-10-14 14:27:26obachman Exp $ */4 /* $Id: mpsr_Put.cc,v 1.19 1999-11-15 17:20:34 obachman Exp $ */ 5 5 6 6 /*************************************************************** -
Singular/mpsr_Put.h
r57e94c4 r416465 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: mpsr_Put.h,v 1.1 0 1998-12-18 11:11:42obachman Exp $ */4 /* $Id: mpsr_Put.h,v 1.11 1999-11-15 17:20:34 obachman Exp $ */ 5 5 /*************************************************************** 6 6 * -
Singular/mpsr_PutPoly.cc
r57e94c4 r416465 3 3 ****************************************/ 4 4 5 /* $Id: mpsr_PutPoly.cc,v 1.1 7 1999-10-14 14:27:26obachman Exp $ */5 /* $Id: mpsr_PutPoly.cc,v 1.18 1999-11-15 17:20:34 obachman Exp $ */ 6 6 7 7 /*************************************************************** -
Singular/mpsr_Tok.cc
r57e94c4 r416465 3 3 ****************************************/ 4 4 5 /* $Id: mpsr_Tok.cc,v 1.2 3 1999-09-27 15:05:28obachman Exp $ */5 /* $Id: mpsr_Tok.cc,v 1.24 1999-11-15 17:20:35 obachman Exp $ */ 6 6 7 7 /*************************************************************** -
Singular/mpsr_Tok.h
r57e94c4 r416465 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: mpsr_Tok.h,v 1. 3 1998-12-18 11:11:43obachman Exp $ */4 /* $Id: mpsr_Tok.h,v 1.4 1999-11-15 17:20:35 obachman Exp $ */ 5 5 6 6 /*************************************************************** -
Singular/ndbm.cc
r57e94c4 r416465 5 5 //**************************************************************************/ 6 6 // 7 // $Id: ndbm.cc,v 1.1 1 1999-07-14 15:30:51 SingularExp $7 // $Id: ndbm.cc,v 1.12 1999-11-15 17:20:36 obachman Exp $ 8 8 // 9 9 //**************************************************************************/ -
Singular/ndbm.h
r57e94c4 r416465 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: ndbm.h,v 1. 1 1997-08-08 12:59:29obachman Exp $ */6 /* $Id: ndbm.h,v 1.2 1999-11-15 17:20:36 obachman Exp $ */ 7 7 /* 8 8 * ABSTRACT: DBM -
Singular/numbers.cc
r57e94c4 r416465 2 2 * Computer Algebra System SINGULAR * 3 3 *****************************************/ 4 /* $Id: numbers.cc,v 1.2 1 1999-10-26 16:40:46 SingularExp $ */4 /* $Id: numbers.cc,v 1.22 1999-11-15 17:20:36 obachman Exp $ */ 5 5 6 6 /* -
Singular/numbers.h
r57e94c4 r416465 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: numbers.h,v 1.1 1 1999-10-26 16:40:46 SingularExp $ */6 /* $Id: numbers.h,v 1.12 1999-11-15 17:20:37 obachman Exp $ */ 7 7 /* 8 8 * ABSTRACT: interface to coefficient aritmetics -
Singular/pcv.cc
r57e94c4 r416465 2 2 * Computer Algebra System SINGULAR * 3 3 *****************************************/ 4 /* $Id: pcv.cc,v 1.2 7 1999-10-14 14:27:27obachman Exp $ */4 /* $Id: pcv.cc,v 1.28 1999-11-15 17:20:38 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT: conversion between polys and coef vectors -
Singular/pcv.h
r57e94c4 r416465 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: pcv.h,v 1.1 3 1999-06-11 17:13:33 mschulzeExp $ */4 /* $Id: pcv.h,v 1.14 1999-11-15 17:20:38 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT: conversion between polys and coef vectors -
Singular/polys-comp.h
r57e94c4 r416465 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: polys-comp.h,v 1.1 7 1999-10-22 11:14:16obachman Exp $ */6 /* $Id: polys-comp.h,v 1.18 1999-11-15 17:20:39 obachman Exp $ */ 7 7 8 8 /*************************************************************** … … 33 33 while (0) 34 34 35 #define _p MonCmp(p1, p2, actionE, actionG, actionS)\36 do 37 { 38 register const u_s long* s1 = &(p1->exp.l[ currRing->pCompLowIndex]); \39 register const u_s long* s2 = &(p2->exp.l[ currRing->pCompLowIndex]); \40 int _l = currRing->pCompLSize;\41 register int _i; 42 _memcmp(s1, s2, _i, _l, actionE, goto _NotEqual); 43 44 _NotEqual: 45 if ( currRing->ordsgn[_i] != 1)\46 { 47 if (s2[_i] > s1[_i]) actionG; 48 actionS; 49 } 50 if (s1[_i] > s2[_i]) actionG; 51 actionS; 52 } 35 #define _prMonCmp(p1, p2, r, actionE, actionG, actionS) \ 36 do \ 37 { \ 38 register const u_s long* s1 = &(p1->exp.l[r->pCompLowIndex]); \ 39 register const u_s long* s2 = &(p2->exp.l[r->pCompLowIndex]); \ 40 int _l = r->pCompLSize; \ 41 register int _i; \ 42 _memcmp(s1, s2, _i, _l, actionE, goto _NotEqual); \ 43 \ 44 _NotEqual: \ 45 if (r->ordsgn[_i] != 1) \ 46 { \ 47 if (s2[_i] > s1[_i]) actionG; \ 48 actionS; \ 49 } \ 50 if (s1[_i] > s2[_i]) actionG; \ 51 actionS; \ 52 } &n