Changeset d3e630 in git
- Timestamp:
- Jul 28, 2009, 4:19:05 PM (14 years ago)
- Branches:
- (u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
- Children:
- a07e45cfc61927c5711cee673474fb891d4574ac
- Parents:
- 01cda73e965c4d5da3e4d30eb09639f00d9fbe4d
- Files:
-
- 34 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/ChangeLog
r01cda73 rd3e630 1 Changes w.r.t 3-1-0-5: 2 - code cleanup: removed HAVE_NAMESPACES (always 0), HAVE_NS(1), HAVE_GMP(1) 3 HAVE_LIBFAC_P (=HAVE_FACTORY) 4 - moved mp_set_memory_functions-call from kernel/mminit.cc to tesths.cc:main 5 (in order not to call it for libsingular) 6 1 7 Changes w.r.t 3-1-0-4: 2 8 - 3-1-0-5: Tue Jul 28 14:03:59 CEST 2009 -
Singular/claptmpl.cc
r01cda73 rd3e630 3 3 * Computer Algebra System SINGULAR * 4 4 ****************************************/ 5 // $Id: claptmpl.cc,v 1.4 3 2008-07-15 16:27:11 motsakExp $5 // $Id: claptmpl.cc,v 1.44 2009-07-28 14:18:32 Singular Exp $ 6 6 /* 7 7 * ABSTRACT - instantiation of all templates … … 66 66 #endif 67 67 // place here your own template stuff, not instantiated by factory 68 #ifdef HAVE_LIBFAC_P68 // libfac: 69 69 #include <factor.h> 70 70 … … 158 158 template class ListIterator<CFList>; 159 159 160 #endif161 160 #endif 162 161 -
Singular/configure
r01cda73 rd3e630 33 33 ac_help="$ac_help 34 34 --without-libfac do not use libfac (no primary decompositions)" 35 ac_help="$ac_help36 --with-namespaces do compile namespace support"37 35 ac_help="$ac_help 38 36 --without-dl do not use dynamic linking, modules, and kernel" … … 567 565 568 566 echo $ac_n "checking CPU for singular""... $ac_c" 1>&6 569 echo "configure:5 70: checking CPU for singular" >&5567 echo "configure:568: checking CPU for singular" >&5 570 568 ac_cv_singcpuname=`uname -m` 571 569 echo "$ac_t""$ac_cv_singcpuname" 1>&6 572 570 573 571 echo $ac_n "checking uname for singular""... $ac_c" 1>&6 574 echo "configure:57 5: checking uname for singular" >&5572 echo "configure:573: checking uname for singular" >&5 575 573 if eval "test \"`echo '$''{'ac_cv_singuname'+set}'`\" = set"; then 576 574 echo $ac_n "(cached) $ac_c" 1>&6 … … 764 762 set dummy gcc; ac_word=$2 765 763 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 766 echo "configure:76 7: checking for $ac_word" >&5764 echo "configure:765: checking for $ac_word" >&5 767 765 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 768 766 echo $ac_n "(cached) $ac_c" 1>&6 … … 794 792 set dummy cc; ac_word=$2 795 793 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 796 echo "configure:79 7: checking for $ac_word" >&5794 echo "configure:795: checking for $ac_word" >&5 797 795 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 798 796 echo $ac_n "(cached) $ac_c" 1>&6 … … 845 843 set dummy cl; ac_word=$2 846 844 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 847 echo "configure:84 8: checking for $ac_word" >&5845 echo "configure:846: checking for $ac_word" >&5 848 846 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 849 847 echo $ac_n "(cached) $ac_c" 1>&6 … … 877 875 878 876 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 879 echo "configure:8 80: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5877 echo "configure:878: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 880 878 881 879 ac_ext=c … … 888 886 cat > conftest.$ac_ext << EOF 889 887 890 #line 8 91"configure"888 #line 889 "configure" 891 889 #include "confdefs.h" 892 890 893 891 main(){return(0);} 894 892 EOF 895 if { (eval echo configure:89 6: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then893 if { (eval echo configure:894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 896 894 ac_cv_prog_cc_works=yes 897 895 # If we can't run a trivial program, we are probably using a cross compiler. … … 919 917 fi 920 918 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 921 echo "configure:92 2: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5919 echo "configure:920: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 922 920 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 923 921 cross_compiling=$ac_cv_prog_cc_cross 924 922 925 923 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 926 echo "configure:92 7: checking whether we are using GNU C" >&5924 echo "configure:925: checking whether we are using GNU C" >&5 927 925 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 928 926 echo $ac_n "(cached) $ac_c" 1>&6 … … 933 931 #endif 934 932 EOF 935 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:93 6: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then933 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:934: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 936 934 ac_cv_prog_gcc=yes 937 935 else … … 952 950 CFLAGS= 953 951 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 954 echo "configure:95 5: checking whether ${CC-cc} accepts -g" >&5952 echo "configure:953: checking whether ${CC-cc} accepts -g" >&5 955 953 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 956 954 echo $ac_n "(cached) $ac_c" 1>&6 … … 984 982 985 983 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 986 echo "configure:98 7: checking how to run the C preprocessor" >&5984 echo "configure:985: checking how to run the C preprocessor" >&5 987 985 # On Suns, sometimes $CPP names a directory. 988 986 if test -n "$CPP" && test -d "$CPP"; then … … 999 997 # not just through cpp. 1000 998 cat > conftest.$ac_ext <<EOF 1001 #line 100 2"configure"999 #line 1000 "configure" 1002 1000 #include "confdefs.h" 1003 1001 #include <assert.h> … … 1005 1003 EOF 1006 1004 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1007 { (eval echo configure:100 8: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1005 { (eval echo configure:1006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1008 1006 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1009 1007 if test -z "$ac_err"; then … … 1016 1014 CPP="${CC-cc} -E -traditional-cpp" 1017 1015 cat > conftest.$ac_ext <<EOF 1018 #line 101 9"configure"1016 #line 1017 "configure" 1019 1017 #include "confdefs.h" 1020 1018 #include <assert.h> … … 1022 1020 EOF 1023 1021 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1024 { (eval echo configure:102 5: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1022 { (eval echo configure:1023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1025 1023 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1026 1024 if test -z "$ac_err"; then … … 1033 1031 CPP="${CC-cc} -nologo -E" 1034 1032 cat > conftest.$ac_ext <<EOF 1035 #line 103 6"configure"1033 #line 1034 "configure" 1036 1034 #include "confdefs.h" 1037 1035 #include <assert.h> … … 1039 1037 EOF 1040 1038 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1041 { (eval echo configure:104 2: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1039 { (eval echo configure:1040: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1042 1040 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1043 1041 if test -z "$ac_err"; then … … 1068 1066 set dummy $ac_prog; ac_word=$2 1069 1067 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1070 echo "configure:10 71: checking for $ac_word" >&51068 echo "configure:1069: checking for $ac_word" >&5 1071 1069 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then 1072 1070 echo $ac_n "(cached) $ac_c" 1>&6 … … 1100 1098 1101 1099 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1102 echo "configure:110 3: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&51100 echo "configure:1101: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 1103 1101 1104 1102 ac_ext=C … … 1111 1109 cat > conftest.$ac_ext << EOF 1112 1110 1113 #line 111 4"configure"1111 #line 1112 "configure" 1114 1112 #include "confdefs.h" 1115 1113 1116 1114 int main(){return(0);} 1117 1115 EOF 1118 if { (eval echo configure:111 9: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1116 if { (eval echo configure:1117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1119 1117 ac_cv_prog_cxx_works=yes 1120 1118 # If we can't run a trivial program, we are probably using a cross compiler. … … 1142 1140 fi 1143 1141 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1144 echo "configure:114 5: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&51142 echo "configure:1143: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 1145 1143 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 1146 1144 cross_compiling=$ac_cv_prog_cxx_cross 1147 1145 1148 1146 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 1149 echo "configure:11 50: checking whether we are using GNU C++" >&51147 echo "configure:1148: checking whether we are using GNU C++" >&5 1150 1148 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then 1151 1149 echo $ac_n "(cached) $ac_c" 1>&6 … … 1156 1154 #endif 1157 1155 EOF 1158 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:115 9: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then1156 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1157: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1159 1157 ac_cv_prog_gxx=yes 1160 1158 else … … 1175 1173 CXXFLAGS= 1176 1174 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 1177 echo "configure:117 8: checking whether ${CXX-g++} accepts -g" >&51175 echo "configure:1176: checking whether ${CXX-g++} accepts -g" >&5 1178 1176 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then 1179 1177 echo $ac_n "(cached) $ac_c" 1>&6 … … 1237 1235 # ./install, which can be erroneously created by make from ./install.sh. 1238 1236 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 1239 echo "configure:12 40: checking for a BSD compatible install" >&51237 echo "configure:1238: checking for a BSD compatible install" >&5 1240 1238 if test -z "$INSTALL"; then 1241 1239 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then … … 1290 1288 1291 1289 echo $ac_n "checking for AIX""... $ac_c" 1>&6 1292 echo "configure:129 3: checking for AIX" >&51290 echo "configure:1291: checking for AIX" >&5 1293 1291 cat > conftest.$ac_ext <<EOF 1294 #line 129 5"configure"1292 #line 1293 "configure" 1295 1293 #include "confdefs.h" 1296 1294 #ifdef _AIX … … 1318 1316 # other: CC=cc CXX=c++ 1319 1317 echo $ac_n "checking gcc version""... $ac_c" 1>&6 1320 echo "configure:13 21: checking gcc version" >&51318 echo "configure:1319: checking gcc version" >&5 1321 1319 if eval "test \"`echo '$''{'ac_cv_c_cpp'+set}'`\" = set"; then 1322 1320 echo $ac_n "(cached) $ac_c" 1>&6 … … 1350 1348 # check whether gcc accepts --no-rtti 1351 1349 echo $ac_n "checking whether gcc accepts --no-rtti""... $ac_c" 1>&6 1352 echo "configure:135 3: checking whether gcc accepts --no-rtti" >&51350 echo "configure:1351: checking whether gcc accepts --no-rtti" >&5 1353 1351 CXXFLAGS="${CXXFLAGS} --no-rtti" 1354 1352 if eval "test \"`echo '$''{'ac_cv_cxx_have_rtti'+set}'`\" = set"; then … … 1356 1354 else 1357 1355 cat > conftest.$ac_ext <<EOF 1358 #line 135 9"configure"1356 #line 1357 "configure" 1359 1357 #include "confdefs.h" 1360 1358 … … 1363 1361 ; return 0; } 1364 1362 EOF 1365 if { (eval echo configure:136 6: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then1363 if { (eval echo configure:1364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1366 1364 rm -rf conftest* 1367 1365 ac_cv_cxx_have_rtti=yes … … 1386 1384 # check whether gcc accepts --no-exceptions 1387 1385 echo $ac_n "checking whether gcc accepts --no-exceptions""... $ac_c" 1>&6 1388 echo "configure:138 9: checking whether gcc accepts --no-exceptions" >&51386 echo "configure:1387: checking whether gcc accepts --no-exceptions" >&5 1389 1387 CXXFLAGS="${CXXFLAGS} --no-exceptions" 1390 1388 if eval "test \"`echo '$''{'ac_cv_cxx_have_exceptions'+set}'`\" = set"; then … … 1392 1390 else 1393 1391 cat > conftest.$ac_ext <<EOF 1394 #line 139 5"configure"1392 #line 1393 "configure" 1395 1393 #include "confdefs.h" 1396 1394 … … 1399 1397 ; return 0; } 1400 1398 EOF 1401 if { (eval echo configure:140 2: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1399 if { (eval echo configure:1400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1402 1400 rm -rf conftest* 1403 1401 ac_cv_cxx_have_exceptions=yes … … 1437 1435 then 1438 1436 echo $ac_n "checking whether compiler accepts -pipe""... $ac_c" 1>&6 1439 echo "configure:14 40: checking whether compiler accepts -pipe" >&51437 echo "configure:1438: checking whether compiler accepts -pipe" >&5 1440 1438 temp_cflags="${CFLAGS}" 1441 1439 CFLAGS="${CFLAGS} -pipe" … … 1444 1442 else 1445 1443 cat > conftest.$ac_ext <<EOF 1446 #line 144 7"configure"1444 #line 1445 "configure" 1447 1445 #include "confdefs.h" 1448 1446 … … 1451 1449 ; return 0; } 1452 1450 EOF 1453 if { (eval echo configure:145 4: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then1451 if { (eval echo configure:1452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1454 1452 rm -rf conftest* 1455 1453 ac_cv_cxx_have_pipe=yes … … 1478 1476 # Customize CFLAGS 1479 1477 echo $ac_n "checking whether _AIX is defined""... $ac_c" 1>&6 1480 echo "configure:14 81: checking whether _AIX is defined" >&51478 echo "configure:1479: checking whether _AIX is defined" >&5 1481 1479 if eval "test \"`echo '$''{'ac_cv_is_aix'+set}'`\" = set"; then 1482 1480 echo $ac_n "(cached) $ac_c" 1>&6 1483 1481 else 1484 1482 cat > conftest.$ac_ext <<EOF 1485 #line 148 6"configure"1483 #line 1484 "configure" 1486 1484 #include "confdefs.h" 1487 1485 #ifdef _AIX … … 1542 1540 1543 1541 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 1544 echo "configure:154 5: checking whether ${MAKE-make} sets \${MAKE}" >&51542 echo "configure:1543: checking whether ${MAKE-make} sets \${MAKE}" >&5 1545 1543 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 1546 1544 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then … … 1625 1623 if test "${with_lex+set}" != set; then 1626 1624 echo $ac_n "checking for flex""... $ac_c" 1>&6 1627 echo "configure:162 8: checking for flex" >&51625 echo "configure:1626: checking for flex" >&5 1628 1626 cmd="egrep [2-9]\.[5-9]" 1629 1627 if eval "test \"`echo '$''{'ac_cv_prog_flex'+set}'`\" = set"; then … … 1657 1655 set dummy $ac_prog; ac_word=$2 1658 1656 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1659 echo "configure:16 60: checking for $ac_word" >&51657 echo "configure:1658: checking for $ac_word" >&5 1660 1658 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then 1661 1659 echo $ac_n "(cached) $ac_c" 1>&6 … … 1697 1695 set dummy $ac_prog; ac_word=$2 1698 1696 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1699 echo "configure:1 700: checking for $ac_word" >&51697 echo "configure:1698: checking for $ac_word" >&5 1700 1698 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then 1701 1699 echo $ac_n "(cached) $ac_c" 1>&6 … … 1732 1730 # ln -s 1733 1731 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 1734 echo "configure:173 5: checking whether ln -s works" >&51732 echo "configure:1733: checking whether ln -s works" >&5 1735 1733 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then 1736 1734 echo $ac_n "(cached) $ac_c" 1>&6 … … 1758 1756 set dummy $ac_prog; ac_word=$2 1759 1757 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1760 echo "configure:17 61: checking for $ac_word" >&51758 echo "configure:1759: checking for $ac_word" >&5 1761 1759 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then 1762 1760 echo $ac_n "(cached) $ac_c" 1>&6 … … 1793 1791 if test "$ac_cv_singuname" != ix86-Win; then 1794 1792 echo $ac_n "checking for atof in -lm""... $ac_c" 1>&6 1795 echo "configure:179 6: checking for atof in -lm" >&51793 echo "configure:1794: checking for atof in -lm" >&5 1796 1794 ac_lib_var=`echo m'_'atof | sed 'y%./+-%__p_%'` 1797 1795 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 1801 1799 LIBS="-lm $LIBS" 1802 1800 cat > conftest.$ac_ext <<EOF 1803 #line 180 4"configure"1801 #line 1802 "configure" 1804 1802 #include "confdefs.h" 1805 1803 /* Override any gcc2 internal prototype to avoid an error. */ … … 1812 1810 ; return 0; } 1813 1811 EOF 1814 if { (eval echo configure:181 5: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1812 if { (eval echo configure:1813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1815 1813 rm -rf conftest* 1816 1814 eval "ac_cv_lib_$ac_lib_var=yes" … … 1841 1839 fi 1842 1840 echo $ac_n "checking for in -lnsl""... $ac_c" 1>&6 1843 echo "configure:184 4: checking for in -lnsl" >&51841 echo "configure:1842: checking for in -lnsl" >&5 1844 1842 ac_lib_var=`echo nsl'_' | sed 'y%./+-%__p_%'` 1845 1843 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 1849 1847 LIBS="-lnsl $LIBS" 1850 1848 cat > conftest.$ac_ext <<EOF 1851 #line 185 2"configure"1849 #line 1850 "configure" 1852 1850 #include "confdefs.h" 1853 1851 /* Override any gcc2 internal prototype to avoid an error. */ … … 1860 1858 ; return 0; } 1861 1859 EOF 1862 if { (eval echo configure:186 3: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1860 if { (eval echo configure:1861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1863 1861 rm -rf conftest* 1864 1862 eval "ac_cv_lib_$ac_lib_var=yes" … … 1888 1886 1889 1887 echo $ac_n "checking for in -lsocket""... $ac_c" 1>&6 1890 echo "configure:18 91: checking for in -lsocket" >&51888 echo "configure:1889: checking for in -lsocket" >&5 1891 1889 ac_lib_var=`echo socket'_' | sed 'y%./+-%__p_%'` 1892 1890 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 1896 1894 LIBS="-lsocket $LIBS" 1897 1895 cat > conftest.$ac_ext <<EOF 1898 #line 189 9"configure"1896 #line 1897 "configure" 1899 1897 #include "confdefs.h" 1900 1898 /* Override any gcc2 internal prototype to avoid an error. */ … … 1907 1905 ; return 0; } 1908 1906 EOF 1909 if { (eval echo configure:19 10: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1907 if { (eval echo configure:1908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1910 1908 rm -rf conftest* 1911 1909 eval "ac_cv_lib_$ac_lib_var=yes" … … 1938 1936 1939 1937 echo $ac_n "checking for setenv in -lbsd""... $ac_c" 1>&6 1940 echo "configure:19 41: checking for setenv in -lbsd" >&51938 echo "configure:1939: checking for setenv in -lbsd" >&5 1941 1939 ac_lib_var=`echo bsd'_'setenv | sed 'y%./+-%__p_%'` 1942 1940 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 1946 1944 LIBS="-lbsd $LIBS" 1947 1945 cat > conftest.$ac_ext <<EOF 1948 #line 194 9"configure"1946 #line 1947 "configure" 1949 1947 #include "confdefs.h" 1950 1948 /* Override any gcc2 internal prototype to avoid an error. */ … … 1957 1955 ; return 0; } 1958 1956 EOF 1959 if { (eval echo configure:19 60: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1957 if { (eval echo configure:1958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1960 1958 rm -rf conftest* 1961 1959 eval "ac_cv_lib_$ac_lib_var=yes" … … 1985 1983 1986 1984 echo $ac_n "checking for listen in -lsocket""... $ac_c" 1>&6 1987 echo "configure:198 8: checking for listen in -lsocket" >&51985 echo "configure:1986: checking for listen in -lsocket" >&5 1988 1986 ac_lib_var=`echo socket'_'listen | sed 'y%./+-%__p_%'` 1989 1987 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 1993 1991 LIBS="-lsocket $LIBS" 1994 1992 cat > conftest.$ac_ext <<EOF 1995 #line 199 6"configure"1993 #line 1994 "configure" 1996 1994 #include "confdefs.h" 1997 1995 /* Override any gcc2 internal prototype to avoid an error. */ … … 2004 2002 ; return 0; } 2005 2003 EOF 2006 if { (eval echo configure:200 7: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2004 if { (eval echo configure:2005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2007 2005 rm -rf conftest* 2008 2006 eval "ac_cv_lib_$ac_lib_var=yes" … … 2032 2030 2033 2031 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 2034 echo "configure:203 5: checking for gethostbyname in -lnsl" >&52032 echo "configure:2033: checking for gethostbyname in -lnsl" >&5 2035 2033 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` 2036 2034 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 2040 2038 LIBS="-lnsl $LIBS" 2041 2039 cat > conftest.$ac_ext <<EOF 2042 #line 204 3"configure"2040 #line 2041 "configure" 2043 2041 #include "confdefs.h" 2044 2042 /* Override any gcc2 internal prototype to avoid an error. */ … … 2051 2049 ; return 0; } 2052 2050 EOF 2053 if { (eval echo configure:205 4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2051 if { (eval echo configure:2052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2054 2052 rm -rf conftest* 2055 2053 eval "ac_cv_lib_$ac_lib_var=yes" … … 2083 2081 HPUX*) 2084 2082 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 2085 echo "configure:208 6: checking for shl_load in -ldld" >&52083 echo "configure:2084: checking for shl_load in -ldld" >&5 2086 2084 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` 2087 2085 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 2091 2089 LIBS="-ldld $LIBS" 2092 2090 cat > conftest.$ac_ext <<EOF 2093 #line 209 4"configure"2091 #line 2092 "configure" 2094 2092 #include "confdefs.h" 2095 2093 /* Override any gcc2 internal prototype to avoid an error. */ … … 2102 2100 ; return 0; } 2103 2101 EOF 2104 if { (eval echo configure:210 5: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2102 if { (eval echo configure:2103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2105 2103 rm -rf conftest* 2106 2104 eval "ac_cv_lib_$ac_lib_var=yes" … … 2141 2139 *Linux*) 2142 2140 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 2143 echo "configure:214 4: checking for dlopen in -ldl" >&52141 echo "configure:2142: checking for dlopen in -ldl" >&5 2144 2142 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` 2145 2143 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 2149 2147 LIBS="-ldl $LIBS" 2150 2148 cat > conftest.$ac_ext <<EOF 2151 #line 215 2"configure"2149 #line 2150 "configure" 2152 2150 #include "confdefs.h" 2153 2151 /* Override any gcc2 internal prototype to avoid an error. */ … … 2160 2158 ; return 0; } 2161 2159 EOF 2162 if { (eval echo configure:216 3: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2160 if { (eval echo configure:2161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2163 2161 rm -rf conftest* 2164 2162 eval "ac_cv_lib_$ac_lib_var=yes" … … 2208 2206 SunOS-5) 2209 2207 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 2210 echo "configure:22 11: checking for dlopen in -ldl" >&52208 echo "configure:2209: checking for dlopen in -ldl" >&5 2211 2209 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` 2212 2210 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 2216 2214 LIBS="-ldl $LIBS" 2217 2215 cat > conftest.$ac_ext <<EOF 2218 #line 221 9"configure"2216 #line 2217 "configure" 2219 2217 #include "confdefs.h" 2220 2218 /* Override any gcc2 internal prototype to avoid an error. */ … … 2227 2225 ; return 0; } 2228 2226 EOF 2229 if { (eval echo configure:22 30: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2227 if { (eval echo configure:2228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2230 2228 rm -rf conftest* 2231 2229 eval "ac_cv_lib_$ac_lib_var=yes" … … 2267 2265 ppcMac-darwin) 2268 2266 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 2269 echo "configure:22 70: checking for dlopen in -ldl" >&52267 echo "configure:2268: checking for dlopen in -ldl" >&5 2270 2268 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` 2271 2269 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 2275 2273 LIBS="-ldl $LIBS" 2276 2274 cat > conftest.$ac_ext <<EOF 2277 #line 227 8"configure"2275 #line 2276 "configure" 2278 2276 #include "confdefs.h" 2279 2277 /* Override any gcc2 internal prototype to avoid an error. */ … … 2286 2284 ; return 0; } 2287 2285 EOF 2288 if { (eval echo configure:228 9: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2286 if { (eval echo configure:2287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2289 2287 rm -rf conftest* 2290 2288 eval "ac_cv_lib_$ac_lib_var=yes" … … 2325 2323 ix86Mac-darwin) 2326 2324 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 2327 echo "configure:232 8: checking for dlopen in -ldl" >&52325 echo "configure:2326: checking for dlopen in -ldl" >&5 2328 2326 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` 2329 2327 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 2333 2331 LIBS="-ldl $LIBS" 2334 2332 cat > conftest.$ac_ext <<EOF 2335 #line 233 6"configure"2333 #line 2334 "configure" 2336 2334 #include "confdefs.h" 2337 2335 /* Override any gcc2 internal prototype to avoid an error. */ … … 2344 2342 ; return 0; } 2345 2343 EOF 2346 if { (eval echo configure:234 7: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2344 if { (eval echo configure:2345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2347 2345 rm -rf conftest* 2348 2346 eval "ac_cv_lib_$ac_lib_var=yes" … … 2383 2381 ix86-freebsd) 2384 2382 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6 2385 echo "configure:238 6: checking for dlopen in -lc" >&52383 echo "configure:2384: checking for dlopen in -lc" >&5 2386 2384 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'` 2387 2385 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 2391 2389 LIBS="-lc $LIBS" 2392 2390 cat > conftest.$ac_ext <<EOF 2393 #line 239 4"configure"2391 #line 2392 "configure" 2394 2392 #include "confdefs.h" 2395 2393 /* Override any gcc2 internal prototype to avoid an error. */ … … 2402 2400 ; return 0; } 2403 2401 EOF 2404 if { (eval echo configure:240 5: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2402 if { (eval echo configure:2403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2405 2403 rm -rf conftest* 2406 2404 eval "ac_cv_lib_$ac_lib_var=yes" … … 2449 2447 # heder file checks 2450 2448 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 2451 echo "configure:245 2: checking for ANSI C header files" >&52449 echo "configure:2450: checking for ANSI C header files" >&5 2452 2450 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 2453 2451 echo $ac_n "(cached) $ac_c" 1>&6 2454 2452 else 2455 2453 cat > conftest.$ac_ext <<EOF 2456 #line 245 7"configure"2454 #line 2455 "configure" 2457 2455 #include "confdefs.h" 2458 2456 #include <stdlib.h> … … 2462 2460 EOF 2463 2461 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2464 { (eval echo configure:246 5: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }2462 { (eval echo configure:2463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2465 2463 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2466 2464 if test -z "$ac_err"; then … … 2479 2477 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2480 2478 cat > conftest.$ac_ext <<EOF 2481 #line 248 2"configure"2479 #line 2480 "configure" 2482 2480 #include "confdefs.h" 2483 2481 #include <string.h> … … 2497 2495 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2498 2496 cat > conftest.$ac_ext <<EOF 2499 #line 2 500"configure"2497 #line 2498 "configure" 2500 2498 #include "confdefs.h" 2501 2499 #include <stdlib.h> … … 2518 2516 else 2519 2517 cat > conftest.$ac_ext <<EOF 2520 #line 25 21"configure"2518 #line 2519 "configure" 2521 2519 #include "confdefs.h" 2522 2520 #include <ctype.h> … … 2529 2527 2530 2528 EOF 2531 if { (eval echo configure:253 2: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null2529 if { (eval echo configure:2530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2532 2530 then 2533 2531 : … … 2556 2554 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2557 2555 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2558 echo "configure:255 9: checking for $ac_hdr" >&52556 echo "configure:2557: checking for $ac_hdr" >&5 2559 2557 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2560 2558 echo $ac_n "(cached) $ac_c" 1>&6 2561 2559 else 2562 2560 cat > conftest.$ac_ext <<EOF 2563 #line 256 4"configure"2561 #line 2562 "configure" 2564 2562 #include "confdefs.h" 2565 2563 #include <$ac_hdr> 2566 2564 EOF 2567 2565 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2568 { (eval echo configure:256 9: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }2566 { (eval echo configure:2567: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2569 2567 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2570 2568 if test -z "$ac_err"; then … … 2600 2598 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2601 2599 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2602 echo "configure:260 3: checking for $ac_hdr" >&52600 echo "configure:2601: checking for $ac_hdr" >&5 2603 2601 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2604 2602 echo $ac_n "(cached) $ac_c" 1>&6 2605 2603 else 2606 2604 cat > conftest.$ac_ext <<EOF 2607 #line 260 8"configure"2605 #line 2606 "configure" 2608 2606 #include "confdefs.h" 2609 2607 #include <$ac_hdr> 2610 2608 EOF 2611 2609 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2612 { (eval echo configure:261 3: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }2610 { (eval echo configure:2611: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2613 2611 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2614 2612 if test -z "$ac_err"; then … … 2639 2637 # typedefs, structures 2640 2638 echo $ac_n "checking for working const""... $ac_c" 1>&6 2641 echo "configure:264 2: checking for working const" >&52639 echo "configure:2640: checking for working const" >&5 2642 2640 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 2643 2641 echo $ac_n "(cached) $ac_c" 1>&6 2644 2642 else 2645 2643 cat > conftest.$ac_ext <<EOF 2646 #line 264 7"configure"2644 #line 2645 "configure" 2647 2645 #include "confdefs.h" 2648 2646 … … 2693 2691 ; return 0; } 2694 2692 EOF 2695 if { (eval echo configure:269 6: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then2693 if { (eval echo configure:2694: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2696 2694 rm -rf conftest* 2697 2695 ac_cv_c_const=yes … … 2714 2712 2715 2713 echo $ac_n "checking for inline""... $ac_c" 1>&6 2716 echo "configure:271 7: checking for inline" >&52714 echo "configure:2715: checking for inline" >&5 2717 2715 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then 2718 2716 echo $ac_n "(cached) $ac_c" 1>&6 … … 2721 2719 for ac_kw in inline __inline__ __inline; do 2722 2720 cat > conftest.$ac_ext <<EOF 2723 #line 272 4"configure"2721 #line 2722 "configure" 2724 2722 #include "confdefs.h" 2725 2723 … … 2728 2726 ; return 0; } 2729 2727 EOF 2730 if { (eval echo configure:27 31: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then2728 if { (eval echo configure:2729: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2731 2729 rm -rf conftest* 2732 2730 ac_cv_c_inline=$ac_kw; break … … 2754 2752 2755 2753 echo $ac_n "checking for size_t""... $ac_c" 1>&6 2756 echo "configure:275 7: checking for size_t" >&52754 echo "configure:2755: checking for size_t" >&5 2757 2755 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then 2758 2756 echo $ac_n "(cached) $ac_c" 1>&6 2759 2757 else 2760 2758 cat > conftest.$ac_ext <<EOF 2761 #line 276 2"configure"2759 #line 2760 "configure" 2762 2760 #include "confdefs.h" 2763 2761 #include <sys/types.h> … … 2787 2785 2788 2786 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 2789 echo "configure:27 90: checking whether struct tm is in sys/time.h or time.h" >&52787 echo "configure:2788: checking whether struct tm is in sys/time.h or time.h" >&5 2790 2788 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then 2791 2789 echo $ac_n "(cached) $ac_c" 1>&6 2792 2790 else 2793 2791 cat > conftest.$ac_ext <<EOF 2794 #line 279 5"configure"2792 #line 2793 "configure" 2795 2793 #include "confdefs.h" 2796 2794 #include <sys/types.h> … … 2800 2798 ; return 0; } 2801 2799 EOF 2802 if { (eval echo configure:280 3: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then2800 if { (eval echo configure:2801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2803 2801 rm -rf conftest* 2804 2802 ac_cv_struct_tm=time.h … … 2821 2819 2822 2820 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 2823 echo "configure:282 4: checking whether time.h and sys/time.h may both be included" >&52821 echo "configure:2822: checking whether time.h and sys/time.h may both be included" >&5 2824 2822 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then 2825 2823 echo $ac_n "(cached) $ac_c" 1>&6 2826 2824 else 2827 2825 cat > conftest.$ac_ext <<EOF 2828 #line 282 9"configure"2826 #line 2827 "configure" 2829 2827 #include "confdefs.h" 2830 2828 #include <sys/types.h> … … 2835 2833 ; return 0; } 2836 2834 EOF 2837 if { (eval echo configure:283 8: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then2835 if { (eval echo configure:2836: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2838 2836 rm -rf conftest* 2839 2837 ac_cv_header_time=yes … … 2860 2858 # for constant arguments. Useless! 2861 2859 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 2862 echo "configure:286 3: checking for working alloca.h" >&52860 echo "configure:2861: checking for working alloca.h" >&5 2863 2861 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then 2864 2862 echo $ac_n "(cached) $ac_c" 1>&6 2865 2863 else 2866 2864 cat > conftest.$ac_ext <<EOF 2867 #line 286 8"configure"2865 #line 2866 "configure" 2868 2866 #include "confdefs.h" 2869 2867 #include <alloca.h> … … 2872 2870 ; return 0; } 2873 2871 EOF 2874 if { (eval echo configure:287 5: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2872 if { (eval echo configure:2873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2875 2873 rm -rf conftest* 2876 2874 ac_cv_header_alloca_h=yes … … 2893 2891 2894 2892 echo $ac_n "checking for alloca""... $ac_c" 1>&6 2895 echo "configure:289 6: checking for alloca" >&52893 echo "configure:2894: checking for alloca" >&5 2896 2894 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then 2897 2895 echo $ac_n "(cached) $ac_c" 1>&6 2898 2896 else 2899 2897 cat > conftest.$ac_ext <<EOF 2900 #line 2 901"configure"2898 #line 2899 "configure" 2901 2899 #include "confdefs.h" 2902 2900 … … 2926 2924 ; return 0; } 2927 2925 EOF 2928 if { (eval echo configure:292 9: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2926 if { (eval echo configure:2927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2929 2927 rm -rf conftest* 2930 2928 ac_cv_func_alloca_works=yes … … 2958 2956 2959 2957 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 2960 echo "configure:29 61: checking whether alloca needs Cray hooks" >&52958 echo "configure:2959: checking whether alloca needs Cray hooks" >&5 2961 2959 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then 2962 2960 echo $ac_n "(cached) $ac_c" 1>&6 2963 2961 else 2964 2962 cat > conftest.$ac_ext <<EOF 2965 #line 296 6"configure"2963 #line 2964 "configure" 2966 2964 #include "confdefs.h" 2967 2965 #if defined(CRAY) && ! defined(CRAY2) … … 2988 2986 for ac_func in _getb67 GETB67 getb67; do 2989 2987 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2990 echo "configure:29 91: checking for $ac_func" >&52988 echo "configure:2989: checking for $ac_func" >&5 2991 2989 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2992 2990 echo $ac_n "(cached) $ac_c" 1>&6 2993 2991 else 2994 2992 cat > conftest.$ac_ext <<EOF 2995 #line 299 6"configure"2993 #line 2994 "configure" 2996 2994 #include "confdefs.h" 2997 2995 /* System header to define __stub macros and hopefully few prototypes, … … 3016 3014 ; return 0; } 3017 3015 EOF 3018 if { (eval echo configure:301 9: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then3016 if { (eval echo configure:3017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3019 3017 rm -rf conftest* 3020 3018 eval "ac_cv_func_$ac_func=yes" … … 3043 3041 3044 3042 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 3045 echo "configure:304 6: checking stack direction for C alloca" >&53043 echo "configure:3044: checking stack direction for C alloca" >&5 3046 3044 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then 3047 3045 echo $ac_n "(cached) $ac_c" 1>&6 … … 3051 3049 else 3052 3050 cat > conftest.$ac_ext <<EOF 3053 #line 305 4"configure"3051 #line 3052 "configure" 3054 3052 #include "confdefs.h" 3055 3053 find_stack_direction () … … 3070 3068 } 3071 3069 EOF 3072 if { (eval echo configure:307 3: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null3070 if { (eval echo configure:3071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3073 3071 then 3074 3072 ac_cv_c_stack_direction=1 … … 3093 3091 if test $ac_cv_prog_gcc = yes; then 3094 3092 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 3095 echo "configure:309 6: checking whether ${CC-cc} needs -traditional" >&53093 echo "configure:3094: checking whether ${CC-cc} needs -traditional" >&5 3096 3094 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then 3097 3095 echo $ac_n "(cached) $ac_c" 1>&6 … … 3099 3097 ac_pattern="Autoconf.*'x'" 3100 3098 cat > conftest.$ac_ext <<EOF 3101 #line 310 2"configure"3099 #line 3100 "configure" 3102 3100 #include "confdefs.h" 3103 3101 #include <sgtty.h> … … 3117 3115 if test $ac_cv_prog_gcc_traditional = no; then 3118 3116 cat > conftest.$ac_ext <<EOF 3119 #line 31 20"configure"3117 #line 3118 "configure" 3120 3118 #include "confdefs.h" 3121 3119 #include <termio.h> … … 3142 3140 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3143 3141 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3144 echo "configure:314 5: checking for $ac_hdr" >&53142 echo "configure:3143: checking for $ac_hdr" >&5 3145 3143 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 3146 3144 echo $ac_n "(cached) $ac_c" 1>&6 3147 3145 else 3148 3146 cat > conftest.$ac_ext <<EOF 3149 #line 31 50"configure"3147 #line 3148 "configure" 3150 3148 #include "confdefs.h" 3151 3149 #include <$ac_hdr> 3152 3150 EOF 3153 3151 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3154 { (eval echo configure:315 5: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }3152 { (eval echo configure:3153: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3155 3153 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3156 3154 if test -z "$ac_err"; then … … 3181 3179 do 3182 3180 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3183 echo "configure:318 4: checking for $ac_func" >&53181 echo "configure:3182: checking for $ac_func" >&5 3184 3182 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3185 3183 echo $ac_n "(cached) $ac_c" 1>&6 3186 3184 else 3187 3185 cat > conftest.$ac_ext <<EOF 3188 #line 318 9"configure"3186 #line 3187 "configure" 3189 3187 #include "confdefs.h" 3190 3188 /* System header to define __stub macros and hopefully few prototypes, … … 3209 3207 ; return 0; } 3210 3208 EOF 3211 if { (eval echo configure:321 2: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then3209 if { (eval echo configure:3210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3212 3210 rm -rf conftest* 3213 3211 eval "ac_cv_func_$ac_func=yes" … … 3234 3232 3235 3233 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 3236 echo "configure:323 7: checking for working mmap" >&53234 echo "configure:3235: checking for working mmap" >&5 3237 3235 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then 3238 3236 echo $ac_n "(cached) $ac_c" 1>&6 … … 3242 3240 else 3243 3241 cat > conftest.$ac_ext <<EOF 3244 #line 324 5"configure"3242 #line 3243 "configure" 3245 3243 #include "confdefs.h" 3246 3244 … … 3382 3380 3383 3381 EOF 3384 if { (eval echo configure:338 5: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null3382 if { (eval echo configure:3383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3385 3383 then 3386 3384 ac_cv_func_mmap_fixed_mapped=yes … … 3405 3403 3406 3404 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 3407 echo "configure:340 8: checking return type of signal handlers" >&53405 echo "configure:3406: checking return type of signal handlers" >&5 3408 3406 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then 3409 3407 echo $ac_n "(cached) $ac_c" 1>&6 3410 3408 else 3411 3409 cat > conftest.$ac_ext <<EOF 3412 #line 341 3"configure"3410 #line 3411 "configure" 3413 3411 #include "confdefs.h" 3414 3412 #include <sys/types.h> … … 3427 3425 ; return 0; } 3428 3426 EOF 3429 if { (eval echo configure:34 30: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then3427 if { (eval echo configure:3428: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3430 3428 rm -rf conftest* 3431 3429 ac_cv_type_signal=void … … 3446 3444 3447 3445 echo $ac_n "checking for vprintf""... $ac_c" 1>&6 3448 echo "configure:344 9: checking for vprintf" >&53446 echo "configure:3447: checking for vprintf" >&5 3449 3447 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then 3450 3448 echo $ac_n "(cached) $ac_c" 1>&6 3451 3449 else 3452 3450 cat > conftest.$ac_ext <<EOF 3453 #line 345 4"configure"3451 #line 3452 "configure" 3454 3452 #include "confdefs.h" 3455 3453 /* System header to define __stub macros and hopefully few prototypes, … … 3474 3472 ; return 0; } 3475 3473 EOF 3476 if { (eval echo configure:347 7: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then3474 if { (eval echo configure:3475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3477 3475 rm -rf conftest* 3478 3476 eval "ac_cv_func_vprintf=yes" … … 3498 3496 if test "$ac_cv_func_vprintf" != yes; then 3499 3497 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 3500 echo "configure:3 501: checking for _doprnt" >&53498 echo "configure:3499: checking for _doprnt" >&5 3501 3499 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then 3502 3500 echo $ac_n "(cached) $ac_c" 1>&6 3503 3501 else 3504 3502 cat > conftest.$ac_ext <<EOF 3505 #line 350 6"configure"3503 #line 3504 "configure" 3506 3504 #include "confdefs.h" 3507 3505 /* System header to define __stub macros and hopefully few prototypes, … … 3526 3524 ; return 0; } 3527 3525 EOF 3528 if { (eval echo configure:352 9: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then3526 if { (eval echo configure:3527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3529 3527 rm -rf conftest* 3530 3528 eval "ac_cv_func__doprnt=yes" … … 3552 3550 3553 3551 echo $ac_n "checking for library containing setenv""... $ac_c" 1>&6 3554 echo "configure:355 5: checking for library containing setenv" >&53552 echo "configure:3553: checking for library containing setenv" >&5 3555 3553 if eval "test \"`echo '$''{'ac_cv_search_setenv'+set}'`\" = set"; then 3556 3554 echo $ac_n "(cached) $ac_c" 1>&6 … … 3559 3557 ac_cv_search_setenv="no" 3560 3558 cat > conftest.$ac_ext <<EOF 3561 #line 356 2"configure"3559 #line 3560 "configure" 3562 3560 #include "confdefs.h" 3563 3561 /* Override any gcc2 internal prototype to avoid an error. */ … … 3570 3568 ; return 0; } 3571 3569 EOF 3572 if { (eval echo configure:357 3: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then3570 if { (eval echo configure:3571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3573 3571 rm -rf conftest* 3574 3572 ac_cv_search_setenv="none required" … … 3581 3579 LIBS="-l$i $ac_func_search_save_LIBS" 3582 3580 cat > conftest.$ac_ext <<EOF 3583 #line 358 4"configure"3581 #line 3582 "configure" 3584 3582 #include "confdefs.h" 3585 3583 /* Override any gcc2 internal prototype to avoid an error. */ … … 3592 3590 ; return 0; } 3593 3591 EOF 3594 if { (eval echo configure:359 5: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then3592 if { (eval echo configure:3593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3595 3593 rm -rf conftest* 3596 3594 ac_cv_search_setenv="-l$i" … … 3616 3614 do 3617 3615 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3618 echo "configure:361 9: checking for $ac_func" >&53616 echo "configure:3617: checking for $ac_func" >&5 3619 3617 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3620 3618 echo $ac_n "(cached) $ac_c" 1>&6 3621 3619 else 3622 3620 cat > conftest.$ac_ext <<EOF 3623 #line 362 4"configure"3621 #line 3622 "configure" 3624 3622 #include "confdefs.h" 3625 3623 /* System header to define __stub macros and hopefully few prototypes, … … 3644 3642 ; return 0; } 3645 3643 EOF 3646 if { (eval echo configure:364 7: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then3644 if { (eval echo configure:3645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3647 3645 rm -rf conftest* 3648 3646 eval "ac_cv_func_$ac_func=yes" … … 3694 3692 # check for a peculiar constructor initialization 3695 3693 echo $ac_n "checking whether explicit C++ constructor calls are allowed""... $ac_c" 1>&6 3696 echo "configure:369 7: checking whether explicit C++ constructor calls are allowed" >&53694 echo "configure:3695: checking whether explicit C++ constructor calls are allowed" >&5 3697 3695 3698 3696 ac_ext=C … … 3707 3705 else 3708 3706 cat > conftest.$ac_ext <<EOF 3709 #line 37 10"configure"3707 #line 3708 "configure" 3710 3708 #include "confdefs.h" 3711 3709 … … 3725 3723 ; return 0; } 3726 3724 EOF 3727 if { (eval echo configure:372 8: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then3725 if { (eval echo configure:3726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3728 3726 rm -rf conftest* 3729 3727 ac_cv_explicit_const=yes … … 3754 3752 # sprintf returns number of printed chars 3755 3753 echo $ac_n "checking whether vsprintf returns number of printed chars""... $ac_c" 1>&6 3756 echo "configure:375 7: checking whether vsprintf returns number of printed chars" >&53754 echo "configure:3755: checking whether vsprintf returns number of printed chars" >&5 3757 3755 if eval "test \"`echo '$''{'ac_cv_returns_n_of_chars'+set}'`\" = set"; then 3758 3756 echo $ac_n "(cached) $ac_c" 1>&6 … … 3762 3760 else 3763 3761 cat > conftest.$ac_ext <<EOF 3764 #line 376 5"configure"3762 #line 3763 "configure" 3765 3763 #include "confdefs.h" 3766 3764 #include <stdio.h> 3767 3765 main() { char *str=(char*)malloc(20); if (((int) sprintf(str,"123456789")) == 9) exit(0); else exit(1); } 3768 3766 EOF 3769 if { (eval echo configure:37 70: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null3767 if { (eval echo configure:3768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3770 3768 then 3771 3769 ac_cv_returns_n_of_chars=yes … … 3793 3791 # determine ALIGN_8 3794 3792 echo $ac_n "checking size of char""... $ac_c" 1>&6 3795 echo "configure:379 6: checking size of char" >&53793 echo "configure:3794: checking size of char" >&5 3796 3794 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then 3797 3795 echo $ac_n "(cached) $ac_c" 1>&6 … … 3801 3799 else 3802 3800 cat > conftest.$ac_ext <<EOF 3803 #line 380 4"configure"3801 #line 3802 "configure" 3804 3802 #include "confdefs.h" 3805 3803 #include <stdio.h> … … 3812 3810 } 3813 3811 EOF 3814 if { (eval echo configure:381 5: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null3812 if { (eval echo configure:3813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3815 3813 then 3816 3814 ac_cv_sizeof_char=`cat conftestval` … … 3832 3830 3833 3831 echo $ac_n "checking size of short""... $ac_c" 1>&6 3834 echo "configure:383 5: checking size of short" >&53832 echo "configure:3833: checking size of short" >&5 3835 3833 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then 3836 3834 echo $ac_n "(cached) $ac_c" 1>&6 … … 3840 3838 else 3841 3839 cat > conftest.$ac_ext <<EOF 3842 #line 384 3"configure"3840 #line 3841 "configure" 3843 3841 #include "confdefs.h" 3844 3842 #include <stdio.h> … … 3851 3849 } 3852 3850 EOF 3853 if { (eval echo configure:385 4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null3851 if { (eval echo configure:3852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3854 3852 then 3855 3853 ac_cv_sizeof_short=`cat conftestval` … … 3871 3869 3872 3870 echo $ac_n "checking size of int""... $ac_c" 1>&6 3873 echo "configure:387 4: checking size of int" >&53871 echo "configure:3872: checking size of int" >&5 3874 3872 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then 3875 3873 echo $ac_n "(cached) $ac_c" 1>&6 … … 3879 3877 else 3880 3878 cat > conftest.$ac_ext <<EOF 3881 #line 388 2"configure"3879 #line 3880 "configure" 3882 3880 #include "confdefs.h" 3883 3881 #include <stdio.h> … … 3890 3888 } 3891 3889 EOF 3892 if { (eval echo configure:389 3: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null3890 if { (eval echo configure:3891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3893 3891 then 3894 3892 ac_cv_sizeof_int=`cat conftestval` … … 3910 3908 3911 3909 echo $ac_n "checking size of long""... $ac_c" 1>&6 3912 echo "configure:391 3: checking size of long" >&53910 echo "configure:3911: checking size of long" >&5 3913 3911 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then 3914 3912 echo $ac_n "(cached) $ac_c" 1>&6 … … 3918 3916 else 3919 3917 cat > conftest.$ac_ext <<EOF 3920 #line 39 21"configure"3918 #line 3919 "configure" 3921 3919 #include "confdefs.h" 3922 3920 #include <stdio.h> … … 3929 3927 } 3930 3928 EOF 3931 if { (eval echo configure:393 2: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null3929 if { (eval echo configure:3930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3932 3930 then 3933 3931 ac_cv_sizeof_long=`cat conftestval` … … 3949 3947 3950 3948 echo $ac_n "checking size of void*""... $ac_c" 1>&6 3951 echo "configure:395 2: checking size of void*" >&53949 echo "configure:3950: checking size of void*" >&5 3952 3950 if eval "test \"`echo '$''{'ac_cv_sizeof_voidp'+set}'`\" = set"; then 3953 3951 echo $ac_n "(cached) $ac_c" 1>&6 … … 3957 3955 else 3958 3956 cat > conftest.$ac_ext <<EOF 3959 #line 39 60"configure"3957 #line 3958 "configure" 3960 3958 #include "confdefs.h" 3961 3959 #include <stdio.h> … … 3968 3966 } 3969 3967 EOF 3970 if { (eval echo configure:39 71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null3968 if { (eval echo configure:3969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3971 3969 then 3972 3970 ac_cv_sizeof_voidp=`cat conftestval` … … 3988 3986 3989 3987 echo $ac_n "checking size of double""... $ac_c" 1>&6 3990 echo "configure:39 91: checking size of double" >&53988 echo "configure:3989: checking size of double" >&5 3991 3989 if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then 3992 3990 echo $ac_n "(cached) $ac_c" 1>&6 … … 3996 3994 else 3997 3995 cat > conftest.$ac_ext <<EOF 3998 #line 399 9"configure"3996 #line 3997 "configure" 3999 3997 #include "confdefs.h" 4000 3998 #include <stdio.h> … … 4007 4005 } 4008 4006 EOF 4009 if { (eval echo configure:40 10: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null4007 if { (eval echo configure:4008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 4010 4008 then 4011 4009 ac_cv_sizeof_double=`cat conftestval` … … 4027 4025 4028 4026 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 4029 echo "configure:40 30: checking whether byte ordering is bigendian" >&54027 echo "configure:4028: checking whether byte ordering is bigendian" >&5 4030 4028 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then 4031 4029 echo $ac_n "(cached) $ac_c" 1>&6 … … 4034 4032 # See if sys/param.h defines the BYTE_ORDER macro. 4035 4033 cat > conftest.$ac_ext <<EOF 4036 #line 403 7"configure"4034 #line 4035 "configure" 4037 4035 #include "confdefs.h" 4038 4036 #include <sys/types.h> … … 4045 4043 ; return 0; } 4046 4044 EOF 4047 if { (eval echo configure:404 8: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then4045 if { (eval echo configure:4046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4048 4046 rm -rf conftest* 4049 4047 # It does; now see whether it defined to BIG_ENDIAN or not. 4050 4048 cat > conftest.$ac_ext <<EOF 4051 #line 405 2"configure"4049 #line 4050 "configure" 4052 4050 #include "confdefs.h" 4053 4051 #include <sys/types.h> … … 4060 4058 ; return 0; } 4061 4059 EOF 4062 if { (eval echo configure:406 3: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then4060 if { (eval echo configure:4061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4063 4061 rm -rf conftest* 4064 4062 ac_cv_c_bigendian=yes … … 4080 4078 else 4081 4079 cat > conftest.$ac_ext <<EOF 4082 #line 408 3"configure"4080 #line 4081 "configure" 4083 4081 #include "confdefs.h" 4084 4082 main () { … … 4093 4091 } 4094 4092 EOF 4095 if { (eval echo configure:409 6: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null4093 if { (eval echo configure:4094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 4096 4094 then 4097 4095 ac_cv_c_bigendian=no … … 4187 4185 fi 4188 4186 4189 # Check whether --with-namespaces or --without-namespaces was given.4190 if test "${with_namespaces+set}" = set; then4191 withval="$with_namespaces"4192 :4193 fi4194 4195 4187 # Check whether --with-dl or --without-dl was given. 4196 4188 if test "${with_dl+set}" = set; then … … 4247 4239 4248 4240 echo $ac_n "checking whether to use dynamic linking""... $ac_c" 1>&6 4249 echo "configure:42 50: checking whether to use dynamic linking" >&54241 echo "configure:4242: checking whether to use dynamic linking" >&5 4250 4242 if test "$with_dl" != no && test "$ac_lib_dl" = yes; then 4251 4243 cat >> confdefs.h <<\EOF … … 4260 4252 4261 4253 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6 4262 echo "configure:42 63: checking for tgetent in -lncurses" >&54254 echo "configure:4255: checking for tgetent in -lncurses" >&5 4263 4255 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'` 4264 4256 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 4268 4260 LIBS="-lncurses $LIBS" 4269 4261 cat > conftest.$ac_ext <<EOF 4270 #line 42 71"configure"4262 #line 4263 "configure" 4271 4263 #include "confdefs.h" 4272 4264 /* Override any gcc2 internal prototype to avoid an error. */ … … 4279 4271 ; return 0; } 4280 4272 EOF 4281 if { (eval echo configure:42 82: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then4273 if { (eval echo configure:4274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4282 4274 rm -rf conftest* 4283 4275 eval "ac_cv_lib_$ac_lib_var=yes" … … 4306 4298 \ 4307 4299 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6 4308 echo "configure:430 9: checking for tgetent in -lcurses" >&54300 echo "configure:4301: checking for tgetent in -lcurses" >&5 4309 4301 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` 4310 4302 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 4314 4306 LIBS="-lcurses $LIBS" 4315 4307 cat > conftest.$ac_ext <<EOF 4316 #line 43 17"configure"4308 #line 4309 "configure" 4317 4309 #include "confdefs.h" 4318 4310 /* Override any gcc2 internal prototype to avoid an error. */ … … 4325 4317 ; return 0; } 4326 4318 EOF 4327 if { (eval echo configure:432 8: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then4319 if { (eval echo configure:4320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4328 4320 rm -rf conftest* 4329 4321 eval "ac_cv_lib_$ac_lib_var=yes" … … 4352 4344 \ 4353 4345 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 4354 echo "configure:43 55: checking for tgetent in -ltermcap" >&54346 echo "configure:4347: checking for tgetent in -ltermcap" >&5 4355 4347 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` 4356 4348 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 4360 4352 LIBS="-ltermcap $LIBS" 4361 4353 cat > conftest.$ac_ext <<EOF 4362 #line 43 63"configure"4354 #line 4355 "configure" 4363 4355 #include "confdefs.h" 4364 4356 /* Override any gcc2 internal prototype to avoid an error. */ … … 4371 4363 ; return 0; } 4372 4364 EOF 4373 if { (eval echo configure:43 74: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then4365 if { (eval echo configure:4366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4374 4366 rm -rf conftest* 4375 4367 eval "ac_cv_lib_$ac_lib_var=yes" … … 4420 4412 4421 4413 echo $ac_n "checking for rl_abort in -lreadline""... $ac_c" 1>&6 4422 echo "configure:44 23: checking for rl_abort in -lreadline" >&54414 echo "configure:4415: checking for rl_abort in -lreadline" >&5 4423 4415 ac_lib_var=`echo readline'_'rl_abort | sed 'y%./+-%__p_%'` 4424 4416 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 4428 4420 LIBS="-lreadline $LIBS" 4429 4421 cat > conftest.$ac_ext <<EOF 4430 #line 44 31"configure"4422 #line 4423 "configure" 4431 4423 #include "confdefs.h" 4432 4424 /* Override any gcc2 internal prototype to avoid an error. */ … … 4442 4434 ; return 0; } 4443 4435 EOF 4444 if { (eval echo configure:44 45: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then4436 if { (eval echo configure:4437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4445 4437 rm -rf conftest* 4446 4438 eval "ac_cv_lib_$ac_lib_var=yes" … … 4470 4462 4471 4463 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 4472 echo "configure:44 73: checking how to run the C++ preprocessor" >&54464 echo "configure:4465: checking how to run the C++ preprocessor" >&5 4473 4465 if test -z "$CXXCPP"; then 4474 4466 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then … … 4483 4475 CXXCPP="${CXX-g++} -E" 4484 4476 cat > conftest.$ac_ext <<EOF 4485 #line 44 86"configure"4477 #line 4478 "configure" 4486 4478 #include "confdefs.h" 4487 4479 #include <stdlib.h> 4488 4480 EOF 4489 4481 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4490 { (eval echo configure:44 91: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }4482 { (eval echo configure:4483: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4491 4483 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4492 4484 if test -z "$ac_err"; then … … 4516 4508 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 4517 4509 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 4518 echo "configure:451 9: checking for $ac_hdr" >&54510 echo "configure:4511: checking for $ac_hdr" >&5 4519 4511 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4520 4512 echo $ac_n "(cached) $ac_c" 1>&6 4521 4513 else 4522 4514 cat > conftest.$ac_ext <<EOF 4523 #line 45 24"configure"4515 #line 4516 "configure" 4524 4516 #include "confdefs.h" 4525 4517 #include <$ac_hdr> 4526 4518 EOF 4527 4519 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4528 { (eval echo configure:452 9: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }4520 { (eval echo configure:4521: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4529 4521 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4530 4522 if test -z "$ac_err"; then … … 4555 4547 test "$ac_cv_header_readline_readline_h" = yes; then 4556 4548 echo $ac_n "checking whether readline.h is ok""... $ac_c" 1>&6 4557 echo "configure:455 8: checking whether readline.h is ok" >&54549 echo "configure:4550: checking whether readline.h is ok" >&5 4558 4550 if eval "test \"`echo '$''{'ac_cv_header_readline_readline_h_ok'+set}'`\" = set"; then 4559 4551 echo $ac_n "(cached) $ac_c" 1>&6 4560 4552 else 4561 4553 cat > conftest.$ac_ext <<EOF 4562 #line 45 63"configure"4554 #line 4555 "configure" 4563 4555 #include "confdefs.h" 4564 4556 #include<unistd.h> … … 4573 4565 ; return 0; } 4574 4566 EOF 4575 if { (eval echo configure:45 76: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then4567 if { (eval echo configure:4568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4576 4568 rm -rf conftest* 4577 4569 ac_cv_header_readline_readline_h_ok="yes" … … 4589 4581 #not ok -- try once more with explicitly declaring everything 4590 4582 echo $ac_n "checking whether or not we nevertheless can use readline""... $ac_c" 1>&6 4591 echo "configure:45 92: checking whether or not we nevertheless can use readline" >&54583 echo "configure:4584: checking whether or not we nevertheless can use readline" >&5 4592 4584 if eval "test \"`echo '$''{'ac_cv_have_readline'+set}'`\" = set"; then 4593 4585 echo $ac_n "(cached) $ac_c" 1>&6 4594 4586 else 4595 4587 cat > conftest.$ac_ext <<EOF 4596 #line 45 97"configure"4588 #line 4589 "configure" 4597 4589 #include "confdefs.h" 4598 4590 #include <stdio.h> … … 4628 4620 ; return 0; } 4629 4621 EOF 4630 if { (eval echo configure:46 31: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then4622 if { (eval echo configure:4623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4631 4623 rm -rf conftest* 4632 4624 ac_cv_have_readline="yes" … … 4667 4659 4668 4660 echo $ac_n "checking which readline to use""... $ac_c" 1>&6 4669 echo "configure:46 70: checking which readline to use" >&54661 echo "configure:4662: checking which readline to use" >&5 4670 4662 if test "$ac_cv_with_readline" = dynamic; then 4671 4663 echo "$ac_t""dynamic" 1>&6 … … 4687 4679 # gmp, MP, MPT, factory, libfac 4688 4680 echo $ac_n "checking for main in -lgmp""... $ac_c" 1>&6 4689 echo "configure:46 90: checking for main in -lgmp" >&54681 echo "configure:4682: checking for main in -lgmp" >&5 4690 4682 ac_lib_var=`echo gmp'_'main | sed 'y%./+-%__p_%'` 4691 4683 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 4695 4687 LIBS="-lgmp $LIBS" 4696 4688 cat > conftest.$ac_ext <<EOF 4697 #line 469 8"configure"4689 #line 4690 "configure" 4698 4690 #include "confdefs.h" 4699 4691 … … 4702 4694 ; return 0; } 4703 4695 EOF 4704 if { (eval echo configure:4 705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then4696 if { (eval echo configure:4697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4705 4697 rm -rf conftest* 4706 4698 eval "ac_cv_lib_$ac_lib_var=yes" … … 4731 4723 SAVE_LIBS=$LIBS 4732 4724 echo $ac_n "checking for IMP_PutGmpInt in -lMP""... $ac_c" 1>&6 4733 echo "configure:47 34: checking for IMP_PutGmpInt in -lMP" >&54725 echo "configure:4726: checking for IMP_PutGmpInt in -lMP" >&5 4734 4726 ac_lib_var=`echo MP'_'IMP_PutGmpInt | sed 'y%./+-%__p_%'` 4735 4727 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 4739 4731 LIBS="-lMP $MP_LIBS $LIBS" 4740 4732 cat > conftest.$ac_ext <<EOF 4741 #line 47 42"configure"4733 #line 4734 "configure" 4742 4734 #include "confdefs.h" 4743 4735 /* Override any gcc2 internal prototype to avoid an error. */ … … 4750 4742 ; return 0; } 4751 4743 EOF 4752 if { (eval echo configure:47 53: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then4744 if { (eval echo configure:4745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4753 4745 rm -rf conftest* 4754 4746 eval "ac_cv_lib_$ac_lib_var=yes" … … 4778 4770 4779 4771 echo $ac_n "checking for MPT_GetTree in -lMPT""... $ac_c" 1>&6 4780 echo "configure:47 81: checking for MPT_GetTree in -lMPT" >&54772 echo "configure:4773: checking for MPT_GetTree in -lMPT" >&5 4781 4773 ac_lib_var=`echo MPT'_'MPT_GetTree | sed 'y%./+-%__p_%'` 4782 4774 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 4786 4778 LIBS="-lMPT $MP_LIBS $LIBS" 4787 4779 cat > conftest.$ac_ext <<EOF 4788 #line 478 9"configure"4780 #line 4781 "configure" 4789 4781 #include "confdefs.h" 4790 4782 /* Override any gcc2 internal prototype to avoid an error. */ … … 4797 4789 ; return 0; } 4798 4790 EOF 4799 if { (eval echo configure:4 800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then4791 if { (eval echo configure:4792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4800 4792 rm -rf conftest* 4801 4793 eval "ac_cv_lib_$ac_lib_var=yes" … … 4826 4818 LIBS=$SAVE_LIBS 4827 4819 echo $ac_n "checking for atof in -lsingcf""... $ac_c" 1>&6 4828 echo "configure:482 9: checking for atof in -lsingcf" >&54820 echo "configure:4821: checking for atof in -lsingcf" >&5 4829 4821 ac_lib_var=`echo singcf'_'atof | sed 'y%./+-%__p_%'` 4830 4822 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 4834 4826 LIBS="-lsingcf $LIBS" 4835 4827 cat > conftest.$ac_ext <<EOF 4836 #line 48 37"configure"4828 #line 4829 "configure" 4837 4829 #include "confdefs.h" 4838 4830 /* Override any gcc2 internal prototype to avoid an error. */ … … 4845 4837 ; return 0; } 4846 4838 EOF 4847 if { (eval echo configure:484 8: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then4839 if { (eval echo configure:4840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4848 4840 rm -rf conftest* 4849 4841 eval "ac_cv_lib_$ac_lib_var=yes" … … 4873 4865 4874 4866 echo $ac_n "checking for atof in -lsingfac""... $ac_c" 1>&6 4875 echo "configure:48 76: checking for atof in -lsingfac" >&54867 echo "configure:4868: checking for atof in -lsingfac" >&5 4876 4868 ac_lib_var=`echo singfac'_'atof | sed 'y%./+-%__p_%'` 4877 4869 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 4881 4873 LIBS="-lsingfac $LIBS" 4882 4874 cat > conftest.$ac_ext <<EOF 4883 #line 48 84"configure"4875 #line 4876 "configure" 4884 4876 #include "confdefs.h" 4885 4877 /* Override any gcc2 internal prototype to avoid an error. */ … … 4892 4884 ; return 0; } 4893 4885 EOF 4894 if { (eval echo configure:48 95: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then4886 if { (eval echo configure:4887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4895 4887 rm -rf conftest* 4896 4888 eval "ac_cv_lib_$ac_lib_var=yes" … … 4920 4912 4921 4913 echo $ac_n "checking for omTestAddr in -lomalloc""... $ac_c" 1>&6 4922 echo "configure:49 23: checking for omTestAddr in -lomalloc" >&54914 echo "configure:4915: checking for omTestAddr in -lomalloc" >&5 4923 4915 ac_lib_var=`echo omalloc'_'omTestAddr | sed 'y%./+-%__p_%'` 4924 4916 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 4928 4920 LIBS="-lomalloc $LIBS" 4929 4921 cat > conftest.$ac_ext <<EOF 4930 #line 49 31"configure"4922 #line 4923 "configure" 4931 4923 #include "confdefs.h" 4932 4924 /* Override any gcc2 internal prototype to avoid an error. */ … … 4939 4931 ; return 0; } 4940 4932 EOF 4941 if { (eval echo configure:49 42: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then4933 if { (eval echo configure:4934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4942 4934 rm -rf conftest* 4943 4935 eval "ac_cv_lib_$ac_lib_var=yes" … … 4967 4959 4968 4960 echo $ac_n "checking for main in -lomalloc_ndebug""... $ac_c" 1>&6 4969 echo "configure:49 70: checking for main in -lomalloc_ndebug" >&54961 echo "configure:4962: checking for main in -lomalloc_ndebug" >&5 4970 4962 ac_lib_var=`echo omalloc_ndebug'_'main | sed 'y%./+-%__p_%'` 4971 4963 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 4975 4967 LIBS="-lomalloc_ndebug $LIBS" 4976 4968 cat > conftest.$ac_ext <<EOF 4977 #line 497 8"configure"4969 #line 4970 "configure" 4978 4970 #include "confdefs.h" 4979 4971 … … 4982 4974 ; return 0; } 4983 4975 EOF 4984 if { (eval echo configure:49 85: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then4976 if { (eval echo configure:4977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4985 4977 rm -rf conftest* 4986 4978 eval "ac_cv_lib_$ac_lib_var=yes" … … 5010 5002 5011 5003 echo $ac_n "checking for main in -lntl""... $ac_c" 1>&6 5012 echo "configure:50 13: checking for main in -lntl" >&55004 echo "configure:5005: checking for main in -lntl" >&5 5013 5005 ac_lib_var=`echo ntl'_'main | sed 'y%./+-%__p_%'` 5014 5006 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 5018 5010 LIBS="-lntl $LIBS" 5019 5011 cat > conftest.$ac_ext <<EOF 5020 #line 50 21"configure"5012 #line 5013 "configure" 5021 5013 #include "confdefs.h" 5022 5014 … … 5025 5017 ; return 0; } 5026 5018 EOF 5027 if { (eval echo configure:502 8: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then5019 if { (eval echo configure:5020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5028 5020 rm -rf conftest* 5029 5021 eval "ac_cv_lib_$ac_lib_var=yes" … … 5058 5050 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5059 5051 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5060 echo "configure:50 61: checking for $ac_hdr" >&55052 echo "configure:5053: checking for $ac_hdr" >&5 5061 5053 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5062 5054 echo $ac_n "(cached) $ac_c" 1>&6 5063 5055 else 5064 5056 cat > conftest.$ac_ext <<EOF 5065 #line 50 66"configure"5057 #line 5058 "configure" 5066 5058 #include "confdefs.h" 5067 5059 #include <$ac_hdr> 5068 5060 EOF 5069 5061 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5070 { (eval echo configure:50 71: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }5062 { (eval echo configure:5063: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5071 5063 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5072 5064 if test -z "$ac_err"; then … … 5096 5088 5097 5089 echo $ac_n "checking whether to use Boost""... $ac_c" 1>&6 5098 echo "configure:509 9: checking whether to use Boost" >&55090 echo "configure:5091: checking whether to use Boost" >&5 5099 5091 if test "$with_Boost" != no; then 5100 5092 echo "$ac_t""yes" 1>&6 … … 5111 5103 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5112 5104 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5113 echo "configure:51 14: checking for $ac_hdr" >&55105 echo "configure:5106: checking for $ac_hdr" >&5 5114 5106 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5115 5107 echo $ac_n "(cached) $ac_c" 1>&6 5116 5108 else 5117 5109 cat > conftest.$ac_ext <<EOF 5118 #line 511 9"configure"5110 #line 5111 "configure" 5119 5111 #include "confdefs.h" 5120 5112 #include <$ac_hdr> 5121 5113 EOF 5122 5114 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5123 { (eval echo configure:51 24: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }5115 { (eval echo configure:5116: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5124 5116 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5125 5117 if test -z "$ac_err"; then … … 5157 5149 echo "$ac_t""no" 1>&6 5158 5150 echo $ac_n "checking whether to use std::vector""... $ac_c" 1>&6 5159 echo "configure:51 60: checking whether to use std::vector" >&55151 echo "configure:5152: checking whether to use std::vector" >&5 5160 5152 if test "$with_stdvec" != yes; then 5161 5153 echo "$ac_t""no" 1>&6 … … 5206 5198 SAVE_LIBS=$LIBS 5207 5199 echo $ac_n "checking for __stack_chk_fail_local in -lc_nonshared""... $ac_c" 1>&6 5208 echo "configure:520 9: checking for __stack_chk_fail_local in -lc_nonshared" >&55200 echo "configure:5201: checking for __stack_chk_fail_local in -lc_nonshared" >&5 5209 5201 ac_lib_var=`echo c_nonshared'_'__stack_chk_fail_local | sed 'y%./+-%__p_%'` 5210 5202 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 5214 5206 LIBS="-lc_nonshared $LIBS" 5215 5207 cat > conftest.$ac_ext <<EOF 5216 #line 52 17"configure"5208 #line 5209 "configure" 5217 5209 #include "confdefs.h" 5218 5210 /* Override any gcc2 internal prototype to avoid an error. */ … … 5225 5217 ; return 0; } 5226 5218 EOF 5227 if { (eval echo configure:522 8: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then5219 if { (eval echo configure:5220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5228 5220 rm -rf conftest* 5229 5221 eval "ac_cv_lib_$ac_lib_var=yes" … … 5255 5247 5256 5248 echo $ac_n "checking which apint package to use""... $ac_c" 1>&6 5257 echo "configure:525 8: checking which apint package to use" >&55249 echo "configure:5250: checking which apint package to use" >&5 5258 5250 if test "${with_apint}" != gmp; then 5259 5251 if test "$ac_gmp_ok" = yes || test "$enable_gmp" = yes; then … … 5277 5269 5278 5270 echo $ac_n "checking whether to use libsvd""... $ac_c" 1>&6 5279 echo "configure:52 80: checking whether to use libsvd" >&55271 echo "configure:5272: checking whether to use libsvd" >&5 5280 5272 if test "$with_svd" = yes; then 5281 5273 echo "$ac_t""yes" 1>&6 … … 5292 5284 # 5293 5285 echo $ac_n "checking whether to have MP""... $ac_c" 1>&6 5294 echo "configure:52 95: checking whether to have MP" >&55286 echo "configure:5287: checking whether to have MP" >&5 5295 5287 if test "${with_MP}" != yes && test "${with_MP}" != no; then 5296 5288 if (test "${will_have_gmp}" = yes) && \ … … 5327 5319 5328 5320 echo $ac_n "checking whether to have NTL""... $ac_c" 1>&6 5329 echo "configure:53 30: checking whether to have NTL" >&55321 echo "configure:5322: checking whether to have NTL" >&5 5330 5322 if test "${with_NTL}" = yes ; then 5331 5323 echo "$ac_t""yes" 1>&6 … … 5336 5328 5337 5329 echo $ac_n "checking whether to have factory""... $ac_c" 1>&6 5338 echo "configure:533 9: checking whether to have factory" >&55330 echo "configure:5331: checking whether to have factory" >&5 5339 5331 if test "${with_factory}" != yes && test "${with_factory}" != no; then 5340 5332 if test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then … … 5367 5359 5368 5360 echo $ac_n "checking whether to have libfac""... $ac_c" 1>&6 5369 echo "configure:53 70: checking whether to have libfac" >&55361 echo "configure:5362: checking whether to have libfac" >&5 5370 5362 if test "${with_libfac}" != yes && test "${with_libfac}" != no; then 5371 5363 if (test "${will_have_factory}" = yes) && \ 5372 5364 (test "$ac_libfac_ok" = yes || test "$enable_libfac" = yes); then 5373 5365 echo "$ac_t""yes" 1>&6 5374 cat >> confdefs.h <<\EOF5375 #define HAVE_LIBFAC_P 15376 EOF5377 5378 5366 NEED_LIBS="-lsingfac ${NEED_LIBS}" 5379 5367 else 5380 5368 echo "$ac_t""no" 1>&6 5369 { echo "configure: error: can not build without libfac" 1>&2; exit 1; } 5381 5370 fi 5382 5371 elif test "${with_libfac}" = yes; then … … 5384 5373 (test "$ac_libfac_ok" = yes || test "$enable_libfac" = yes); then 5385 5374 echo "$ac_t""yes" 1>&6 5386 cat >> confdefs.h <<\EOF5387 #define HAVE_LIBFAC_P 15388 EOF5389 5390 5375 NEED_LIBS="-lsingfac ${NEED_LIBS}" 5391 5376 else … … 5409 5394 5410 5395 echo $ac_n "checking whether to have dbm links""... $ac_c" 1>&6 5411 echo "configure:5 412: checking whether to have dbm links" >&55396 echo "configure:5397: checking whether to have dbm links" >&5 5412 5397 if test "$with_dbm" != no; then 5413 5398 cat >> confdefs.h <<\EOF … … 5420 5405 fi 5421 5406 5422 echo $ac_n "checking whether to have namespaces""... $ac_c" 1>&65423 echo "configure:5424: checking whether to have namespaces" >&55424 if test "$with_namespaces" != no; then5425 echo "$ac_t""yes" 1>&65426 cat >> confdefs.h <<\EOF5427 #define HAVE_NS 15428 EOF5429 5430 else5431 echo "$ac_t""no" 1>&65432 fi5433 5434 5407 echo $ac_n "checking whether to have dynamic modules""... $ac_c" 1>&6 5435 echo "configure:54 36: checking whether to have dynamic modules" >&55408 echo "configure:5409: checking whether to have dynamic modules" >&5 5436 5409 if test "$with_dynamic_modules" = no || test "$ac_have_dl" != yes; then 5437 5410 echo "$ac_t""no" 1>&6 … … 5445 5418 5446 5419 echo $ac_n "checking whether to have dynamic kernel""... $ac_c" 1>&6 5447 echo "configure:54 48: checking whether to have dynamic kernel" >&55420 echo "configure:5421: checking whether to have dynamic kernel" >&5 5448 5421 if test "$with_dynamic_kernel" != no && test "$ac_lib_dl" = yes; then 5449 5422 DL_KERNEL=1 … … 5455 5428 5456 5429 echo $ac_n "checking whether to have Plural""... $ac_c" 1>&6 5457 echo "configure:54 58: checking whether to have Plural" >&55430 echo "configure:5431: checking whether to have Plural" >&5 5458 5431 if test "$with_Plural" != no && test "$enable_Plural" != no; then 5459 5432 cat >> confdefs.h <<\EOF … … 5469 5442 5470 5443 echo $ac_n "checking whether to have ratGB""... $ac_c" 1>&6 5471 echo "configure:54 72: checking whether to have ratGB" >&55444 echo "configure:5445: checking whether to have ratGB" >&5 5472 5445 if test "$with_ratGB" != yes && test "$enable_ratGB" != yes; then 5473 5446 echo "$ac_t""no" 1>&6 -
Singular/configure.in
r01cda73 rd3e630 642 642 [ --without-libfac do not use libfac (no primary decompositions)]) 643 643 AC_ARG_WITH( 644 namespaces,645 [ --with-namespaces do compile namespace support])646 AC_ARG_WITH(647 644 dl, 648 645 [ --without-dl do not use dynamic linking, modules, and kernel]) … … 963 960 (test "$ac_libfac_ok" = yes || test "$enable_libfac" = yes); then 964 961 AC_MSG_RESULT(yes) 965 AC_DEFINE(HAVE_LIBFAC_P)966 962 NEED_LIBS="-lsingfac ${NEED_LIBS}" 967 963 else 968 964 AC_MSG_RESULT(no) 965 AC_MSG_ERROR(can not build without libfac) 969 966 fi 970 967 elif test "${with_libfac}" = yes; then … … 972 969 (test "$ac_libfac_ok" = yes || test "$enable_libfac" = yes); then 973 970 AC_MSG_RESULT(yes) 974 AC_DEFINE(HAVE_LIBFAC_P)975 971 NEED_LIBS="-lsingfac ${NEED_LIBS}" 976 972 else … … 997 993 AC_DEFINE(HAVE_DBM) 998 994 AC_MSG_RESULT(yes) 999 else1000 AC_MSG_RESULT(no)1001 fi1002 1003 AC_MSG_CHECKING(whether to have namespaces)1004 if test "$with_namespaces" != no; then1005 AC_MSG_RESULT(yes)1006 AC_DEFINE(HAVE_NS)1007 995 else 1008 996 AC_MSG_RESULT(no) -
Singular/extra.cc
r01cda73 rd3e630 2 2 * Computer Algebra System SINGULAR * 3 3 *****************************************/ 4 /* $Id: extra.cc,v 1.3 09 2009-07-23 09:14:52Singular Exp $ */4 /* $Id: extra.cc,v 1.310 2009-07-28 14:18:33 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: general interface to internals of Singular ("system" command) … … 291 291 #ifdef HAVE_FACTORY 292 292 TEST_FOR("factory") 293 #endif 294 #ifdef HAVE_LIBFAC_P 295 TEST_FOR("libfac") 293 //TEST_FOR("libfac") 296 294 #endif 297 295 #ifdef HAVE_MPSR … … 307 305 TEST_FOR("MAC_ORDER"); 308 306 #endif 309 #ifdef HAVE_NS307 // unconditional since 3-1-0-6 310 308 TEST_FOR("Namespaces"); 311 #endif312 309 #ifdef HAVE_DYNAMIC_LOADING 313 310 TEST_FOR("DynamicLoading"); … … 555 552 /*==================== neworder =============================*/ 556 553 // should go below 557 #ifdef HAVE_ LIBFAC_P554 #ifdef HAVE_FACTORY 558 555 if(strcmp(sys_cmd,"neworder")==0) 559 556 { … … 2328 2325 else 2329 2326 #endif 2330 /*==================== lib ==================================*/2331 #if !defined(HAVE_NS)2332 if(strcmp(sys_cmd,"LIB")==0)2333 {2334 idhdl hh=idroot->get((char*)h->Data(),0);2335 if ((hh!=NULL)&&(IDTYP(hh)==PROC_CMD))2336 {2337 res->rtyp=STRING_CMD;2338 char *r=iiGetLibName(IDPROC(hh));2339 if (r==NULL) r="";2340 res->data=omStrDup(r);2341 return FALSE;2342 }2343 else2344 Warn("`%s` not found",(char*)h->Data());2345 }2346 else2347 #endif2348 2327 /*==================== listall ===================================*/ 2349 2328 if(strcmp(sys_cmd,"listall")==0) … … 2351 2330 int showproc=0; 2352 2331 if ((h!=NULL) && (h->Typ()==INT_CMD)) showproc=(int)((long)h->Data()); 2353 #ifdef HAVE_NS2354 2332 listall(showproc); 2355 #else2356 idhdl hh=IDROOT;2357 while (hh!=NULL)2358 {2359 if (IDDATA(hh)==(void *)currRing) PrintS("(R)");2360 else PrintS(" ");2361 Print("::%s, typ %s level %d\n",2362 IDID(hh),Tok2Cmdname(IDTYP(hh)),IDLEV(hh));2363 hh=IDNEXT(hh);2364 }2365 hh=IDROOT;2366 while (hh!=NULL)2367 {2368 if ((IDTYP(hh)==RING_CMD)2369 || (IDTYP(hh)==QRING_CMD)2370 || (IDTYP(hh)==PACKAGE_CMD))2371 {2372 idhdl h2=IDRING(hh)->idroot;2373 while (h2!=NULL)2374 {2375 if (IDDATA(h2)==(void *)currRing) PrintS("(R)");2376 else PrintS(" ");2377 Print("%s::%s, typ %s level %d\n",2378 IDID(hh),IDID(h2),Tok2Cmdname(IDTYP(h2)),IDLEV(h2));2379 h2=IDNEXT(h2);2380 }2381 }2382 hh=IDNEXT(hh);2383 }2384 #endif /* HAVE_NS */2385 2333 return FALSE; 2386 2334 } -
Singular/fehelp.cc
r01cda73 rd3e630 4 4 /* 5 5 * ABSTRACT: help system 6 * versin $Id: fehelp.cc,v 1.5 8 2009-06-21 14:10:18Singular Exp $6 * versin $Id: fehelp.cc,v 1.59 2009-07-28 14:18:34 Singular Exp $ 7 7 */ 8 8 … … 777 777 778 778 yylpin = fp; 779 #ifdef HAVE_NS780 779 yylplex(str, libnamebuf, &lib_style, IDROOT, FALSE, GET_INFO); 781 #else782 yylplex(str, libnamebuf, &lib_style, GET_INFO);783 #endif /* HAVE_NS */784 780 reinit_yylp(); 785 781 if(lib_style == OLD_LIBSTYLE) … … 827 823 { 828 824 if (key == NULL || *key == '\0') return 0; 829 #ifdef HAVE_NS830 825 idhdl h=IDROOT->get(key,myynest); 831 #else832 idhdl h=idroot->get(key,myynest);833 #endif /* HAVE_NS */834 826 if ((h!=NULL) && (IDTYP(h)==PROC_CMD)) 835 827 { -
Singular/grammar.cc
r01cda73 rd3e630 259 259 const char *n=VoiceName(); 260 260 if (strcmp(n,"STDIN")==0) 261 Werror( "error occurred in %s: `%s`"261 Werror( "error occurred in or before %s: `%s`" 262 262 ,n, my_yylinebuf); 263 263 else 264 Werror( "error occurred in %s line %d: `%s`"264 Werror( "error occurred in or before %s line %d: `%s`" 265 265 ,n, yylineno, my_yylinebuf); 266 266 } … … 272 272 && (strncmp(fmt,"syntax",6)!=0)) 273 273 WerrorS(fmt); 274 Werror( "error occurred in %s line %d: `%s`"274 Werror( "error occurred in or before %s line %d: `%s`" 275 275 ,VoiceName(), yylineno, my_yylinebuf); 276 276 } … … 303 303 Werror("leaving %s",VoiceName()); 304 304 } 305 #ifdef HAVE_LIBFAC_P 305 #ifdef HAVE_FACTORY 306 // libfac: 306 307 extern int libfac_interruptflag; 307 308 libfac_interruptflag=0; … … 464 465 #if YYDEBUG != 0 465 466 static const short yyrline[] = { 0, 466 36 5, 367, 401, 403, 405, 407, 411, 416, 418, 466,467 46 7, 468, 469, 470, 471, 472, 473, 477, 480, 481,468 48 2, 483, 484, 485, 486, 487, 488, 491, 497, 503,469 50 7, 511, 515, 535, 563, 587, 593, 601, 613, 619,470 62 4, 625, 626, 630, 634, 638, 642, 646, 650, 654,471 65 8, 662, 666, 670, 674, 678, 682, 686, 690, 694,472 69 8, 702, 706, 710, 714, 718, 722, 726, 730, 734,473 73 8, 742, 759, 765, 777, 785, 793, 798, 802, 806,474 81 0, 814, 818, 822, 826, 830, 834, 838, 842, 849,475 85 5, 857, 875, 877, 888, 889, 893, 903, 912, 916,476 9 20, 936, 940, 960, 978, 1003, 1014, 1018, 1020, 1033,477 10 41, 1051, 1095, 1097, 1105, 1107, 1113, 1124, 1129, 1132,478 11 38, 1144, 1152, 1166, 1187, 1209, 1214, 1218, 1223, 1227,479 1 231, 1235, 1239, 1243, 1248, 1257, 1266, 1275, 1284, 1293,480 1 302, 1311, 1329, 1335, 1339, 1382, 1391, 1405, 1405, 1407,481 14 83, 1490, 1519, 1532, 1549, 1558, 1563, 1570, 1582, 1601,482 1 613, 1633, 1656, 1663, 1674, 1682467 366, 368, 402, 404, 406, 408, 412, 417, 419, 467, 468 468, 469, 470, 471, 472, 473, 474, 478, 481, 482, 469 483, 484, 485, 486, 487, 488, 489, 492, 498, 504, 470 508, 512, 516, 536, 564, 588, 594, 602, 614, 620, 471 625, 626, 627, 631, 635, 639, 643, 647, 651, 655, 472 659, 663, 667, 671, 675, 679, 683, 687, 691, 695, 473 699, 703, 707, 711, 715, 719, 723, 727, 731, 735, 474 739, 743, 760, 766, 778, 786, 794, 799, 803, 807, 475 811, 815, 819, 823, 827, 831, 835, 839, 843, 850, 476 856, 858, 876, 878, 889, 890, 894, 900, 905, 909, 477 913, 929, 933, 949, 963, 984, 991, 995, 997, 1010, 478 1018, 1028, 1072, 1074, 1082, 1084, 1090, 1101, 1106, 1109, 479 1115, 1121, 1129, 1141, 1158, 1176, 1181, 1185, 1190, 1194, 480 1198, 1202, 1206, 1210, 1215, 1221, 1227, 1233, 1239, 1245, 481 1251, 1257, 1269, 1275, 1279, 1318, 1327, 1341, 1341, 1343, 482 1419, 1426, 1455, 1468, 1485, 1494, 1499, 1506, 1518, 1537, 483 1549, 1569, 1592, 1599, 1610, 1618 483 484 }; 484 485 #endif … … 1580 1581 1581 1582 case 2: 1582 #line 36 8"grammar.y"1583 #line 369 "grammar.y" 1583 1584 { 1584 1585 if (timerv) … … 1614 1615 break;} 1615 1616 case 4: 1616 #line 40 4"grammar.y"1617 #line 405 "grammar.y" 1617 1618 {currentVoice->ifsw=0;; 1618 1619 break;} 1619 1620 case 5: 1620 #line 40 6"grammar.y"1621 #line 407 "grammar.y" 1621 1622 { yyvsp[-1].lv.CleanUp(); currentVoice->ifsw=0;; 1622 1623 break;} 1623 1624 case 6: 1624 #line 40 8"grammar.y"1625 #line 409 "grammar.y" 1625 1626 { 1626 1627 YYACCEPT; … … 1628 1629 break;} 1629 1630 case 7: 1630 #line 41 2"grammar.y"1631 #line 413 "grammar.y" 1631 1632 { 1632 1633 currentVoice->ifsw=0; … … 1635 1636 break;} 1636 1637 case 8: 1637 #line 41 7"grammar.y"1638 #line 418 "grammar.y" 1638 1639 {currentVoice->ifsw=0;; 1639 1640 break;} 1640 1641 case 9: 1641 #line 4 19"grammar.y"1642 #line 420 "grammar.y" 1642 1643 { 1643 1644 #ifdef SIQ … … 1687 1688 break;} 1688 1689 case 17: 1689 #line 47 4"grammar.y"1690 #line 475 "grammar.y" 1690 1691 {if (currentVoice!=NULL) currentVoice->ifsw=0;; 1691 1692 break;} 1692 1693 case 18: 1693 #line 47 7"grammar.y"1694 #line 478 "grammar.y" 1694 1695 { omFree((ADDRESS)yyvsp[0].name); ; 1695 1696 break;} 1696 1697 case 28: 1697 #line 49 2"grammar.y"1698 #line 493 "grammar.y" 1698 1699 { 1699 1700 if(iiAssign(&yyvsp[-1].lv,&yyvsp[0].lv)) YYERROR; … … 1701 1702 break;} 1702 1703 case 29: 1703 #line 499"grammar.y"1704 #line 500 "grammar.y" 1704 1705 { 1705 1706 if (currRing==NULL) MYYERROR("no ring active"); … … 1708 1709 break;} 1709 1710 case 30: 1710 #line 50 4"grammar.y"1711 #line 505 "grammar.y" 1711 1712 { 1712 1713 syMake(&yyval.lv,yyvsp[0].name); … … 1714 1715 break;} 1715 1716 case 31: 1716 #line 50 8"grammar.y"1717 #line 509 "grammar.y" 1717 1718 { 1718 1719 if(iiExprArith2(&yyval.lv, &yyvsp[-2].lv, COLONCOLON, &yyvsp[0].lv)) YYERROR; … … 1720 1721 break;} 1721 1722 case 32: 1722 #line 51 2"grammar.y"1723 #line 513 "grammar.y" 1723 1724 { 1724 1725 if(iiExprArith1(&yyval.lv,&yyvsp[-2].lv,'(')) YYERROR; … … 1726 1727 break;} 1727 1728 case 33: 1728 #line 51 6"grammar.y"1729 #line 517 "grammar.y" 1729 1730 { 1730 1731 if (yyvsp[-3].lv.rtyp==LIB_CMD) … … 1748 1749 break;} 1749 1750 case 34: 1750 #line 53 6"grammar.y"1751 #line 537 "grammar.y" 1751 1752 { 1752 1753 if (currRingHdl==NULL) MYYERROR("no ring active"); … … 1778 1779 break;} 1779 1780 case 35: 1780 #line 56 4"grammar.y"1781 #line 565 "grammar.y" 1781 1782 { 1782 1783 memset(&yyval.lv,0,sizeof(yyval.lv)); … … 1804 1805 break;} 1805 1806 case 36: 1806 #line 58 8"grammar.y"1807 #line 589 "grammar.y" 1807 1808 { 1808 1809 memset(&yyval.lv,0,sizeof(yyval.lv)); … … 1812 1813 break;} 1813 1814 case 37: 1814 #line 59 4"grammar.y"1815 #line 595 "grammar.y" 1815 1816 { 1816 1817 memset(&yyval.lv,0,sizeof(yyval.lv)); … … 1820 1821 break;} 1821 1822 case 38: 1822 #line 60 3"grammar.y"1823 #line 604 "grammar.y" 1823 1824 { 1824 1825 leftv v = &yyvsp[-2].lv; … … 1833 1834 break;} 1834 1835 case 39: 1835 #line 61 4"grammar.y"1836 #line 615 "grammar.y" 1836 1837 { 1837 1838 yyval.lv = yyvsp[0].lv; … … 1839 1840 break;} 1840 1841 case 40: 1841 #line 62 0"grammar.y"1842 #line 621 "grammar.y" 1842 1843 { 1843 1844 /*if ($1.typ == eunknown) YYERROR;*/ … … 1846 1847 break;} 1847 1848 case 41: 1848 #line 62 4"grammar.y"1849 #line 625 "grammar.y" 1849 1850 { yyval.lv = yyvsp[0].lv; ; 1850 1851 break;} 1851 1852 case 42: 1852 #line 62 5"grammar.y"1853 #line 626 "grammar.y" 1853 1854 { yyval.lv = yyvsp[-1].lv; ; 1854 1855 break;} 1855 1856 case 43: 1856 #line 62 7"grammar.y"1857 #line 628 "grammar.y" 1857 1858 { 1858 1859 if(iiExprArith3(&yyval.lv,'[',&yyvsp[-5].lv,&yyvsp[-3].lv,&yyvsp[-1].lv)) YYERROR; … … 1860 1861 break;} 1861 1862 case 44: 1862 #line 63 1"grammar.y"1863 #line 632 "grammar.y" 1863 1864 { 1864 1865 if(iiExprArith2(&yyval.lv,&yyvsp[-3].lv,'[',&yyvsp[-1].lv)) YYERROR; … … 1866 1867 break;} 1867 1868 case 45: 1868 #line 63 5"grammar.y"1869 #line 636 "grammar.y" 1869 1870 { 1870 1871 if(iiExprArith1(&yyval.lv,&yyvsp[-1].lv,yyvsp[-3].i)) YYERROR; … … 1872 1873 break;} 1873 1874 case 46: 1874 #line 6 39"grammar.y"1875 #line 640 "grammar.y" 1875 1876 { 1876 1877 if(iiExprArithM(&yyval.lv,&yyvsp[-1].lv,yyvsp[-3].i)) YYERROR; … … 1878 1879 break;} 1879 1880 case 47: 1880 #line 64 3"grammar.y"1881 #line 644 "grammar.y" 1881 1882 { 1882 1883 if(iiExprArithM(&yyval.lv,NULL,yyvsp[-2].i)) YYERROR; … … 1884 1885 break;} 1885 1886 case 48: 1886 #line 64 7"grammar.y"1887 #line 648 "grammar.y" 1887 1888 { 1888 1889 if(iiExprArith1(&yyval.lv,&yyvsp[-1].lv,yyvsp[-3].i)) YYERROR; … … 1890 1891 break;} 1891 1892 case 49: 1892 #line 65 1"grammar.y"1893 #line 652 "grammar.y" 1893 1894 { 1894 1895 if(iiExprArithM(&yyval.lv,&yyvsp[-1].lv,yyvsp[-3].i)) YYERROR; … … 1896 1897 break;} 1897 1898 case 50: 1898 #line 65 5"grammar.y"1899 #line 656 "grammar.y" 1899 1900 { 1900 1901 if(iiExprArithM(&yyval.lv,NULL,yyvsp[-2].i)) YYERROR; … … 1902 1903 break;} 1903 1904 case 51: 1904 #line 6 59"grammar.y"1905 #line 660 "grammar.y" 1905 1906 { 1906 1907 if(iiExprArith1(&yyval.lv,&yyvsp[-1].lv,yyvsp[-3].i)) YYERROR; … … 1908 1909 break;} 1909 1910 case 52: 1910 #line 66 3"grammar.y"1911 #line 664 "grammar.y" 1911 1912 { 1912 1913 if(iiExprArith2(&yyval.lv,&yyvsp[-3].lv,yyvsp[-5].i,&yyvsp[-1].lv,TRUE)) YYERROR; … … 1914 1915 break;} 1915 1916 case 53: 1916 #line 66 7"grammar.y"1917 #line 668 "grammar.y" 1917 1918 { 1918 1919 if(iiExprArith3(&yyval.lv,yyvsp[-7].i,&yyvsp[-5].lv,&yyvsp[-3].lv,&yyvsp[-1].lv)) YYERROR; … … 1920 1921 break;} 1921 1922 case 54: 1922 #line 67 1"grammar.y"1923 #line 672 "grammar.y" 1923 1924 { 1924 1925 if(iiExprArith2(&yyval.lv,&yyvsp[-3].lv,yyvsp[-5].i,&yyvsp[-1].lv,TRUE)) YYERROR; … … 1926 1927 break;} 1927 1928 case 55: 1928 #line 67 5"grammar.y"1929 #line 676 "grammar.y" 1929 1930 { 1930 1931 if(iiExprArith3(&yyval.lv,yyvsp[-7].i,&yyvsp[-5].lv,&yyvsp[-3].lv,&yyvsp[-1].lv)) YYERROR; … … 1932 1933 break;} 1933 1934 case 56: 1934 #line 6 79"grammar.y"1935 #line 680 "grammar.y" 1935 1936 { 1936 1937 if(iiExprArith1(&yyval.lv,&yyvsp[-1].lv,yyvsp[-3].i)) YYERROR; … … 1938 1939 break;} 1939 1940 case 57: 1940 #line 68 3"grammar.y"1941 #line 684 "grammar.y" 1941 1942 { 1942 1943 if(iiExprArith1(&yyval.lv,&yyvsp[-1].lv,yyvsp[-3].i)) YYERROR; … … 1944 1945 break;} 1945 1946 case 58: 1946 #line 68 7"grammar.y"1947 #line 688 "grammar.y" 1947 1948 { 1948 1949 if(iiExprArith2(&yyval.lv,&yyvsp[-3].lv,yyvsp[-5].i,&yyvsp[-1].lv,TRUE)) YYERROR; … … 1950 1951 break;} 1951 1952 case 59: 1952 #line 69 1"grammar.y"1953 #line 692 "grammar.y" 1953 1954 { 1954 1955 if(iiExprArith1(&yyval.lv,&yyvsp[-1].lv,yyvsp[-3].i)) YYERROR; … … 1956 1957 break;} 1957 1958 case 60: 1958 #line 69 5"grammar.y"1959 #line 696 "grammar.y" 1959 1960 { 1960 1961 if(iiExprArith2(&yyval.lv,&yyvsp[-3].lv,yyvsp[-5].i,&yyvsp[-1].lv,TRUE)) YYERROR; … … 1962 1963 break;} 1963 1964 case 61: 1964 #line 699"grammar.y"1965 #line 700 "grammar.y" 1965 1966 { 1966 1967 if(iiExprArith3(&yyval.lv,yyvsp[-7].i,&yyvsp[-5].lv,&yyvsp[-3].lv,&yyvsp[-1].lv)) YYERROR; … … 1968 1969 break;} 1969 1970 case 62: 1970 #line 70 3"grammar.y"1971 #line 704 "grammar.y" 1971 1972 { 1972 1973 if(iiExprArith3(&yyval.lv,yyvsp[-7].i,&yyvsp[-5].lv,&yyvsp[-3].lv,&yyvsp[-1].lv)) YYERROR; … … 1974 1975 break;} 1975 1976 case 63: 1976 #line 70 7"grammar.y"1977 #line 708 "grammar.y" 1977 1978 { 1978 1979 if(iiExprArithM(&yyval.lv,NULL,yyvsp[-2].i)) YYERROR; … … 1980 1981 break;} 1981 1982 case 64: 1982 #line 71 1"grammar.y"1983 #line 712 "grammar.y" 1983 1984 { 1984 1985 if(iiExprArithM(&yyval.lv,&yyvsp[-1].lv,yyvsp[-3].i)) YYERROR; … … 1986 1987 break;} 1987 1988 case 65: 1988 #line 71 5"grammar.y"1989 #line 716 "grammar.y" 1989 1990 { 1990 1991 if(iiExprArith3(&yyval.lv,MATRIX_CMD,&yyvsp[-5].lv,&yyvsp[-3].lv,&yyvsp[-1].lv)) YYERROR; … … 1992 1993 break;} 1993 1994 case 66: 1994 #line 7 19"grammar.y"1995 #line 720 "grammar.y" 1995 1996 { 1996 1997 if(iiExprArith1(&yyval.lv,&yyvsp[-1].lv,MATRIX_CMD)) YYERROR; … … 1998 1999 break;} 1999 2000 case 67: 2000 #line 72 3"grammar.y"2001 #line 724 "grammar.y" 2001 2002 { 2002 2003 if(iiExprArith3(&yyval.lv,INTMAT_CMD,&yyvsp[-5].lv,&yyvsp[-3].lv,&yyvsp[-1].lv)) YYERROR; … … 2004 2005 break;} 2005 2006 case 68: 2006 #line 72 7"grammar.y"2007 #line 728 "grammar.y" 2007 2008 { 2008 2009 if(iiExprArith1(&yyval.lv,&yyvsp[-1].lv,INTMAT_CMD)) YYERROR; … … 2010 2011 break;} 2011 2012 case 69: 2012 #line 73 1"grammar.y"2013 #line 732 "grammar.y" 2013 2014 { 2014 2015 if(iiExprArith3(&yyval.lv,RING_CMD,&yyvsp[-5].lv,&yyvsp[-3].lv,&yyvsp[-1].lv)) YYERROR; … … 2016 2017 break;} 2017 2018 case 70: 2018 #line 73 5"grammar.y"2019 #line 736 "grammar.y" 2019 2020 { 2020 2021 if(iiExprArith1(&yyval.lv,&yyvsp[-1].lv,RING_CMD)) YYERROR; … … 2022 2023 break;} 2023 2024 case 71: 2024 #line 7 39"grammar.y"2025 #line 740 "grammar.y" 2025 2026 { 2026 2027 yyval.lv=yyvsp[-1].lv; … … 2028 2029 break;} 2029 2030 case 72: 2030 #line 74 3"grammar.y"2031 #line 744 "grammar.y" 2031 2032 { 2032 2033 #ifdef SIQ … … 2047 2048 break;} 2048 2049 case 73: 2049 #line 76 0"grammar.y"2050 #line 761 "grammar.y" 2050 2051 { 2051 2052 #ifdef SIQ … … 2055 2056 break;} 2056 2057 case 74: 2057 #line 76 6"grammar.y"2058 #line 767 "grammar.y" 2058 2059 { 2059 2060 #ifdef SIQ … … 2067 2068 break;} 2068 2069 case 75: 2069 #line 77 8"grammar.y"2070 #line 779 "grammar.y" 2070 2071 { 2071 2072 #ifdef SIQ … … 2075 2076 break;} 2076 2077 case 76: 2077 #line 78 6"grammar.y"2078 #line 787 "grammar.y" 2078 2079 { 2079 2080 #ifdef SIQ … … 2083 2084 break;} 2084 2085 case 77: 2085 #line 79 5"grammar.y"2086 #line 796 "grammar.y" 2086 2087 { 2087 2088 if(iiExprArith1(&yyval.lv,&yyvsp[-1].lv,PLUSPLUS)) YYERROR; … … 2089 2090 break;} 2090 2091 case 78: 2091 #line 799"grammar.y"2092 #line 800 "grammar.y" 2092 2093 { 2093 2094 if(iiExprArith1(&yyval.lv,&yyvsp[-1].lv,MINUSMINUS)) YYERROR; … … 2095 2096 break;} 2096 2097 case 79: 2097 #line 80 3"grammar.y"2098 #line 804 "grammar.y" 2098 2099 { 2099 2100 if(iiExprArith2(&yyval.lv,&yyvsp[-2].lv,'+',&yyvsp[0].lv)) YYERROR; … … 2101 2102 break;} 2102 2103 case 80: 2103 #line 80 7"grammar.y"2104 #line 808 "grammar.y" 2104 2105 { 2105 2106 if(iiExprArith2(&yyval.lv,&yyvsp[-2].lv,'-',&yyvsp[0].lv)) YYERROR; … … 2107 2108 break;} 2108 2109 case 81: 2109 #line 81 1"grammar.y"2110 #line 812 "grammar.y" 2110 2111 { 2111 2112 if(iiExprArith2(&yyval.lv,&yyvsp[-2].lv,yyvsp[-1].i,&yyvsp[0].lv)) YYERROR; … … 2113 2114 break;} 2114 2115 case 82: 2115 #line 81 5"grammar.y"2116 #line 816 "grammar.y" 2116 2117 { 2117 2118 if(iiExprArith2(&yyval.lv,&yyvsp[-2].lv,'^',&yyvsp[0].lv)) YYERROR; … … 2119 2120 break;} 2120 2121 case 83: 2121 #line 8 19"grammar.y"2122 #line 820 "grammar.y" 2122 2123 { 2123 2124 if(iiExprArith2(&yyval.lv,&yyvsp[-2].lv,yyvsp[-1].i,&yyvsp[0].lv)) YYERROR; … … 2125 2126 break;} 2126 2127 case 84: 2127 #line 82 3"grammar.y"2128 #line 824 "grammar.y" 2128 2129 { 2129 2130 if(iiExprArith2(&yyval.lv,&yyvsp[-2].lv,yyvsp[-1].i,&yyvsp[0].lv)) YYERROR; … … 2131 2132 break;} 2132 2133 case 85: 2133 #line 82 7"grammar.y"2134 #line 828 "grammar.y" 2134 2135 { 2135 2136 if(iiExprArith2(&yyval.lv,&yyvsp[-2].lv,NOTEQUAL,&yyvsp[0].lv)) YYERROR; … … 2137 2138 break;} 2138 2139 case 86: 2139 #line 83 1"grammar.y"2140 #line 832 "grammar.y" 2140 2141 { 2141 2142 if(iiExprArith2(&yyval.lv,&yyvsp[-2].lv,EQUAL_EQUAL,&yyvsp[0].lv)) YYERROR; … … 2143 2144 break;} 2144 2145 case 87: 2145 #line 83 5"grammar.y"2146 #line 836 "grammar.y" 2146 2147 { 2147 2148 if(iiExprArith2(&yyval.lv,&yyvsp[-2].lv,DOTDOT,&yyvsp[0].lv)) YYERROR; … … 2149 2150 break;} 2150 2151 case 88: 2151 #line 8 39"grammar.y"2152 #line 840 "grammar.y" 2152 2153 { 2153 2154 if(iiExprArith2(&yyval.lv,&yyvsp[-2].lv,':',&yyvsp[0].lv)) YYERROR; … … 2155 2156 break;} 2156 2157 case 89: 2157 #line 84 3"grammar.y"2158 #line 844 "grammar.y" 2158 2159 { 2159 2160 memset(&yyval.lv,0,sizeof(yyval.lv)); … … 2164 2165 break;} 2165 2166 case 90: 2166 #line 85 0"grammar.y"2167 #line 851 "grammar.y" 2167 2168 { 2168 2169 if(iiExprArith1(&yyval.lv,&yyvsp[0].lv,'-')) YYERROR; … … 2170 2171 break;} 2171 2172 case 91: 2172 #line 85 6"grammar.y"2173 #line 857 "grammar.y" 2173 2174 { yyval.lv = yyvsp[-1].lv; ; 2174 2175 break;} 2175 2176 case 92: 2176 #line 85 8"grammar.y"2177 #line 859 "grammar.y" 2177 2178 { 2178 2179 if (yyvsp[-1].lv.rtyp==0) … … 2191 2192 break;} 2192 2193 case 94: 2193 #line 87 8"grammar.y"2194 #line 879 "grammar.y" 2194 2195 { 2195 2196 if (yyvsp[-1].lv.Typ()!=STRING_CMD) … … 2202 2203 break;} 2203 2204 case 97: 2204 #line 895 "grammar.y" 2205 { 2206 #ifdef HAVE_NS 2205 #line 896 "grammar.y" 2206 { 2207 2207 if (iiDeclCommand(&yyval.lv,&yyvsp[0].lv,myynest,yyvsp[-1].i,&(yyvsp[0].lv.req_packhdl->idroot))) 2208 2208 YYERROR; 2209 #else2210 if (iiDeclCommand(&yyval.lv,&yyvsp[0].lv,myynest,yyvsp[-1].i,&IDROOT)) YYERROR;2211 #endif2212 2209 ; 2213 2210 break;} 2214 2211 case 98: 2215 #line 904 "grammar.y" 2216 { 2217 #ifdef HAVE_NS 2212 #line 901 "grammar.y" 2213 { 2218 2214 if (iiDeclCommand(&yyval.lv,&yyvsp[0].lv,myynest,yyvsp[-1].i,&(yyvsp[0].lv.req_packhdl->idroot))) 2219 2215 YYERROR; 2220 #else2221 if (iiDeclCommand(&yyval.lv,&yyvsp[0].lv,myynest,yyvsp[-1].i,&IDROOT)) YYERROR;2222 #endif2223 2216 ; 2224 2217 break;} 2225 2218 case 99: 2226 #line 9 13"grammar.y"2219 #line 906 "grammar.y" 2227 2220 { 2228 2221 if (iiDeclCommand(&yyval.lv,&yyvsp[0].lv,myynest,yyvsp[-1].i,&(currRing->idroot), TRUE)) YYERROR; … … 2230 2223 break;} 2231 2224 case 100: 2232 #line 91 7"grammar.y"2225 #line 910 "grammar.y" 2233 2226 { 2234 2227 if (iiDeclCommand(&yyval.lv,&yyvsp[0].lv,myynest,yyvsp[-1].i,&(currRing->idroot), TRUE)) YYERROR; … … 2236 2229 break;} 2237 2230 case 101: 2238 #line 9 21"grammar.y"2231 #line 914 "grammar.y" 2239 2232 { 2240 2233 if (iiDeclCommand(&yyval.lv,&yyvsp[-6].lv,myynest,yyvsp[-7].i,&(currRing->idroot), TRUE)) YYERROR; … … 2254 2247 break;} 2255 2248 case 102: 2256 #line 93 7"grammar.y"2249 #line 930 "grammar.y" 2257 2250 { 2258 2251 if (iiDeclCommand(&yyval.lv,&yyvsp[0].lv,myynest,yyvsp[-1].i,&(currRing->idroot), TRUE)) YYERROR; … … 2260 2253 break;} 2261 2254 case 103: 2262 #line 9 41"grammar.y"2255 #line 934 "grammar.y" 2263 2256 { 2264 2257 int r; TESTSETINT(yyvsp[-4].lv,r); … … 2268 2261 if (c < 0) 2269 2262 MYYERROR("cols must be greater than -1"); 2270 #ifdef HAVE_NS2271 2263 if (iiDeclCommand(&yyval.lv,&yyvsp[-6].lv,myynest,yyvsp[-7].i,&(yyvsp[-6].lv.req_packhdl->idroot))) 2272 2264 YYERROR; 2273 #else2274 if (iiDeclCommand(&yyval.lv,&yyvsp[-6].lv,myynest,yyvsp[-7].i,&IDROOT)) YYERROR;2275 #endif2276 2265 leftv v=&yyval.lv; 2277 2266 idhdl h=(idhdl)v->data; … … 2282 2271 break;} 2283 2272 case 104: 2284 #line 961 "grammar.y" 2285 { 2286 #ifdef HAVE_NS 2273 #line 950 "grammar.y" 2274 { 2287 2275 if (iiDeclCommand(&yyval.lv,&yyvsp[0].lv,myynest,yyvsp[-1].i,&(yyvsp[0].lv.req_packhdl->idroot))) 2288 2276 YYERROR; 2289 #else2290 if (iiDeclCommand(&yyval.lv,&yyvsp[0].lv,myynest,yyvsp[-1].i,&IDROOT)) YYERROR;2291 #endif2292 2277 leftv v=&yyval.lv; 2293 2278 idhdl h; … … 2302 2287 break;} 2303 2288 case 105: 2304 #line 9 79"grammar.y"2289 #line 964 "grammar.y" 2305 2290 { 2306 2291 int t=yyvsp[-2].lv.Typ(); … … 2314 2299 else 2315 2300 { 2316 #ifdef HAVE_NS2317 2301 if (iiDeclCommand(&r,&yyvsp[0].lv,myynest,t,&(yyvsp[0].lv.req_packhdl->idroot))) 2318 2302 YYERROR; 2319 #else2320 if (iiDeclCommand(&r,&yyvsp[0].lv,myynest,t,&IDROOT)) YYERROR;2321 #endif2322 2303 } 2323 2304 leftv v=&yyvsp[-2].lv; … … 2329 2310 break;} 2330 2311 case 106: 2331 #line 1004 "grammar.y" 2332 { 2333 #ifdef HAVE_NS 2312 #line 985 "grammar.y" 2313 { 2334 2314 if (iiDeclCommand(&yyval.lv,&yyvsp[0].lv,myynest,yyvsp[-1].i,&(yyvsp[0].lv.req_packhdl->idroot))) 2335 2315 YYERROR; 2336 #else2337 if (iiDeclCommand(&yyval.lv,&yyvsp[0].lv,myynest,yyvsp[-1].i,&IDROOT)) YYERROR;2338 #endif2339 2316 ; 2340 2317 break;} 2341 2318 case 109: 2342 #line 1021"grammar.y"2319 #line 998 "grammar.y" 2343 2320 { 2344 2321 leftv v = &yyvsp[-3].lv; … … 2353 2330 break;} 2354 2331 case 110: 2355 #line 10 35"grammar.y"2332 #line 1012 "grammar.y" 2356 2333 { 2357 2334 // let rInit take care of any errors … … 2360 2337 break;} 2361 2338 case 111: 2362 #line 10 43"grammar.y"2339 #line 1020 "grammar.y" 2363 2340 { 2364 2341 memset(&yyval.lv,0,sizeof(yyval.lv)); … … 2371 2348 break;} 2372 2349 case 112: 2373 #line 10 52"grammar.y"2350 #line 1029 "grammar.y" 2374 2351 { 2375 2352 memset(&yyval.lv,0,sizeof(yyval.lv)); … … 2415 2392 break;} 2416 2393 case 114: 2417 #line 10 98"grammar.y"2394 #line 1075 "grammar.y" 2418 2395 { 2419 2396 yyval.lv = yyvsp[-2].lv; … … 2423 2400 break;} 2424 2401 case 116: 2425 #line 1 108"grammar.y"2402 #line 1085 "grammar.y" 2426 2403 { 2427 2404 yyval.lv = yyvsp[-1].lv; … … 2429 2406 break;} 2430 2407 case 117: 2431 #line 1 114"grammar.y"2408 #line 1091 "grammar.y" 2432 2409 { 2433 2410 expected_parms = TRUE; … … 2435 2412 break;} 2436 2413 case 118: 2437 #line 11 26"grammar.y"2414 #line 1103 "grammar.y" 2438 2415 { if (yyvsp[-1].i != '<') YYERROR; 2439 2416 if((feFilePending=feFopen(yyvsp[0].name,"r",NULL,TRUE))==NULL) YYERROR; ; 2440 2417 break;} 2441 2418 case 119: 2442 #line 11 29"grammar.y"2419 #line 1106 "grammar.y" 2443 2420 { newFile(yyvsp[-2].name,feFilePending); ; 2444 2421 break;} 2445 2422 case 120: 2446 #line 11 34"grammar.y"2423 #line 1111 "grammar.y" 2447 2424 { 2448 2425 feHelp(yyvsp[-1].name); … … 2451 2428 break;} 2452 2429 case 121: 2453 #line 11 39"grammar.y"2430 #line 1116 "grammar.y" 2454 2431 { 2455 2432 feHelp(NULL); … … 2457 2434 break;} 2458 2435 case 122: 2459 #line 11 46"grammar.y"2436 #line 1123 "grammar.y" 2460 2437 { 2461 2438 singular_example(yyvsp[-1].name); … … 2464 2441 break;} 2465 2442 case 123: 2466 #line 1154 "grammar.y" 2467 { 2468 #ifdef HAVE_NS 2443 #line 1131 "grammar.y" 2444 { 2469 2445 if (basePack!=yyvsp[0].lv.req_packhdl) 2470 2446 { … … 2472 2448 } 2473 2449 else 2474 #endif /* HAVE_NS */2475 2450 if (iiExport(&yyvsp[0].lv,0)) YYERROR; 2476 2451 ; 2477 2452 break;} 2478 2453 case 124: 2479 #line 11 68"grammar.y"2454 #line 1143 "grammar.y" 2480 2455 { 2481 2456 leftv v=&yyvsp[0].lv; … … 2490 2465 else 2491 2466 { 2492 #ifdef HAVE_NS2493 2467 killhdl((idhdl)v->data,v->req_packhdl); 2494 #else2495 killhdl((idhdl)v->data);2496 #endif2497 2468 } 2498 2469 ; 2499 2470 break;} 2500 2471 case 125: 2501 #line 11 88"grammar.y"2472 #line 1159 "grammar.y" 2502 2473 { 2503 2474 leftv v=&yyvsp[0].lv; … … 2512 2483 else 2513 2484 { 2514 #ifdef HAVE_NS2515 2485 killhdl((idhdl)v->data,v->req_packhdl); 2516 #else2517 killhdl((idhdl)v->data);2518 #endif2519 2486 } 2520 2487 ; 2521 2488 break;} 2522 2489 case 126: 2523 #line 1 211"grammar.y"2490 #line 1178 "grammar.y" 2524 2491 { 2525 2492 list_cmd(yyvsp[-1].i,NULL,"// ",TRUE); … … 2527 2494 break;} 2528 2495 case 127: 2529 #line 1 215"grammar.y"2496 #line 1182 "grammar.y" 2530 2497 { 2531 2498 list_cmd(yyvsp[-1].i,NULL,"// ",TRUE); … … 2533 2500 break;} 2534 2501 case 128: 2535 #line 1 219"grammar.y"2502 #line 1186 "grammar.y" 2536 2503 { 2537 2504 if (yyvsp[-1].i==QRING_CMD) yyvsp[-1].i=RING_CMD; … … 2540 2507 break;} 2541 2508 case 129: 2542 #line 1 224"grammar.y"2509 #line 1191 "grammar.y" 2543 2510 { 2544 2511 list_cmd(yyvsp[-1].i,NULL,"// ",TRUE); … … 2546 2513 break;} 2547 2514 case 130: 2548 #line 1 228"grammar.y"2515 #line 1195 "grammar.y" 2549 2516 { 2550 2517 list_cmd(RING_CMD,NULL,"// ",TRUE); … … 2552 2519 break;} 2553 2520 case 131: 2554 #line 1 232"grammar.y"2521 #line 1199 "grammar.y" 2555 2522 { 2556 2523 list_cmd(MATRIX_CMD,NULL,"// ",TRUE); … … 2558 2525 break;} 2559 2526 case 132: 2560 #line 12 36"grammar.y"2527 #line 1203 "grammar.y" 2561 2528 { 2562 2529 list_cmd(INTMAT_CMD,NULL,"// ",TRUE); … … 2564 2531 break;} 2565 2532 case 133: 2566 #line 12 40"grammar.y"2533 #line 1207 "grammar.y" 2567 2534 { 2568 2535 list_cmd(PROC_CMD,NULL,"// ",TRUE); … … 2570 2537 break;} 2571 2538 case 134: 2572 #line 12 44"grammar.y"2539 #line 1211 "grammar.y" 2573 2540 { 2574 2541 list_cmd(0,yyvsp[-1].lv.Fullname(),"// ",TRUE); … … 2577 2544 break;} 2578 2545 case 135: 2579 #line 1249 "grammar.y" 2580 { 2581 #ifdef HAVE_NS 2582 //PrintS("?????\n"); 2546 #line 1216 "grammar.y" 2547 { 2583 2548 if(yyvsp[-3].lv.Typ() == PACKAGE_CMD) 2584 2549 list_cmd(yyvsp[-1].i,NULL,"// ",TRUE); 2585 #endif /* HAVE_NS */2586 2550 yyvsp[-3].lv.CleanUp(); 2587 2551 ; 2588 2552 break;} 2589 2553 case 136: 2590 #line 1258 "grammar.y" 2591 { 2592 #ifdef HAVE_NS 2593 //PrintS("?????\n"); 2554 #line 1222 "grammar.y" 2555 { 2594 2556 if(yyvsp[-3].lv.Typ() == PACKAGE_CMD) 2595 2557 list_cmd(yyvsp[-1].i,NULL,"// ",TRUE); 2596 #endif /* HAVE_NS */2597 2558 yyvsp[-3].lv.CleanUp(); 2598 2559 ; 2599 2560 break;} 2600 2561 case 137: 2601 #line 1267 "grammar.y" 2602 { 2603 #ifdef HAVE_NS 2604 //PrintS("?????\n"); 2562 #line 1228 "grammar.y" 2563 { 2605 2564 if(yyvsp[-3].lv.Typ() == PACKAGE_CMD) 2606 2565 list_cmd(yyvsp[-1].i,NULL,"// ",TRUE); 2607 #endif /* HAVE_NS */2608 2566 yyvsp[-3].lv.CleanUp(); 2609 2567 ; 2610 2568 break;} 2611 2569 case 138: 2612 #line 1276 "grammar.y" 2613 { 2614 #ifdef HAVE_NS 2615 //PrintS("?????\n"); 2570 #line 1234 "grammar.y" 2571 { 2616 2572 if(yyvsp[-3].lv.Typ() == PACKAGE_CMD) 2617 2573 list_cmd(yyvsp[-1].i,NULL,"// ",TRUE); 2618 #endif /* HAVE_NS */2619 2574 yyvsp[-3].lv.CleanUp(); 2620 2575 ; 2621 2576 break;} 2622 2577 case 139: 2623 #line 1285 "grammar.y" 2624 { 2625 #ifdef HAVE_NS 2626 //PrintS("?????\n"); 2578 #line 1240 "grammar.y" 2579 { 2627 2580 if(yyvsp[-3].lv.Typ() == PACKAGE_CMD) 2628 2581 list_cmd(yyvsp[-1].i,NULL,"// ",TRUE); 2629 #endif /* HAVE_NS */2630 2582 yyvsp[-3].lv.CleanUp(); 2631 2583 ; 2632 2584 break;} 2633 2585 case 140: 2634 #line 1294 "grammar.y" 2635 { 2636 #ifdef HAVE_NS 2637 //PrintS("?????\n"); 2586 #line 1246 "grammar.y" 2587 { 2638 2588 if(yyvsp[-3].lv.Typ() == PACKAGE_CMD) 2639 2589 list_cmd(yyvsp[-1].i,NULL,"// ",TRUE); 2640 #endif /* HAVE_NS */2641 2590 yyvsp[-3].lv.CleanUp(); 2642 2591 ; 2643 2592 break;} 2644 2593 case 141: 2645 #line 1303 "grammar.y" 2646 { 2647 #ifdef HAVE_NS 2648 //PrintS("?????\n"); 2594 #line 1252 "grammar.y" 2595 { 2649 2596 if(yyvsp[-3].lv.Typ() == PACKAGE_CMD) 2650 2597 list_cmd(yyvsp[-1].i,NULL,"// ",TRUE); 2651 #endif /* HAVE_NS */2652 2598 yyvsp[-3].lv.CleanUp(); 2653 2599 ; 2654 2600 break;} 2655 2601 case 142: 2656 #line 1312 "grammar.y" 2657 { 2658 #ifdef HAVE_NS 2659 //PrintS("?????\n"); 2602 #line 1258 "grammar.y" 2603 { 2660 2604 if(yyvsp[-3].lv.Typ() == PACKAGE_CMD) 2661 2605 list_cmd(yyvsp[-1].i,NULL,"// ",TRUE); 2662 #endif /* HAVE_NS */2663 2606 yyvsp[-3].lv.CleanUp(); 2664 2607 ; 2665 2608 break;} 2666 2609 case 143: 2667 #line 1 330 "grammar.y"2610 #line 1270 "grammar.y" 2668 2611 { 2669 2612 list_cmd(-1,NULL,"// ",TRUE); … … 2671 2614 break;} 2672 2615 case 144: 2673 #line 1 336 "grammar.y"2616 #line 1276 "grammar.y" 2674 2617 { yyInRingConstruction = TRUE; ; 2675 2618 break;} 2676 2619 case 145: 2677 #line 1 345 "grammar.y"2620 #line 1285 "grammar.y" 2678 2621 { 2679 2622 const char *ring_name = yyvsp[-6].lv.name; … … 2686 2629 if (b!=NULL) 2687 2630 { 2688 #ifdef HAVE_NS2689 2631 newRingHdl=enterid(ring_name, myynest, RING_CMD, 2690 2632 &(yyvsp[-6].lv.req_packhdl->idroot)); 2691 #else2692 newRingHdl=enterid(ring_name, myynest, RING_CMD, &IDROOT);2693 #endif2694 2633 yyvsp[-6].lv.CleanUp(); 2695 2634 if (newRingHdl!=NULL) … … 2715 2654 break;} 2716 2655 case 146: 2717 #line 13 83"grammar.y"2656 #line 1319 "grammar.y" 2718 2657 { 2719 2658 const char *ring_name = yyvsp[0].lv.name; … … 2724 2663 break;} 2725 2664 case 147: 2726 #line 13 93"grammar.y"2665 #line 1329 "grammar.y" 2727 2666 { 2728 2667 if ((yyvsp[-1].i!=LIB_CMD)||(iiLibCmd(yyvsp[0].name,TRUE,TRUE,TRUE))) … … 2737 2676 break;} 2738 2677 case 150: 2739 #line 1 409"grammar.y"2678 #line 1345 "grammar.y" 2740 2679 { 2741 2680 if ((yyvsp[-1].i==KEEPRING_CMD) && (myynest==0)) … … 2812 2751 break;} 2813 2752 case 151: 2814 #line 14 85"grammar.y"2753 #line 1421 "grammar.y" 2815 2754 { 2816 2755 if (yyvsp[0].lv.rtyp!=IDHDL) MYYERROR("identifier expected"); … … 2820 2759 break;} 2821 2760 case 152: 2822 #line 14 91"grammar.y"2761 #line 1427 "grammar.y" 2823 2762 { 2824 2763 //Print("typ is %d, rtyp:%d\n",$1.Typ(),$1.rtyp); … … 2845 2784 break;} 2846 2785 case 153: 2847 #line 1 520"grammar.y"2786 #line 1456 "grammar.y" 2848 2787 { 2849 2788 int i; TESTSETINT(yyvsp[-2].lv,i); … … 2860 2799 break;} 2861 2800 case 154: 2862 #line 1 533"grammar.y"2801 #line 1469 "grammar.y" 2863 2802 { 2864 2803 if (currentVoice->ifsw==1) … … 2879 2818 break;} 2880 2819 case 155: 2881 #line 1 550"grammar.y"2820 #line 1486 "grammar.y" 2882 2821 { 2883 2822 int i; TESTSETINT(yyvsp[-2].lv,i); … … 2890 2829 break;} 2891 2830 case 156: 2892 #line 1 559"grammar.y"2831 #line 1495 "grammar.y" 2893 2832 { 2894 2833 if (exitBuffer(BT_break)) YYERROR; … … 2897 2836 break;} 2898 2837 case 157: 2899 #line 15 64"grammar.y"2838 #line 1500 "grammar.y" 2900 2839 { 2901 2840 if (contBuffer(BT_break)) YYERROR; … … 2904 2843 break;} 2905 2844 case 158: 2906 #line 15 72"grammar.y"2845 #line 1508 "grammar.y" 2907 2846 { 2908 2847 /* -> if(!$2) break; $3; continue;*/ … … 2915 2854 break;} 2916 2855 case 159: 2917 #line 15 84"grammar.y"2856 #line 1520 "grammar.y" 2918 2857 { 2919 2858 /* $2 */ … … 2933 2872 break;} 2934 2873 case 160: 2935 #line 1 603"grammar.y"2874 #line 1539 "grammar.y" 2936 2875 { 2937 2876 procinfov pi; … … 2946 2885 break;} 2947 2886 case 161: 2948 #line 1 614"grammar.y"2887 #line 1550 "grammar.y" 2949 2888 { 2950 2889 idhdl h = enterid(yyvsp[-2].name,myynest,PROC_CMD,&IDROOT,TRUE); … … 2968 2907 break;} 2969 2908 case 162: 2970 #line 1 634"grammar.y"2909 #line 1570 "grammar.y" 2971 2910 { 2972 2911 omFree((ADDRESS)yyvsp[-1].name); … … 2991 2930 break;} 2992 2931 case 163: 2993 #line 1 658"grammar.y"2932 #line 1594 "grammar.y" 2994 2933 { 2995 2934 //Print("par:%s, %d\n",$2.Name(),$2.Typ()); … … 2999 2938 break;} 3000 2939 case 164: 3001 #line 16 64"grammar.y"2940 #line 1600 "grammar.y" 3002 2941 { 3003 2942 //Print("par:%s, %d\n",$2.Name(),$2.Typ()); … … 3010 2949 break;} 3011 2950 case 165: 3012 #line 16 76"grammar.y"2951 #line 1612 "grammar.y" 3013 2952 { 3014 2953 if(iiRETURNEXPR==NULL) YYERROR; … … 3019 2958 break;} 3020 2959 case 166: 3021 #line 16 83"grammar.y"2960 #line 1619 "grammar.y" 3022 2961 { 3023 2962 if (yyvsp[-2].i==RETURN) … … 3253 3192 return 1; 3254 3193 } 3255 #line 16 93"grammar.y"3194 #line 1629 "grammar.y" -
Singular/grammar.y
r01cda73 rd3e630 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: grammar.y,v 1.1 29 2009-02-27 17:25:22Singular Exp $ */4 /* $Id: grammar.y,v 1.130 2009-07-28 14:18:34 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: SINGULAR shell grammatik … … 180 180 Werror("leaving %s",VoiceName()); 181 181 } 182 #ifdef HAVE_LIBFAC_P 182 #ifdef HAVE_FACTORY 183 // libfac: 183 184 extern int libfac_interruptflag; 184 185 libfac_interruptflag=0; … … 894 895 ROOT_DECL elemexpr 895 896 { 896 #ifdef HAVE_NS897 897 if (iiDeclCommand(&$$,&$2,myynest,$1,&($2.req_packhdl->idroot))) 898 898 YYERROR; 899 #else900 if (iiDeclCommand(&$$,&$2,myynest,$1,&IDROOT)) YYERROR;901 #endif902 899 } 903 900 | ROOT_DECL_LIST elemexpr 904 901 { 905 #ifdef HAVE_NS906 902 if (iiDeclCommand(&$$,&$2,myynest,$1,&($2.req_packhdl->idroot))) 907 903 YYERROR; 908 #else909 if (iiDeclCommand(&$$,&$2,myynest,$1,&IDROOT)) YYERROR;910 #endif911 904 } 912 905 | RING_DECL elemexpr … … 946 939 if (c < 0) 947 940 MYYERROR("cols must be greater than -1"); 948 #ifdef HAVE_NS949 941 if (iiDeclCommand(&$$,&$2,myynest,$1,&($2.req_packhdl->idroot))) 950 942 YYERROR; 951 #else952 if (iiDeclCommand(&$$,&$2,myynest,$1,&IDROOT)) YYERROR;953 #endif954 943 leftv v=&$$; 955 944 idhdl h=(idhdl)v->data; … … 960 949 | INTMAT_CMD elemexpr 961 950 { 962 #ifdef HAVE_NS963 951 if (iiDeclCommand(&$$,&$2,myynest,$1,&($2.req_packhdl->idroot))) 964 952 YYERROR; 965 #else966 if (iiDeclCommand(&$$,&$2,myynest,$1,&IDROOT)) YYERROR;967 #endif968 953 leftv v=&$$; 969 954 idhdl h; … … 988 973 else 989 974 { 990 #ifdef HAVE_NS991 975 if (iiDeclCommand(&r,&$3,myynest,t,&($3.req_packhdl->idroot))) 992 976 YYERROR; 993 #else994 if (iiDeclCommand(&r,&$3,myynest,t,&IDROOT)) YYERROR;995 #endif996 977 } 997 978 leftv v=&$1; … … 1003 984 | PROC_CMD elemexpr 1004 985 { 1005 #ifdef HAVE_NS1006 986 if (iiDeclCommand(&$$,&$2,myynest,$1,&($2.req_packhdl->idroot))) 1007 987 YYERROR; 1008 #else1009 if (iiDeclCommand(&$$,&$2,myynest,$1,&IDROOT)) YYERROR;1010 #endif1011 988 } 1012 989 ; … … 1153 1130 EXPORT_CMD exprlist 1154 1131 { 1155 #ifdef HAVE_NS1156 1132 if (basePack!=$2.req_packhdl) 1157 1133 { … … 1159 1135 } 1160 1136 else 1161 #endif /* HAVE_NS */1162 1137 if (iiExport(&$2,0)) YYERROR; 1163 1138 } … … 1178 1153 else 1179 1154 { 1180 #ifdef HAVE_NS1181 1155 killhdl((idhdl)v->data,v->req_packhdl); 1182 #else1183 killhdl((idhdl)v->data);1184 #endif1185 1156 } 1186 1157 } … … 1198 1169 else 1199 1170 { 1200 #ifdef HAVE_NS1201 1171 killhdl((idhdl)v->data,v->req_packhdl); 1202 #else1203 killhdl((idhdl)v->data);1204 #endif1205 1172 } 1206 1173 } … … 1248 1215 | LISTVAR_CMD '(' elemexpr ',' ROOT_DECL ')' 1249 1216 { 1250 #ifdef HAVE_NS1251 //PrintS("?????\n");1252 1217 if($3.Typ() == PACKAGE_CMD) 1253 1218 list_cmd($5,NULL,"// ",TRUE); 1254 #endif /* HAVE_NS */1255 1219 $3.CleanUp(); 1256 1220 } 1257 1221 | LISTVAR_CMD '(' elemexpr ',' ROOT_DECL_LIST ')' 1258 1222 { 1259 #ifdef HAVE_NS1260 //PrintS("?????\n");1261 1223 if($3.Typ() == PACKAGE_CMD) 1262 1224 list_cmd($5,NULL,"// ",TRUE); 1263 #endif /* HAVE_NS */1264 1225 $3.CleanUp(); 1265 1226 } 1266 1227 | LISTVAR_CMD '(' elemexpr ',' RING_DECL ')' 1267 1228 { 1268 #ifdef HAVE_NS1269 //PrintS("?????\n");1270 1229 if($3.Typ() == PACKAGE_CMD) 1271 1230 list_cmd($5,NULL,"// ",TRUE); 1272 #endif /* HAVE_NS */1273 1231 $3.CleanUp(); 1274 1232 } 1275 1233 | LISTVAR_CMD '(' elemexpr ',' currring_lists ')' 1276 1234 { 1277 #ifdef HAVE_NS1278 //PrintS("?????\n");1279 1235 if($3.Typ() == PACKAGE_CMD) 1280 1236 list_cmd($5,NULL,"// ",TRUE); 1281 #endif /* HAVE_NS */1282 1237 $3.CleanUp(); 1283 1238 } 1284 1239 | LISTVAR_CMD '(' elemexpr ',' RING_CMD ')' 1285 1240 { 1286 #ifdef HAVE_NS1287 //PrintS("?????\n");1288 1241 if($3.Typ() == PACKAGE_CMD) 1289 1242 list_cmd($5,NULL,"// ",TRUE); 1290 #endif /* HAVE_NS */1291 1243 $3.CleanUp(); 1292 1244 } 1293 1245 | LISTVAR_CMD '(' elemexpr ',' MATRIX_CMD ')' 1294 1246 { 1295 #ifdef HAVE_NS1296 //PrintS("?????\n");1297 1247 if($3.Typ() == PACKAGE_CMD) 1298 1248 list_cmd($5,NULL,"// ",TRUE); 1299 #endif /* HAVE_NS */1300 1249 $3.CleanUp(); 1301 1250 } 1302 1251 | LISTVAR_CMD '(' elemexpr ',' INTMAT_CMD ')' 1303 1252 { 1304 #ifdef HAVE_NS1305 //PrintS("?????\n");1306 1253 if($3.Typ() == PACKAGE_CMD) 1307 1254 list_cmd($5,NULL,"// ",TRUE); 1308 #endif /* HAVE_NS */1309 1255 $3.CleanUp(); 1310 1256 } 1311 1257 | LISTVAR_CMD '(' elemexpr ',' PROC_CMD ')' 1312 1258 { 1313 #ifdef HAVE_NS1314 //PrintS("?????\n");1315 1259 if($3.Typ() == PACKAGE_CMD) 1316 1260 list_cmd($5,NULL,"// ",TRUE); 1317 #endif /* HAVE_NS */1318 1261 $3.CleanUp(); 1319 1262 } 1320 1263 //| LISTVAR_CMD '(' elemexpr ',' elemexpr ')' 1321 1264 // { 1322 //#ifdef HAVE_NS1323 // //PrintS("?????\n");1324 1265 // //if($3.Typ() == PACKAGE_CMD) 1325 1266 // // list_cmd($5,NULL,"// ",TRUE); 1326 //#endif /* HAVE_NS */1327 1267 // $3.CleanUp(); 1328 1268 // } … … 1353 1293 if (b!=NULL) 1354 1294 { 1355 #ifdef HAVE_NS1356 1295 newRingHdl=enterid(ring_name, myynest, RING_CMD, 1357 1296 &($2.req_packhdl->idroot)); 1358 #else1359 newRingHdl=enterid(ring_name, myynest, RING_CMD, &IDROOT);1360 #endif1361 1297 $2.CleanUp(); 1362 1298 if (newRingHdl!=NULL) -
Singular/iparith.cc
r01cda73 rd3e630 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: iparith.cc,v 1.51 1 2009-07-13 16:35:56Singular Exp $ */4 /* $Id: iparith.cc,v 1.512 2009-07-28 14:18:34 Singular Exp $ */ 5 5 6 6 /* … … 819 819 static BOOLEAN jjCOLCOL(leftv res, leftv u, leftv v) 820 820 { 821 #ifdef HAVE_NS822 821 idhdl packhdl; 823 822 switch(u->Typ()) … … 837 836 && (IDPACKAGE(packhdl)->language > LANG_TOP)) 838 837 { 839 //if(iiReLoadLib(packhdl))840 // Werror("unable to reload package '%s'", IDID(packhdl));841 838 Werror("'%s' not loaded", u->name); 842 839 return TRUE; … … 858 855 return TRUE; 859 856 } 860 #else /* HAVE_NS */861 WerrorS("package is not supported in this version");862 #endif /* HAVE_NS */863 857 return FALSE; 864 858 } … … 1668 1662 typ=u->rtyp; u->rtyp=IDHDL; 1669 1663 } 1670 #ifdef HAVE_NS1671 1664 leftv sl; 1672 1665 if (u->req_packhdl==currPack) … … 1674 1667 else 1675 1668 sl = iiMake_proc((idhdl)u->data,u->req_packhdl,v); 1676 #else /* HAVE_NS */1677 leftv sl = iiMake_proc((idhdl)u->data,v);1678 #endif /* HAVE_NS */1679 1669 if (t) 1680 1670 { … … 1997 1987 static BOOLEAN jjEXPORTTO(leftv res, leftv u, leftv v) 1998 1988 { 1999 #ifdef HAVE_NS2000 1989 //Print("exportto %s -> %s\n",v->Name(),u->Name() ); 2001 1990 return iiExport(v,0,(idhdl)u->data); 2002 #else /* HAVE_NS */2003 return TRUE;2004 #endif /* HAVE_NS */2005 1991 } 2006 1992 static BOOLEAN jjERROR(leftv res, leftv u) … … 3435 3421 ,{jjGCD_N, GCD_CMD, NUMBER_CMD, NUMBER_CMD, NUMBER_CMD, ALLOW_PLURAL |ALLOW_RING} 3436 3422 ,{jjGCD_BI, GCD_CMD, BIGINT_CMD, BIGINT_CMD, BIGINT_CMD, ALLOW_PLURAL |ALLOW_RING} 3437 #if defined(HAVE_FACTORY) && defined(HAVE_LIBFAC_P)3423 #if defined(HAVE_FACTORY) 3438 3424 ,{jjGCD_P, GCD_CMD, POLY_CMD, POLY_CMD, POLY_CMD, NO_PLURAL |NO_RING} 3439 3425 #else … … 4851 4837 static BOOLEAN jjLOAD(leftv res, leftv v, BOOLEAN autoexport) 4852 4838 { 4853 #ifdef HAVE_NS4854 4839 char * s=(char *)v->CopyD(); 4855 4840 char libnamebuf[256]; … … 4904 4889 #endif /* HAVE_DYNAMIC_LOADING */ 4905 4890 } 4906 #endif4907 4891 return TRUE; 4908 4892 } -
Singular/ipassign.cc
r01cda73 rd3e630 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: ipassign.cc,v 1.10 5 2009-05-04 15:06:15Singular Exp $ */4 /* $Id: ipassign.cc,v 1.106 2009-07-28 14:18:34 Singular Exp $ */ 5 5 6 6 /* … … 1618 1618 BOOLEAN jjIMPORTFROM(leftv res, leftv u, leftv v) 1619 1619 { 1620 #ifdef HAVE_NS1621 1620 //Print("importfrom %s::%s ->.\n",v->Name(),u->Name() ); 1622 1621 assume(u->Typ()==PACKAGE_CMD); … … 1651 1650 return TRUE; 1652 1651 } 1653 #endif 1654 return FALSE; 1655 } 1652 return FALSE; 1653 } -
Singular/ipid.cc
r01cda73 rd3e630 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: ipid.cc,v 1.8 6 2009-05-05 09:54:38Singular Exp $ */4 /* $Id: ipid.cc,v 1.87 2009-07-28 14:18:34 Singular Exp $ */ 5 5 6 6 /* … … 43 43 idhdl idroot = NULL; 44 44 45 #ifdef HAVE_NS46 45 idhdl currPackHdl = NULL; 47 46 idhdl basePackHdl = NULL; 48 47 package currPack =NULL; 49 48 package basePack =NULL; 50 #endif /* HAVE_NS */51 49 idhdl currRingHdl = NULL; 52 50 ring currRing = NULL; … … 437 435 } 438 436 *root = (*root)->set(s, lev, t, init); 439 #ifdef HAVE_NS440 437 #ifndef NDEBUG 441 438 checkall(); 442 #endif443 439 #endif 444 440 return *root; … … 447 443 //Werror("identifier `%s` in use(lev h=%d,typ=%d,t=%d, curr=%d)",s,IDLEV(h),IDTYP(h),t,lev); 448 444 Werror("identifier `%s` in use",s); 449 #ifdef HAVE_NS450 445 //listall(); 451 #endif452 446 omFree((ADDRESS)s); 453 447 return NULL; … … 481 475 } 482 476 483 #ifndef HAVE_NS484 void killhdl(idhdl h)485 {486 int t=IDTYP(h);487 if (((BEGIN_RING<t) && (t<END_RING) && (t!=QRING_CMD))488 || ((t==LIST_CMD) && (lRingDependend((lists)IDDATA(h)))))489 killhdl2(h,&currRing->idroot,currRing);490 else491 {492 {493 idhdl s=IDROOT;494 while ((s!=h) && (s!=NULL)) s=s->next;495 if (s==NULL) killhdl2(h,&(currRing->idroot),currRing);496 else killhdl2(h,&IDROOT,currRing);497 }498 }499 }500 #else501 //#ifdef HAVE_NS502 477 void killhdl(idhdl h, package proot) 503 478 { … … 530 505 } 531 506 } 532 #endif /* HAVE_NS */533 507 534 508 void killhdl2(idhdl h, idhdl * ih, ring r) … … 554 528 rKill(h); 555 529 } 556 #ifdef HAVE_NS557 530 // package ------------------------------------------------------------- 558 531 else if (IDTYP(h) == PACKAGE_CMD) … … 582 555 iiCheckPack(currPack); 583 556 } 584 #endif /* HAVE_NS */585 557 // poly / vector ------------------------------------------------------- 586 558 else if ((IDTYP(h) == POLY_CMD) || (IDTYP(h) == VECTOR_CMD)) … … 718 690 if (h2!=NULL) return h2; 719 691 if (h!=NULL) return h; 720 #ifdef HAVE_NS721 692 if (basePack!=currPack) 722 693 return basePack->idroot->get(n,myynest); 723 #endif724 694 return NULL; 725 695 } … … 792 762 { 793 763 /*move 'tomove' to ring id's*/ 794 #ifdef HAVE_NS795 764 if (ipSwapId(tomove,IDROOT,currRing->idroot)) 796 765 ipSwapId(tomove,basePack->idroot,currRing->idroot); 797 #else798 ipSwapId(tomove,IDROOT,currRing->idroot);799 #endif800 766 } 801 767 else … … 949 915 p->cRingHdl=currRingHdl; 950 916 p->name=n; 951 #ifdef HAVE_NS952 917 p->cPackHdl=currPackHdl; 953 918 p->cPack=currPack; 954 #endif955 919 p->next=this; 956 920 procstack=p; … … 965 929 //if((::currRingHdl==NULL)||(IDRING(::currRingHdl)!=(::currRing))) 966 930 // ::currRingHdl=rFindHdl(::currRing,NULL,NULL); 967 #ifdef HAVE_NS968 931 //Print("restore pack=%s,1.obj=%s\n",IDID(currPackHdl),IDID(currPack->idroot)); 969 932 currPackHdl=this->cPackHdl; 970 933 currPack=this->cPack; 971 934 iiCheckPack(currPack); 972 #endif973 935 proclevel *p=this; 974 936 procstack=next; … … 976 938 } 977 939 978 #ifdef HAVE_NS979 940 idhdl packFindHdl(package r) 980 941 { … … 989 950 return NULL; 990 951 } 991 #endif -
Singular/ipid.h
r01cda73 rd3e630 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: ipid.h,v 1.4 4 2009-07-25 13:21:02Singular Exp $ */6 /* $Id: ipid.h,v 1.45 2009-07-28 14:18:34 Singular Exp $ */ 7 7 /* 8 8 * ABSTRACT: identfier handling … … 47 47 idhdl cRingHdl; 48 48 ring cRing; 49 #ifdef HAVE_NS50 49 idhdl cPackHdl; 51 50 package cPack; 52 #endif53 51 char * name; 54 52 proclevel() { memset(this,0,sizeof(*this)); } … … 78 76 idhdl ggetid(const char *n, BOOLEAN local, idhdl *packhdl); 79 77 void killid(const char * a, idhdl * i); 80 #ifdef HAVE_NS81 78 void killhdl(idhdl h, package prooti=currPack); 82 #else83 void killhdl(idhdl h);84 #endif85 79 void killhdl2(idhdl h, idhdl * ih, ring r); 86 80 lists ipNameList(idhdl root); 87 81 void ipMoveId(idhdl h); 88 82 BOOLEAN checkPackage(package pack); 89 #ifdef HAVE_NS90 83 idhdl packFindHdl(package r); 91 #endif92 84 93 85 #define FLAG_STD 0 -
Singular/iplib.cc
r01cda73 rd3e630 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: iplib.cc,v 1.1 29 2009-06-21 14:10:18Singular Exp $ */4 /* $Id: iplib.cc,v 1.130 2009-07-28 14:18:34 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: interpreter: LIB and help … … 67 67 idhdl hl; 68 68 69 #ifndef HAVE_NS70 char *p;71 72 hl = IDROOT->get("LIB", 0);73 if (hl == NULL || (p=strstr(IDSTRING(hl), lib)) == NULL) return FALSE;74 if ((p!=IDSTRING(hl)) && (*(p-1)!=',')) return FALSE;75 76 return TRUE;77 #else78 69 char *plib = iiConvName(lib); 79 70 hl = basePack->idroot->get(plib,0); … … 85 76 omFree(plib); 86 77 return (strcmp(lib,IDPACKAGE(hl)->libname)==0); 87 #endif88 78 } 89 79 … … 343 333 { 344 334 err=yyparse(); 345 #ifdef HAVE_NS346 335 #ifndef NDEBUG 347 336 checkall(); 348 337 #endif 349 #endif350 338 if (sLastPrinted.rtyp!=0) 351 339 { … … 354 342 //Print("kill locals for %s (level %d)\n",IDID(pn),myynest); 355 343 killlocals(myynest); 356 #ifdef HAVE_NS357 344 #ifndef NDEBUG 358 345 checkall(); 359 #endif360 346 #endif 361 347 //Print("end kill locals for %s (%d)\n",IDID(pn),myynest); … … 391 377 #endif 392 378 #if 0 393 //#ifdef HAVE_NS394 379 i=myynest; 395 380 proclevel *p=procstack; … … 426 411 } 427 412 } 428 #ifdef HAVE_NS429 413 sleftv * iiMake_proc(idhdl pn, package pack, sleftv* sl) 430 #else /* HAVE_NS */431 sleftv * iiMake_proc(idhdl pn, sleftv* sl)432 #endif /* HAVE_NS */433 414 { 434 415 int err; … … 465 446 466 447 case LANG_SINGULAR: 467 #ifdef HAVE_NS468 448 if ((pi->pack!=NULL)&&(currPack!=pi->pack)) 469 449 { … … 480 460 //Print("set pack=%s\n",IDID(currPackHdl)); 481 461 } 482 #endif483 462 err=iiPStart(pn,sl); 484 #ifdef HAVE_NS485 #endif486 463 break; 487 464 case LANG_C: … … 572 549 //PrintS("reset ring\n"); 573 550 procstack->cRingHdl=rFindHdl(procstack->cRing,NULL, NULL); 574 #ifdef HAVE_NS575 551 if (procstack->cRingHdl==NULL) 576 552 procstack->cRingHdl= … … 579 555 procstack->cRingHdl= 580 556 rFindHdl(procstack->cRing,NULL,basePack->idroot); 581 #endif582 557 o=IDID(procstack->cRingHdl); 583 558 currRing=procstack->cRing; … … 692 667 { 693 668 BOOLEAN LoadResult = TRUE; 694 #ifdef HAVE_NS695 669 char libnamebuf[128]; 696 670 char *libname = (char *)omAlloc(strlen(id)+5); … … 725 699 } 726 700 omFree(libname); 727 #endif /* HAVE_NS */728 return LoadResult;729 }730 731 BOOLEAN iiReLoadLib(idhdl packhdl)732 {733 BOOLEAN LoadResult = TRUE;734 #ifdef HAVE_NAMESPACES735 char libnamebuf[128];736 package pack = IDPACKAGE(packhdl);737 738 if(pack->language == LANG_NONE) return FALSE;739 740 FILE * fp = feFopen( pack->libname, "r", libnamebuf, FALSE);741 if (fp==NULL)742 {743 return TRUE;744 }745 namespaceroot->push(IDPACKAGE(packhdl), IDID(packhdl));746 LoadResult = iiLoadLIB(fp, libnamebuf, IDPACKAGE(packhdl)->libname,747 packhdl, FALSE, FALSE);748 namespaceroot->pop();749 #else /* HAVE_NAMESPACES */750 #endif /* HAVE_NAMESPACES */751 701 return LoadResult; 752 702 } … … 794 744 idhdl h; 795 745 BOOLEAN LoadResult = TRUE; 796 #ifdef HAVE_NS797 746 idhdl pl; 798 #endif799 747 idhdl hl; 800 748 int lines = 1; 801 749 long pos = 0L; 802 750 procinfov pi; 803 #ifdef HAVE_NS804 751 char *plib = iiConvName(newlib); 805 #endif806 752 FILE * fp = feFopen( newlib, "r", libnamebuf, tellerror ); 807 753 if (fp==NULL) … … 809 755 return TRUE; 810 756 } 811 #ifndef HAVE_NS812 hl = idroot->get("LIB",0);813 if (hl==NULL)814 {815 hl = enterid( "LIB",0, STRING_CMD, &idroot, FALSE );816 IDSTRING(hl) = omStrDup(newlib);817 }818 else819 {820 #ifdef TEST821 if (IDSTRING(hl) != NULL)822 #endif823 {824 char *s = (char *)omAlloc( strlen(newlib) + strlen(IDSTRING(hl)) + 2 );825 strcpy(s,IDSTRING(hl));826 BOOLEAN f=FALSE;827 if(strchr(s,',')==NULL)828 {829 if (strcmp(s,newlib)==0)830 f=TRUE;831 }832 else833 {834 char *p=strtok(s,",");835 do836 {837 if(strcmp(p,newlib)==0)838 {839 f=TRUE;840 break;841 }842 p=strtok(NULL,",");843 } while (p!=NULL);844 }845 if (f)846 omFree((ADDRESS)s);847 else848 {849 sprintf( s, "%s,%s", IDSTRING(hl), newlib);850 omFree((ADDRESS)IDSTRING(hl));851 IDSTRING(hl) = s;852 }853 }854 #ifdef TEST855 else856 {857 PrintS("## empty LIB string\n");858 IDSTRING(hl) = omStrDup(newlib);859 }860 #endif861 }862 #endif /* HAVE_NS */863 757 #ifdef HAVE_TCL 864 758 if (tclmode) … … 867 761 } 868 762 #endif 869 #ifdef HAVE_NS870 763 pl = basePack->idroot->get(plib,0); 871 764 if (pl==NULL) … … 887 780 } 888 781 LoadResult = iiLoadLIB(fp, libnamebuf, newlib, pl, autoexport, tellerror); 889 #else /* HAVE_NS */890 LoadResult = iiLoadLIB(fp, libnamebuf, newlib, NULL, FALSE, tellerror);891 #endif /* HAVE_NS */892 893 782 omFree((ADDRESS)newlib); 894 783 895 #ifdef HAVE_NS896 784 if(!LoadResult) IDPACKAGE(pl)->loaded = TRUE; 897 785 omFree((ADDRESS)plib); 898 #endif /* HAVE_NS */899 786 900 787 return LoadResult; … … 946 833 if (BVERBOSE(V_DEBUG_LIB)) lpverbose=1; 947 834 else lpverbose=0; 948 #ifdef HAVE_NS 949 yylplex(newlib, libnamebuf, &lib_style, pl, autoexport); 950 #else 951 yylplex(newlib, libnamebuf, &lib_style); 952 #endif /* HAVE_NS */ 835 yylplex(newlib, libnamebuf, &lib_style, pl, autoexport); 953 836 if(yylp_errno) 954 837 { … … 1022 905 pi->language = LANG_SINGULAR; 1023 906 pi->ref = 1; 1024 #ifdef HAVE_NS1025 907 pi->pack = NULL; 1026 #endif1027 908 pi->is_static = pstatic; 1028 909 pi->data.s.proc_start = pos; … … 1072 953 { 1073 954 int r=iiAddCproc(libname,procname,pstatic,func); 1074 #ifdef HAVE_NS1075 955 package s=currPack; 1076 956 currPack=basePack; 1077 957 if (r) r=iiAddCproc(libname,procname,pstatic,func); 1078 958 currPack=s; 1079 #endif1080 959 return r; 1081 960 } … … 1139 1018 SModulFunctions sModulFunctions; 1140 1019 1141 #ifdef HAVE_NS1142 1020 package s=currPack; 1143 1021 currPack=IDPACKAGE(pl); 1144 #endif1145 1022 fktn = (fktn2_t)dynl_sym(IDPACKAGE(pl)->handle, "mod_init"); 1146 1023 if( fktn!= NULL) … … 1153 1030 else Werror("mod_init: %s\n", dynl_error()); 1154 1031 if (BVERBOSE(V_LOAD_LIB)) Print( "// ** loaded %s \n", fullname); 1155 #ifdef HAVE_NS1156 1032 currPack->loaded=1; 1157 1033 currPack=s; 1158 #endif1159 1034 } 1160 1035 RET=FALSE; -
Singular/ipshell.cc
r01cda73 rd3e630 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: ipshell.cc,v 1.20 7 2009-06-04 09:58:49Singular Exp $ */4 /* $Id: ipshell.cc,v 1.208 2009-07-28 14:18:34 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: … … 263 263 } 264 264 } 265 #ifndef HAVE_NS266 void killlocals(int v)267 {268 killlocals0(v,&IDROOT,currRing);269 270 if ((iiRETURNEXPR_len > myynest)271 && ((iiRETURNEXPR[myynest].Typ()==RING_CMD)272 || (iiRETURNEXPR[myynest].Typ()==QRING_CMD)))273 {274 leftv h=&iiRETURNEXPR[myynest];275 killlocals0(v,&(((ring)h->data)->idroot),(ring)h->data);276 }277 278 idhdl sh=currRingHdl;279 ring sr=currRing;280 BOOLEAN changed=FALSE;281 idhdl h = IDROOT;282 283 // Print("killlocals in %s\n",IDID(currPackHdl));284 while (h!=NULL)285 {286 if (((IDTYP(h)==QRING_CMD) || (IDTYP(h) == RING_CMD))287 && (IDRING(h)->idroot!=NULL))288 {289 if (IDRING(h)!=currRing) {changed=TRUE;rSetHdl(h);}290 killlocals0(v,&(IDRING(h)->idroot),IDRING(h));291 }292 else if (IDTYP(h) == PACKAGE_CMD)293 {294 killlocals0(v,&(IDPACKAGE(h)->idroot),IDRING(h));295 }296 else if (IDTYP(h) == LIST_CMD)297 {298 killlocals_list(IDLIST(h),v);299 }300 h = IDNEXT(h);301 }302 if (changed)303 {304 currRing=NULL;305 currRingHdl=NULL;306 if (sh!=NULL) rSetHdl(sh);307 else if (sr!=NULL)308 {309 sh=rFindHdl(sr,NULL,NULL);310 rSetHdl(sh);311 }312 }313 314 if (myynest<=1) iiNoKeepRing=TRUE;315 //Print("end killlocals >= %d\n",v);316 //listall();317 }318 #endif319 #ifdef HAVE_NS320 265 void killlocals_rec(idhdl *root,int v, ring r) 321 266 { … … 414 359 //listall(); 415 360 } 416 #endif417 361 418 362 void list_cmd(int typ, const char* what, const char *prefix,BOOLEAN iterate, BOOLEAN fullname) … … 429 373 { 430 374 really_all=TRUE; 431 #ifdef HAVE_NS432 375 h=basePack->idroot; 433 #else434 h=IDROOT;435 #endif436 376 } 437 377 else … … 443 383 if ((IDTYP(h)==RING_CMD) 444 384 || (IDTYP(h)==QRING_CMD) 445 #ifdef HAVE_NS446 385 //|| (IDTYP(h)==PACKE_CMD) 447 #endif448 386 ) 449 387 { … … 487 425 list_cmd(0,IDID(h),"// ",FALSE); 488 426 } 489 #ifdef HAVE_NS490 427 if (IDTYP(h)==PACKAGE_CMD && really_all) 491 428 { … … 495 432 currPack=save_p; 496 433 } 497 #endif /* HAVE_NS */498 434 } 499 435 h = IDNEXT(h); … … 668 604 669 605 r=IDROOT->get(theMap->preimage,myynest); 670 #ifdef HAVE_NS671 606 if ((currPack!=basePack) 672 607 &&((r==NULL) || ((r->typ != RING_CMD) && (r->typ != QRING_CMD)))) … … 677 612 r=currRingHdl; 678 613 } 679 #endif /* HAVE_NS */680 614 if ((r!=NULL) && ((r->typ == RING_CMD) || (r->typ== QRING_CMD))) 681 615 { … … 1243 1177 } 1244 1178 1245 #ifdef HAVE_NS1246 1179 BOOLEAN iiInternalExport (leftv v, int toLev, idhdl roothdl) 1247 1180 { … … 1291 1224 return FALSE; 1292 1225 } 1293 #endif /* HAVE_NS */1294 1226 1295 1227 BOOLEAN iiExport (leftv v, int toLev) 1296 1228 { 1297 #ifdef HAVE_NS1298 1229 #ifndef NDEBUG 1299 1230 checkall(); 1300 #endif1301 1231 #endif 1302 1232 BOOLEAN nok=FALSE; … … 1320 1250 } 1321 1251 r->CleanUp(); 1322 #ifdef HAVE_NS1323 1252 #ifndef NDEBUG 1324 1253 checkall(); 1325 1254 #endif 1326 #endif1327 1255 return nok; 1328 1256 } 1329 1257 1330 1258 /*assume root!=idroot*/ 1331 #ifdef HAVE_NS1332 1259 BOOLEAN iiExport (leftv v, int toLev, idhdl root) 1333 1260 { … … 1387 1314 return nok; 1388 1315 } 1389 #endif1390 1316 1391 1317 BOOLEAN iiCheckRing(int i) … … 1433 1359 } 1434 1360 1435 #ifdef HAVE_NS1436 1361 void iiCheckPack(package &p) 1437 1362 { … … 1449 1374 return; 1450 1375 } 1451 #endif1452 1376 1453 1377 idhdl rDefault(const char *s) … … 1502 1426 idhdl h=rSimpleFindHdl(r,IDROOT,n); 1503 1427 if (h!=NULL) return h; 1504 #ifdef HAVE_NS1505 1428 if (IDROOT!=basePack->idroot) h=rSimpleFindHdl(r,basePack->idroot,n); 1506 1429 if (h!=NULL) return h; … … 1522 1445 tmp=IDNEXT(tmp); 1523 1446 } 1524 #endif1525 1447 return NULL; 1526 1448 } -
Singular/ipshell.h
r01cda73 rd3e630 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: ipshell.h,v 1.5 4 2009-07-13 16:35:56Singular Exp $ */6 /* $Id: ipshell.h,v 1.55 2009-07-28 14:18:34 Singular Exp $ */ 7 7 /* 8 8 * ABSTRACT … … 54 54 BOOLEAN iiWRITE(leftv res,leftv exprlist); 55 55 BOOLEAN iiExport(leftv v, int toLev); 56 #ifdef HAVE_NS57 56 BOOLEAN iiExport(leftv v, int toLev, idhdl roothdl); 58 57 BOOLEAN iiInternalExport (leftv v, int toLev, idhdl roothdl); 59 #endif /* HAVE_NS */60 58 char * iiGetLibName(procinfov v); 61 59 char * iiGetLibProcBuffer( procinfov pi, int part=1 ); … … 178 176 int iiDeclCommand(leftv sy, leftv name, int lev, int t, idhdl* root, 179 177 BOOLEAN isring = FALSE, BOOLEAN init_b=TRUE); 180 #ifdef HAVE_NS181 178 sleftv * iiMake_proc(idhdl pn, package pack, sleftv* sl); 182 #else /* HAVE_NS */183 sleftv * iiMake_proc(idhdl pn, sleftv* sl);184 #endif /* HAVE_NS */185 179 // from misc.cc: 186 180 char * showOption(); … … 193 187 BOOLEAN iiTryLoadLib(leftv v, const char *id); 194 188 195 #ifdef HAVE_NS196 189 void listall(int showproc=1); 197 190 void iiCheckPack(package &p); … … 200 193 #endif 201 194 #endif 202 #endif203 195 -
Singular/libparse.cc
r01cda73 rd3e630 20 20 21 21 /* Scanner skeleton version: 22 * $Header: /exports/cvsroot-2/cvsroot/Singular/libparse.cc,v 1.1 3 2008-03-19 17:44:35Singular Exp $22 * $Header: /exports/cvsroot-2/cvsroot/Singular/libparse.cc,v 1.14 2009-07-28 14:18:34 Singular Exp $ 23 23 */ 24 24 … … 1052 1052 * Computer Algebra System SINGULAR * 1053 1053 ****************************************/ 1054 /* $Id: libparse.cc,v 1.1 3 2008-03-19 17:44:35Singular Exp $ */1054 /* $Id: libparse.cc,v 1.14 2009-07-28 14:18:34 Singular Exp $ */ 1055 1055 #include <stdio.h> 1056 1056 #include <string.h> … … 1139 1139 #else /* STANDALONE_PARSER */ 1140 1140 idhdl h0; 1141 #ifdef HAVE_NS1142 1141 idhdl h_top; 1143 #endif1144 1142 #define pi IDPROC(h0) 1145 1143 extern "C" … … 1198 1196 1199 1197 #undef YY_DECL 1200 #ifdef HAVE_NS1201 1198 #define YY_DECL int yylex(char *newlib, char *libfile, \ 1202 1199 lib_style_types *lib_style, \ 1203 1200 idhdl pl, BOOLEAN autoexport, lp_modes mode) 1204 #else1205 #define YY_DECL int yylex(char *newlib, char *libfile, \1206 lib_style_types *lib_style, \1207 lp_modes mode)1208 #endif /* HAVE_NS */1209 1210 1201 #undef YY_INPUT 1211 1202 #define YY_INPUT(buf,result,max_size) \ … … 1421 1412 register int yy_act; 1422 1413 1423 #line 2 37"libparse.l"1414 #line 228 "libparse.l" 1424 1415 1425 1416 … … 1514 1505 case 1: 1515 1506 YY_RULE_SETUP 1516 #line 2 38"libparse.l"1507 #line 229 "libparse.l" 1517 1508 { } 1518 1509 YY_BREAK 1519 1510 case 2: 1520 1511 YY_RULE_SETUP 1521 #line 23 9"libparse.l"1512 #line 230 "libparse.l" 1522 1513 { old_state = YYSTATE; BEGIN(comment); } 1523 1514 YY_BREAK 1524 1515 case 3: 1525 1516 YY_RULE_SETUP 1526 #line 2 41"libparse.l"1517 #line 232 "libparse.l" 1527 1518 { 1528 1519 yyless(4); old_state = YYSTATE; BEGIN(info); … … 1531 1522 case 4: 1532 1523 YY_RULE_SETUP 1533 #line 2 44"libparse.l"1524 #line 235 "libparse.l" 1534 1525 { 1535 1526 yyless(8); old_state = YYSTATE; BEGIN(category); … … 1538 1529 case 5: 1539 1530 YY_RULE_SETUP 1540 #line 2 47"libparse.l"1531 #line 238 "libparse.l" 1541 1532 { 1542 1533 if ( mode != GET_INFO ) … … 1562 1553 case 6: 1563 1554 YY_RULE_SETUP 1564 #line 2 68"libparse.l"1555 #line 259 "libparse.l" 1565 1556 { 1566 1557 found_version++; … … 1599 1590 case 7: 1600 1591 YY_RULE_SETUP 1601 #line 302"libparse.l"1592 #line 293 "libparse.l" 1602 1593 { p_static=TRUE; } 1603 1594 YY_BREAK 1604 1595 case 8: 1605 1596 YY_RULE_SETUP 1606 #line 304"libparse.l"1597 #line 295 "libparse.l" 1607 1598 { 1608 1599 char proc[256]; … … 1631 1622 if( mode == LOAD_LIB) 1632 1623 { 1633 #ifdef HAVE_NS1634 1624 h0 = enterid( proc, 0 /*myynest*/, PROC_CMD, 1635 1625 &(IDPACKAGE(pl)->idroot), TRUE); … … 1644 1634 if (h_top==NULL) return(1); 1645 1635 } 1646 #else1647 h0 = enterid( proc, 0 /*myynest*/, PROC_CMD,1648 &IDROOT, TRUE );1649 #endif /* HAVE_NS */1650 1636 /* omCheckAddr(IDID(h0)); */ 1651 1637 if (h0!=NULL) … … 1653 1639 iiInitSingularProcinfo(IDPROC(h0), newlib, proc, 1654 1640 yylplineno, current_pos(0),p_static); 1655 #ifdef HAVE_NS1656 1641 if ((!p_static) && (h_top != NULL) && autoexport) 1657 1642 { … … 1661 1646 } 1662 1647 IDPROC(h0)->pack=IDPACKAGE(pl); 1663 #endif /* HAVE_NS */1664 1648 if (BVERBOSE(V_LOAD_PROC)) 1665 1649 Warn( " proc '%s' registered", proc ); … … 1684 1668 case 9: 1685 1669 YY_RULE_SETUP 1686 #line 3 80"libparse.l"1670 #line 364 "libparse.l" 1687 1671 { 1688 1672 BEGIN(pexample); … … 1699 1683 case 10: 1700 1684 YY_RULE_SETUP 1701 #line 3 92"libparse.l"1685 #line 376 "libparse.l" 1702 1686 { quote++; 1703 1687 BEGIN(libcmd); … … 1706 1690 case 11: 1707 1691 YY_RULE_SETUP 1708 #line 3 96"libparse.l"1692 #line 380 "libparse.l" 1709 1693 { quote++; brace2++; 1710 1694 BEGIN(libcmd2); … … 1713 1697 case 12: 1714 1698 YY_RULE_SETUP 1715 #line 400"libparse.l"1699 #line 384 "libparse.l" 1716 1700 { 1717 1701 make_version(yytext, 0); … … 1723 1707 case 13: 1724 1708 YY_RULE_SETUP 1725 #line 406"libparse.l"1709 #line 390 "libparse.l" 1726 1710 { 1727 1711 #if YYLPDEBUG … … 1732 1716 case 14: 1733 1717 YY_RULE_SETUP 1734 #line 411"libparse.l"1718 #line 395 "libparse.l" 1735 1719 { 1736 1720 #if YYLPDEBUG > 1 … … 1741 1725 case 15: 1742 1726 YY_RULE_SETUP 1743 #line 4 16"libparse.l"1727 #line 400 "libparse.l" 1744 1728 { yyless(0); 1745 1729 BEGIN(INITIAL); … … 1749 1733 case 16: 1750 1734 YY_RULE_SETUP 1751 #line 4 20"libparse.l"1735 #line 404 "libparse.l" 1752 1736 { 1753 1737 yyless(0); … … 1759 1743 case 17: 1760 1744 YY_RULE_SETUP 1761 #line 4 27"libparse.l"1745 #line 411 "libparse.l" 1762 1746 { quote++; 1763 1747 BEGIN(libcmd); … … 1766 1750 case 18: 1767 1751 YY_RULE_SETUP 1768 #line 4 30"libparse.l"1752 #line 414 "libparse.l" 1769 1753 { quote++; brace2++; 1770 1754 BEGIN(libcmd2); … … 1773 1757 case 19: 1774 1758 YY_RULE_SETUP 1775 #line 4 33"libparse.l"1759 #line 417 "libparse.l" 1776 1760 { yylplineno++; } 1777 1761 YY_BREAK 1778 1762 case 20: 1779 1763 YY_RULE_SETUP 1780 #line 4 34"libparse.l"1764 #line 418 "libparse.l" 1781 1765 { 1782 1766 #if YYLPDEBUG > 1 … … 1789 1773 case 21: 1790 1774 YY_RULE_SETUP 1791 #line 4 41"libparse.l"1775 #line 425 "libparse.l" 1792 1776 { 1793 1777 #if YYLPDEBUG > 1 … … 1798 1782 case 22: 1799 1783 YY_RULE_SETUP 1800 #line 4 46"libparse.l"1784 #line 430 "libparse.l" 1801 1785 { 1802 1786 #if YYLPDEBUG > 1 … … 1808 1792 case 23: 1809 1793 YY_RULE_SETUP 1810 #line 4 52"libparse.l"1794 #line 436 "libparse.l" 1811 1795 { 1812 1796 yyless(0); … … 1818 1802 case 24: 1819 1803 YY_RULE_SETUP 1820 #line 4 58"libparse.l"1804 #line 442 "libparse.l" 1821 1805 { 1822 1806 yyless(0); … … 1828 1812 case 25: 1829 1813 YY_RULE_SETUP 1830 #line 4 64"libparse.l"1814 #line 448 "libparse.l" 1831 1815 { quote++; 1832 1816 BEGIN(libcmd); … … 1835 1819 case 26: 1836 1820 YY_RULE_SETUP 1837 #line 4 67"libparse.l"1821 #line 451 "libparse.l" 1838 1822 { quote++; brace2++; 1839 1823 BEGIN(libcmd2); … … 1842 1826 case 27: 1843 1827 YY_RULE_SETUP 1844 #line 4 71"libparse.l"1828 #line 455 "libparse.l" 1845 1829 { yylplineno++; } 1846 1830 YY_BREAK 1847 1831 case 28: 1848 1832 YY_RULE_SETUP 1849 #line 4 72"libparse.l"1833 #line 456 "libparse.l" 1850 1834 { 1851 1835 #if YYLPDEBUG … … 1856 1840 case 29: 1857 1841 YY_RULE_SETUP 1858 #line 4 77"libparse.l"1842 #line 461 "libparse.l" 1859 1843 { 1860 1844 found_oldhelp=1; … … 1866 1850 case 30: 1867 1851 YY_RULE_SETUP 1868 #line 4 85"libparse.l"1852 #line 469 "libparse.l" 1869 1853 { quote--; 1870 1854 yytext[yyleng-1] = '\0'; … … 1883 1867 case 31: 1884 1868 YY_RULE_SETUP 1885 #line 4 98"libparse.l"1869 #line 482 "libparse.l" 1886 1870 { quote--; brace2--; 1887 1871 yytext[yyleng-1] = '\0'; … … 1900 1884 case 32: 1901 1885 YY_RULE_SETUP 1902 #line 512"libparse.l"1886 #line 496 "libparse.l" 1903 1887 { } 1904 1888 YY_BREAK 1905 1889 case 33: 1906 1890 YY_RULE_SETUP 1907 #line 513"libparse.l"1891 #line 497 "libparse.l" 1908 1892 { 1909 1893 brace2++; … … 1915 1899 case 34: 1916 1900 YY_RULE_SETUP 1917 #line 5 19"libparse.l"1901 #line 503 "libparse.l" 1918 1902 { 1919 1903 brace2--; … … 1934 1918 case 35: 1935 1919 YY_RULE_SETUP 1936 #line 5 34"libparse.l"1920 #line 518 "libparse.l" 1937 1921 { 1938 1922 if(brace2>0) … … 1956 1940 case 36: 1957 1941 YY_RULE_SETUP 1958 #line 5 52"libparse.l"1942 #line 536 "libparse.l" 1959 1943 { yylplineno++; 1960 1944 if(brace2<=0) … … 1969 1953 case 37: 1970 1954 YY_RULE_SETUP 1971 #line 5 61"libparse.l"1955 #line 545 "libparse.l" 1972 1956 { } 1973 1957 YY_BREAK 1974 1958 case 38: 1975 1959 YY_RULE_SETUP 1976 #line 5 62"libparse.l"1960 #line 546 "libparse.l" 1977 1961 { old_state = YYSTATE; BEGIN(comment); } 1978 1962 YY_BREAK 1979 1963 case 39: 1980 1964 YY_RULE_SETUP 1981 #line 5 63"libparse.l"1965 #line 547 "libparse.l" 1982 1966 { 1983 1967 if(brace2<=0) … … 1990 1974 case 40: 1991 1975 YY_RULE_SETUP 1992 #line 5 71"libparse.l"1976 #line 555 "libparse.l" 1993 1977 { 1994 1978 #if YYLPDEBUG … … 2007 1991 case 41: 2008 1992 YY_RULE_SETUP 2009 #line 5 84"libparse.l"1993 #line 568 "libparse.l" 2010 1994 { 2011 1995 #if YYLPDEBUG … … 2018 2002 case 42: 2019 2003 YY_RULE_SETUP 2020 #line 5 91"libparse.l"2004 #line 575 "libparse.l" 2021 2005 { 2022 2006 if(check && yyleng>2) … … 2036 2020 case 43: 2037 2021 YY_RULE_SETUP 2038 #line 605"libparse.l"2022 #line 589 "libparse.l" 2039 2023 { printf("[%s]", yytext); } 2040 2024 YY_BREAK 2041 2025 case 44: 2042 2026 YY_RULE_SETUP 2043 #line 607"libparse.l"2027 #line 591 "libparse.l" 2044 2028 { } 2045 2029 YY_BREAK 2046 2030 case 45: 2047 2031 YY_RULE_SETUP 2048 #line 608"libparse.l"2032 #line 592 "libparse.l" 2049 2033 { 2050 2034 SET_HELP_END(mode, pi, current_pos(0)); … … 2068 2052 case 46: 2069 2053 YY_RULE_SETUP 2070 #line 6 26"libparse.l"2054 #line 610 "libparse.l" 2071 2055 { yylplineno++; } 2072 2056 YY_BREAK 2073 2057 case 47: 2074 2058 YY_RULE_SETUP 2075 #line 6 27"libparse.l"2059 #line 611 "libparse.l" 2076 2060 { } 2077 2061 YY_BREAK 2078 2062 case 48: 2079 2063 YY_RULE_SETUP 2080 #line 6 29"libparse.l"2064 #line 613 "libparse.l" 2081 2065 { 2082 2066 old_state = YYSTATE; … … 2087 2071 case 49: 2088 2072 YY_RULE_SETUP 2089 #line 6 34"libparse.l"2073 #line 618 "libparse.l" 2090 2074 {} 2091 2075 YY_BREAK 2092 2076 case 50: 2093 2077 YY_RULE_SETUP 2094 #line 6 35"libparse.l"2078 #line 619 "libparse.l" 2095 2079 { 2096 2080 brace1++; BEGIN(pbody); … … 2113 2097 case 51: 2114 2098 YY_RULE_SETUP 2115 #line 6 52"libparse.l"2099 #line 636 "libparse.l" 2116 2100 { yylplineno++;} 2117 2101 YY_BREAK 2118 2102 case 52: 2119 2103 YY_RULE_SETUP 2120 #line 6 54"libparse.l"2104 #line 638 "libparse.l" 2121 2105 { } 2122 2106 YY_BREAK 2123 2107 case 53: 2124 2108 YY_RULE_SETUP 2125 #line 6 55"libparse.l"2109 #line 639 "libparse.l" 2126 2110 { quote++; old_state = YYSTATE; 2127 2111 BEGIN(string); /* printf("%s", yytext); */ … … 2130 2114 case 54: 2131 2115 YY_RULE_SETUP 2132 #line 6 59"libparse.l"2116 #line 643 "libparse.l" 2133 2117 { 2134 2118 if(check) printf("*** found 2 proc whithin procedure '%s'.\n", … … 2139 2123 case 55: 2140 2124 YY_RULE_SETUP 2141 #line 6 64"libparse.l"2125 #line 648 "libparse.l" 2142 2126 { 2143 2127 if(check) printf("*** found 1 proc whithin procedure '%s'.\n", … … 2148 2132 case 56: 2149 2133 YY_RULE_SETUP 2150 #line 6 69"libparse.l"2134 #line 653 "libparse.l" 2151 2135 { 2152 2136 brace1++; … … 2158 2142 case 57: 2159 2143 YY_RULE_SETUP 2160 #line 6 75"libparse.l"2144 #line 659 "libparse.l" 2161 2145 { 2162 2146 #if YYLPDEBUG > 1 … … 2188 2172 case 58: 2189 2173 YY_RULE_SETUP 2190 #line 701"libparse.l"2174 #line 685 "libparse.l" 2191 2175 { 2192 2176 brace2++; /* printf("%s", yytext); */ … … 2195 2179 case 59: 2196 2180 YY_RULE_SETUP 2197 #line 704"libparse.l"2181 #line 688 "libparse.l" 2198 2182 { 2199 2183 brace2--; /* printf("%s", yytext); */ … … 2206 2190 case 60: 2207 2191 YY_RULE_SETUP 2208 #line 711"libparse.l"2192 #line 695 "libparse.l" 2209 2193 { 2210 2194 brace3++; /* printf("%s", yytext); */ … … 2213 2197 case 61: 2214 2198 YY_RULE_SETUP 2215 #line 714"libparse.l"2199 #line 698 "libparse.l" 2216 2200 { 2217 2201 brace3--; /* printf("%s", yytext); */ … … 2224 2208 case 62: 2225 2209 YY_RULE_SETUP 2226 #line 7 21"libparse.l"2210 #line 705 "libparse.l" 2227 2211 { yylplineno++; } 2228 2212 YY_BREAK 2229 2213 case 63: 2230 2214 YY_RULE_SETUP 2231 #line 7 22"libparse.l"2215 #line 706 "libparse.l" 2232 2216 { } 2233 2217 YY_BREAK 2234 2218 case 64: 2235 2219 YY_RULE_SETUP 2236 #line 7 24"libparse.l"2220 #line 708 "libparse.l" 2237 2221 { 2238 2222 quote++; BEGIN(string); … … 2245 2229 case 65: 2246 2230 YY_RULE_SETUP 2247 #line 7 31"libparse.l"2231 #line 715 "libparse.l" 2248 2232 { yylplineno++; } 2249 2233 YY_BREAK 2250 2234 case 66: 2251 2235 YY_RULE_SETUP 2252 #line 7 32"libparse.l"2236 #line 716 "libparse.l" 2253 2237 { } 2254 2238 YY_BREAK 2255 2239 case 67: 2256 2240 YY_RULE_SETUP 2257 #line 7 34"libparse.l"2241 #line 718 "libparse.l" 2258 2242 { 2259 2243 quote++; BEGIN(string); … … 2266 2250 case 68: 2267 2251 YY_RULE_SETUP 2268 #line 7 41"libparse.l"2252 #line 725 "libparse.l" 2269 2253 { yylplineno++; } 2270 2254 YY_BREAK 2271 2255 case 69: 2272 2256 YY_RULE_SETUP 2273 #line 7 42"libparse.l"2257 #line 726 "libparse.l" 2274 2258 { } 2275 2259 YY_BREAK 2276 2260 case 70: 2277 2261 YY_RULE_SETUP 2278 #line 7 45"libparse.l"2262 #line 729 "libparse.l" 2279 2263 { quote--; 2280 2264 copy_string(mode); … … 2289 2273 case 71: 2290 2274 YY_RULE_SETUP 2291 #line 7 54"libparse.l"2275 #line 738 "libparse.l" 2292 2276 { if (old_state == phelp) IncrCheckSum(*yytext);} 2293 2277 YY_BREAK 2294 2278 case 72: 2295 2279 YY_RULE_SETUP 2296 #line 7 55"libparse.l"2280 #line 739 "libparse.l" 2297 2281 { yylplineno++; if (old_state == phelp) IncrCheckSum('\n');} 2298 2282 YY_BREAK 2299 2283 case 73: 2300 2284 YY_RULE_SETUP 2301 #line 7 56"libparse.l"2285 #line 740 "libparse.l" 2302 2286 { if (old_state == phelp) IncrCheckSum(*yytext);} 2303 2287 YY_BREAK 2304 2288 case 74: 2305 2289 YY_RULE_SETUP 2306 #line 7 58"libparse.l"2290 #line 742 "libparse.l" 2307 2291 { } 2308 2292 YY_BREAK 2309 2293 case 75: 2310 2294 YY_RULE_SETUP 2311 #line 7 59"libparse.l"2295 #line 743 "libparse.l" 2312 2296 { quote++; old_state = YYSTATE; 2313 2297 BEGIN(string); /* printf("%s", yytext); */ … … 2316 2300 case 76: 2317 2301 YY_RULE_SETUP 2318 #line 7 62"libparse.l"2302 #line 746 "libparse.l" 2319 2303 { 2320 2304 brace1++; /* printf("(%d)%s", brace1, yytext); */ … … 2323 2307 case 77: 2324 2308 YY_RULE_SETUP 2325 #line 7 65"libparse.l"2309 #line 749 "libparse.l" 2326 2310 { 2327 2311 brace1--; /* printf("(%d)%s", brace1, yytext); */ … … 2336 2320 case 78: 2337 2321 YY_RULE_SETUP 2338 #line 7 74"libparse.l"2322 #line 758 "libparse.l" 2339 2323 { 2340 2324 brace2++; /* printf("%s", yytext); */ … … 2343 2327 case 79: 2344 2328 YY_RULE_SETUP 2345 #line 7 77"libparse.l"2329 #line 761 "libparse.l" 2346 2330 { 2347 2331 brace2--; /* printf("%s", yytext); */ … … 2350 2334 case 80: 2351 2335 YY_RULE_SETUP 2352 #line 7 80"libparse.l"2336 #line 764 "libparse.l" 2353 2337 { 2354 2338 brace3++; /* printf("%s", yytext); */ … … 2357 2341 case 81: 2358 2342 YY_RULE_SETUP 2359 #line 7 83"libparse.l"2343 #line 767 "libparse.l" 2360 2344 { 2361 2345 brace3--; /* printf("%s", yytext); */ … … 2364 2348 case 82: 2365 2349 YY_RULE_SETUP 2366 #line 7 86"libparse.l"2350 #line 770 "libparse.l" 2367 2351 { yylplineno++; } 2368 2352 YY_BREAK 2369 2353 case 83: 2370 2354 YY_RULE_SETUP 2371 #line 7 87"libparse.l"2355 #line 771 "libparse.l" 2372 2356 { } 2373 2357 YY_BREAK 2374 2358 case 84: 2375 2359 YY_RULE_SETUP 2376 #line 7 89"libparse.l"2360 #line 773 "libparse.l" 2377 2361 { quote--; 2378 2362 BEGIN(pexample); /* printf("%s", yytext); */ … … 2381 2365 case 85: 2382 2366 YY_RULE_SETUP 2383 #line 7 92"libparse.l"2367 #line 776 "libparse.l" 2384 2368 { } 2385 2369 YY_BREAK 2386 2370 case 86: 2387 2371 YY_RULE_SETUP 2388 #line 7 93"libparse.l"2372 #line 777 "libparse.l" 2389 2373 { } 2390 2374 YY_BREAK 2391 2375 case 87: 2392 2376 YY_RULE_SETUP 2393 #line 7 94"libparse.l"2377 #line 778 "libparse.l" 2394 2378 { yylplineno++; } 2395 2379 YY_BREAK 2396 2380 case 88: 2397 2381 YY_RULE_SETUP 2398 #line 7 95"libparse.l"2382 #line 779 "libparse.l" 2399 2383 { } 2400 2384 YY_BREAK 2401 2385 case 89: 2402 2386 YY_RULE_SETUP 2403 #line 7 97"libparse.l"2387 #line 781 "libparse.l" 2404 2388 { BEGIN(old_state); } 2405 2389 YY_BREAK 2406 2390 case 90: 2407 2391 YY_RULE_SETUP 2408 #line 7 98"libparse.l"2392 #line 782 "libparse.l" 2409 2393 { yylplineno++; } 2410 2394 YY_BREAK 2411 2395 case 91: 2412 2396 YY_RULE_SETUP 2413 #line 7 99"libparse.l"2397 #line 783 "libparse.l" 2414 2398 { } 2415 2399 YY_BREAK 2416 2400 case 92: 2417 2401 YY_RULE_SETUP 2418 #line 801"libparse.l"2402 #line 785 "libparse.l" 2419 2403 { yylplineno++; } 2420 2404 YY_BREAK 2421 2405 case 93: 2422 2406 YY_RULE_SETUP 2423 #line 802"libparse.l"2407 #line 786 "libparse.l" 2424 2408 { } 2425 2409 YY_BREAK 2426 2410 case 94: 2427 2411 YY_RULE_SETUP 2428 #line 803"libparse.l"2412 #line 787 "libparse.l" 2429 2413 { p_static = FALSE; 2430 2414 #if YYLPDEBUG > 1