- Timestamp:
- Oct 13, 1997, 5:39:03 PM (27 years ago)
- Branches:
- (u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b4f17ed1d25f93d46dbe29e4b499baecc2fd51bb')
- Children:
- b5ae525ed6a2020a638241140d0a4aabbc162e57
- Parents:
- d43a4d843e5403a3f9def8f515fb1c80302fd722
- Location:
- Singular
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/clapconv.cc
rd43a4d r499bdc 3 3 * Computer Algebra System SINGULAR * 4 4 ****************************************/ 5 // $Id: clapconv.cc,v 1. 8 1997-09-18 14:08:17Singular Exp $5 // $Id: clapconv.cc,v 1.9 1997-10-13 15:38:58 Singular Exp $ 6 6 /* 7 7 * ABSTRACT: convert data between Singular and factory … … 139 139 { 140 140 number z=(number)Alloc(sizeof(rnumber)); 141 #ifdef LDEBUG 142 z->debug=123456; 143 #endif 141 144 z->z = gmp_numerator( f ); 142 145 if ( f.den() == 1 ) … … 267 270 { 268 271 number z=(number)Alloc(sizeof(rnumber)); 272 #ifdef LDEBUG 273 z->debug=123456; 274 #endif 269 275 z->z = gmp_numerator( f ); 270 276 if ( f.den() == 1 ) 277 { 271 278 z->s = 3; 279 } 272 280 else 273 281 { … … 433 441 { 434 442 number z=(number)Alloc(sizeof(rnumber)); 443 #ifdef LDEBUG 444 z->debug=123456; 445 #endif 435 446 z->z = gmp_numerator( f ); 436 447 if ( f.den() == 1 ) 448 { 437 449 z->s = 3; 450 } 438 451 else 439 452 { -
Singular/configure
rd43a4d r499bdc 557 557 EOF 558 558 559 cat >> confdefs.h <<EOF 560 #define SINGULAR_SUB_VERSION ${SINGULAR_SUB_VERSION} 561 EOF 562 559 563 560 564 … … 683 687 #endif 684 688 EOF 685 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:6 86: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then689 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:690: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 686 690 ac_cv_prog_gcc=yes 687 691 else … … 735 739 # not just through cpp. 736 740 cat > conftest.$ac_ext <<EOF 737 #line 7 38"configure"741 #line 742 "configure" 738 742 #include "confdefs.h" 739 743 #include <assert.h> … … 741 745 EOF 742 746 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 743 { (eval echo configure:74 4: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }747 { (eval echo configure:748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 744 748 ac_err=`grep -v '^ *+' conftest.out` 745 749 if test -z "$ac_err"; then … … 750 754 CPP="${CC-cc} -E -traditional-cpp" 751 755 cat > conftest.$ac_ext <<EOF 752 #line 75 3"configure"756 #line 757 "configure" 753 757 #include "confdefs.h" 754 758 #include <assert.h> … … 756 760 EOF 757 761 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 758 { (eval echo configure:7 59: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }762 { (eval echo configure:763: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 759 763 ac_err=`grep -v '^ *+' conftest.out` 760 764 if test -z "$ac_err"; then … … 819 823 #endif 820 824 EOF 821 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:82 2: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then825 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 822 826 ac_cv_prog_gxx=yes 823 827 else … … 891 895 else 892 896 cat > conftest.$ac_ext <<EOF 893 #line 89 4"configure"897 #line 898 "configure" 894 898 #include "confdefs.h" 895 899 main(){return(0);} 896 900 EOF 897 { (eval echo configure: 898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }901 { (eval echo configure:902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } 898 902 if test -s conftest && (./conftest; exit) 2>/dev/null; then 899 903 ac_cv_c_cross=no … … 1067 1071 LIBS="-lm $LIBS" 1068 1072 cat > conftest.$ac_ext <<EOF 1069 #line 107 0"configure"1073 #line 1074 "configure" 1070 1074 #include "confdefs.h" 1071 1075 /* Override any gcc2 internal prototype to avoid an error. */ … … 1077 1081 ; return 0; } 1078 1082 EOF 1079 if { (eval echo configure:108 0: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then1083 if { (eval echo configure:1084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1080 1084 rm -rf conftest* 1081 1085 eval "ac_cv_lib_$ac_lib_var=yes" … … 1109 1113 LIBS="-lbsd $LIBS" 1110 1114 cat > conftest.$ac_ext <<EOF 1111 #line 111 2"configure"1115 #line 1116 "configure" 1112 1116 #include "confdefs.h" 1113 1117 /* Override any gcc2 internal prototype to avoid an error. */ … … 1119 1123 ; return 0; } 1120 1124 EOF 1121 if { (eval echo configure:112 2: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then1125 if { (eval echo configure:1126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1122 1126 rm -rf conftest* 1123 1127 eval "ac_cv_lib_$ac_lib_var=yes" … … 1151 1155 LIBS="-lsocket $LIBS" 1152 1156 cat > conftest.$ac_ext <<EOF 1153 #line 115 4"configure"1157 #line 1158 "configure" 1154 1158 #include "confdefs.h" 1155 1159 /* Override any gcc2 internal prototype to avoid an error. */ … … 1161 1165 ; return 0; } 1162 1166 EOF 1163 if { (eval echo configure:116 4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then1167 if { (eval echo configure:1168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1164 1168 rm -rf conftest* 1165 1169 eval "ac_cv_lib_$ac_lib_var=yes" … … 1193 1197 LIBS="-lnsl $LIBS" 1194 1198 cat > conftest.$ac_ext <<EOF 1195 #line 1 196"configure"1199 #line 1200 "configure" 1196 1200 #include "confdefs.h" 1197 1201 /* Override any gcc2 internal prototype to avoid an error. */ … … 1203 1207 ; return 0; } 1204 1208 EOF 1205 if { (eval echo configure:12 06: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then1209 if { (eval echo configure:1210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1206 1210 rm -rf conftest* 1207 1211 eval "ac_cv_lib_$ac_lib_var=yes" … … 1235 1239 LIBS="-lucb $LIBS" 1236 1240 cat > conftest.$ac_ext <<EOF 1237 #line 12 38"configure"1241 #line 1242 "configure" 1238 1242 #include "confdefs.h" 1239 1243 /* Override any gcc2 internal prototype to avoid an error. */ … … 1245 1249 ; return 0; } 1246 1250 EOF 1247 if { (eval echo configure:12 48: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then1251 if { (eval echo configure:1252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1248 1252 rm -rf conftest* 1249 1253 eval "ac_cv_lib_$ac_lib_var=yes" … … 1279 1283 LIBS="-lncurses $LIBS" 1280 1284 cat > conftest.$ac_ext <<EOF 1281 #line 128 2"configure"1285 #line 1286 "configure" 1282 1286 #include "confdefs.h" 1283 1287 /* Override any gcc2 internal prototype to avoid an error. */ … … 1289 1293 ; return 0; } 1290 1294 EOF 1291 if { (eval echo configure:129 2: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then1295 if { (eval echo configure:1296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1292 1296 rm -rf conftest* 1293 1297 eval "ac_cv_lib_$ac_lib_var=yes" … … 1320 1324 LIBS="-lcurses $LIBS" 1321 1325 cat > conftest.$ac_ext <<EOF 1322 #line 132 3"configure"1326 #line 1327 "configure" 1323 1327 #include "confdefs.h" 1324 1328 /* Override any gcc2 internal prototype to avoid an error. */ … … 1330 1334 ; return 0; } 1331 1335 EOF 1332 if { (eval echo configure:133 3: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then1336 if { (eval echo configure:1337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1333 1337 rm -rf conftest* 1334 1338 eval "ac_cv_lib_$ac_lib_var=yes" … … 1361 1365 LIBS="-ltermcap $LIBS" 1362 1366 cat > conftest.$ac_ext <<EOF 1363 #line 136 4"configure"1367 #line 1368 "configure" 1364 1368 #include "confdefs.h" 1365 1369 /* Override any gcc2 internal prototype to avoid an error. */ … … 1371 1375 ; return 0; } 1372 1376 EOF 1373 if { (eval echo configure:137 4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then1377 if { (eval echo configure:1378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1374 1378 rm -rf conftest* 1375 1379 eval "ac_cv_lib_$ac_lib_var=yes" … … 1407 1411 LIBS="-lreadline $LIBS" 1408 1412 cat > conftest.$ac_ext <<EOF 1409 #line 141 0"configure"1413 #line 1414 "configure" 1410 1414 #include "confdefs.h" 1411 1415 /* Override any gcc2 internal prototype to avoid an error. */ … … 1417 1421 ; return 0; } 1418 1422 EOF 1419 if { (eval echo configure:142 0: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then1423 if { (eval echo configure:1424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1420 1424 rm -rf conftest* 1421 1425 eval "ac_cv_lib_$ac_lib_var=yes" … … 1450 1454 else 1451 1455 cat > conftest.$ac_ext <<EOF 1452 #line 145 3"configure"1456 #line 1457 "configure" 1453 1457 #include "confdefs.h" 1454 1458 #include <$ac_hdr> 1455 1459 EOF 1456 1460 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1457 { (eval echo configure:14 58: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1461 { (eval echo configure:1462: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1458 1462 ac_err=`grep -v '^ *+' conftest.out` 1459 1463 if test -z "$ac_err"; then … … 1509 1513 LIBS="-ldld $LIBS" 1510 1514 cat > conftest.$ac_ext <<EOF 1511 #line 151 2"configure"1515 #line 1516 "configure" 1512 1516 #include "confdefs.h" 1513 1517 /* Override any gcc2 internal prototype to avoid an error. */ … … 1519 1523 ; return 0; } 1520 1524 EOF 1521 if { (eval echo configure:152 2: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then1525 if { (eval echo configure:1526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1522 1526 rm -rf conftest* 1523 1527 eval "ac_cv_lib_$ac_lib_var=yes" … … 1550 1554 LIBS="-lgmp $LIBS" 1551 1555 cat > conftest.$ac_ext <<EOF 1552 #line 155 3"configure"1556 #line 1557 "configure" 1553 1557 #include "confdefs.h" 1554 1558 /* Override any gcc2 internal prototype to avoid an error. */ … … 1560 1564 ; return 0; } 1561 1565 EOF 1562 if { (eval echo configure:156 3: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then1566 if { (eval echo configure:1567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1563 1567 rm -rf conftest* 1564 1568 eval "ac_cv_lib_$ac_lib_var=yes" … … 1595 1599 LIBS="-lsmallgmp $LIBS" 1596 1600 cat > conftest.$ac_ext <<EOF 1597 #line 1 598"configure"1601 #line 1602 "configure" 1598 1602 #include "confdefs.h" 1599 1603 /* Override any gcc2 internal prototype to avoid an error. */ … … 1605 1609 ; return 0; } 1606 1610 EOF 1607 if { (eval echo configure:16 08: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then1611 if { (eval echo configure:1612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1608 1612 rm -rf conftest* 1609 1613 eval "ac_cv_lib_$ac_lib_var=yes" … … 1637 1641 LIBS="-lMP $LIBS" 1638 1642 cat > conftest.$ac_ext <<EOF 1639 #line 164 0"configure"1643 #line 1644 "configure" 1640 1644 #include "confdefs.h" 1641 1645 /* Override any gcc2 internal prototype to avoid an error. */ … … 1647 1651 ; return 0; } 1648 1652 EOF 1649 if { (eval echo configure:165 0: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then1653 if { (eval echo configure:1654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1650 1654 rm -rf conftest* 1651 1655 eval "ac_cv_lib_$ac_lib_var=yes" … … 1679 1683 LIBS="-lMPT $LIBS" 1680 1684 cat > conftest.$ac_ext <<EOF 1681 #line 168 2"configure"1685 #line 1686 "configure" 1682 1686 #include "confdefs.h" 1683 1687 /* Override any gcc2 internal prototype to avoid an error. */ … … 1689 1693 ; return 0; } 1690 1694 EOF 1691 if { (eval echo configure:169 2: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then1695 if { (eval echo configure:1696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1692 1696 rm -rf conftest* 1693 1697 eval "ac_cv_lib_$ac_lib_var=yes" … … 1721 1725 LIBS="-lsingcf $LIBS" 1722 1726 cat > conftest.$ac_ext <<EOF 1723 #line 172 4"configure"1727 #line 1728 "configure" 1724 1728 #include "confdefs.h" 1725 1729 /* Override any gcc2 internal prototype to avoid an error. */ … … 1731 1735 ; return 0; } 1732 1736 EOF 1733 if { (eval echo configure:173 4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then1737 if { (eval echo configure:1738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1734 1738 rm -rf conftest* 1735 1739 eval "ac_cv_lib_$ac_lib_var=yes" … … 1763 1767 LIBS="-lsingfac $LIBS" 1764 1768 cat > conftest.$ac_ext <<EOF 1765 #line 17 66"configure"1769 #line 1770 "configure" 1766 1770 #include "confdefs.h" 1767 1771 /* Override any gcc2 internal prototype to avoid an error. */ … … 1773 1777 ; return 0; } 1774 1778 EOF 1775 if { (eval echo configure:17 76: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then1779 if { (eval echo configure:1780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1776 1780 rm -rf conftest* 1777 1781 eval "ac_cv_lib_$ac_lib_var=yes" … … 1806 1810 else 1807 1811 cat > conftest.$ac_ext <<EOF 1808 #line 18 09"configure"1812 #line 1813 "configure" 1809 1813 #include "confdefs.h" 1810 1814 #include <$ac_hdr> 1811 1815 EOF 1812 1816 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1813 { (eval echo configure:181 4: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1817 { (eval echo configure:1818: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1814 1818 ac_err=`grep -v '^ *+' conftest.out` 1815 1819 if test -z "$ac_err"; then … … 2006 2010 else 2007 2011 cat > conftest.$ac_ext <<EOF 2008 #line 20 09"configure"2012 #line 2013 "configure" 2009 2013 #include "confdefs.h" 2010 2014 #include <stdlib.h> … … 2014 2018 EOF 2015 2019 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2016 { (eval echo configure:20 17: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }2020 { (eval echo configure:2021: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2017 2021 ac_err=`grep -v '^ *+' conftest.out` 2018 2022 if test -z "$ac_err"; then … … 2029 2033 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2030 2034 cat > conftest.$ac_ext <<EOF 2031 #line 203 2"configure"2035 #line 2036 "configure" 2032 2036 #include "confdefs.h" 2033 2037 #include <string.h> … … 2047 2051 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2048 2052 cat > conftest.$ac_ext <<EOF 2049 #line 205 0"configure"2053 #line 2054 "configure" 2050 2054 #include "confdefs.h" 2051 2055 #include <stdlib.h> … … 2068 2072 else 2069 2073 cat > conftest.$ac_ext <<EOF 2070 #line 207 1"configure"2074 #line 2075 "configure" 2071 2075 #include "confdefs.h" 2072 2076 #include <ctype.h> … … 2079 2083 2080 2084 EOF 2081 { (eval echo configure:208 2: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }2085 { (eval echo configure:2086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } 2082 2086 if test -s conftest && (./conftest; exit) 2>/dev/null; then 2083 2087 : … … 2107 2111 else 2108 2112 cat > conftest.$ac_ext <<EOF 2109 #line 211 0"configure"2113 #line 2114 "configure" 2110 2114 #include "confdefs.h" 2111 2115 #include <$ac_hdr> 2112 2116 EOF 2113 2117 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2114 { (eval echo configure:211 5: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }2118 { (eval echo configure:2119: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2115 2119 ac_err=`grep -v '^ *+' conftest.out` 2116 2120 if test -z "$ac_err"; then … … 2146 2150 else 2147 2151 cat > conftest.$ac_ext <<EOF 2148 #line 21 49"configure"2152 #line 2153 "configure" 2149 2153 #include "confdefs.h" 2150 2154 #include <$ac_hdr> 2151 2155 EOF 2152 2156 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2153 { (eval echo configure:215 4: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }2157 { (eval echo configure:2158: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2154 2158 ac_err=`grep -v '^ *+' conftest.out` 2155 2159 if test -z "$ac_err"; then … … 2195 2199 else 2196 2200 cat > conftest.$ac_ext <<EOF 2197 #line 2 198"configure"2201 #line 2202 "configure" 2198 2202 #include "confdefs.h" 2199 2203 … … 2245 2249 ; return 0; } 2246 2250 EOF 2247 if { (eval echo configure:22 48: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then2251 if { (eval echo configure:2252: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2248 2252 rm -rf conftest* 2249 2253 ac_cv_c_const=yes … … 2271 2275 for ac_kw in inline __inline__ __inline; do 2272 2276 cat > conftest.$ac_ext <<EOF 2273 #line 227 4"configure"2277 #line 2278 "configure" 2274 2278 #include "confdefs.h" 2275 2279 … … 2279 2283 ; return 0; } 2280 2284 EOF 2281 if { (eval echo configure:228 2: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then2285 if { (eval echo configure:2286: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2282 2286 rm -rf conftest* 2283 2287 ac_cv_c_inline=$ac_kw; break … … 2307 2311 else 2308 2312 cat > conftest.$ac_ext <<EOF 2309 #line 231 0"configure"2313 #line 2314 "configure" 2310 2314 #include "confdefs.h" 2311 2315 #include <sys/types.h> … … 2338 2342 else 2339 2343 cat > conftest.$ac_ext <<EOF 2340 #line 234 1"configure"2344 #line 2345 "configure" 2341 2345 #include "confdefs.h" 2342 2346 #include <sys/types.h> … … 2348 2352 ; return 0; } 2349 2353 EOF 2350 if { (eval echo configure:235 1: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then2354 if { (eval echo configure:2355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2351 2355 rm -rf conftest* 2352 2356 ac_cv_header_time=yes … … 2372 2376 else 2373 2377 cat > conftest.$ac_ext <<EOF 2374 #line 237 5"configure"2378 #line 2379 "configure" 2375 2379 #include "confdefs.h" 2376 2380 #include <sys/types.h> … … 2381 2385 ; return 0; } 2382 2386 EOF 2383 if { (eval echo configure:238 4: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then2387 if { (eval echo configure:2388: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2384 2388 rm -rf conftest* 2385 2389 ac_cv_struct_tm=time.h … … 2408 2412 else 2409 2413 cat > conftest.$ac_ext <<EOF 2410 #line 241 1"configure"2414 #line 2415 "configure" 2411 2415 #include "confdefs.h" 2412 2416 #include <alloca.h> … … 2416 2420 ; return 0; } 2417 2421 EOF 2418 if { (eval echo configure:24 19: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then2422 if { (eval echo configure:2423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 2419 2423 rm -rf conftest* 2420 2424 ac_cv_header_alloca_h=yes … … 2440 2444 else 2441 2445 cat > conftest.$ac_ext <<EOF 2442 #line 244 3"configure"2446 #line 2447 "configure" 2443 2447 #include "confdefs.h" 2444 2448 … … 2464 2468 ; return 0; } 2465 2469 EOF 2466 if { (eval echo configure:24 67: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then2470 if { (eval echo configure:2471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 2467 2471 rm -rf conftest* 2468 2472 ac_cv_func_alloca=yes … … 2499 2503 else 2500 2504 cat > conftest.$ac_ext <<EOF 2501 #line 250 2"configure"2505 #line 2506 "configure" 2502 2506 #include "confdefs.h" 2503 2507 #if defined(CRAY) && ! defined(CRAY2) … … 2528 2532 else 2529 2533 cat > conftest.$ac_ext <<EOF 2530 #line 253 1"configure"2534 #line 2535 "configure" 2531 2535 #include "confdefs.h" 2532 2536 /* System header to define __stub macros and hopefully few prototypes, … … 2550 2554 ; return 0; } 2551 2555 EOF 2552 if { (eval echo configure:255 3: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then2556 if { (eval echo configure:2557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 2553 2557 rm -rf conftest* 2554 2558 eval "ac_cv_func_$ac_func=yes" … … 2582 2586 else 2583 2587 cat > conftest.$ac_ext <<EOF 2584 #line 258 5"configure"2588 #line 2589 "configure" 2585 2589 #include "confdefs.h" 2586 2590 find_stack_direction () … … 2601 2605 } 2602 2606 EOF 2603 { (eval echo configure:260 4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }2607 { (eval echo configure:2608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } 2604 2608 if test -s conftest && (./conftest; exit) 2>/dev/null; then 2605 2609 ac_cv_c_stack_direction=1 … … 2625 2629 ac_pattern="Autoconf.*'x'" 2626 2630 cat > conftest.$ac_ext <<EOF 2627 #line 26 28"configure"2631 #line 2632 "configure" 2628 2632 #include "confdefs.h" 2629 2633 #include <sgtty.h> … … 2643 2647 if test $ac_cv_prog_gcc_traditional = no; then 2644 2648 cat > conftest.$ac_ext <<EOF 2645 #line 26 46"configure"2649 #line 2650 "configure" 2646 2650 #include "confdefs.h" 2647 2651 #include <termio.h> … … 2671 2675 else 2672 2676 cat > conftest.$ac_ext <<EOF 2673 #line 267 4"configure"2677 #line 2678 "configure" 2674 2678 #include "confdefs.h" 2675 2679 /* System header to define __stub macros and hopefully few prototypes, … … 2693 2697 ; return 0; } 2694 2698 EOF 2695 if { (eval echo configure:2 696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then2699 if { (eval echo configure:2700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 2696 2700 rm -rf conftest* 2697 2701 eval "ac_cv_func_$ac_func=yes" … … 2723 2727 else 2724 2728 cat > conftest.$ac_ext <<EOF 2725 #line 27 26"configure"2729 #line 2730 "configure" 2726 2730 #include "confdefs.h" 2727 2731 … … 2792 2796 2793 2797 EOF 2794 { (eval echo configure:279 5: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }2798 { (eval echo configure:2799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } 2795 2799 if test -s conftest && (./conftest; exit) 2>/dev/null; then 2796 2800 ac_cv_func_mmap=yes … … 2815 2819 else 2816 2820 cat > conftest.$ac_ext <<EOF 2817 #line 28 18"configure"2821 #line 2822 "configure" 2818 2822 #include "confdefs.h" 2819 2823 #include <sys/types.h> … … 2833 2837 ; return 0; } 2834 2838 EOF 2835 if { (eval echo configure:28 36: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then2839 if { (eval echo configure:2840: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2836 2840 rm -rf conftest* 2837 2841 ac_cv_type_signal=void … … 2855 2859 else 2856 2860 cat > conftest.$ac_ext <<EOF 2857 #line 28 58"configure"2861 #line 2862 "configure" 2858 2862 #include "confdefs.h" 2859 2863 /* System header to define __stub macros and hopefully few prototypes, … … 2877 2881 ; return 0; } 2878 2882 EOF 2879 if { (eval echo configure:288 0: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then2883 if { (eval echo configure:2884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 2880 2884 rm -rf conftest* 2881 2885 eval "ac_cv_func_vprintf=yes" … … 2903 2907 else 2904 2908 cat > conftest.$ac_ext <<EOF 2905 #line 29 06"configure"2909 #line 2910 "configure" 2906 2910 #include "confdefs.h" 2907 2911 /* System header to define __stub macros and hopefully few prototypes, … … 2925 2929 ; return 0; } 2926 2930 EOF 2927 if { (eval echo configure:29 28: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then2931 if { (eval echo configure:2932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 2928 2932 rm -rf conftest* 2929 2933 eval "ac_cv_func__doprnt=yes" … … 2954 2958 else 2955 2959 cat > conftest.$ac_ext <<EOF 2956 #line 29 57"configure"2960 #line 2961 "configure" 2957 2961 #include "confdefs.h" 2958 2962 /* System header to define __stub macros and hopefully few prototypes, … … 2976 2980 ; return 0; } 2977 2981 EOF 2978 if { (eval echo configure:29 79: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then2982 if { (eval echo configure:2983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 2979 2983 rm -rf conftest* 2980 2984 eval "ac_cv_func_$ac_func=yes" … … 3013 3017 else 3014 3018 cat > conftest.$ac_ext <<EOF 3015 #line 30 16"configure"3019 #line 3020 "configure" 3016 3020 #include "confdefs.h" 3017 3021 int main() { if (-2 >> 1 == -1) exit(0); else exit(1); } 3018 3022 EOF 3019 { (eval echo configure:302 0: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }3023 { (eval echo configure:3024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } 3020 3024 if test -s conftest && (./conftest; exit) 2>/dev/null; then 3021 3025 ac_cv_shift=yes … … 3049 3053 else 3050 3054 cat > conftest.$ac_ext <<EOF 3051 #line 305 2"configure"3055 #line 3056 "configure" 3052 3056 #include "confdefs.h" 3053 3057 int main() {if (sizeof(int) == 4) exit(0); else exit(1); } 3054 3058 EOF 3055 { (eval echo configure:30 56: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }3059 { (eval echo configure:3060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } 3056 3060 if test -s conftest && (./conftest; exit) 2>/dev/null; then 3057 3061 ac_cv_sizeof_int_equals_four=yes … … 3084 3088 else 3085 3089 cat > conftest.$ac_ext <<EOF 3086 #line 30 87"configure"3090 #line 3091 "configure" 3087 3091 #include "confdefs.h" 3088 3092 int main() {if (sizeof(long) == sizeof(void*)) exit(0); else exit(1); } 3089 3093 EOF 3090 { (eval echo configure:309 1: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }3094 { (eval echo configure:3095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } 3091 3095 if test -s conftest && (./conftest; exit) 2>/dev/null; then 3092 3096 ac_cv_sizeof_long_equals_voidp=yes … … 3113 3117 else 3114 3118 cat > conftest.$ac_ext <<EOF 3115 #line 31 16"configure"3119 #line 3120 "configure" 3116 3120 #include "confdefs.h" 3117 3121 #include <stdio.h> 3118 3122 main() { char *str=(char*)malloc(20); if (((int) sprintf(str,"123456789")) == 9) exit(0); else exit(1); } 3119 3123 EOF 3120 { (eval echo configure:312 1: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }3124 { (eval echo configure:3125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } 3121 3125 if test -s conftest && (./conftest; exit) 2>/dev/null; then 3122 3126 ac_cv_returns_n_of_chars=yes … … 3146 3150 else 3147 3151 cat > conftest.$ac_ext <<EOF 3148 #line 31 49"configure"3152 #line 3153 "configure" 3149 3153 #include "confdefs.h" 3150 3154 #include <stdio.h> … … 3157 3161 } 3158 3162 EOF 3159 { (eval echo configure:316 0: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }3163 { (eval echo configure:3164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } 3160 3164 if test -s conftest && (./conftest; exit) 2>/dev/null; then 3161 3165 ac_cv_sizeof_voidp=`cat conftestval` … … 3179 3183 else 3180 3184 cat > conftest.$ac_ext <<EOF 3181 #line 318 2"configure"3185 #line 3186 "configure" 3182 3186 #include "confdefs.h" 3183 3187 #ifdef _AIX -
Singular/configure.in
rd43a4d r499bdc 17 17 AC_DEFINE_UNQUOTED(S_VERSION1, "version: ${SINGULAR_MAJOR_VERSION}.${SINGULAR_MINOR_VERSION}.${SINGULAR_SUB_VERSION}") 18 18 AC_DEFINE_UNQUOTED(S_VERSION2, "${VERSION_DATE}") 19 AC_DEFINE_UNQUOTED(SINGULAR_SUB_VERSION, ${SINGULAR_SUB_VERSION}) 19 20 20 21 dnl -
Singular/ipassign.cc
rd43a4d r499bdc 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: ipassign.cc,v 1.1 7 1997-08-14 13:10:43Singular Exp $ */4 /* $Id: ipassign.cc,v 1.18 1997-10-13 15:39:02 Singular Exp $ */ 5 5 6 6 /* … … 418 418 static BOOLEAN jiA_QRING(leftv res, leftv a,Subexpr e) 419 419 { 420 // the follwing can only happen, if: 421 // - the left side is of type qring AND not an id 420 422 if ((e!=NULL)||(res->rtyp!=IDHDL)) 421 423 { … … 739 741 return FALSE; 740 742 } 743 static BOOLEAN jiA_VECTOR_L(leftv l,leftv r) 744 { 745 /* right side is vector, left side is list (of poly)*/ 746 BOOLEAN nok; 747 leftv l1=l; 748 ideal I=idVec2Ideal((poly)r->Data()); 749 leftv h; 750 sleftv t; 751 int i=0; 752 while (l!=NULL) 753 { 754 memset(&t,0,sizeof(sleftv)); 755 t.rtyp=POLY_CMD; 756 if (i>=IDELEMS(I)) 757 { 758 t.data=NULL; 759 } 760 else 761 { 762 t.data=(char *)I->m[i]; 763 I->m[i]=NULL; 764 } 765 h=l->next; 766 l->next=NULL; 767 nok=jiAssign_1(l,&t); 768 t.CleanUp(); 769 if (nok) 770 { 771 idDelete(&I); 772 return TRUE; 773 } 774 i++; 775 l=h; 776 } 777 idDelete(&I); 778 l1->CleanUp(); 779 r->CleanUp(); 780 return FALSE; 781 } 741 782 static BOOLEAN jjA_L_LIST(leftv l, leftv r) 742 783 /* left side: list … … 1218 1259 if (rt==INTVEC_CMD) 1219 1260 return jiA_INTVEC_L(l,r); 1261 else if (rt==VECTOR_CMD) 1262 return jiA_VECTOR_L(l,r); 1220 1263 else if ((rt==IDEAL_CMD)||(rt==MATRIX_CMD)) 1221 1264 return jiA_MATRIX_L(l,r); -
Singular/subexpr.cc
rd43a4d r499bdc 463 463 break; 464 464 case STRING_CMD: 465 data= (void *)mstrdup((char *)d);466 break;465 // data= (void *)mstrdup((char *)d); 466 // break; 467 467 case PROC_CMD: 468 468 data= (void *)mstrdup((char *)d); … … 485 485 break; 486 486 case LINK_CMD: 487 data = (void *)slCopy((si_link) 487 data = (void *)slCopy((si_link)d); 488 488 break; 489 489 case RING_CMD: 490 490 case QRING_CMD: 491 491 { 492 ring r=(ring)d; 493 r->ref++; 494 data=d; 492 if (d!=NULL) 493 { 494 ring r=(ring)d; 495 r->ref++; 496 data=d; 497 } 498 else 499 { 500 WerrorS("invalid ring description"); 501 } 495 502 break; 496 503 }
Note: See TracChangeset
for help on using the changeset viewer.