Changeset ec989c in git
- Timestamp:
- Oct 24, 2002, 2:17:49 PM (21 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '0604212ebb110535022efecad887940825b97c3f')
- Children:
- e44bd88b22a2439b301aba30f2adc6bb930bbefc
- Parents:
- 7724a3281f0baa9aa017ab10865fcac877d85684
- Location:
- factory
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/cf_factor.cc
r7724a3 rec989c 1 1 /* emacs edit mode for this file is -*- C++ -*- */ 2 /* $Id: cf_factor.cc,v 1.1 6 2002-10-10 17:43:39Singular Exp $ */2 /* $Id: cf_factor.cc,v 1.17 2002-10-24 12:17:46 Singular Exp $ */ 3 3 4 4 //{{{ docu … … 180 180 { 181 181 mv=find_mvar(f); 182 if ( getCharacteristic() >0 )182 if ( getCharacteristic() == 0 ) 183 183 { 184 184 if (mv!=f.level()) … … 298 298 // F.removeFirst(); 299 299 //} 300 //printf("NTL:\n");out_cff(F); 301 //F=ZFactorizeUnivariate( fz, issqrfree ); 302 //printf("fac.:\n");out_cff(F); 300 303 } 301 304 else -
factory/configure
r7724a3 rec989c 23 23 ac_help="$ac_help 24 24 --with-Singular build for use with computer algebra system Singular." 25 ac_help="$ac_help 26 --with-NTL build for use with NTL." 25 27 ac_help="$ac_help 26 28 --enable-cf-inline build Factory with \"configurable inline methods\" … … 618 620 619 621 622 # Check whether --with-NTL or --without-NTL was given. 623 if test "${with_NTL+set}" = set; then 624 withval="$with_NTL" 625 : 626 else 627 with_NTL=yes 628 fi 629 630 620 631 # Check whether --enable-cf-inline or --disable-cf-inline was given. 621 632 if test "${enable_cf_inline+set}" = set; then … … 714 725 set dummy gcc; ac_word=$2 715 726 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 716 echo "configure:7 17: checking for $ac_word" >&5727 echo "configure:728: checking for $ac_word" >&5 717 728 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 718 729 echo $ac_n "(cached) $ac_c" 1>&6 … … 744 755 set dummy cc; ac_word=$2 745 756 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 746 echo "configure:7 47: checking for $ac_word" >&5757 echo "configure:758: checking for $ac_word" >&5 747 758 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 748 759 echo $ac_n "(cached) $ac_c" 1>&6 … … 795 806 set dummy cl; ac_word=$2 796 807 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 797 echo "configure: 798: checking for $ac_word" >&5808 echo "configure:809: checking for $ac_word" >&5 798 809 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 799 810 echo $ac_n "(cached) $ac_c" 1>&6 … … 827 838 828 839 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 829 echo "configure:8 30: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5840 echo "configure:841: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 830 841 831 842 ac_ext=c … … 838 849 cat > conftest.$ac_ext << EOF 839 850 840 #line 8 41"configure"851 #line 852 "configure" 841 852 #include "confdefs.h" 842 853 843 854 main(){return(0);} 844 855 EOF 845 if { (eval echo configure:8 46: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then856 if { (eval echo configure:857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 846 857 ac_cv_prog_cc_works=yes 847 858 # If we can't run a trivial program, we are probably using a cross compiler. … … 869 880 fi 870 881 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 871 echo "configure:8 72: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5882 echo "configure:883: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 872 883 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 873 884 cross_compiling=$ac_cv_prog_cc_cross 874 885 875 886 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 876 echo "configure:8 77: checking whether we are using GNU C" >&5887 echo "configure:888: checking whether we are using GNU C" >&5 877 888 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 878 889 echo $ac_n "(cached) $ac_c" 1>&6 … … 883 894 #endif 884 895 EOF 885 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8 86: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then896 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:897: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 886 897 ac_cv_prog_gcc=yes 887 898 else … … 902 913 CFLAGS= 903 914 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 904 echo "configure:9 05: checking whether ${CC-cc} accepts -g" >&5915 echo "configure:916: checking whether ${CC-cc} accepts -g" >&5 905 916 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 906 917 echo $ac_n "(cached) $ac_c" 1>&6 … … 939 950 set dummy $ac_prog; ac_word=$2 940 951 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 941 echo "configure:9 42: checking for $ac_word" >&5952 echo "configure:953: checking for $ac_word" >&5 942 953 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then 943 954 echo $ac_n "(cached) $ac_c" 1>&6 … … 971 982 972 983 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 973 echo "configure:9 74: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5984 echo "configure:985: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 974 985 975 986 ac_ext=C … … 982 993 cat > conftest.$ac_ext << EOF 983 994 984 #line 9 85"configure"995 #line 996 "configure" 985 996 #include "confdefs.h" 986 997 987 998 int main(){return(0);} 988 999 EOF 989 if { (eval echo configure: 990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1000 if { (eval echo configure:1001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 990 1001 ac_cv_prog_cxx_works=yes 991 1002 # If we can't run a trivial program, we are probably using a cross compiler. … … 1013 1024 fi 1014 1025 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1015 echo "configure:10 16: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&51026 echo "configure:1027: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 1016 1027 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 1017 1028 cross_compiling=$ac_cv_prog_cxx_cross 1018 1029 1019 1030 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 1020 echo "configure:10 21: checking whether we are using GNU C++" >&51031 echo "configure:1032: checking whether we are using GNU C++" >&5 1021 1032 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then 1022 1033 echo $ac_n "(cached) $ac_c" 1>&6 … … 1027 1038 #endif 1028 1039 EOF 1029 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:10 30: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then1040 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1041: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1030 1041 ac_cv_prog_gxx=yes 1031 1042 else … … 1046 1057 CXXFLAGS= 1047 1058 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 1048 echo "configure:10 49: checking whether ${CXX-g++} accepts -g" >&51059 echo "configure:1060: checking whether ${CXX-g++} accepts -g" >&5 1049 1060 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then 1050 1061 echo $ac_n "(cached) $ac_c" 1>&6 … … 1094 1105 # 1095 1106 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1096 echo "configure:1 097: checking how to run the C preprocessor" >&51107 echo "configure:1108: checking how to run the C preprocessor" >&5 1097 1108 # On Suns, sometimes $CPP names a directory. 1098 1109 if test -n "$CPP" && test -d "$CPP"; then … … 1109 1120 # not just through cpp. 1110 1121 cat > conftest.$ac_ext <<EOF 1111 #line 11 12"configure"1122 #line 1123 "configure" 1112 1123 #include "confdefs.h" 1113 1124 #include <assert.h> … … 1115 1126 EOF 1116 1127 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1117 { (eval echo configure:11 18: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1128 { (eval echo configure:1129: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1118 1129 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1119 1130 if test -z "$ac_err"; then … … 1126 1137 CPP="${CC-cc} -E -traditional-cpp" 1127 1138 cat > conftest.$ac_ext <<EOF 1128 #line 11 29"configure"1139 #line 1140 "configure" 1129 1140 #include "confdefs.h" 1130 1141 #include <assert.h> … … 1132 1143 EOF 1133 1144 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1134 { (eval echo configure:11 35: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1145 { (eval echo configure:1146: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1135 1146 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1136 1147 if test -z "$ac_err"; then … … 1143 1154 CPP="${CC-cc} -nologo -E" 1144 1155 cat > conftest.$ac_ext <<EOF 1145 #line 11 46"configure"1156 #line 1157 "configure" 1146 1157 #include "confdefs.h" 1147 1158 #include <assert.h> … … 1149 1160 EOF 1150 1161 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1151 { (eval echo configure:11 52: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1162 { (eval echo configure:1163: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1152 1163 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1153 1164 if test -z "$ac_err"; then … … 1174 1185 1175 1186 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 1176 echo "configure:11 77: checking how to run the C++ preprocessor" >&51187 echo "configure:1188: checking how to run the C++ preprocessor" >&5 1177 1188 if test -z "$CXXCPP"; then 1178 1189 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then … … 1187 1198 CXXCPP="${CXX-g++} -E" 1188 1199 cat > conftest.$ac_ext <<EOF 1189 #line 1 190"configure"1200 #line 1201 "configure" 1190 1201 #include "confdefs.h" 1191 1202 #include <stdlib.h> 1192 1203 EOF 1193 1204 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1194 { (eval echo configure:1 195: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1205 { (eval echo configure:1206: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1195 1206 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1196 1207 if test -z "$ac_err"; then … … 1217 1228 1218 1229 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 1219 echo "configure:12 20: checking whether ln -s works" >&51230 echo "configure:1231: checking whether ln -s works" >&5 1220 1231 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then 1221 1232 echo $ac_n "(cached) $ac_c" 1>&6 … … 1249 1260 # ./install, which can be erroneously created by make from ./install.sh. 1250 1261 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 1251 echo "configure:12 52: checking for a BSD compatible install" >&51262 echo "configure:1263: checking for a BSD compatible install" >&5 1252 1263 if test -z "$INSTALL"; then 1253 1264 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then … … 1304 1315 set dummy ranlib; ac_word=$2 1305 1316 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1306 echo "configure:13 07: checking for $ac_word" >&51317 echo "configure:1318: checking for $ac_word" >&5 1307 1318 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 1308 1319 echo $ac_n "(cached) $ac_c" 1>&6 … … 1332 1343 1333 1344 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 1334 echo "configure:13 35: checking whether ${MAKE-make} sets \${MAKE}" >&51345 echo "configure:1346: checking whether ${MAKE-make} sets \${MAKE}" >&5 1335 1346 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 1336 1347 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then … … 1361 1372 set dummy ar; ac_word=$2 1362 1373 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1363 echo "configure:13 64: checking for $ac_word" >&51374 echo "configure:1375: checking for $ac_word" >&5 1364 1375 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then 1365 1376 echo $ac_n "(cached) $ac_c" 1>&6 … … 1391 1402 set dummy m4; ac_word=$2 1392 1403 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1393 echo "configure:1 394: checking for $ac_word" >&51404 echo "configure:1405: checking for $ac_word" >&5 1394 1405 if eval "test \"`echo '$''{'ac_cv_prog_M4'+set}'`\" = set"; then 1395 1406 echo $ac_n "(cached) $ac_c" 1>&6 … … 1421 1432 set dummy bison; ac_word=$2 1422 1433 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1423 echo "configure:14 24: checking for $ac_word" >&51434 echo "configure:1435: checking for $ac_word" >&5 1424 1435 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then 1425 1436 echo $ac_n "(cached) $ac_c" 1>&6 … … 1460 1471 set dummy mkinstalldirs; ac_word=$2 1461 1472 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1462 echo "configure:14 63: checking for $ac_word" >&51473 echo "configure:1474: checking for $ac_word" >&5 1463 1474 if eval "test \"`echo '$''{'ac_cv_path_FACTORY_MKINSTALLDIRS'+set}'`\" = set"; then 1464 1475 echo $ac_n "(cached) $ac_c" 1>&6 … … 1497 1508 set dummy makeheader; ac_word=$2 1498 1509 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1499 echo "configure:15 00: checking for $ac_word" >&51510 echo "configure:1511: checking for $ac_word" >&5 1500 1511 if eval "test \"`echo '$''{'ac_cv_path_FACTORY_MAKEHEADER'+set}'`\" = set"; then 1501 1512 echo $ac_n "(cached) $ac_c" 1>&6 … … 1536 1547 1537 1548 echo $ac_n "checking and generating explicit install paths""... $ac_c" 1>&6 1538 echo "configure:15 39: checking and generating explicit install paths" >&51549 echo "configure:1550: checking and generating explicit install paths" >&5 1539 1550 1540 1551 # generate Makefile … … 1576 1587 # 1577 1588 echo $ac_n "checking for atof in -lm""... $ac_c" 1>&6 1578 echo "configure:15 79: checking for atof in -lm" >&51589 echo "configure:1590: checking for atof in -lm" >&5 1579 1590 ac_lib_var=`echo m'_'atof | sed 'y%./+-%__p_%'` 1580 1591 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 1584 1595 LIBS="-lm $LIBS" 1585 1596 cat > conftest.$ac_ext <<EOF 1586 #line 15 87"configure"1597 #line 1598 "configure" 1587 1598 #include "confdefs.h" 1588 1599 /* Override any gcc2 internal prototype to avoid an error. */ … … 1595 1606 ; return 0; } 1596 1607 EOF 1597 if { (eval echo configure:1 598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1608 if { (eval echo configure:1609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1598 1609 rm -rf conftest* 1599 1610 eval "ac_cv_lib_$ac_lib_var=yes" … … 1626 1637 if test "x$gmp_in_installation" != xyes; then 1627 1638 echo $ac_n "checking for main in -lgmp""... $ac_c" 1>&6 1628 echo "configure:16 29: checking for main in -lgmp" >&51639 echo "configure:1640: checking for main in -lgmp" >&5 1629 1640 ac_lib_var=`echo gmp'_'main | sed 'y%./+-%__p_%'` 1630 1641 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 1634 1645 LIBS="-lgmp $LIBS" 1635 1646 cat > conftest.$ac_ext <<EOF 1636 #line 16 37"configure"1647 #line 1648 "configure" 1637 1648 #include "confdefs.h" 1638 1649 … … 1641 1652 ; return 0; } 1642 1653 EOF 1643 if { (eval echo configure:16 44: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1654 if { (eval echo configure:1655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1644 1655 rm -rf conftest* 1645 1656 eval "ac_cv_lib_$ac_lib_var=yes" … … 1672 1683 LDFLAGS="-L$explicit_libdir $LDFLAGS" 1673 1684 echo $ac_n "checking for main in -lgmp""... $ac_c" 1>&6 1674 echo "configure:16 75: checking for main in -lgmp" >&51685 echo "configure:1686: checking for main in -lgmp" >&5 1675 1686 ac_lib_var=`echo gmp'_'main | sed 'y%./+-%__p_%'` 1676 1687 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 1680 1691 LIBS="-lgmp $LIBS" 1681 1692 cat > conftest.$ac_ext <<EOF 1682 #line 16 83"configure"1693 #line 1694 "configure" 1683 1694 #include "confdefs.h" 1684 1695 … … 1687 1698 ; return 0; } 1688 1699 EOF 1689 if { (eval echo configure:1 690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1700 if { (eval echo configure:1701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1690 1701 rm -rf conftest* 1691 1702 eval "ac_cv_lib_$ac_lib_var=yes" … … 1737 1748 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1738 1749 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1739 echo "configure:17 40: checking for $ac_hdr" >&51750 echo "configure:1751: checking for $ac_hdr" >&5 1740 1751 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1741 1752 echo $ac_n "(cached) $ac_c" 1>&6 1742 1753 else 1743 1754 cat > conftest.$ac_ext <<EOF 1744 #line 17 45"configure"1755 #line 1756 "configure" 1745 1756 #include "confdefs.h" 1746 1757 #include <$ac_hdr> 1747 1758 EOF 1748 1759 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1749 { (eval echo configure:17 50: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1760 { (eval echo configure:1761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1750 1761 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1751 1762 if test -z "$ac_err"; then … … 1778 1789 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1779 1790 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1780 echo "configure:17 81: checking for $ac_hdr" >&51791 echo "configure:1792: checking for $ac_hdr" >&5 1781 1792 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1782 1793 echo $ac_n "(cached) $ac_c" 1>&6 1783 1794 else 1784 1795 cat > conftest.$ac_ext <<EOF 1785 #line 17 86"configure"1796 #line 1797 "configure" 1786 1797 #include "confdefs.h" 1787 1798 #include <$ac_hdr> 1788 1799 EOF 1789 1800 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1790 { (eval echo configure:1 791: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1801 { (eval echo configure:1802: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1791 1802 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1792 1803 if test -z "$ac_err"; then … … 1826 1837 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1827 1838 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1828 echo "configure:18 29: checking for $ac_hdr" >&51839 echo "configure:1840: checking for $ac_hdr" >&5 1829 1840 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1830 1841 echo $ac_n "(cached) $ac_c" 1>&6 1831 1842 else 1832 1843 cat > conftest.$ac_ext <<EOF 1833 #line 18 34"configure"1844 #line 1845 "configure" 1834 1845 #include "confdefs.h" 1835 1846 #include <$ac_hdr> 1836 1847 EOF 1837 1848 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1838 { (eval echo configure:18 39: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1849 { (eval echo configure:1850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1839 1850 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1840 1851 if test -z "$ac_err"; then … … 1869 1880 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1870 1881 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1871 echo "configure:18 72: checking for $ac_hdr" >&51882 echo "configure:1883: checking for $ac_hdr" >&5 1872 1883 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1873 1884 echo $ac_n "(cached) $ac_c" 1>&6 1874 1885 else 1875 1886 cat > conftest.$ac_ext <<EOF 1876 #line 18 77"configure"1887 #line 1888 "configure" 1877 1888 #include "confdefs.h" 1878 1889 #include <$ac_hdr> 1879 1890 EOF 1880 1891 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1881 { (eval echo configure:18 82: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1892 { (eval echo configure:1893: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1882 1893 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1883 1894 if test -z "$ac_err"; then … … 1910 1921 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1911 1922 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1912 echo "configure:19 13: checking for $ac_hdr" >&51923 echo "configure:1924: checking for $ac_hdr" >&5 1913 1924 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1914 1925 echo $ac_n "(cached) $ac_c" 1>&6 1915 1926 else 1916 1927 cat > conftest.$ac_ext <<EOF 1917 #line 19 18"configure"1928 #line 1929 "configure" 1918 1929 #include "confdefs.h" 1919 1930 #include <$ac_hdr> 1920 1931 EOF 1921 1932 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1922 { (eval echo configure:19 23: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1933 { (eval echo configure:1934: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1923 1934 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1924 1935 if test -z "$ac_err"; then … … 1954 1965 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1955 1966 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1956 echo "configure:19 57: checking for $ac_hdr" >&51967 echo "configure:1968: checking for $ac_hdr" >&5 1957 1968 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1958 1969 echo $ac_n "(cached) $ac_c" 1>&6 1959 1970 else 1960 1971 cat > conftest.$ac_ext <<EOF 1961 #line 19 62"configure"1972 #line 1973 "configure" 1962 1973 #include "confdefs.h" 1963 1974 #include <$ac_hdr> 1964 1975 EOF 1965 1976 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1966 { (eval echo configure:19 67: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1977 { (eval echo configure:1978: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1967 1978 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1968 1979 if test -z "$ac_err"; then … … 2000 2011 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2001 2012 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2002 echo "configure:20 03: checking for $ac_hdr" >&52013 echo "configure:2014: checking for $ac_hdr" >&5 2003 2014 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2004 2015 echo $ac_n "(cached) $ac_c" 1>&6 2005 2016 else 2006 2017 cat > conftest.$ac_ext <<EOF 2007 #line 20 08"configure"2018 #line 2019 "configure" 2008 2019 #include "confdefs.h" 2009 2020 #include <$ac_hdr> 2010 2021 EOF 2011 2022 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2012 { (eval echo configure:20 13: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }2023 { (eval echo configure:2024: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2013 2024 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2014 2025 if test -z "$ac_err"; then … … 2044 2055 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2045 2056 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2046 echo "configure:20 47: checking for $ac_hdr" >&52057 echo "configure:2058: checking for $ac_hdr" >&5 2047 2058 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2048 2059 echo $ac_n "(cached) $ac_c" 1>&6 2049 2060 else 2050 2061 cat > conftest.$ac_ext <<EOF 2051 #line 20 52"configure"2062 #line 2063 "configure" 2052 2063 #include "confdefs.h" 2053 2064 #include <$ac_hdr> 2054 2065 EOF 2055 2066 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2056 { (eval echo configure:20 57: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }2067 { (eval echo configure:2068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2057 2068 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2058 2069 if test -z "$ac_err"; then … … 2110 2121 2111 2122 echo $ac_n "checking for working const""... $ac_c" 1>&6 2112 echo "configure:21 13: checking for working const" >&52123 echo "configure:2124: checking for working const" >&5 2113 2124 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 2114 2125 echo $ac_n "(cached) $ac_c" 1>&6 2115 2126 else 2116 2127 cat > conftest.$ac_ext <<EOF 2117 #line 21 18"configure"2128 #line 2129 "configure" 2118 2129 #include "confdefs.h" 2119 2130 … … 2164 2175 ; return 0; } 2165 2176 EOF 2166 if { (eval echo configure:21 67: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then2177 if { (eval echo configure:2178: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2167 2178 rm -rf conftest* 2168 2179 ac_cv_c_const=yes … … 2185 2196 2186 2197 echo $ac_n "checking for inline""... $ac_c" 1>&6 2187 echo "configure:21 88: checking for inline" >&52198 echo "configure:2199: checking for inline" >&5 2188 2199 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then 2189 2200 echo $ac_n "(cached) $ac_c" 1>&6 … … 2192 2203 for ac_kw in inline __inline__ __inline; do 2193 2204 cat > conftest.$ac_ext <<EOF 2194 #line 2 195"configure"2205 #line 2206 "configure" 2195 2206 #include "confdefs.h" 2196 2207 … … 2199 2210 ; return 0; } 2200 2211 EOF 2201 if { (eval echo configure:22 02: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then2212 if { (eval echo configure:2213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2202 2213 rm -rf conftest* 2203 2214 ac_cv_c_inline=$ac_kw; break … … 2227 2238 # arithmetic shift 2228 2239 echo $ac_n "checking whether your compiler does arithmetic shifts""... $ac_c" 1>&6 2229 echo "configure:22 30: checking whether your compiler does arithmetic shifts" >&52240 echo "configure:2241: checking whether your compiler does arithmetic shifts" >&5 2230 2241 if eval "test \"`echo '$''{'ac_cv_shift'+set}'`\" = set"; then 2231 2242 echo $ac_n "(cached) $ac_c" 1>&6 … … 2235 2246 else 2236 2247 cat > conftest.$ac_ext <<EOF 2237 #line 22 38"configure"2248 #line 2249 "configure" 2238 2249 #include "confdefs.h" 2239 2250 int main() { if (-2 >> 1 == -1) exit(0); else exit(1); } 2240 2251 EOF 2241 if { (eval echo configure:22 42: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null2252 if { (eval echo configure:2253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2242 2253 then 2243 2254 ac_cv_shift=yes … … 2321 2332 # check whether CXX accepts --no-rtti 2322 2333 echo $ac_n "checking whether gcc accepts --no-rtti""... $ac_c" 1>&6 2323 echo "configure:23 24: checking whether gcc accepts --no-rtti" >&52334 echo "configure:2335: checking whether gcc accepts --no-rtti" >&5 2324 2335 tmp_flags=${CXXFLAGS} 2325 2336 CXXFLAGS="${CXXFLAGS} --no-rtti" … … 2328 2339 else 2329 2340 cat > conftest.$ac_ext <<EOF 2330 #line 23 31"configure"2341 #line 2342 "configure" 2331 2342 #include "confdefs.h" 2332 2343 … … 2335 2346 ; return 0; } 2336 2347 EOF 2337 if { (eval echo configure:23 38: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then2348 if { (eval echo configure:2349: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2338 2349 rm -rf conftest* 2339 2350 ac_cv_cxx_have_rtti=yes … … 2355 2366 2356 2367 echo $ac_n "checking whether gcc accepts --no-exceptions""... $ac_c" 1>&6 2357 echo "configure:23 58: checking whether gcc accepts --no-exceptions" >&52368 echo "configure:2369: checking whether gcc accepts --no-exceptions" >&5 2358 2369 tmp_flags=${CXXFLAGS} 2359 2370 CXXFLAGS="${CXXFLAGS} --no-exceptions" … … 2362 2373 else 2363 2374 cat > conftest.$ac_ext <<EOF 2364 #line 23 65"configure"2375 #line 2376 "configure" 2365 2376 #include "confdefs.h" 2366 2377 … … 2369 2380 ; return 0; } 2370 2381 EOF 2371 if { (eval echo configure:23 72: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2382 if { (eval echo configure:2383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2372 2383 rm -rf conftest* 2373 2384 ac_cv_cxx_have_exceptions=yes … … 2411 2422 fi 2412 2423 2424 # NTL 2425 if test "x$with_NTL" = xyes; then 2426 cat >> confdefs.h <<\EOF 2427 #define HAVE_NTL 1 2428 EOF 2429 2430 fi 2431 2413 2432 # arithmetic shift 2414 2433 if test "x$ac_cv_shift" = xyes; then … … 2427 2446 2428 2447 echo $ac_n "checking whether to use omalloc""... $ac_c" 1>&6 2429 echo "configure:24 30: checking whether to use omalloc" >&52448 echo "configure:2449: checking whether to use omalloc" >&5 2430 2449 2431 2450 if test "$with_omalloc" = yes; then -
factory/configure.in
r7724a3 rec989c 1 1 dnl # emacs edit mode for this file is -*- sh -*- 2 dnl # $Id: configure.in,v 1.3 2 2001-08-22 14:26:55Singular Exp $2 dnl # $Id: configure.in,v 1.33 2002-10-24 12:17:48 Singular Exp $ 3 3 4 4 dnl # … … 13 13 # - initialisation. 14 14 # 15 AC_REVISION($Id: configure.in,v 1.3 2 2001-08-22 14:26:55Singular Exp $)15 AC_REVISION($Id: configure.in,v 1.33 2002-10-24 12:17:48 Singular Exp $) 16 16 AC_INIT(canonicalform.cc) 17 17 AC_CONFIG_HEADER(config.h) … … 57 57 , 58 58 with_Singular=no) 59 60 AC_ARG_WITH( 61 NTL, 62 [ --with-NTL build for use with NTL.], 63 , 64 with_NTL=yes) 59 65 60 66 AC_ARG_ENABLE( … … 407 413 fi 408 414 415 # NTL 416 if test "x$with_NTL" = xyes; then 417 AC_DEFINE(HAVE_NTL) 418 fi 419 409 420 # arithmetic shift 410 421 if test "x$ac_cv_shift" = xyes; then -
factory/fac_multivar.cc
r7724a3 rec989c 1 1 /* emacs edit mode for this file is -*- C++ -*- */ 2 /* $Id: fac_multivar.cc,v 1. 9 2002-10-10 17:43:40Singular Exp $ */2 /* $Id: fac_multivar.cc,v 1.10 2002-10-24 12:17:49 Singular Exp $ */ 3 3 4 4 #include <config.h> … … 20 20 #include "fac_distrib.h" 21 21 22 void out_cf(char *s1,const CanonicalForm &f,char *s2); 22 23 23 24 TIMING_DEFINE_PRINT(fac_content); … … 148 149 for ( CFIterator i = f; i.hasTerms(); i++ ) 149 150 { 151 if((i.exp()!=0) && ((i.exp() % cf_getSmallPrime(start))==0)) 152 { 153 start++; 154 CanonicalForm ff=r; 155 find_good_prime(ff,r,start); 156 return; 157 } 150 158 find_good_prime(i.coeff(),r,start); 151 159 } … … 240 248 } 241 249 modpk bb=coeffBound(U0,p); 242 if (bb.get pk() > b.getpk() ) b=bb;250 if (bb.getk() > b.getk() ) b=bb; 243 251 bb=coeffBound(arg,p); 244 if (bb.get pk() > b.getpk() ) b=bb;252 if (bb.getk() > b.getk() ) b=bb; 245 253 } 246 254 #else … … 249 257 b = getZFacModulus(); 250 258 #endif 259 //printf("p=%d, k=%d\n",b.getp(),b.getk()); 251 260 DEBOUTLN( cerr, "the coefficient bound of the factors of U is " << b.getpk() ); 252 261
Note: See TracChangeset
for help on using the changeset viewer.