Changeset d3e630 in git


Ignore:
Timestamp:
Jul 28, 2009, 4:19:05 PM (14 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
Children:
a07e45cfc61927c5711cee673474fb891d4574ac
Parents:
01cda73e965c4d5da3e4d30eb09639f00d9fbe4d
Message:
*hannes: code cleanup (see ChangeLog)


git-svn-id: file:///usr/local/Singular/svn/trunk@12029 2c84dea3-7e68-4137-9b89-c4e89433aadc
Files:
34 edited

Legend:

Unmodified
Added
Removed
  • Singular/ChangeLog

    r01cda73 rd3e630  
     1Changes 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
    17Changes w.r.t 3-1-0-4:
    28- 3-1-0-5: Tue Jul 28 14:03:59 CEST 2009
  • Singular/claptmpl.cc

    r01cda73 rd3e630  
    33*  Computer Algebra System SINGULAR     *
    44****************************************/
    5 // $Id: claptmpl.cc,v 1.43 2008-07-15 16:27:11 motsak Exp $
     5// $Id: claptmpl.cc,v 1.44 2009-07-28 14:18:32 Singular Exp $
    66/*
    77* ABSTRACT - instantiation of all templates
     
    6666  #endif
    6767// place here your own template stuff, not instantiated by factory
    68   #ifdef HAVE_LIBFAC_P
     68  // libfac:
    6969    #include <factor.h>
    7070
     
    158158    template class ListIterator<CFList>;
    159159
    160   #endif
    161160#endif
    162161
  • Singular/configure

    r01cda73 rd3e630  
    3333ac_help="$ac_help
    3434  --without-libfac        do not use libfac (no primary decompositions)"
    35 ac_help="$ac_help
    36   --with-namespaces       do compile namespace support"
    3735ac_help="$ac_help
    3836  --without-dl            do not use dynamic linking, modules, and kernel"
     
    567565
    568566echo $ac_n "checking CPU for singular""... $ac_c" 1>&6
    569 echo "configure:570: checking CPU for singular" >&5
     567echo "configure:568: checking CPU for singular" >&5
    570568ac_cv_singcpuname=`uname -m`
    571569echo "$ac_t""$ac_cv_singcpuname" 1>&6
    572570
    573571echo $ac_n "checking uname for singular""... $ac_c" 1>&6
    574 echo "configure:575: checking uname for singular" >&5
     572echo "configure:573: checking uname for singular" >&5
    575573if eval "test \"`echo '$''{'ac_cv_singuname'+set}'`\" = set"; then
    576574  echo $ac_n "(cached) $ac_c" 1>&6
     
    764762set dummy gcc; ac_word=$2
    765763echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    766 echo "configure:767: checking for $ac_word" >&5
     764echo "configure:765: checking for $ac_word" >&5
    767765if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    768766  echo $ac_n "(cached) $ac_c" 1>&6
     
    794792set dummy cc; ac_word=$2
    795793echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    796 echo "configure:797: checking for $ac_word" >&5
     794echo "configure:795: checking for $ac_word" >&5
    797795if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    798796  echo $ac_n "(cached) $ac_c" 1>&6
     
    845843set dummy cl; ac_word=$2
    846844echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    847 echo "configure:848: checking for $ac_word" >&5
     845echo "configure:846: checking for $ac_word" >&5
    848846if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    849847  echo $ac_n "(cached) $ac_c" 1>&6
     
    877875
    878876echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    879 echo "configure:880: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
     877echo "configure:878: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
    880878
    881879ac_ext=c
     
    888886cat > conftest.$ac_ext << EOF
    889887
    890 #line 891 "configure"
     888#line 889 "configure"
    891889#include "confdefs.h"
    892890
    893891main(){return(0);}
    894892EOF
    895 if { (eval echo configure:896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     893if { (eval echo configure:894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    896894  ac_cv_prog_cc_works=yes
    897895  # If we can't run a trivial program, we are probably using a cross compiler.
     
    919917fi
    920918echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    921 echo "configure:922: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
     919echo "configure:920: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
    922920echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
    923921cross_compiling=$ac_cv_prog_cc_cross
    924922
    925923echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
    926 echo "configure:927: checking whether we are using GNU C" >&5
     924echo "configure:925: checking whether we are using GNU C" >&5
    927925if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
    928926  echo $ac_n "(cached) $ac_c" 1>&6
     
    933931#endif
    934932EOF
    935 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:936: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     933if { 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
    936934  ac_cv_prog_gcc=yes
    937935else
     
    952950CFLAGS=
    953951echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
    954 echo "configure:955: checking whether ${CC-cc} accepts -g" >&5
     952echo "configure:953: checking whether ${CC-cc} accepts -g" >&5
    955953if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
    956954  echo $ac_n "(cached) $ac_c" 1>&6
     
    984982
    985983echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
    986 echo "configure:987: checking how to run the C preprocessor" >&5
     984echo "configure:985: checking how to run the C preprocessor" >&5
    987985# On Suns, sometimes $CPP names a directory.
    988986if test -n "$CPP" && test -d "$CPP"; then
     
    999997  # not just through cpp.
    1000998  cat > conftest.$ac_ext <<EOF
    1001 #line 1002 "configure"
     999#line 1000 "configure"
    10021000#include "confdefs.h"
    10031001#include <assert.h>
     
    10051003EOF
    10061004ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1007 { (eval echo configure:1008: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1005{ (eval echo configure:1006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    10081006ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    10091007if test -z "$ac_err"; then
     
    10161014  CPP="${CC-cc} -E -traditional-cpp"
    10171015  cat > conftest.$ac_ext <<EOF
    1018 #line 1019 "configure"
     1016#line 1017 "configure"
    10191017#include "confdefs.h"
    10201018#include <assert.h>
     
    10221020EOF
    10231021ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1024 { (eval echo configure:1025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1022{ (eval echo configure:1023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    10251023ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    10261024if test -z "$ac_err"; then
     
    10331031  CPP="${CC-cc} -nologo -E"
    10341032  cat > conftest.$ac_ext <<EOF
    1035 #line 1036 "configure"
     1033#line 1034 "configure"
    10361034#include "confdefs.h"
    10371035#include <assert.h>
     
    10391037EOF
    10401038ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1041 { (eval echo configure:1042: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1039{ (eval echo configure:1040: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    10421040ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    10431041if test -z "$ac_err"; then
     
    10681066set dummy $ac_prog; ac_word=$2
    10691067echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1070 echo "configure:1071: checking for $ac_word" >&5
     1068echo "configure:1069: checking for $ac_word" >&5
    10711069if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
    10721070  echo $ac_n "(cached) $ac_c" 1>&6
     
    11001098
    11011099echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    1102 echo "configure:1103: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
     1100echo "configure:1101: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
    11031101
    11041102ac_ext=C
     
    11111109cat > conftest.$ac_ext << EOF
    11121110
    1113 #line 1114 "configure"
     1111#line 1112 "configure"
    11141112#include "confdefs.h"
    11151113
    11161114int main(){return(0);}
    11171115EOF
    1118 if { (eval echo configure:1119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1116if { (eval echo configure:1117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    11191117  ac_cv_prog_cxx_works=yes
    11201118  # If we can't run a trivial program, we are probably using a cross compiler.
     
    11421140fi
    11431141echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    1144 echo "configure:1145: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
     1142echo "configure:1143: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
    11451143echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
    11461144cross_compiling=$ac_cv_prog_cxx_cross
    11471145
    11481146echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
    1149 echo "configure:1150: checking whether we are using GNU C++" >&5
     1147echo "configure:1148: checking whether we are using GNU C++" >&5
    11501148if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
    11511149  echo $ac_n "(cached) $ac_c" 1>&6
     
    11561154#endif
    11571155EOF
    1158 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1159: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     1156if { 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
    11591157  ac_cv_prog_gxx=yes
    11601158else
     
    11751173CXXFLAGS=
    11761174echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
    1177 echo "configure:1178: checking whether ${CXX-g++} accepts -g" >&5
     1175echo "configure:1176: checking whether ${CXX-g++} accepts -g" >&5
    11781176if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
    11791177  echo $ac_n "(cached) $ac_c" 1>&6
     
    12371235# ./install, which can be erroneously created by make from ./install.sh.
    12381236echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
    1239 echo "configure:1240: checking for a BSD compatible install" >&5
     1237echo "configure:1238: checking for a BSD compatible install" >&5
    12401238if test -z "$INSTALL"; then
    12411239if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
     
    12901288
    12911289echo $ac_n "checking for AIX""... $ac_c" 1>&6
    1292 echo "configure:1293: checking for AIX" >&5
     1290echo "configure:1291: checking for AIX" >&5
    12931291cat > conftest.$ac_ext <<EOF
    1294 #line 1295 "configure"
     1292#line 1293 "configure"
    12951293#include "confdefs.h"
    12961294#ifdef _AIX
     
    13181316#                       other:       CC=cc   CXX=c++
    13191317echo $ac_n "checking gcc version""... $ac_c" 1>&6
    1320 echo "configure:1321: checking gcc version" >&5
     1318echo "configure:1319: checking gcc version" >&5
    13211319if eval "test \"`echo '$''{'ac_cv_c_cpp'+set}'`\" = set"; then
    13221320  echo $ac_n "(cached) $ac_c" 1>&6
     
    13501348  # check whether gcc accepts --no-rtti
    13511349  echo $ac_n "checking whether gcc accepts --no-rtti""... $ac_c" 1>&6
    1352 echo "configure:1353: checking whether gcc accepts --no-rtti" >&5
     1350echo "configure:1351: checking whether gcc accepts --no-rtti" >&5
    13531351  CXXFLAGS="${CXXFLAGS} --no-rtti"
    13541352  if eval "test \"`echo '$''{'ac_cv_cxx_have_rtti'+set}'`\" = set"; then
     
    13561354else
    13571355  cat > conftest.$ac_ext <<EOF
    1358 #line 1359 "configure"
     1356#line 1357 "configure"
    13591357#include "confdefs.h"
    13601358
     
    13631361; return 0; }
    13641362EOF
    1365 if { (eval echo configure:1366: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     1363if { (eval echo configure:1364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    13661364  rm -rf conftest*
    13671365  ac_cv_cxx_have_rtti=yes
     
    13861384# check whether gcc accepts --no-exceptions
    13871385  echo $ac_n "checking whether gcc accepts --no-exceptions""... $ac_c" 1>&6
    1388 echo "configure:1389: checking whether gcc accepts --no-exceptions" >&5
     1386echo "configure:1387: checking whether gcc accepts --no-exceptions" >&5
    13891387  CXXFLAGS="${CXXFLAGS} --no-exceptions"
    13901388  if eval "test \"`echo '$''{'ac_cv_cxx_have_exceptions'+set}'`\" = set"; then
     
    13921390else
    13931391  cat > conftest.$ac_ext <<EOF
    1394 #line 1395 "configure"
     1392#line 1393 "configure"
    13951393#include "confdefs.h"
    13961394
     
    13991397; return 0; }
    14001398EOF
    1401 if { (eval echo configure:1402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1399if { (eval echo configure:1400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    14021400  rm -rf conftest*
    14031401  ac_cv_cxx_have_exceptions=yes
     
    14371435then
    14381436  echo $ac_n "checking whether compiler accepts -pipe""... $ac_c" 1>&6
    1439 echo "configure:1440: checking whether compiler accepts -pipe" >&5
     1437echo "configure:1438: checking whether compiler accepts -pipe" >&5
    14401438  temp_cflags="${CFLAGS}"
    14411439  CFLAGS="${CFLAGS} -pipe"
     
    14441442else
    14451443  cat > conftest.$ac_ext <<EOF
    1446 #line 1447 "configure"
     1444#line 1445 "configure"
    14471445#include "confdefs.h"
    14481446
     
    14511449; return 0; }
    14521450EOF
    1453 if { (eval echo configure:1454: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     1451if { (eval echo configure:1452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    14541452  rm -rf conftest*
    14551453  ac_cv_cxx_have_pipe=yes
     
    14781476# Customize CFLAGS
    14791477echo $ac_n "checking whether _AIX is defined""... $ac_c" 1>&6
    1480 echo "configure:1481: checking whether _AIX is defined" >&5
     1478echo "configure:1479: checking whether _AIX is defined" >&5
    14811479if eval "test \"`echo '$''{'ac_cv_is_aix'+set}'`\" = set"; then
    14821480  echo $ac_n "(cached) $ac_c" 1>&6
    14831481else
    14841482  cat > conftest.$ac_ext <<EOF
    1485 #line 1486 "configure"
     1483#line 1484 "configure"
    14861484#include "confdefs.h"
    14871485#ifdef _AIX
     
    15421540
    15431541echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
    1544 echo "configure:1545: checking whether ${MAKE-make} sets \${MAKE}" >&5
     1542echo "configure:1543: checking whether ${MAKE-make} sets \${MAKE}" >&5
    15451543set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
    15461544if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
     
    16251623if test "${with_lex+set}" != set; then
    16261624  echo $ac_n "checking for flex""... $ac_c" 1>&6
    1627 echo "configure:1628: checking for flex" >&5
     1625echo "configure:1626: checking for flex" >&5
    16281626    cmd="egrep [2-9]\.[5-9]"
    16291627    if eval "test \"`echo '$''{'ac_cv_prog_flex'+set}'`\" = set"; then
     
    16571655set dummy $ac_prog; ac_word=$2
    16581656echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1659 echo "configure:1660: checking for $ac_word" >&5
     1657echo "configure:1658: checking for $ac_word" >&5
    16601658if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
    16611659  echo $ac_n "(cached) $ac_c" 1>&6
     
    16971695set dummy $ac_prog; ac_word=$2
    16981696echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1699 echo "configure:1700: checking for $ac_word" >&5
     1697echo "configure:1698: checking for $ac_word" >&5
    17001698if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
    17011699  echo $ac_n "(cached) $ac_c" 1>&6
     
    17321730# ln -s
    17331731echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
    1734 echo "configure:1735: checking whether ln -s works" >&5
     1732echo "configure:1733: checking whether ln -s works" >&5
    17351733if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
    17361734  echo $ac_n "(cached) $ac_c" 1>&6
     
    17581756set dummy $ac_prog; ac_word=$2
    17591757echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1760 echo "configure:1761: checking for $ac_word" >&5
     1758echo "configure:1759: checking for $ac_word" >&5
    17611759if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
    17621760  echo $ac_n "(cached) $ac_c" 1>&6
     
    17931791if test "$ac_cv_singuname" != ix86-Win; then
    17941792echo $ac_n "checking for atof in -lm""... $ac_c" 1>&6
    1795 echo "configure:1796: checking for atof in -lm" >&5
     1793echo "configure:1794: checking for atof in -lm" >&5
    17961794ac_lib_var=`echo m'_'atof | sed 'y%./+-%__p_%'`
    17971795if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    18011799LIBS="-lm  $LIBS"
    18021800cat > conftest.$ac_ext <<EOF
    1803 #line 1804 "configure"
     1801#line 1802 "configure"
    18041802#include "confdefs.h"
    18051803/* Override any gcc2 internal prototype to avoid an error.  */
     
    18121810; return 0; }
    18131811EOF
    1814 if { (eval echo configure:1815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1812if { (eval echo configure:1813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    18151813  rm -rf conftest*
    18161814  eval "ac_cv_lib_$ac_lib_var=yes"
     
    18411839fi
    18421840echo $ac_n "checking for  in -lnsl""... $ac_c" 1>&6
    1843 echo "configure:1844: checking for  in -lnsl" >&5
     1841echo "configure:1842: checking for  in -lnsl" >&5
    18441842ac_lib_var=`echo nsl'_' | sed 'y%./+-%__p_%'`
    18451843if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    18491847LIBS="-lnsl  $LIBS"
    18501848cat > conftest.$ac_ext <<EOF
    1851 #line 1852 "configure"
     1849#line 1850 "configure"
    18521850#include "confdefs.h"
    18531851/* Override any gcc2 internal prototype to avoid an error.  */
     
    18601858; return 0; }
    18611859EOF
    1862 if { (eval echo configure:1863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1860if { (eval echo configure:1861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    18631861  rm -rf conftest*
    18641862  eval "ac_cv_lib_$ac_lib_var=yes"
     
    18881886
    18891887echo $ac_n "checking for  in -lsocket""... $ac_c" 1>&6
    1890 echo "configure:1891: checking for  in -lsocket" >&5
     1888echo "configure:1889: checking for  in -lsocket" >&5
    18911889ac_lib_var=`echo socket'_' | sed 'y%./+-%__p_%'`
    18921890if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    18961894LIBS="-lsocket  $LIBS"
    18971895cat > conftest.$ac_ext <<EOF
    1898 #line 1899 "configure"
     1896#line 1897 "configure"
    18991897#include "confdefs.h"
    19001898/* Override any gcc2 internal prototype to avoid an error.  */
     
    19071905; return 0; }
    19081906EOF
    1909 if { (eval echo configure:1910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1907if { (eval echo configure:1908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    19101908  rm -rf conftest*
    19111909  eval "ac_cv_lib_$ac_lib_var=yes"
     
    19381936
    19391937echo $ac_n "checking for setenv in -lbsd""... $ac_c" 1>&6
    1940 echo "configure:1941: checking for setenv in -lbsd" >&5
     1938echo "configure:1939: checking for setenv in -lbsd" >&5
    19411939ac_lib_var=`echo bsd'_'setenv | sed 'y%./+-%__p_%'`
    19421940if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    19461944LIBS="-lbsd  $LIBS"
    19471945cat > conftest.$ac_ext <<EOF
    1948 #line 1949 "configure"
     1946#line 1947 "configure"
    19491947#include "confdefs.h"
    19501948/* Override any gcc2 internal prototype to avoid an error.  */
     
    19571955; return 0; }
    19581956EOF
    1959 if { (eval echo configure:1960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1957if { (eval echo configure:1958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    19601958  rm -rf conftest*
    19611959  eval "ac_cv_lib_$ac_lib_var=yes"
     
    19851983
    19861984echo $ac_n "checking for listen in -lsocket""... $ac_c" 1>&6
    1987 echo "configure:1988: checking for listen in -lsocket" >&5
     1985echo "configure:1986: checking for listen in -lsocket" >&5
    19881986ac_lib_var=`echo socket'_'listen | sed 'y%./+-%__p_%'`
    19891987if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    19931991LIBS="-lsocket  $LIBS"
    19941992cat > conftest.$ac_ext <<EOF
    1995 #line 1996 "configure"
     1993#line 1994 "configure"
    19961994#include "confdefs.h"
    19971995/* Override any gcc2 internal prototype to avoid an error.  */
     
    20042002; return 0; }
    20052003EOF
    2006 if { (eval echo configure:2007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2004if { (eval echo configure:2005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    20072005  rm -rf conftest*
    20082006  eval "ac_cv_lib_$ac_lib_var=yes"
     
    20322030
    20332031echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
    2034 echo "configure:2035: checking for gethostbyname in -lnsl" >&5
     2032echo "configure:2033: checking for gethostbyname in -lnsl" >&5
    20352033ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
    20362034if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    20402038LIBS="-lnsl  $LIBS"
    20412039cat > conftest.$ac_ext <<EOF
    2042 #line 2043 "configure"
     2040#line 2041 "configure"
    20432041#include "confdefs.h"
    20442042/* Override any gcc2 internal prototype to avoid an error.  */
     
    20512049; return 0; }
    20522050EOF
    2053 if { (eval echo configure:2054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2051if { (eval echo configure:2052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    20542052  rm -rf conftest*
    20552053  eval "ac_cv_lib_$ac_lib_var=yes"
     
    20832081        HPUX*)
    20842082          echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
    2085 echo "configure:2086: checking for shl_load in -ldld" >&5
     2083echo "configure:2084: checking for shl_load in -ldld" >&5
    20862084ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
    20872085if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    20912089LIBS="-ldld  $LIBS"
    20922090cat > conftest.$ac_ext <<EOF
    2093 #line 2094 "configure"
     2091#line 2092 "configure"
    20942092#include "confdefs.h"
    20952093/* Override any gcc2 internal prototype to avoid an error.  */
     
    21022100; return 0; }
    21032101EOF
    2104 if { (eval echo configure:2105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2102if { (eval echo configure:2103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    21052103  rm -rf conftest*
    21062104  eval "ac_cv_lib_$ac_lib_var=yes"
     
    21412139        *Linux*)
    21422140          echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
    2143 echo "configure:2144: checking for dlopen in -ldl" >&5
     2141echo "configure:2142: checking for dlopen in -ldl" >&5
    21442142ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
    21452143if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    21492147LIBS="-ldl  $LIBS"
    21502148cat > conftest.$ac_ext <<EOF
    2151 #line 2152 "configure"
     2149#line 2150 "configure"
    21522150#include "confdefs.h"
    21532151/* Override any gcc2 internal prototype to avoid an error.  */
     
    21602158; return 0; }
    21612159EOF
    2162 if { (eval echo configure:2163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2160if { (eval echo configure:2161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    21632161  rm -rf conftest*
    21642162  eval "ac_cv_lib_$ac_lib_var=yes"
     
    22082206        SunOS-5)
    22092207          echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
    2210 echo "configure:2211: checking for dlopen in -ldl" >&5
     2208echo "configure:2209: checking for dlopen in -ldl" >&5
    22112209ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
    22122210if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    22162214LIBS="-ldl  $LIBS"
    22172215cat > conftest.$ac_ext <<EOF
    2218 #line 2219 "configure"
     2216#line 2217 "configure"
    22192217#include "confdefs.h"
    22202218/* Override any gcc2 internal prototype to avoid an error.  */
     
    22272225; return 0; }
    22282226EOF
    2229 if { (eval echo configure:2230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2227if { (eval echo configure:2228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    22302228  rm -rf conftest*
    22312229  eval "ac_cv_lib_$ac_lib_var=yes"
     
    22672265        ppcMac-darwin)
    22682266          echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
    2269 echo "configure:2270: checking for dlopen in -ldl" >&5
     2267echo "configure:2268: checking for dlopen in -ldl" >&5
    22702268ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
    22712269if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    22752273LIBS="-ldl  $LIBS"
    22762274cat > conftest.$ac_ext <<EOF
    2277 #line 2278 "configure"
     2275#line 2276 "configure"
    22782276#include "confdefs.h"
    22792277/* Override any gcc2 internal prototype to avoid an error.  */
     
    22862284; return 0; }
    22872285EOF
    2288 if { (eval echo configure:2289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2286if { (eval echo configure:2287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    22892287  rm -rf conftest*
    22902288  eval "ac_cv_lib_$ac_lib_var=yes"
     
    23252323        ix86Mac-darwin)
    23262324          echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
    2327 echo "configure:2328: checking for dlopen in -ldl" >&5
     2325echo "configure:2326: checking for dlopen in -ldl" >&5
    23282326ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
    23292327if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    23332331LIBS="-ldl  $LIBS"
    23342332cat > conftest.$ac_ext <<EOF
    2335 #line 2336 "configure"
     2333#line 2334 "configure"
    23362334#include "confdefs.h"
    23372335/* Override any gcc2 internal prototype to avoid an error.  */
     
    23442342; return 0; }
    23452343EOF
    2346 if { (eval echo configure:2347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2344if { (eval echo configure:2345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    23472345  rm -rf conftest*
    23482346  eval "ac_cv_lib_$ac_lib_var=yes"
     
    23832381        ix86-freebsd)
    23842382          echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
    2385 echo "configure:2386: checking for dlopen in -lc" >&5
     2383echo "configure:2384: checking for dlopen in -lc" >&5
    23862384ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'`
    23872385if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    23912389LIBS="-lc  $LIBS"
    23922390cat > conftest.$ac_ext <<EOF
    2393 #line 2394 "configure"
     2391#line 2392 "configure"
    23942392#include "confdefs.h"
    23952393/* Override any gcc2 internal prototype to avoid an error.  */
     
    24022400; return 0; }
    24032401EOF
    2404 if { (eval echo configure:2405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2402if { (eval echo configure:2403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    24052403  rm -rf conftest*
    24062404  eval "ac_cv_lib_$ac_lib_var=yes"
     
    24492447# heder file checks
    24502448echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
    2451 echo "configure:2452: checking for ANSI C header files" >&5
     2449echo "configure:2450: checking for ANSI C header files" >&5
    24522450if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
    24532451  echo $ac_n "(cached) $ac_c" 1>&6
    24542452else
    24552453  cat > conftest.$ac_ext <<EOF
    2456 #line 2457 "configure"
     2454#line 2455 "configure"
    24572455#include "confdefs.h"
    24582456#include <stdlib.h>
     
    24622460EOF
    24632461ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2464 { (eval echo configure:2465: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2462{ (eval echo configure:2463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    24652463ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    24662464if test -z "$ac_err"; then
     
    24792477  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    24802478cat > conftest.$ac_ext <<EOF
    2481 #line 2482 "configure"
     2479#line 2480 "configure"
    24822480#include "confdefs.h"
    24832481#include <string.h>
     
    24972495  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    24982496cat > conftest.$ac_ext <<EOF
    2499 #line 2500 "configure"
     2497#line 2498 "configure"
    25002498#include "confdefs.h"
    25012499#include <stdlib.h>
     
    25182516else
    25192517  cat > conftest.$ac_ext <<EOF
    2520 #line 2521 "configure"
     2518#line 2519 "configure"
    25212519#include "confdefs.h"
    25222520#include <ctype.h>
     
    25292527
    25302528EOF
    2531 if { (eval echo configure:2532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     2529if { (eval echo configure:2530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    25322530then
    25332531  :
     
    25562554ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    25572555echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    2558 echo "configure:2559: checking for $ac_hdr" >&5
     2556echo "configure:2557: checking for $ac_hdr" >&5
    25592557if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    25602558  echo $ac_n "(cached) $ac_c" 1>&6
    25612559else
    25622560  cat > conftest.$ac_ext <<EOF
    2563 #line 2564 "configure"
     2561#line 2562 "configure"
    25642562#include "confdefs.h"
    25652563#include <$ac_hdr>
    25662564EOF
    25672565ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2568 { (eval echo configure:2569: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2566{ (eval echo configure:2567: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    25692567ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    25702568if test -z "$ac_err"; then
     
    26002598ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    26012599echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    2602 echo "configure:2603: checking for $ac_hdr" >&5
     2600echo "configure:2601: checking for $ac_hdr" >&5
    26032601if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    26042602  echo $ac_n "(cached) $ac_c" 1>&6
    26052603else
    26062604  cat > conftest.$ac_ext <<EOF
    2607 #line 2608 "configure"
     2605#line 2606 "configure"
    26082606#include "confdefs.h"
    26092607#include <$ac_hdr>
    26102608EOF
    26112609ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2612 { (eval echo configure:2613: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2610{ (eval echo configure:2611: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    26132611ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    26142612if test -z "$ac_err"; then
     
    26392637# typedefs, structures
    26402638echo $ac_n "checking for working const""... $ac_c" 1>&6
    2641 echo "configure:2642: checking for working const" >&5
     2639echo "configure:2640: checking for working const" >&5
    26422640if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
    26432641  echo $ac_n "(cached) $ac_c" 1>&6
    26442642else
    26452643  cat > conftest.$ac_ext <<EOF
    2646 #line 2647 "configure"
     2644#line 2645 "configure"
    26472645#include "confdefs.h"
    26482646
     
    26932691; return 0; }
    26942692EOF
    2695 if { (eval echo configure:2696: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2693if { (eval echo configure:2694: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    26962694  rm -rf conftest*
    26972695  ac_cv_c_const=yes
     
    27142712
    27152713echo $ac_n "checking for inline""... $ac_c" 1>&6
    2716 echo "configure:2717: checking for inline" >&5
     2714echo "configure:2715: checking for inline" >&5
    27172715if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
    27182716  echo $ac_n "(cached) $ac_c" 1>&6
     
    27212719for ac_kw in inline __inline__ __inline; do
    27222720  cat > conftest.$ac_ext <<EOF
    2723 #line 2724 "configure"
     2721#line 2722 "configure"
    27242722#include "confdefs.h"
    27252723
     
    27282726; return 0; }
    27292727EOF
    2730 if { (eval echo configure:2731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2728if { (eval echo configure:2729: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    27312729  rm -rf conftest*
    27322730  ac_cv_c_inline=$ac_kw; break
     
    27542752
    27552753echo $ac_n "checking for size_t""... $ac_c" 1>&6
    2756 echo "configure:2757: checking for size_t" >&5
     2754echo "configure:2755: checking for size_t" >&5
    27572755if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
    27582756  echo $ac_n "(cached) $ac_c" 1>&6
    27592757else
    27602758  cat > conftest.$ac_ext <<EOF
    2761 #line 2762 "configure"
     2759#line 2760 "configure"
    27622760#include "confdefs.h"
    27632761#include <sys/types.h>
     
    27872785
    27882786echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
    2789 echo "configure:2790: checking whether struct tm is in sys/time.h or time.h" >&5
     2787echo "configure:2788: checking whether struct tm is in sys/time.h or time.h" >&5
    27902788if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
    27912789  echo $ac_n "(cached) $ac_c" 1>&6
    27922790else
    27932791  cat > conftest.$ac_ext <<EOF
    2794 #line 2795 "configure"
     2792#line 2793 "configure"
    27952793#include "confdefs.h"
    27962794#include <sys/types.h>
     
    28002798; return 0; }
    28012799EOF
    2802 if { (eval echo configure:2803: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2800if { (eval echo configure:2801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    28032801  rm -rf conftest*
    28042802  ac_cv_struct_tm=time.h
     
    28212819
    28222820echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
    2823 echo "configure:2824: checking whether time.h and sys/time.h may both be included" >&5
     2821echo "configure:2822: checking whether time.h and sys/time.h may both be included" >&5
    28242822if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
    28252823  echo $ac_n "(cached) $ac_c" 1>&6
    28262824else
    28272825  cat > conftest.$ac_ext <<EOF
    2828 #line 2829 "configure"
     2826#line 2827 "configure"
    28292827#include "confdefs.h"
    28302828#include <sys/types.h>
     
    28352833; return 0; }
    28362834EOF
    2837 if { (eval echo configure:2838: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2835if { (eval echo configure:2836: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    28382836  rm -rf conftest*
    28392837  ac_cv_header_time=yes
     
    28602858# for constant arguments.  Useless!
    28612859echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
    2862 echo "configure:2863: checking for working alloca.h" >&5
     2860echo "configure:2861: checking for working alloca.h" >&5
    28632861if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
    28642862  echo $ac_n "(cached) $ac_c" 1>&6
    28652863else
    28662864  cat > conftest.$ac_ext <<EOF
    2867 #line 2868 "configure"
     2865#line 2866 "configure"
    28682866#include "confdefs.h"
    28692867#include <alloca.h>
     
    28722870; return 0; }
    28732871EOF
    2874 if { (eval echo configure:2875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2872if { (eval echo configure:2873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    28752873  rm -rf conftest*
    28762874  ac_cv_header_alloca_h=yes
     
    28932891
    28942892echo $ac_n "checking for alloca""... $ac_c" 1>&6
    2895 echo "configure:2896: checking for alloca" >&5
     2893echo "configure:2894: checking for alloca" >&5
    28962894if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
    28972895  echo $ac_n "(cached) $ac_c" 1>&6
    28982896else
    28992897  cat > conftest.$ac_ext <<EOF
    2900 #line 2901 "configure"
     2898#line 2899 "configure"
    29012899#include "confdefs.h"
    29022900
     
    29262924; return 0; }
    29272925EOF
    2928 if { (eval echo configure:2929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2926if { (eval echo configure:2927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    29292927  rm -rf conftest*
    29302928  ac_cv_func_alloca_works=yes
     
    29582956
    29592957echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
    2960 echo "configure:2961: checking whether alloca needs Cray hooks" >&5
     2958echo "configure:2959: checking whether alloca needs Cray hooks" >&5
    29612959if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
    29622960  echo $ac_n "(cached) $ac_c" 1>&6
    29632961else
    29642962  cat > conftest.$ac_ext <<EOF
    2965 #line 2966 "configure"
     2963#line 2964 "configure"
    29662964#include "confdefs.h"
    29672965#if defined(CRAY) && ! defined(CRAY2)
     
    29882986for ac_func in _getb67 GETB67 getb67; do
    29892987  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2990 echo "configure:2991: checking for $ac_func" >&5
     2988echo "configure:2989: checking for $ac_func" >&5
    29912989if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    29922990  echo $ac_n "(cached) $ac_c" 1>&6
    29932991else
    29942992  cat > conftest.$ac_ext <<EOF
    2995 #line 2996 "configure"
     2993#line 2994 "configure"
    29962994#include "confdefs.h"
    29972995/* System header to define __stub macros and hopefully few prototypes,
     
    30163014; return 0; }
    30173015EOF
    3018 if { (eval echo configure:3019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     3016if { (eval echo configure:3017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    30193017  rm -rf conftest*
    30203018  eval "ac_cv_func_$ac_func=yes"
     
    30433041
    30443042echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
    3045 echo "configure:3046: checking stack direction for C alloca" >&5
     3043echo "configure:3044: checking stack direction for C alloca" >&5
    30463044if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
    30473045  echo $ac_n "(cached) $ac_c" 1>&6
     
    30513049else
    30523050  cat > conftest.$ac_ext <<EOF
    3053 #line 3054 "configure"
     3051#line 3052 "configure"
    30543052#include "confdefs.h"
    30553053find_stack_direction ()
     
    30703068}
    30713069EOF
    3072 if { (eval echo configure:3073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     3070if { (eval echo configure:3071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    30733071then
    30743072  ac_cv_c_stack_direction=1
     
    30933091if test $ac_cv_prog_gcc = yes; then
    30943092    echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
    3095 echo "configure:3096: checking whether ${CC-cc} needs -traditional" >&5
     3093echo "configure:3094: checking whether ${CC-cc} needs -traditional" >&5
    30963094if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
    30973095  echo $ac_n "(cached) $ac_c" 1>&6
     
    30993097    ac_pattern="Autoconf.*'x'"
    31003098  cat > conftest.$ac_ext <<EOF
    3101 #line 3102 "configure"
     3099#line 3100 "configure"
    31023100#include "confdefs.h"
    31033101#include <sgtty.h>
     
    31173115  if test $ac_cv_prog_gcc_traditional = no; then
    31183116    cat > conftest.$ac_ext <<EOF
    3119 #line 3120 "configure"
     3117#line 3118 "configure"
    31203118#include "confdefs.h"
    31213119#include <termio.h>
     
    31423140ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    31433141echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    3144 echo "configure:3145: checking for $ac_hdr" >&5
     3142echo "configure:3143: checking for $ac_hdr" >&5
    31453143if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    31463144  echo $ac_n "(cached) $ac_c" 1>&6
    31473145else
    31483146  cat > conftest.$ac_ext <<EOF
    3149 #line 3150 "configure"
     3147#line 3148 "configure"
    31503148#include "confdefs.h"
    31513149#include <$ac_hdr>
    31523150EOF
    31533151ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    3154 { (eval echo configure:3155: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     3152{ (eval echo configure:3153: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    31553153ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    31563154if test -z "$ac_err"; then
     
    31813179do
    31823180echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    3183 echo "configure:3184: checking for $ac_func" >&5
     3181echo "configure:3182: checking for $ac_func" >&5
    31843182if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    31853183  echo $ac_n "(cached) $ac_c" 1>&6
    31863184else
    31873185  cat > conftest.$ac_ext <<EOF
    3188 #line 3189 "configure"
     3186#line 3187 "configure"
    31893187#include "confdefs.h"
    31903188/* System header to define __stub macros and hopefully few prototypes,
     
    32093207; return 0; }
    32103208EOF
    3211 if { (eval echo configure:3212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     3209if { (eval echo configure:3210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    32123210  rm -rf conftest*
    32133211  eval "ac_cv_func_$ac_func=yes"
     
    32343232
    32353233echo $ac_n "checking for working mmap""... $ac_c" 1>&6
    3236 echo "configure:3237: checking for working mmap" >&5
     3234echo "configure:3235: checking for working mmap" >&5
    32373235if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
    32383236  echo $ac_n "(cached) $ac_c" 1>&6
     
    32423240else
    32433241  cat > conftest.$ac_ext <<EOF
    3244 #line 3245 "configure"
     3242#line 3243 "configure"
    32453243#include "confdefs.h"
    32463244
     
    33823380
    33833381EOF
    3384 if { (eval echo configure:3385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     3382if { (eval echo configure:3383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    33853383then
    33863384  ac_cv_func_mmap_fixed_mapped=yes
     
    34053403
    34063404echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
    3407 echo "configure:3408: checking return type of signal handlers" >&5
     3405echo "configure:3406: checking return type of signal handlers" >&5
    34083406if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
    34093407  echo $ac_n "(cached) $ac_c" 1>&6
    34103408else
    34113409  cat > conftest.$ac_ext <<EOF
    3412 #line 3413 "configure"
     3410#line 3411 "configure"
    34133411#include "confdefs.h"
    34143412#include <sys/types.h>
     
    34273425; return 0; }
    34283426EOF
    3429 if { (eval echo configure:3430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     3427if { (eval echo configure:3428: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    34303428  rm -rf conftest*
    34313429  ac_cv_type_signal=void
     
    34463444
    34473445echo $ac_n "checking for vprintf""... $ac_c" 1>&6
    3448 echo "configure:3449: checking for vprintf" >&5
     3446echo "configure:3447: checking for vprintf" >&5
    34493447if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
    34503448  echo $ac_n "(cached) $ac_c" 1>&6
    34513449else
    34523450  cat > conftest.$ac_ext <<EOF
    3453 #line 3454 "configure"
     3451#line 3452 "configure"
    34543452#include "confdefs.h"
    34553453/* System header to define __stub macros and hopefully few prototypes,
     
    34743472; return 0; }
    34753473EOF
    3476 if { (eval echo configure:3477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     3474if { (eval echo configure:3475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    34773475  rm -rf conftest*
    34783476  eval "ac_cv_func_vprintf=yes"
     
    34983496if test "$ac_cv_func_vprintf" != yes; then
    34993497echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
    3500 echo "configure:3501: checking for _doprnt" >&5
     3498echo "configure:3499: checking for _doprnt" >&5
    35013499if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
    35023500  echo $ac_n "(cached) $ac_c" 1>&6
    35033501else
    35043502  cat > conftest.$ac_ext <<EOF
    3505 #line 3506 "configure"
     3503#line 3504 "configure"
    35063504#include "confdefs.h"
    35073505/* System header to define __stub macros and hopefully few prototypes,
     
    35263524; return 0; }
    35273525EOF
    3528 if { (eval echo configure:3529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     3526if { (eval echo configure:3527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    35293527  rm -rf conftest*
    35303528  eval "ac_cv_func__doprnt=yes"
     
    35523550
    35533551echo $ac_n "checking for library containing setenv""... $ac_c" 1>&6
    3554 echo "configure:3555: checking for library containing setenv" >&5
     3552echo "configure:3553: checking for library containing setenv" >&5
    35553553if eval "test \"`echo '$''{'ac_cv_search_setenv'+set}'`\" = set"; then
    35563554  echo $ac_n "(cached) $ac_c" 1>&6
     
    35593557ac_cv_search_setenv="no"
    35603558cat > conftest.$ac_ext <<EOF
    3561 #line 3562 "configure"
     3559#line 3560 "configure"
    35623560#include "confdefs.h"
    35633561/* Override any gcc2 internal prototype to avoid an error.  */
     
    35703568; return 0; }
    35713569EOF
    3572 if { (eval echo configure:3573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     3570if { (eval echo configure:3571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    35733571  rm -rf conftest*
    35743572  ac_cv_search_setenv="none required"
     
    35813579LIBS="-l$i  $ac_func_search_save_LIBS"
    35823580cat > conftest.$ac_ext <<EOF
    3583 #line 3584 "configure"
     3581#line 3582 "configure"
    35843582#include "confdefs.h"
    35853583/* Override any gcc2 internal prototype to avoid an error.  */
     
    35923590; return 0; }
    35933591EOF
    3594 if { (eval echo configure:3595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     3592if { (eval echo configure:3593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    35953593  rm -rf conftest*
    35963594  ac_cv_search_setenv="-l$i"
     
    36163614do
    36173615echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    3618 echo "configure:3619: checking for $ac_func" >&5
     3616echo "configure:3617: checking for $ac_func" >&5
    36193617if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    36203618  echo $ac_n "(cached) $ac_c" 1>&6
    36213619else
    36223620  cat > conftest.$ac_ext <<EOF
    3623 #line 3624 "configure"
     3621#line 3622 "configure"
    36243622#include "confdefs.h"
    36253623/* System header to define __stub macros and hopefully few prototypes,
     
    36443642; return 0; }
    36453643EOF
    3646 if { (eval echo configure:3647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     3644if { (eval echo configure:3645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    36473645  rm -rf conftest*
    36483646  eval "ac_cv_func_$ac_func=yes"
     
    36943692# check for a peculiar constructor initialization
    36953693echo $ac_n "checking whether explicit C++ constructor calls are allowed""... $ac_c" 1>&6
    3696 echo "configure:3697: checking whether explicit C++ constructor calls are allowed" >&5
     3694echo "configure:3695: checking whether explicit C++ constructor calls are allowed" >&5
    36973695
    36983696ac_ext=C
     
    37073705else
    37083706  cat > conftest.$ac_ext <<EOF
    3709 #line 3710 "configure"
     3707#line 3708 "configure"
    37103708#include "confdefs.h"
    37113709
     
    37253723; return 0; }
    37263724EOF
    3727 if { (eval echo configure:3728: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     3725if { (eval echo configure:3726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    37283726  rm -rf conftest*
    37293727  ac_cv_explicit_const=yes
     
    37543752# sprintf returns number of printed chars
    37553753echo $ac_n "checking whether vsprintf returns number of printed chars""... $ac_c" 1>&6
    3756 echo "configure:3757: checking whether vsprintf returns number of printed chars" >&5
     3754echo "configure:3755: checking whether vsprintf returns number of printed chars" >&5
    37573755if eval "test \"`echo '$''{'ac_cv_returns_n_of_chars'+set}'`\" = set"; then
    37583756  echo $ac_n "(cached) $ac_c" 1>&6
     
    37623760else
    37633761  cat > conftest.$ac_ext <<EOF
    3764 #line 3765 "configure"
     3762#line 3763 "configure"
    37653763#include "confdefs.h"
    37663764#include <stdio.h>
    37673765 main() { char *str=(char*)malloc(20); if (((int) sprintf(str,"123456789")) == 9) exit(0); else exit(1); }
    37683766EOF
    3769 if { (eval echo configure:3770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     3767if { (eval echo configure:3768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    37703768then
    37713769  ac_cv_returns_n_of_chars=yes
     
    37933791# determine ALIGN_8
    37943792echo $ac_n "checking size of char""... $ac_c" 1>&6
    3795 echo "configure:3796: checking size of char" >&5
     3793echo "configure:3794: checking size of char" >&5
    37963794if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
    37973795  echo $ac_n "(cached) $ac_c" 1>&6
     
    38013799else
    38023800  cat > conftest.$ac_ext <<EOF
    3803 #line 3804 "configure"
     3801#line 3802 "configure"
    38043802#include "confdefs.h"
    38053803#include <stdio.h>
     
    38123810}
    38133811EOF
    3814 if { (eval echo configure:3815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     3812if { (eval echo configure:3813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    38153813then
    38163814  ac_cv_sizeof_char=`cat conftestval`
     
    38323830
    38333831echo $ac_n "checking size of short""... $ac_c" 1>&6
    3834 echo "configure:3835: checking size of short" >&5
     3832echo "configure:3833: checking size of short" >&5
    38353833if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
    38363834  echo $ac_n "(cached) $ac_c" 1>&6
     
    38403838else
    38413839  cat > conftest.$ac_ext <<EOF
    3842 #line 3843 "configure"
     3840#line 3841 "configure"
    38433841#include "confdefs.h"
    38443842#include <stdio.h>
     
    38513849}
    38523850EOF
    3853 if { (eval echo configure:3854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     3851if { (eval echo configure:3852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    38543852then
    38553853  ac_cv_sizeof_short=`cat conftestval`
     
    38713869
    38723870echo $ac_n "checking size of int""... $ac_c" 1>&6
    3873 echo "configure:3874: checking size of int" >&5
     3871echo "configure:3872: checking size of int" >&5
    38743872if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
    38753873  echo $ac_n "(cached) $ac_c" 1>&6
     
    38793877else
    38803878  cat > conftest.$ac_ext <<EOF
    3881 #line 3882 "configure"
     3879#line 3880 "configure"
    38823880#include "confdefs.h"
    38833881#include <stdio.h>
     
    38903888}
    38913889EOF
    3892 if { (eval echo configure:3893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     3890if { (eval echo configure:3891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    38933891then
    38943892  ac_cv_sizeof_int=`cat conftestval`
     
    39103908
    39113909echo $ac_n "checking size of long""... $ac_c" 1>&6
    3912 echo "configure:3913: checking size of long" >&5
     3910echo "configure:3911: checking size of long" >&5
    39133911if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
    39143912  echo $ac_n "(cached) $ac_c" 1>&6
     
    39183916else
    39193917  cat > conftest.$ac_ext <<EOF
    3920 #line 3921 "configure"
     3918#line 3919 "configure"
    39213919#include "confdefs.h"
    39223920#include <stdio.h>
     
    39293927}
    39303928EOF
    3931 if { (eval echo configure:3932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     3929if { (eval echo configure:3930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    39323930then
    39333931  ac_cv_sizeof_long=`cat conftestval`
     
    39493947
    39503948echo $ac_n "checking size of void*""... $ac_c" 1>&6
    3951 echo "configure:3952: checking size of void*" >&5
     3949echo "configure:3950: checking size of void*" >&5
    39523950if eval "test \"`echo '$''{'ac_cv_sizeof_voidp'+set}'`\" = set"; then
    39533951  echo $ac_n "(cached) $ac_c" 1>&6
     
    39573955else
    39583956  cat > conftest.$ac_ext <<EOF
    3959 #line 3960 "configure"
     3957#line 3958 "configure"
    39603958#include "confdefs.h"
    39613959#include <stdio.h>
     
    39683966}
    39693967EOF
    3970 if { (eval echo configure:3971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     3968if { (eval echo configure:3969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    39713969then
    39723970  ac_cv_sizeof_voidp=`cat conftestval`
     
    39883986
    39893987echo $ac_n "checking size of double""... $ac_c" 1>&6
    3990 echo "configure:3991: checking size of double" >&5
     3988echo "configure:3989: checking size of double" >&5
    39913989if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then
    39923990  echo $ac_n "(cached) $ac_c" 1>&6
     
    39963994else
    39973995  cat > conftest.$ac_ext <<EOF
    3998 #line 3999 "configure"
     3996#line 3997 "configure"
    39993997#include "confdefs.h"
    40003998#include <stdio.h>
     
    40074005}
    40084006EOF
    4009 if { (eval echo configure:4010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     4007if { (eval echo configure:4008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    40104008then
    40114009  ac_cv_sizeof_double=`cat conftestval`
     
    40274025
    40284026echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
    4029 echo "configure:4030: checking whether byte ordering is bigendian" >&5
     4027echo "configure:4028: checking whether byte ordering is bigendian" >&5
    40304028if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
    40314029  echo $ac_n "(cached) $ac_c" 1>&6
     
    40344032# See if sys/param.h defines the BYTE_ORDER macro.
    40354033cat > conftest.$ac_ext <<EOF
    4036 #line 4037 "configure"
     4034#line 4035 "configure"
    40374035#include "confdefs.h"
    40384036#include <sys/types.h>
     
    40454043; return 0; }
    40464044EOF
    4047 if { (eval echo configure:4048: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     4045if { (eval echo configure:4046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    40484046  rm -rf conftest*
    40494047  # It does; now see whether it defined to BIG_ENDIAN or not.
    40504048cat > conftest.$ac_ext <<EOF
    4051 #line 4052 "configure"
     4049#line 4050 "configure"
    40524050#include "confdefs.h"
    40534051#include <sys/types.h>
     
    40604058; return 0; }
    40614059EOF
    4062 if { (eval echo configure:4063: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     4060if { (eval echo configure:4061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    40634061  rm -rf conftest*
    40644062  ac_cv_c_bigendian=yes
     
    40804078else
    40814079  cat > conftest.$ac_ext <<EOF
    4082 #line 4083 "configure"
     4080#line 4081 "configure"
    40834081#include "confdefs.h"
    40844082main () {
     
    40934091}
    40944092EOF
    4095 if { (eval echo configure:4096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     4093if { (eval echo configure:4094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    40964094then
    40974095  ac_cv_c_bigendian=no
     
    41874185fi
    41884186
    4189 # Check whether --with-namespaces or --without-namespaces was given.
    4190 if test "${with_namespaces+set}" = set; then
    4191   withval="$with_namespaces"
    4192   :
    4193 fi
    4194 
    41954187# Check whether --with-dl or --without-dl was given.
    41964188if test "${with_dl+set}" = set; then
     
    42474239
    42484240echo $ac_n "checking whether to use dynamic linking""... $ac_c" 1>&6
    4249 echo "configure:4250: checking whether to use dynamic linking" >&5
     4241echo "configure:4242: checking whether to use dynamic linking" >&5
    42504242if test "$with_dl" != no && test "$ac_lib_dl" = yes; then
    42514243  cat >> confdefs.h <<\EOF
     
    42604252
    42614253echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
    4262 echo "configure:4263: checking for tgetent in -lncurses" >&5
     4254echo "configure:4255: checking for tgetent in -lncurses" >&5
    42634255ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
    42644256if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    42684260LIBS="-lncurses  $LIBS"
    42694261cat > conftest.$ac_ext <<EOF
    4270 #line 4271 "configure"
     4262#line 4263 "configure"
    42714263#include "confdefs.h"
    42724264/* Override any gcc2 internal prototype to avoid an error.  */
     
    42794271; return 0; }
    42804272EOF
    4281 if { (eval echo configure:4282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     4273if { (eval echo configure:4274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    42824274  rm -rf conftest*
    42834275  eval "ac_cv_lib_$ac_lib_var=yes"
     
    43064298\
    43074299 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
    4308 echo "configure:4309: checking for tgetent in -lcurses" >&5
     4300echo "configure:4301: checking for tgetent in -lcurses" >&5
    43094301ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
    43104302if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    43144306LIBS="-lcurses  $LIBS"
    43154307cat > conftest.$ac_ext <<EOF
    4316 #line 4317 "configure"
     4308#line 4309 "configure"
    43174309#include "confdefs.h"
    43184310/* Override any gcc2 internal prototype to avoid an error.  */
     
    43254317; return 0; }
    43264318EOF
    4327 if { (eval echo configure:4328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     4319if { (eval echo configure:4320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    43284320  rm -rf conftest*
    43294321  eval "ac_cv_lib_$ac_lib_var=yes"
     
    43524344\
    43534345  echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
    4354 echo "configure:4355: checking for tgetent in -ltermcap" >&5
     4346echo "configure:4347: checking for tgetent in -ltermcap" >&5
    43554347ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
    43564348if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    43604352LIBS="-ltermcap  $LIBS"
    43614353cat > conftest.$ac_ext <<EOF
    4362 #line 4363 "configure"
     4354#line 4355 "configure"
    43634355#include "confdefs.h"
    43644356/* Override any gcc2 internal prototype to avoid an error.  */
     
    43714363; return 0; }
    43724364EOF
    4373 if { (eval echo configure:4374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     4365if { (eval echo configure:4366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    43744366  rm -rf conftest*
    43754367  eval "ac_cv_lib_$ac_lib_var=yes"
     
    44204412
    44214413   echo $ac_n "checking for rl_abort in -lreadline""... $ac_c" 1>&6
    4422 echo "configure:4423: checking for rl_abort in -lreadline" >&5
     4414echo "configure:4415: checking for rl_abort in -lreadline" >&5
    44234415ac_lib_var=`echo readline'_'rl_abort | sed 'y%./+-%__p_%'`
    44244416if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    44284420LIBS="-lreadline  $LIBS"
    44294421cat > conftest.$ac_ext <<EOF
    4430 #line 4431 "configure"
     4422#line 4423 "configure"
    44314423#include "confdefs.h"
    44324424/* Override any gcc2 internal prototype to avoid an error.  */
     
    44424434; return 0; }
    44434435EOF
    4444 if { (eval echo configure:4445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     4436if { (eval echo configure:4437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    44454437  rm -rf conftest*
    44464438  eval "ac_cv_lib_$ac_lib_var=yes"
     
    44704462
    44714463   echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
    4472 echo "configure:4473: checking how to run the C++ preprocessor" >&5
     4464echo "configure:4465: checking how to run the C++ preprocessor" >&5
    44734465if test -z "$CXXCPP"; then
    44744466if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
     
    44834475  CXXCPP="${CXX-g++} -E"
    44844476  cat > conftest.$ac_ext <<EOF
    4485 #line 4486 "configure"
     4477#line 4478 "configure"
    44864478#include "confdefs.h"
    44874479#include <stdlib.h>
    44884480EOF
    44894481ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    4490 { (eval echo configure:4491: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     4482{ (eval echo configure:4483: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    44914483ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    44924484if test -z "$ac_err"; then
     
    45164508ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    45174509echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    4518 echo "configure:4519: checking for $ac_hdr" >&5
     4510echo "configure:4511: checking for $ac_hdr" >&5
    45194511if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    45204512  echo $ac_n "(cached) $ac_c" 1>&6
    45214513else
    45224514  cat > conftest.$ac_ext <<EOF
    4523 #line 4524 "configure"
     4515#line 4516 "configure"
    45244516#include "confdefs.h"
    45254517#include <$ac_hdr>
    45264518EOF
    45274519ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    4528 { (eval echo configure:4529: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     4520{ (eval echo configure:4521: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    45294521ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    45304522if test -z "$ac_err"; then
     
    45554547      test "$ac_cv_header_readline_readline_h" = yes; then
    45564548     echo $ac_n "checking whether readline.h is ok""... $ac_c" 1>&6
    4557 echo "configure:4558: checking whether readline.h is ok" >&5
     4549echo "configure:4550: checking whether readline.h is ok" >&5
    45584550     if eval "test \"`echo '$''{'ac_cv_header_readline_readline_h_ok'+set}'`\" = set"; then
    45594551  echo $ac_n "(cached) $ac_c" 1>&6
    45604552else
    45614553  cat > conftest.$ac_ext <<EOF
    4562 #line 4563 "configure"
     4554#line 4555 "configure"
    45634555#include "confdefs.h"
    45644556#include<unistd.h>
     
    45734565; return 0; }
    45744566EOF
    4575 if { (eval echo configure:4576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     4567if { (eval echo configure:4568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    45764568  rm -rf conftest*
    45774569  ac_cv_header_readline_readline_h_ok="yes"
     
    45894581#not ok -- try once more with explicitly declaring everything
    45904582      echo $ac_n "checking whether or not we nevertheless can use readline""... $ac_c" 1>&6
    4591 echo "configure:4592: checking whether or not we nevertheless can use readline" >&5
     4583echo "configure:4584: checking whether or not we nevertheless can use readline" >&5
    45924584      if eval "test \"`echo '$''{'ac_cv_have_readline'+set}'`\" = set"; then
    45934585  echo $ac_n "(cached) $ac_c" 1>&6
    45944586else
    45954587  cat > conftest.$ac_ext <<EOF
    4596 #line 4597 "configure"
     4588#line 4589 "configure"
    45974589#include "confdefs.h"
    45984590#include <stdio.h>
     
    46284620; return 0; }
    46294621EOF
    4630 if { (eval echo configure:4631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     4622if { (eval echo configure:4623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    46314623  rm -rf conftest*
    46324624  ac_cv_have_readline="yes"
     
    46674659
    46684660echo $ac_n "checking which readline to use""... $ac_c" 1>&6
    4669 echo "configure:4670: checking which readline to use" >&5
     4661echo "configure:4662: checking which readline to use" >&5
    46704662if test "$ac_cv_with_readline" = dynamic; then
    46714663  echo "$ac_t""dynamic" 1>&6
     
    46874679# gmp, MP, MPT, factory, libfac
    46884680echo $ac_n "checking for main in -lgmp""... $ac_c" 1>&6
    4689 echo "configure:4690: checking for main in -lgmp" >&5
     4681echo "configure:4682: checking for main in -lgmp" >&5
    46904682ac_lib_var=`echo gmp'_'main | sed 'y%./+-%__p_%'`
    46914683if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    46954687LIBS="-lgmp  $LIBS"
    46964688cat > conftest.$ac_ext <<EOF
    4697 #line 4698 "configure"
     4689#line 4690 "configure"
    46984690#include "confdefs.h"
    46994691
     
    47024694; return 0; }
    47034695EOF
    4704 if { (eval echo configure:4705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     4696if { (eval echo configure:4697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    47054697  rm -rf conftest*
    47064698  eval "ac_cv_lib_$ac_lib_var=yes"
     
    47314723SAVE_LIBS=$LIBS
    47324724echo $ac_n "checking for IMP_PutGmpInt in -lMP""... $ac_c" 1>&6
    4733 echo "configure:4734: checking for IMP_PutGmpInt in -lMP" >&5
     4725echo "configure:4726: checking for IMP_PutGmpInt in -lMP" >&5
    47344726ac_lib_var=`echo MP'_'IMP_PutGmpInt | sed 'y%./+-%__p_%'`
    47354727if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    47394731LIBS="-lMP $MP_LIBS $LIBS"
    47404732cat > conftest.$ac_ext <<EOF
    4741 #line 4742 "configure"
     4733#line 4734 "configure"
    47424734#include "confdefs.h"
    47434735/* Override any gcc2 internal prototype to avoid an error.  */
     
    47504742; return 0; }
    47514743EOF
    4752 if { (eval echo configure:4753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     4744if { (eval echo configure:4745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    47534745  rm -rf conftest*
    47544746  eval "ac_cv_lib_$ac_lib_var=yes"
     
    47784770
    47794771echo $ac_n "checking for MPT_GetTree in -lMPT""... $ac_c" 1>&6
    4780 echo "configure:4781: checking for MPT_GetTree in -lMPT" >&5
     4772echo "configure:4773: checking for MPT_GetTree in -lMPT" >&5
    47814773ac_lib_var=`echo MPT'_'MPT_GetTree | sed 'y%./+-%__p_%'`
    47824774if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    47864778LIBS="-lMPT $MP_LIBS $LIBS"
    47874779cat > conftest.$ac_ext <<EOF
    4788 #line 4789 "configure"
     4780#line 4781 "configure"
    47894781#include "confdefs.h"
    47904782/* Override any gcc2 internal prototype to avoid an error.  */
     
    47974789; return 0; }
    47984790EOF
    4799 if { (eval echo configure:4800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     4791if { (eval echo configure:4792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    48004792  rm -rf conftest*
    48014793  eval "ac_cv_lib_$ac_lib_var=yes"
     
    48264818LIBS=$SAVE_LIBS
    48274819echo $ac_n "checking for atof in -lsingcf""... $ac_c" 1>&6
    4828 echo "configure:4829: checking for atof in -lsingcf" >&5
     4820echo "configure:4821: checking for atof in -lsingcf" >&5
    48294821ac_lib_var=`echo singcf'_'atof | sed 'y%./+-%__p_%'`
    48304822if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    48344826LIBS="-lsingcf  $LIBS"
    48354827cat > conftest.$ac_ext <<EOF
    4836 #line 4837 "configure"
     4828#line 4829 "configure"
    48374829#include "confdefs.h"
    48384830/* Override any gcc2 internal prototype to avoid an error.  */
     
    48454837; return 0; }
    48464838EOF
    4847 if { (eval echo configure:4848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     4839if { (eval echo configure:4840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    48484840  rm -rf conftest*
    48494841  eval "ac_cv_lib_$ac_lib_var=yes"
     
    48734865
    48744866echo $ac_n "checking for atof in -lsingfac""... $ac_c" 1>&6
    4875 echo "configure:4876: checking for atof in -lsingfac" >&5
     4867echo "configure:4868: checking for atof in -lsingfac" >&5
    48764868ac_lib_var=`echo singfac'_'atof | sed 'y%./+-%__p_%'`
    48774869if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    48814873LIBS="-lsingfac  $LIBS"
    48824874cat > conftest.$ac_ext <<EOF
    4883 #line 4884 "configure"
     4875#line 4876 "configure"
    48844876#include "confdefs.h"
    48854877/* Override any gcc2 internal prototype to avoid an error.  */
     
    48924884; return 0; }
    48934885EOF
    4894 if { (eval echo configure:4895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     4886if { (eval echo configure:4887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    48954887  rm -rf conftest*
    48964888  eval "ac_cv_lib_$ac_lib_var=yes"
     
    49204912
    49214913echo $ac_n "checking for omTestAddr in -lomalloc""... $ac_c" 1>&6
    4922 echo "configure:4923: checking for omTestAddr in -lomalloc" >&5
     4914echo "configure:4915: checking for omTestAddr in -lomalloc" >&5
    49234915ac_lib_var=`echo omalloc'_'omTestAddr | sed 'y%./+-%__p_%'`
    49244916if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    49284920LIBS="-lomalloc  $LIBS"
    49294921cat > conftest.$ac_ext <<EOF
    4930 #line 4931 "configure"
     4922#line 4923 "configure"
    49314923#include "confdefs.h"
    49324924/* Override any gcc2 internal prototype to avoid an error.  */
     
    49394931; return 0; }
    49404932EOF
    4941 if { (eval echo configure:4942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     4933if { (eval echo configure:4934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    49424934  rm -rf conftest*
    49434935  eval "ac_cv_lib_$ac_lib_var=yes"
     
    49674959
    49684960echo $ac_n "checking for main in -lomalloc_ndebug""... $ac_c" 1>&6
    4969 echo "configure:4970: checking for main in -lomalloc_ndebug" >&5
     4961echo "configure:4962: checking for main in -lomalloc_ndebug" >&5
    49704962ac_lib_var=`echo omalloc_ndebug'_'main | sed 'y%./+-%__p_%'`
    49714963if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    49754967LIBS="-lomalloc_ndebug  $LIBS"
    49764968cat > conftest.$ac_ext <<EOF
    4977 #line 4978 "configure"
     4969#line 4970 "configure"
    49784970#include "confdefs.h"
    49794971
     
    49824974; return 0; }
    49834975EOF
    4984 if { (eval echo configure:4985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     4976if { (eval echo configure:4977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    49854977  rm -rf conftest*
    49864978  eval "ac_cv_lib_$ac_lib_var=yes"
     
    50105002
    50115003echo $ac_n "checking for main in -lntl""... $ac_c" 1>&6
    5012 echo "configure:5013: checking for main in -lntl" >&5
     5004echo "configure:5005: checking for main in -lntl" >&5
    50135005ac_lib_var=`echo ntl'_'main | sed 'y%./+-%__p_%'`
    50145006if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    50185010LIBS="-lntl  $LIBS"
    50195011cat > conftest.$ac_ext <<EOF
    5020 #line 5021 "configure"
     5012#line 5013 "configure"
    50215013#include "confdefs.h"
    50225014
     
    50255017; return 0; }
    50265018EOF
    5027 if { (eval echo configure:5028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     5019if { (eval echo configure:5020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    50285020  rm -rf conftest*
    50295021  eval "ac_cv_lib_$ac_lib_var=yes"
     
    50585050ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    50595051echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    5060 echo "configure:5061: checking for $ac_hdr" >&5
     5052echo "configure:5053: checking for $ac_hdr" >&5
    50615053if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    50625054  echo $ac_n "(cached) $ac_c" 1>&6
    50635055else
    50645056  cat > conftest.$ac_ext <<EOF
    5065 #line 5066 "configure"
     5057#line 5058 "configure"
    50665058#include "confdefs.h"
    50675059#include <$ac_hdr>
    50685060EOF
    50695061ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    5070 { (eval echo configure:5071: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     5062{ (eval echo configure:5063: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    50715063ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    50725064if test -z "$ac_err"; then
     
    50965088
    50975089echo $ac_n "checking whether to use Boost""... $ac_c" 1>&6
    5098 echo "configure:5099: checking whether to use Boost" >&5
     5090echo "configure:5091: checking whether to use Boost" >&5
    50995091if test "$with_Boost" != no; then
    51005092  echo "$ac_t""yes" 1>&6
     
    51115103ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    51125104echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    5113 echo "configure:5114: checking for $ac_hdr" >&5
     5105echo "configure:5106: checking for $ac_hdr" >&5
    51145106if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    51155107  echo $ac_n "(cached) $ac_c" 1>&6
    51165108else
    51175109  cat > conftest.$ac_ext <<EOF
    5118 #line 5119 "configure"
     5110#line 5111 "configure"
    51195111#include "confdefs.h"
    51205112#include <$ac_hdr>
    51215113EOF
    51225114ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    5123 { (eval echo configure:5124: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     5115{ (eval echo configure:5116: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    51245116ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    51255117if test -z "$ac_err"; then
     
    51575149  echo "$ac_t""no" 1>&6
    51585150  echo $ac_n "checking whether to use std::vector""... $ac_c" 1>&6
    5159 echo "configure:5160: checking whether to use std::vector" >&5
     5151echo "configure:5152: checking whether to use std::vector" >&5
    51605152  if test "$with_stdvec" != yes; then
    51615153    echo "$ac_t""no" 1>&6
     
    52065198SAVE_LIBS=$LIBS
    52075199echo $ac_n "checking for __stack_chk_fail_local in -lc_nonshared""... $ac_c" 1>&6
    5208 echo "configure:5209: checking for __stack_chk_fail_local in -lc_nonshared" >&5
     5200echo "configure:5201: checking for __stack_chk_fail_local in -lc_nonshared" >&5
    52095201ac_lib_var=`echo c_nonshared'_'__stack_chk_fail_local | sed 'y%./+-%__p_%'`
    52105202if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    52145206LIBS="-lc_nonshared  $LIBS"
    52155207cat > conftest.$ac_ext <<EOF
    5216 #line 5217 "configure"
     5208#line 5209 "configure"
    52175209#include "confdefs.h"
    52185210/* Override any gcc2 internal prototype to avoid an error.  */
     
    52255217; return 0; }
    52265218EOF
    5227 if { (eval echo configure:5228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     5219if { (eval echo configure:5220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    52285220  rm -rf conftest*
    52295221  eval "ac_cv_lib_$ac_lib_var=yes"
     
    52555247
    52565248echo $ac_n "checking which apint package to use""... $ac_c" 1>&6
    5257 echo "configure:5258: checking which apint package to use" >&5
     5249echo "configure:5250: checking which apint package to use" >&5
    52585250if test "${with_apint}" != gmp; then
    52595251  if test "$ac_gmp_ok" = yes || test "$enable_gmp" = yes; then
     
    52775269
    52785270echo $ac_n "checking whether to use libsvd""... $ac_c" 1>&6
    5279 echo "configure:5280: checking whether to use libsvd" >&5
     5271echo "configure:5272: checking whether to use libsvd" >&5
    52805272if test "$with_svd" = yes; then
    52815273  echo "$ac_t""yes" 1>&6
     
    52925284#
    52935285echo $ac_n "checking whether to have MP""... $ac_c" 1>&6
    5294 echo "configure:5295: checking whether to have MP" >&5
     5286echo "configure:5287: checking whether to have MP" >&5
    52955287if test "${with_MP}" != yes && test "${with_MP}" != no; then
    52965288  if (test "${will_have_gmp}" = yes) && \
     
    53275319
    53285320echo $ac_n "checking whether to have NTL""... $ac_c" 1>&6
    5329 echo "configure:5330: checking whether to have NTL" >&5
     5321echo "configure:5322: checking whether to have NTL" >&5
    53305322if test "${with_NTL}" = yes ; then
    53315323  echo "$ac_t""yes" 1>&6
     
    53365328
    53375329echo $ac_n "checking whether to have factory""... $ac_c" 1>&6
    5338 echo "configure:5339: checking whether to have factory" >&5
     5330echo "configure:5331: checking whether to have factory" >&5
    53395331if test "${with_factory}" != yes && test "${with_factory}" != no; then
    53405332  if test "$ac_factory_ok" =  yes || test "$enable_factory" = yes; then
     
    53675359
    53685360echo $ac_n "checking whether to have libfac""... $ac_c" 1>&6
    5369 echo "configure:5370: checking whether to have libfac" >&5
     5361echo "configure:5362: checking whether to have libfac" >&5
    53705362if test "${with_libfac}" != yes && test "${with_libfac}" != no; then
    53715363  if (test "${will_have_factory}" = yes) && \
    53725364     (test "$ac_libfac_ok" =  yes || test "$enable_libfac" = yes); then
    53735365    echo "$ac_t""yes" 1>&6
    5374     cat >> confdefs.h <<\EOF
    5375 #define HAVE_LIBFAC_P 1
    5376 EOF
    5377 
    53785366    NEED_LIBS="-lsingfac ${NEED_LIBS}"
    53795367  else
    53805368    echo "$ac_t""no" 1>&6
     5369    { echo "configure: error: can not build without libfac" 1>&2; exit 1; }
    53815370  fi
    53825371elif  test "${with_libfac}" = yes; then
     
    53845373     (test "$ac_libfac_ok" =  yes || test "$enable_libfac" = yes); then
    53855374    echo "$ac_t""yes" 1>&6
    5386     cat >> confdefs.h <<\EOF
    5387 #define HAVE_LIBFAC_P 1
    5388 EOF
    5389 
    53905375    NEED_LIBS="-lsingfac ${NEED_LIBS}"
    53915376  else
     
    54095394
    54105395echo $ac_n "checking whether to have dbm links""... $ac_c" 1>&6
    5411 echo "configure:5412: checking whether to have dbm links" >&5
     5396echo "configure:5397: checking whether to have dbm links" >&5
    54125397if test "$with_dbm" != no; then
    54135398  cat >> confdefs.h <<\EOF
     
    54205405fi
    54215406
    5422 echo $ac_n "checking whether to have namespaces""... $ac_c" 1>&6
    5423 echo "configure:5424: checking whether to have namespaces" >&5
    5424 if test "$with_namespaces" != no; then
    5425   echo "$ac_t""yes" 1>&6
    5426   cat >> confdefs.h <<\EOF
    5427 #define HAVE_NS 1
    5428 EOF
    5429 
    5430 else
    5431   echo "$ac_t""no" 1>&6
    5432 fi
    5433 
    54345407echo $ac_n "checking whether to have dynamic modules""... $ac_c" 1>&6
    5435 echo "configure:5436: checking whether to have dynamic modules" >&5
     5408echo "configure:5409: checking whether to have dynamic modules" >&5
    54365409if test "$with_dynamic_modules" = no || test "$ac_have_dl" != yes; then
    54375410  echo "$ac_t""no" 1>&6
     
    54455418
    54465419echo $ac_n "checking whether to have dynamic kernel""... $ac_c" 1>&6
    5447 echo "configure:5448: checking whether to have dynamic kernel" >&5
     5420echo "configure:5421: checking whether to have dynamic kernel" >&5
    54485421if test "$with_dynamic_kernel" != no && test "$ac_lib_dl" = yes; then
    54495422  DL_KERNEL=1
     
    54555428
    54565429echo $ac_n "checking whether to have Plural""... $ac_c" 1>&6
    5457 echo "configure:5458: checking whether to have Plural" >&5
     5430echo "configure:5431: checking whether to have Plural" >&5
    54585431if test "$with_Plural" != no && test "$enable_Plural" != no; then
    54595432  cat >> confdefs.h <<\EOF
     
    54695442
    54705443echo $ac_n "checking whether to have ratGB""... $ac_c" 1>&6
    5471 echo "configure:5472: checking whether to have ratGB" >&5
     5444echo "configure:5445: checking whether to have ratGB" >&5
    54725445if test "$with_ratGB" != yes && test "$enable_ratGB" != yes; then
    54735446  echo "$ac_t""no" 1>&6
  • Singular/configure.in

    r01cda73 rd3e630  
    642642  [  --without-libfac        do not use libfac (no primary decompositions)])
    643643AC_ARG_WITH(
    644   namespaces,
    645   [  --with-namespaces       do compile namespace support])
    646 AC_ARG_WITH(
    647644  dl,
    648645  [  --without-dl            do not use dynamic linking, modules, and kernel])
     
    963960     (test "$ac_libfac_ok" =  yes || test "$enable_libfac" = yes); then
    964961    AC_MSG_RESULT(yes)
    965     AC_DEFINE(HAVE_LIBFAC_P)
    966962    NEED_LIBS="-lsingfac ${NEED_LIBS}"
    967963  else
    968964    AC_MSG_RESULT(no)
     965    AC_MSG_ERROR(can not build without libfac)
    969966  fi
    970967elif  test "${with_libfac}" = yes; then
     
    972969     (test "$ac_libfac_ok" =  yes || test "$enable_libfac" = yes); then
    973970    AC_MSG_RESULT(yes)
    974     AC_DEFINE(HAVE_LIBFAC_P)
    975971    NEED_LIBS="-lsingfac ${NEED_LIBS}"
    976972  else
     
    997993  AC_DEFINE(HAVE_DBM)
    998994  AC_MSG_RESULT(yes)
    999 else
    1000   AC_MSG_RESULT(no)
    1001 fi
    1002 
    1003 AC_MSG_CHECKING(whether to have namespaces)
    1004 if test "$with_namespaces" != no; then
    1005   AC_MSG_RESULT(yes)
    1006   AC_DEFINE(HAVE_NS)
    1007995else
    1008996  AC_MSG_RESULT(no)
  • Singular/extra.cc

    r01cda73 rd3e630  
    22*  Computer Algebra System SINGULAR      *
    33*****************************************/
    4 /* $Id: extra.cc,v 1.309 2009-07-23 09:14:52 Singular Exp $ */
     4/* $Id: extra.cc,v 1.310 2009-07-28 14:18:33 Singular Exp $ */
    55/*
    66* ABSTRACT: general interface to internals of Singular ("system" command)
     
    291291        #ifdef HAVE_FACTORY
    292292          TEST_FOR("factory")
    293         #endif
    294         #ifdef HAVE_LIBFAC_P
    295           TEST_FOR("libfac")
     293          //TEST_FOR("libfac")
    296294        #endif
    297295        #ifdef HAVE_MPSR
     
    307305          TEST_FOR("MAC_ORDER");
    308306        #endif
    309         #ifdef HAVE_NS
     307        // unconditional since 3-1-0-6
    310308          TEST_FOR("Namespaces");
    311         #endif
    312309        #ifdef HAVE_DYNAMIC_LOADING
    313310          TEST_FOR("DynamicLoading");
     
    555552/*==================== neworder =============================*/
    556553// should go below
    557 #ifdef HAVE_LIBFAC_P
     554#ifdef HAVE_FACTORY
    558555    if(strcmp(sys_cmd,"neworder")==0)
    559556    {
     
    23282325    else
    23292326#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       else
    2344         Warn("`%s` not found",(char*)h->Data());
    2345     }
    2346     else
    2347 #endif
    23482327/*==================== listall ===================================*/
    23492328    if(strcmp(sys_cmd,"listall")==0)
     
    23512330      int showproc=0;
    23522331      if ((h!=NULL) && (h->Typ()==INT_CMD)) showproc=(int)((long)h->Data());
    2353 #ifdef HAVE_NS
    23542332      listall(showproc);
    2355 #else
    2356       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 */
    23852333      return FALSE;
    23862334    }
  • Singular/fehelp.cc

    r01cda73 rd3e630  
    44/*
    55* ABSTRACT: help system
    6 * versin $Id: fehelp.cc,v 1.58 2009-06-21 14:10:18 Singular Exp $
     6* versin $Id: fehelp.cc,v 1.59 2009-07-28 14:18:34 Singular Exp $
    77*/
    88
     
    777777
    778778    yylpin = fp;
    779 #ifdef HAVE_NS
    780779    yylplex(str, libnamebuf, &lib_style, IDROOT, FALSE, GET_INFO);
    781 #else
    782     yylplex(str, libnamebuf, &lib_style, GET_INFO);
    783 #endif /* HAVE_NS */
    784780    reinit_yylp();
    785781    if(lib_style == OLD_LIBSTYLE)
     
    827823{
    828824  if (key == NULL || *key == '\0') return 0;
    829 #ifdef HAVE_NS
    830825  idhdl h=IDROOT->get(key,myynest);
    831 #else
    832   idhdl h=idroot->get(key,myynest);
    833 #endif /* HAVE_NS */
    834826  if ((h!=NULL) && (IDTYP(h)==PROC_CMD))
    835827  {
  • Singular/grammar.cc

    r01cda73 rd3e630  
    259259      const char *n=VoiceName();
    260260      if (strcmp(n,"STDIN")==0)
    261         Werror( "error occurred in %s: `%s`"
     261        Werror( "error occurred in or before %s: `%s`"
    262262               ,n, my_yylinebuf);
    263263      else
    264         Werror( "error occurred in %s line %d: `%s`"
     264        Werror( "error occurred in or before %s line %d: `%s`"
    265265               ,n, yylineno, my_yylinebuf);
    266266    }
     
    272272      && (strncmp(fmt,"syntax",6)!=0))
    273273        WerrorS(fmt);
    274       Werror( "error occurred in %s line %d: `%s`"
     274      Werror( "error occurred in or before %s line %d: `%s`"
    275275             ,VoiceName(), yylineno, my_yylinebuf);
    276276    }
     
    303303    Werror("leaving %s",VoiceName());
    304304  }
    305   #ifdef HAVE_LIBFAC_P
     305  #ifdef HAVE_FACTORY
     306  // libfac:
    306307  extern int libfac_interruptflag;
    307308  libfac_interruptflag=0;
     
    464465#if YYDEBUG != 0
    465466static const short yyrline[] = { 0,
    466    365,   367,   401,   403,   405,   407,   411,   416,   418,   466,
    467    467,   468,   469,   470,   471,   472,   473,   477,   480,   481,
    468    482,   483,   484,   485,   486,   487,   488,   491,   497,   503,
    469    507,   511,   515,   535,   563,   587,   593,   601,   613,   619,
    470    624,   625,   626,   630,   634,   638,   642,   646,   650,   654,
    471    658,   662,   666,   670,   674,   678,   682,   686,   690,   694,
    472    698,   702,   706,   710,   714,   718,   722,   726,   730,   734,
    473    738,   742,   759,   765,   777,   785,   793,   798,   802,   806,
    474    810,   814,   818,   822,   826,   830,   834,   838,   842,   849,
    475    855,   857,   875,   877,   888,   889,   893,   903,   912,   916,
    476    920,   936,   940,   960,   978,  1003,  1014,  1018,  1020,  1033,
    477   1041,  1051,  1095,  1097,  1105,  1107,  1113,  1124,  1129,  1132,
    478   1138,  1144,  1152,  1166,  1187,  1209,  1214,  1218,  1223,  1227,
    479   1231,  1235,  1239,  1243,  1248,  1257,  1266,  1275,  1284,  1293,
    480   1302,  1311,  1329,  1335,  1339,  1382,  1391,  1405,  1405,  1407,
    481   1483,  1490,  1519,  1532,  1549,  1558,  1563,  1570,  1582,  1601,
    482   1613,  1633,  1656,  1663,  1674,  1682
     467   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
    483484};
    484485#endif
     
    15801581
    15811582case 2:
    1582 #line 368 "grammar.y"
     1583#line 369 "grammar.y"
    15831584{
    15841585            if (timerv)
     
    16141615    break;}
    16151616case 4:
    1616 #line 404 "grammar.y"
     1617#line 405 "grammar.y"
    16171618{currentVoice->ifsw=0;;
    16181619    break;}
    16191620case 5:
    1620 #line 406 "grammar.y"
     1621#line 407 "grammar.y"
    16211622{ yyvsp[-1].lv.CleanUp(); currentVoice->ifsw=0;;
    16221623    break;}
    16231624case 6:
    1624 #line 408 "grammar.y"
     1625#line 409 "grammar.y"
    16251626{
    16261627            YYACCEPT;
     
    16281629    break;}
    16291630case 7:
    1630 #line 412 "grammar.y"
     1631#line 413 "grammar.y"
    16311632{
    16321633            currentVoice->ifsw=0;
     
    16351636    break;}
    16361637case 8:
    1637 #line 417 "grammar.y"
     1638#line 418 "grammar.y"
    16381639{currentVoice->ifsw=0;;
    16391640    break;}
    16401641case 9:
    1641 #line 419 "grammar.y"
     1642#line 420 "grammar.y"
    16421643{
    16431644            #ifdef SIQ
     
    16871688    break;}
    16881689case 17:
    1689 #line 474 "grammar.y"
     1690#line 475 "grammar.y"
    16901691{if (currentVoice!=NULL) currentVoice->ifsw=0;;
    16911692    break;}
    16921693case 18:
    1693 #line 477 "grammar.y"
     1694#line 478 "grammar.y"
    16941695{ omFree((ADDRESS)yyvsp[0].name); ;
    16951696    break;}
    16961697case 28:
    1697 #line 492 "grammar.y"
     1698#line 493 "grammar.y"
    16981699{
    16991700            if(iiAssign(&yyvsp[-1].lv,&yyvsp[0].lv)) YYERROR;
     
    17011702    break;}
    17021703case 29:
    1703 #line 499 "grammar.y"
     1704#line 500 "grammar.y"
    17041705{
    17051706            if (currRing==NULL) MYYERROR("no ring active");
     
    17081709    break;}
    17091710case 30:
    1710 #line 504 "grammar.y"
     1711#line 505 "grammar.y"
    17111712{
    17121713            syMake(&yyval.lv,yyvsp[0].name);
     
    17141715    break;}
    17151716case 31:
    1716 #line 508 "grammar.y"
     1717#line 509 "grammar.y"
    17171718{
    17181719            if(iiExprArith2(&yyval.lv, &yyvsp[-2].lv, COLONCOLON, &yyvsp[0].lv)) YYERROR;
     
    17201721    break;}
    17211722case 32:
    1722 #line 512 "grammar.y"
     1723#line 513 "grammar.y"
    17231724{
    17241725            if(iiExprArith1(&yyval.lv,&yyvsp[-2].lv,'(')) YYERROR;
     
    17261727    break;}
    17271728case 33:
    1728 #line 516 "grammar.y"
     1729#line 517 "grammar.y"
    17291730{
    17301731            if (yyvsp[-3].lv.rtyp==LIB_CMD)
     
    17481749    break;}
    17491750case 34:
    1750 #line 536 "grammar.y"
     1751#line 537 "grammar.y"
    17511752{
    17521753            if (currRingHdl==NULL) MYYERROR("no ring active");
     
    17781779    break;}
    17791780case 35:
    1780 #line 564 "grammar.y"
     1781#line 565 "grammar.y"
    17811782{
    17821783            memset(&yyval.lv,0,sizeof(yyval.lv));
     
    18041805    break;}
    18051806case 36:
    1806 #line 588 "grammar.y"
     1807#line 589 "grammar.y"
    18071808{
    18081809            memset(&yyval.lv,0,sizeof(yyval.lv));
     
    18121813    break;}
    18131814case 37:
    1814 #line 594 "grammar.y"
     1815#line 595 "grammar.y"
    18151816{
    18161817            memset(&yyval.lv,0,sizeof(yyval.lv));
     
    18201821    break;}
    18211822case 38:
    1822 #line 603 "grammar.y"
     1823#line 604 "grammar.y"
    18231824{
    18241825            leftv v = &yyvsp[-2].lv;
     
    18331834    break;}
    18341835case 39:
    1835 #line 614 "grammar.y"
     1836#line 615 "grammar.y"
    18361837{
    18371838            yyval.lv = yyvsp[0].lv;
     
    18391840    break;}
    18401841case 40:
    1841 #line 620 "grammar.y"
     1842#line 621 "grammar.y"
    18421843{
    18431844            /*if ($1.typ == eunknown) YYERROR;*/
     
    18461847    break;}
    18471848case 41:
    1848 #line 624 "grammar.y"
     1849#line 625 "grammar.y"
    18491850{ yyval.lv = yyvsp[0].lv; ;
    18501851    break;}
    18511852case 42:
    1852 #line 625 "grammar.y"
     1853#line 626 "grammar.y"
    18531854{ yyval.lv = yyvsp[-1].lv; ;
    18541855    break;}
    18551856case 43:
    1856 #line 627 "grammar.y"
     1857#line 628 "grammar.y"
    18571858{
    18581859            if(iiExprArith3(&yyval.lv,'[',&yyvsp[-5].lv,&yyvsp[-3].lv,&yyvsp[-1].lv)) YYERROR;
     
    18601861    break;}
    18611862case 44:
    1862 #line 631 "grammar.y"
     1863#line 632 "grammar.y"
    18631864{
    18641865            if(iiExprArith2(&yyval.lv,&yyvsp[-3].lv,'[',&yyvsp[-1].lv)) YYERROR;
     
    18661867    break;}
    18671868case 45:
    1868 #line 635 "grammar.y"
     1869#line 636 "grammar.y"
    18691870{
    18701871            if(iiExprArith1(&yyval.lv,&yyvsp[-1].lv,yyvsp[-3].i)) YYERROR;
     
    18721873    break;}
    18731874case 46:
    1874 #line 639 "grammar.y"
     1875#line 640 "grammar.y"
    18751876{
    18761877            if(iiExprArithM(&yyval.lv,&yyvsp[-1].lv,yyvsp[-3].i)) YYERROR;
     
    18781879    break;}
    18791880case 47:
    1880 #line 643 "grammar.y"
     1881#line 644 "grammar.y"
    18811882{
    18821883            if(iiExprArithM(&yyval.lv,NULL,yyvsp[-2].i)) YYERROR;
     
    18841885    break;}
    18851886case 48:
    1886 #line 647 "grammar.y"
     1887#line 648 "grammar.y"
    18871888{
    18881889            if(iiExprArith1(&yyval.lv,&yyvsp[-1].lv,yyvsp[-3].i)) YYERROR;
     
    18901891    break;}
    18911892case 49:
    1892 #line 651 "grammar.y"
     1893#line 652 "grammar.y"
    18931894{
    18941895            if(iiExprArithM(&yyval.lv,&yyvsp[-1].lv,yyvsp[-3].i)) YYERROR;
     
    18961897    break;}
    18971898case 50:
    1898 #line 655 "grammar.y"
     1899#line 656 "grammar.y"
    18991900{
    19001901            if(iiExprArithM(&yyval.lv,NULL,yyvsp[-2].i)) YYERROR;
     
    19021903    break;}
    19031904case 51:
    1904 #line 659 "grammar.y"
     1905#line 660 "grammar.y"
    19051906{
    19061907            if(iiExprArith1(&yyval.lv,&yyvsp[-1].lv,yyvsp[-3].i)) YYERROR;
     
    19081909    break;}
    19091910case 52:
    1910 #line 663 "grammar.y"
     1911#line 664 "grammar.y"
    19111912{
    19121913            if(iiExprArith2(&yyval.lv,&yyvsp[-3].lv,yyvsp[-5].i,&yyvsp[-1].lv,TRUE)) YYERROR;
     
    19141915    break;}
    19151916case 53:
    1916 #line 667 "grammar.y"
     1917#line 668 "grammar.y"
    19171918{
    19181919            if(iiExprArith3(&yyval.lv,yyvsp[-7].i,&yyvsp[-5].lv,&yyvsp[-3].lv,&yyvsp[-1].lv)) YYERROR;
     
    19201921    break;}
    19211922case 54:
    1922 #line 671 "grammar.y"
     1923#line 672 "grammar.y"
    19231924{
    19241925            if(iiExprArith2(&yyval.lv,&yyvsp[-3].lv,yyvsp[-5].i,&yyvsp[-1].lv,TRUE)) YYERROR;
     
    19261927    break;}
    19271928case 55:
    1928 #line 675 "grammar.y"
     1929#line 676 "grammar.y"
    19291930{
    19301931            if(iiExprArith3(&yyval.lv,yyvsp[-7].i,&yyvsp[-5].lv,&yyvsp[-3].lv,&yyvsp[-1].lv)) YYERROR;
     
    19321933    break;}
    19331934case 56:
    1934 #line 679 "grammar.y"
     1935#line 680 "grammar.y"
    19351936{
    19361937            if(iiExprArith1(&yyval.lv,&yyvsp[-1].lv,yyvsp[-3].i)) YYERROR;
     
    19381939    break;}
    19391940case 57:
    1940 #line 683 "grammar.y"
     1941#line 684 "grammar.y"
    19411942{
    19421943            if(iiExprArith1(&yyval.lv,&yyvsp[-1].lv,yyvsp[-3].i)) YYERROR;
     
    19441945    break;}
    19451946case 58:
    1946 #line 687 "grammar.y"
     1947#line 688 "grammar.y"
    19471948{
    19481949            if(iiExprArith2(&yyval.lv,&yyvsp[-3].lv,yyvsp[-5].i,&yyvsp[-1].lv,TRUE)) YYERROR;
     
    19501951    break;}
    19511952case 59:
    1952 #line 691 "grammar.y"
     1953#line 692 "grammar.y"
    19531954{
    19541955            if(iiExprArith1(&yyval.lv,&yyvsp[-1].lv,yyvsp[-3].i)) YYERROR;
     
    19561957    break;}
    19571958case 60:
    1958 #line 695 "grammar.y"
     1959#line 696 "grammar.y"
    19591960{
    19601961            if(iiExprArith2(&yyval.lv,&yyvsp[-3].lv,yyvsp[-5].i,&yyvsp[-1].lv,TRUE)) YYERROR;
     
    19621963    break;}
    19631964case 61:
    1964 #line 699 "grammar.y"
     1965#line 700 "grammar.y"
    19651966{
    19661967            if(iiExprArith3(&yyval.lv,yyvsp[-7].i,&yyvsp[-5].lv,&yyvsp[-3].lv,&yyvsp[-1].lv)) YYERROR;
     
    19681969    break;}
    19691970case 62:
    1970 #line 703 "grammar.y"
     1971#line 704 "grammar.y"
    19711972{
    19721973            if(iiExprArith3(&yyval.lv,yyvsp[-7].i,&yyvsp[-5].lv,&yyvsp[-3].lv,&yyvsp[-1].lv)) YYERROR;
     
    19741975    break;}
    19751976case 63:
    1976 #line 707 "grammar.y"
     1977#line 708 "grammar.y"
    19771978{
    19781979            if(iiExprArithM(&yyval.lv,NULL,yyvsp[-2].i)) YYERROR;
     
    19801981    break;}
    19811982case 64:
    1982 #line 711 "grammar.y"
     1983#line 712 "grammar.y"
    19831984{
    19841985            if(iiExprArithM(&yyval.lv,&yyvsp[-1].lv,yyvsp[-3].i)) YYERROR;
     
    19861987    break;}
    19871988case 65:
    1988 #line 715 "grammar.y"
     1989#line 716 "grammar.y"
    19891990{
    19901991            if(iiExprArith3(&yyval.lv,MATRIX_CMD,&yyvsp[-5].lv,&yyvsp[-3].lv,&yyvsp[-1].lv)) YYERROR;
     
    19921993    break;}
    19931994case 66:
    1994 #line 719 "grammar.y"
     1995#line 720 "grammar.y"
    19951996{
    19961997            if(iiExprArith1(&yyval.lv,&yyvsp[-1].lv,MATRIX_CMD)) YYERROR;
     
    19981999    break;}
    19992000case 67:
    2000 #line 723 "grammar.y"
     2001#line 724 "grammar.y"
    20012002{
    20022003            if(iiExprArith3(&yyval.lv,INTMAT_CMD,&yyvsp[-5].lv,&yyvsp[-3].lv,&yyvsp[-1].lv)) YYERROR;
     
    20042005    break;}
    20052006case 68:
    2006 #line 727 "grammar.y"
     2007#line 728 "grammar.y"
    20072008{
    20082009            if(iiExprArith1(&yyval.lv,&yyvsp[-1].lv,INTMAT_CMD)) YYERROR;
     
    20102011    break;}
    20112012case 69:
    2012 #line 731 "grammar.y"
     2013#line 732 "grammar.y"
    20132014{
    20142015            if(iiExprArith3(&yyval.lv,RING_CMD,&yyvsp[-5].lv,&yyvsp[-3].lv,&yyvsp[-1].lv)) YYERROR;
     
    20162017    break;}
    20172018case 70:
    2018 #line 735 "grammar.y"
     2019#line 736 "grammar.y"
    20192020{
    20202021            if(iiExprArith1(&yyval.lv,&yyvsp[-1].lv,RING_CMD)) YYERROR;
     
    20222023    break;}
    20232024case 71:
    2024 #line 739 "grammar.y"
     2025#line 740 "grammar.y"
    20252026{
    20262027            yyval.lv=yyvsp[-1].lv;
     
    20282029    break;}
    20292030case 72:
    2030 #line 743 "grammar.y"
     2031#line 744 "grammar.y"
    20312032{
    20322033            #ifdef SIQ
     
    20472048    break;}
    20482049case 73:
    2049 #line 760 "grammar.y"
     2050#line 761 "grammar.y"
    20502051{
    20512052            #ifdef SIQ
     
    20552056    break;}
    20562057case 74:
    2057 #line 766 "grammar.y"
     2058#line 767 "grammar.y"
    20582059{
    20592060            #ifdef SIQ
     
    20672068    break;}
    20682069case 75:
    2069 #line 778 "grammar.y"
     2070#line 779 "grammar.y"
    20702071{
    20712072            #ifdef SIQ
     
    20752076    break;}
    20762077case 76:
    2077 #line 786 "grammar.y"
     2078#line 787 "grammar.y"
    20782079{
    20792080            #ifdef SIQ
     
    20832084    break;}
    20842085case 77:
    2085 #line 795 "grammar.y"
     2086#line 796 "grammar.y"
    20862087{
    20872088            if(iiExprArith1(&yyval.lv,&yyvsp[-1].lv,PLUSPLUS)) YYERROR;
     
    20892090    break;}
    20902091case 78:
    2091 #line 799 "grammar.y"
     2092#line 800 "grammar.y"
    20922093{
    20932094            if(iiExprArith1(&yyval.lv,&yyvsp[-1].lv,MINUSMINUS)) YYERROR;
     
    20952096    break;}
    20962097case 79:
    2097 #line 803 "grammar.y"
     2098#line 804 "grammar.y"
    20982099{
    20992100            if(iiExprArith2(&yyval.lv,&yyvsp[-2].lv,'+',&yyvsp[0].lv)) YYERROR;
     
    21012102    break;}
    21022103case 80:
    2103 #line 807 "grammar.y"
     2104#line 808 "grammar.y"
    21042105{
    21052106            if(iiExprArith2(&yyval.lv,&yyvsp[-2].lv,'-',&yyvsp[0].lv)) YYERROR;
     
    21072108    break;}
    21082109case 81:
    2109 #line 811 "grammar.y"
     2110#line 812 "grammar.y"
    21102111{
    21112112            if(iiExprArith2(&yyval.lv,&yyvsp[-2].lv,yyvsp[-1].i,&yyvsp[0].lv)) YYERROR;
     
    21132114    break;}
    21142115case 82:
    2115 #line 815 "grammar.y"
     2116#line 816 "grammar.y"
    21162117{
    21172118            if(iiExprArith2(&yyval.lv,&yyvsp[-2].lv,'^',&yyvsp[0].lv)) YYERROR;
     
    21192120    break;}
    21202121case 83:
    2121 #line 819 "grammar.y"
     2122#line 820 "grammar.y"
    21222123{
    21232124            if(iiExprArith2(&yyval.lv,&yyvsp[-2].lv,yyvsp[-1].i,&yyvsp[0].lv)) YYERROR;
     
    21252126    break;}
    21262127case 84:
    2127 #line 823 "grammar.y"
     2128#line 824 "grammar.y"
    21282129{
    21292130            if(iiExprArith2(&yyval.lv,&yyvsp[-2].lv,yyvsp[-1].i,&yyvsp[0].lv)) YYERROR;
     
    21312132    break;}
    21322133case 85:
    2133 #line 827 "grammar.y"
     2134#line 828 "grammar.y"
    21342135{
    21352136            if(iiExprArith2(&yyval.lv,&yyvsp[-2].lv,NOTEQUAL,&yyvsp[0].lv)) YYERROR;
     
    21372138    break;}
    21382139case 86:
    2139 #line 831 "grammar.y"
     2140#line 832 "grammar.y"
    21402141{
    21412142            if(iiExprArith2(&yyval.lv,&yyvsp[-2].lv,EQUAL_EQUAL,&yyvsp[0].lv)) YYERROR;
     
    21432144    break;}
    21442145case 87:
    2145 #line 835 "grammar.y"
     2146#line 836 "grammar.y"
    21462147{
    21472148            if(iiExprArith2(&yyval.lv,&yyvsp[-2].lv,DOTDOT,&yyvsp[0].lv)) YYERROR;
     
    21492150    break;}
    21502151case 88:
    2151 #line 839 "grammar.y"
     2152#line 840 "grammar.y"
    21522153{
    21532154            if(iiExprArith2(&yyval.lv,&yyvsp[-2].lv,':',&yyvsp[0].lv)) YYERROR;
     
    21552156    break;}
    21562157case 89:
    2157 #line 843 "grammar.y"
     2158#line 844 "grammar.y"
    21582159{
    21592160            memset(&yyval.lv,0,sizeof(yyval.lv));
     
    21642165    break;}
    21652166case 90:
    2166 #line 850 "grammar.y"
     2167#line 851 "grammar.y"
    21672168{
    21682169            if(iiExprArith1(&yyval.lv,&yyvsp[0].lv,'-')) YYERROR;
     
    21702171    break;}
    21712172case 91:
    2172 #line 856 "grammar.y"
     2173#line 857 "grammar.y"
    21732174{ yyval.lv = yyvsp[-1].lv; ;
    21742175    break;}
    21752176case 92:
    2176 #line 858 "grammar.y"
     2177#line 859 "grammar.y"
    21772178{
    21782179            if (yyvsp[-1].lv.rtyp==0)
     
    21912192    break;}
    21922193case 94:
    2193 #line 878 "grammar.y"
     2194#line 879 "grammar.y"
    21942195{
    21952196            if (yyvsp[-1].lv.Typ()!=STRING_CMD)
     
    22022203    break;}
    22032204case 97:
    2204 #line 895 "grammar.y"
    2205 {
    2206             #ifdef HAVE_NS
     2205#line 896 "grammar.y"
     2206{
    22072207            if (iiDeclCommand(&yyval.lv,&yyvsp[0].lv,myynest,yyvsp[-1].i,&(yyvsp[0].lv.req_packhdl->idroot)))
    22082208              YYERROR;
    2209             #else
    2210             if (iiDeclCommand(&yyval.lv,&yyvsp[0].lv,myynest,yyvsp[-1].i,&IDROOT)) YYERROR;
    2211             #endif
    22122209          ;
    22132210    break;}
    22142211case 98:
    2215 #line 904 "grammar.y"
    2216 {
    2217             #ifdef HAVE_NS
     2212#line 901 "grammar.y"
     2213{
    22182214            if (iiDeclCommand(&yyval.lv,&yyvsp[0].lv,myynest,yyvsp[-1].i,&(yyvsp[0].lv.req_packhdl->idroot)))
    22192215              YYERROR;
    2220             #else
    2221             if (iiDeclCommand(&yyval.lv,&yyvsp[0].lv,myynest,yyvsp[-1].i,&IDROOT)) YYERROR;
    2222             #endif
    22232216          ;
    22242217    break;}
    22252218case 99:
    2226 #line 913 "grammar.y"
     2219#line 906 "grammar.y"
    22272220{
    22282221            if (iiDeclCommand(&yyval.lv,&yyvsp[0].lv,myynest,yyvsp[-1].i,&(currRing->idroot), TRUE)) YYERROR;
     
    22302223    break;}
    22312224case 100:
    2232 #line 917 "grammar.y"
     2225#line 910 "grammar.y"
    22332226{
    22342227            if (iiDeclCommand(&yyval.lv,&yyvsp[0].lv,myynest,yyvsp[-1].i,&(currRing->idroot), TRUE)) YYERROR;
     
    22362229    break;}
    22372230case 101:
    2238 #line 921 "grammar.y"
     2231#line 914 "grammar.y"
    22392232{
    22402233            if (iiDeclCommand(&yyval.lv,&yyvsp[-6].lv,myynest,yyvsp[-7].i,&(currRing->idroot), TRUE)) YYERROR;
     
    22542247    break;}
    22552248case 102:
    2256 #line 937 "grammar.y"
     2249#line 930 "grammar.y"
    22572250{
    22582251            if (iiDeclCommand(&yyval.lv,&yyvsp[0].lv,myynest,yyvsp[-1].i,&(currRing->idroot), TRUE)) YYERROR;
     
    22602253    break;}
    22612254case 103:
    2262 #line 941 "grammar.y"
     2255#line 934 "grammar.y"
    22632256{
    22642257            int r; TESTSETINT(yyvsp[-4].lv,r);
     
    22682261            if (c < 0)
    22692262              MYYERROR("cols must be greater than -1");
    2270             #ifdef HAVE_NS
    22712263            if (iiDeclCommand(&yyval.lv,&yyvsp[-6].lv,myynest,yyvsp[-7].i,&(yyvsp[-6].lv.req_packhdl->idroot)))
    22722264              YYERROR;
    2273             #else
    2274             if (iiDeclCommand(&yyval.lv,&yyvsp[-6].lv,myynest,yyvsp[-7].i,&IDROOT)) YYERROR;
    2275             #endif
    22762265            leftv v=&yyval.lv;
    22772266            idhdl h=(idhdl)v->data;
     
    22822271    break;}
    22832272case 104:
    2284 #line 961 "grammar.y"
    2285 {
    2286             #ifdef HAVE_NS
     2273#line 950 "grammar.y"
     2274{
    22872275            if (iiDeclCommand(&yyval.lv,&yyvsp[0].lv,myynest,yyvsp[-1].i,&(yyvsp[0].lv.req_packhdl->idroot)))
    22882276              YYERROR;
    2289             #else
    2290             if (iiDeclCommand(&yyval.lv,&yyvsp[0].lv,myynest,yyvsp[-1].i,&IDROOT)) YYERROR;
    2291             #endif
    22922277            leftv v=&yyval.lv;
    22932278            idhdl h;
     
    23022287    break;}
    23032288case 105:
    2304 #line 979 "grammar.y"
     2289#line 964 "grammar.y"
    23052290{
    23062291            int t=yyvsp[-2].lv.Typ();
     
    23142299            else
    23152300            {
    2316               #ifdef HAVE_NS
    23172301              if (iiDeclCommand(&r,&yyvsp[0].lv,myynest,t,&(yyvsp[0].lv.req_packhdl->idroot)))
    23182302                YYERROR;
    2319               #else
    2320               if (iiDeclCommand(&r,&yyvsp[0].lv,myynest,t,&IDROOT)) YYERROR;
    2321               #endif
    23222303            }
    23232304            leftv v=&yyvsp[-2].lv;
     
    23292310    break;}
    23302311case 106:
    2331 #line 1004 "grammar.y"
    2332 {
    2333             #ifdef HAVE_NS
     2312#line 985 "grammar.y"
     2313{
    23342314            if (iiDeclCommand(&yyval.lv,&yyvsp[0].lv,myynest,yyvsp[-1].i,&(yyvsp[0].lv.req_packhdl->idroot)))
    23352315              YYERROR;
    2336             #else
    2337             if (iiDeclCommand(&yyval.lv,&yyvsp[0].lv,myynest,yyvsp[-1].i,&IDROOT)) YYERROR;
    2338             #endif
    23392316          ;
    23402317    break;}
    23412318case 109:
    2342 #line 1021 "grammar.y"
     2319#line 998 "grammar.y"
    23432320{
    23442321            leftv v = &yyvsp[-3].lv;
     
    23532330    break;}
    23542331case 110:
    2355 #line 1035 "grammar.y"
     2332#line 1012 "grammar.y"
    23562333{
    23572334          // let rInit take care of any errors
     
    23602337    break;}
    23612338case 111:
    2362 #line 1043 "grammar.y"
     2339#line 1020 "grammar.y"
    23632340{
    23642341            memset(&yyval.lv,0,sizeof(yyval.lv));
     
    23712348    break;}
    23722349case 112:
    2373 #line 1052 "grammar.y"
     2350#line 1029 "grammar.y"
    23742351{
    23752352            memset(&yyval.lv,0,sizeof(yyval.lv));
     
    24152392    break;}
    24162393case 114:
    2417 #line 1098 "grammar.y"
     2394#line 1075 "grammar.y"
    24182395{
    24192396            yyval.lv = yyvsp[-2].lv;
     
    24232400    break;}
    24242401case 116:
    2425 #line 1108 "grammar.y"
     2402#line 1085 "grammar.y"
    24262403{
    24272404            yyval.lv = yyvsp[-1].lv;
     
    24292406    break;}
    24302407case 117:
    2431 #line 1114 "grammar.y"
     2408#line 1091 "grammar.y"
    24322409{
    24332410            expected_parms = TRUE;
     
    24352412    break;}
    24362413case 118:
    2437 #line 1126 "grammar.y"
     2414#line 1103 "grammar.y"
    24382415{ if (yyvsp[-1].i != '<') YYERROR;
    24392416            if((feFilePending=feFopen(yyvsp[0].name,"r",NULL,TRUE))==NULL) YYERROR; ;
    24402417    break;}
    24412418case 119:
    2442 #line 1129 "grammar.y"
     2419#line 1106 "grammar.y"
    24432420{ newFile(yyvsp[-2].name,feFilePending); ;
    24442421    break;}
    24452422case 120:
    2446 #line 1134 "grammar.y"
     2423#line 1111 "grammar.y"
    24472424{
    24482425            feHelp(yyvsp[-1].name);
     
    24512428    break;}
    24522429case 121:
    2453 #line 1139 "grammar.y"
     2430#line 1116 "grammar.y"
    24542431{
    24552432            feHelp(NULL);
     
    24572434    break;}
    24582435case 122:
    2459 #line 1146 "grammar.y"
     2436#line 1123 "grammar.y"
    24602437{
    24612438            singular_example(yyvsp[-1].name);
     
    24642441    break;}
    24652442case 123:
    2466 #line 1154 "grammar.y"
    2467 {
    2468 #ifdef HAVE_NS
     2443#line 1131 "grammar.y"
     2444{
    24692445          if (basePack!=yyvsp[0].lv.req_packhdl)
    24702446          {
     
    24722448          }
    24732449          else
    2474 #endif /* HAVE_NS */
    24752450            if (iiExport(&yyvsp[0].lv,0)) YYERROR;
    24762451        ;
    24772452    break;}
    24782453case 124:
    2479 #line 1168 "grammar.y"
     2454#line 1143 "grammar.y"
    24802455{
    24812456          leftv v=&yyvsp[0].lv;
     
    24902465          else
    24912466          {
    2492             #ifdef HAVE_NS
    24932467            killhdl((idhdl)v->data,v->req_packhdl);
    2494             #else
    2495             killhdl((idhdl)v->data);
    2496             #endif
    24972468          }
    24982469        ;
    24992470    break;}
    25002471case 125:
    2501 #line 1188 "grammar.y"
     2472#line 1159 "grammar.y"
    25022473{
    25032474          leftv v=&yyvsp[0].lv;
     
    25122483          else
    25132484          {
    2514             #ifdef HAVE_NS
    25152485            killhdl((idhdl)v->data,v->req_packhdl);
    2516             #else
    2517             killhdl((idhdl)v->data);
    2518             #endif
    25192486          }
    25202487        ;
    25212488    break;}
    25222489case 126:
    2523 #line 1211 "grammar.y"
     2490#line 1178 "grammar.y"
    25242491{
    25252492            list_cmd(yyvsp[-1].i,NULL,"// ",TRUE);
     
    25272494    break;}
    25282495case 127:
    2529 #line 1215 "grammar.y"
     2496#line 1182 "grammar.y"
    25302497{
    25312498            list_cmd(yyvsp[-1].i,NULL,"// ",TRUE);
     
    25332500    break;}
    25342501case 128:
    2535 #line 1219 "grammar.y"
     2502#line 1186 "grammar.y"
    25362503{
    25372504            if (yyvsp[-1].i==QRING_CMD) yyvsp[-1].i=RING_CMD;
     
    25402507    break;}
    25412508case 129:
    2542 #line 1224 "grammar.y"
     2509#line 1191 "grammar.y"
    25432510{
    25442511            list_cmd(yyvsp[-1].i,NULL,"// ",TRUE);
     
    25462513    break;}
    25472514case 130:
    2548 #line 1228 "grammar.y"
     2515#line 1195 "grammar.y"
    25492516{
    25502517            list_cmd(RING_CMD,NULL,"// ",TRUE);
     
    25522519    break;}
    25532520case 131:
    2554 #line 1232 "grammar.y"
     2521#line 1199 "grammar.y"
    25552522{
    25562523            list_cmd(MATRIX_CMD,NULL,"// ",TRUE);
     
    25582525    break;}
    25592526case 132:
    2560 #line 1236 "grammar.y"
     2527#line 1203 "grammar.y"
    25612528{
    25622529            list_cmd(INTMAT_CMD,NULL,"// ",TRUE);
     
    25642531    break;}
    25652532case 133:
    2566 #line 1240 "grammar.y"
     2533#line 1207 "grammar.y"
    25672534{
    25682535            list_cmd(PROC_CMD,NULL,"// ",TRUE);
     
    25702537    break;}
    25712538case 134:
    2572 #line 1244 "grammar.y"
     2539#line 1211 "grammar.y"
    25732540{
    25742541            list_cmd(0,yyvsp[-1].lv.Fullname(),"// ",TRUE);
     
    25772544    break;}
    25782545case 135:
    2579 #line 1249 "grammar.y"
    2580 {
    2581 #ifdef HAVE_NS
    2582             //PrintS("?????\n");
     2546#line 1216 "grammar.y"
     2547{
    25832548            if(yyvsp[-3].lv.Typ() == PACKAGE_CMD)
    25842549              list_cmd(yyvsp[-1].i,NULL,"// ",TRUE);
    2585 #endif /* HAVE_NS */
    25862550            yyvsp[-3].lv.CleanUp();
    25872551          ;
    25882552    break;}
    25892553case 136:
    2590 #line 1258 "grammar.y"
    2591 {
    2592 #ifdef HAVE_NS
    2593             //PrintS("?????\n");
     2554#line 1222 "grammar.y"
     2555{
    25942556            if(yyvsp[-3].lv.Typ() == PACKAGE_CMD)
    25952557              list_cmd(yyvsp[-1].i,NULL,"// ",TRUE);
    2596 #endif /* HAVE_NS */
    25972558            yyvsp[-3].lv.CleanUp();
    25982559          ;
    25992560    break;}
    26002561case 137:
    2601 #line 1267 "grammar.y"
    2602 {
    2603 #ifdef HAVE_NS
    2604             //PrintS("?????\n");
     2562#line 1228 "grammar.y"
     2563{
    26052564            if(yyvsp[-3].lv.Typ() == PACKAGE_CMD)
    26062565              list_cmd(yyvsp[-1].i,NULL,"// ",TRUE);
    2607 #endif /* HAVE_NS */
    26082566            yyvsp[-3].lv.CleanUp();
    26092567          ;
    26102568    break;}
    26112569case 138:
    2612 #line 1276 "grammar.y"
    2613 {
    2614 #ifdef HAVE_NS
    2615             //PrintS("?????\n");
     2570#line 1234 "grammar.y"
     2571{
    26162572            if(yyvsp[-3].lv.Typ() == PACKAGE_CMD)
    26172573              list_cmd(yyvsp[-1].i,NULL,"// ",TRUE);
    2618 #endif /* HAVE_NS */
    26192574            yyvsp[-3].lv.CleanUp();
    26202575          ;
    26212576    break;}
    26222577case 139:
    2623 #line 1285 "grammar.y"
    2624 {
    2625 #ifdef HAVE_NS
    2626             //PrintS("?????\n");
     2578#line 1240 "grammar.y"
     2579{
    26272580            if(yyvsp[-3].lv.Typ() == PACKAGE_CMD)
    26282581              list_cmd(yyvsp[-1].i,NULL,"// ",TRUE);
    2629 #endif /* HAVE_NS */
    26302582            yyvsp[-3].lv.CleanUp();
    26312583          ;
    26322584    break;}
    26332585case 140:
    2634 #line 1294 "grammar.y"
    2635 {
    2636 #ifdef HAVE_NS
    2637             //PrintS("?????\n");
     2586#line 1246 "grammar.y"
     2587{
    26382588            if(yyvsp[-3].lv.Typ() == PACKAGE_CMD)
    26392589              list_cmd(yyvsp[-1].i,NULL,"// ",TRUE);
    2640 #endif /* HAVE_NS */
    26412590            yyvsp[-3].lv.CleanUp();
    26422591          ;
    26432592    break;}
    26442593case 141:
    2645 #line 1303 "grammar.y"
    2646 {
    2647 #ifdef HAVE_NS
    2648             //PrintS("?????\n");
     2594#line 1252 "grammar.y"
     2595{
    26492596            if(yyvsp[-3].lv.Typ() == PACKAGE_CMD)
    26502597              list_cmd(yyvsp[-1].i,NULL,"// ",TRUE);
    2651 #endif /* HAVE_NS */
    26522598            yyvsp[-3].lv.CleanUp();
    26532599          ;
    26542600    break;}
    26552601case 142:
    2656 #line 1312 "grammar.y"
    2657 {
    2658 #ifdef HAVE_NS
    2659             //PrintS("?????\n");
     2602#line 1258 "grammar.y"
     2603{
    26602604            if(yyvsp[-3].lv.Typ() == PACKAGE_CMD)
    26612605              list_cmd(yyvsp[-1].i,NULL,"// ",TRUE);
    2662 #endif /* HAVE_NS */
    26632606            yyvsp[-3].lv.CleanUp();
    26642607          ;
    26652608    break;}
    26662609case 143:
    2667 #line 1330 "grammar.y"
     2610#line 1270 "grammar.y"
    26682611{
    26692612            list_cmd(-1,NULL,"// ",TRUE);
     
    26712614    break;}
    26722615case 144:
    2673 #line 1336 "grammar.y"
     2616#line 1276 "grammar.y"
    26742617{ yyInRingConstruction = TRUE; ;
    26752618    break;}
    26762619case 145:
    2677 #line 1345 "grammar.y"
     2620#line 1285 "grammar.y"
    26782621{
    26792622            const char *ring_name = yyvsp[-6].lv.name;
     
    26862629            if (b!=NULL)
    26872630            {
    2688               #ifdef HAVE_NS
    26892631                newRingHdl=enterid(ring_name, myynest, RING_CMD,
    26902632                                   &(yyvsp[-6].lv.req_packhdl->idroot));
    2691               #else
    2692                 newRingHdl=enterid(ring_name, myynest, RING_CMD, &IDROOT);
    2693               #endif
    26942633              yyvsp[-6].lv.CleanUp();
    26952634              if (newRingHdl!=NULL)
     
    27152654    break;}
    27162655case 146:
    2717 #line 1383 "grammar.y"
     2656#line 1319 "grammar.y"
    27182657{
    27192658            const char *ring_name = yyvsp[0].lv.name;
     
    27242663    break;}
    27252664case 147:
    2726 #line 1393 "grammar.y"
     2665#line 1329 "grammar.y"
    27272666{
    27282667            if ((yyvsp[-1].i!=LIB_CMD)||(iiLibCmd(yyvsp[0].name,TRUE,TRUE,TRUE)))
     
    27372676    break;}
    27382677case 150:
    2739 #line 1409 "grammar.y"
     2678#line 1345 "grammar.y"
    27402679{
    27412680            if ((yyvsp[-1].i==KEEPRING_CMD) && (myynest==0))
     
    28122751    break;}
    28132752case 151:
    2814 #line 1485 "grammar.y"
     2753#line 1421 "grammar.y"
    28152754{
    28162755            if (yyvsp[0].lv.rtyp!=IDHDL) MYYERROR("identifier expected");
     
    28202759    break;}
    28212760case 152:
    2822 #line 1491 "grammar.y"
     2761#line 1427 "grammar.y"
    28232762{
    28242763            //Print("typ is %d, rtyp:%d\n",$1.Typ(),$1.rtyp);
     
    28452784    break;}
    28462785case 153:
    2847 #line 1520 "grammar.y"
     2786#line 1456 "grammar.y"
    28482787{
    28492788            int i; TESTSETINT(yyvsp[-2].lv,i);
     
    28602799    break;}
    28612800case 154:
    2862 #line 1533 "grammar.y"
     2801#line 1469 "grammar.y"
    28632802{
    28642803            if (currentVoice->ifsw==1)
     
    28792818    break;}
    28802819case 155:
    2881 #line 1550 "grammar.y"
     2820#line 1486 "grammar.y"
    28822821{
    28832822            int i; TESTSETINT(yyvsp[-2].lv,i);
     
    28902829    break;}
    28912830case 156:
    2892 #line 1559 "grammar.y"
     2831#line 1495 "grammar.y"
    28932832{
    28942833            if (exitBuffer(BT_break)) YYERROR;
     
    28972836    break;}
    28982837case 157:
    2899 #line 1564 "grammar.y"
     2838#line 1500 "grammar.y"
    29002839{
    29012840            if (contBuffer(BT_break)) YYERROR;
     
    29042843    break;}
    29052844case 158:
    2906 #line 1572 "grammar.y"
     2845#line 1508 "grammar.y"
    29072846{
    29082847            /* -> if(!$2) break; $3; continue;*/
     
    29152854    break;}
    29162855case 159:
    2917 #line 1584 "grammar.y"
     2856#line 1520 "grammar.y"
    29182857{
    29192858            /* $2 */
     
    29332872    break;}
    29342873case 160:
    2935 #line 1603 "grammar.y"
     2874#line 1539 "grammar.y"
    29362875{
    29372876            procinfov pi;
     
    29462885    break;}
    29472886case 161:
    2948 #line 1614 "grammar.y"
     2887#line 1550 "grammar.y"
    29492888{
    29502889            idhdl h = enterid(yyvsp[-2].name,myynest,PROC_CMD,&IDROOT,TRUE);
     
    29682907    break;}
    29692908case 162:
    2970 #line 1634 "grammar.y"
     2909#line 1570 "grammar.y"
    29712910{
    29722911            omFree((ADDRESS)yyvsp[-1].name);
     
    29912930    break;}
    29922931case 163:
    2993 #line 1658 "grammar.y"
     2932#line 1594 "grammar.y"
    29942933{
    29952934            //Print("par:%s, %d\n",$2.Name(),$2.Typ());
     
    29992938    break;}
    30002939case 164:
    3001 #line 1664 "grammar.y"
     2940#line 1600 "grammar.y"
    30022941{
    30032942            //Print("par:%s, %d\n",$2.Name(),$2.Typ());
     
    30102949    break;}
    30112950case 165:
    3012 #line 1676 "grammar.y"
     2951#line 1612 "grammar.y"
    30132952{
    30142953            if(iiRETURNEXPR==NULL) YYERROR;
     
    30192958    break;}
    30202959case 166:
    3021 #line 1683 "grammar.y"
     2960#line 1619 "grammar.y"
    30222961{
    30232962            if (yyvsp[-2].i==RETURN)
     
    32533192  return 1;
    32543193}
    3255 #line 1693 "grammar.y"
     3194#line 1629 "grammar.y"
  • Singular/grammar.y

    r01cda73 rd3e630  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: grammar.y,v 1.129 2009-02-27 17:25:22 Singular Exp $ */
     4/* $Id: grammar.y,v 1.130 2009-07-28 14:18:34 Singular Exp $ */
    55/*
    66* ABSTRACT: SINGULAR shell grammatik
     
    180180    Werror("leaving %s",VoiceName());
    181181  }
    182   #ifdef HAVE_LIBFAC_P
     182  #ifdef HAVE_FACTORY
     183  // libfac:
    183184  extern int libfac_interruptflag;
    184185  libfac_interruptflag=0;
     
    894895        ROOT_DECL elemexpr
    895896          {
    896             #ifdef HAVE_NS
    897897            if (iiDeclCommand(&$$,&$2,myynest,$1,&($2.req_packhdl->idroot)))
    898898              YYERROR;
    899             #else
    900             if (iiDeclCommand(&$$,&$2,myynest,$1,&IDROOT)) YYERROR;
    901             #endif
    902899          }
    903900        | ROOT_DECL_LIST elemexpr
    904901          {
    905             #ifdef HAVE_NS
    906902            if (iiDeclCommand(&$$,&$2,myynest,$1,&($2.req_packhdl->idroot)))
    907903              YYERROR;
    908             #else
    909             if (iiDeclCommand(&$$,&$2,myynest,$1,&IDROOT)) YYERROR;
    910             #endif
    911904          }
    912905        | RING_DECL elemexpr
     
    946939            if (c < 0)
    947940              MYYERROR("cols must be greater than -1");
    948             #ifdef HAVE_NS
    949941            if (iiDeclCommand(&$$,&$2,myynest,$1,&($2.req_packhdl->idroot)))
    950942              YYERROR;
    951             #else
    952             if (iiDeclCommand(&$$,&$2,myynest,$1,&IDROOT)) YYERROR;
    953             #endif
    954943            leftv v=&$$;
    955944            idhdl h=(idhdl)v->data;
     
    960949        | INTMAT_CMD elemexpr
    961950          {
    962             #ifdef HAVE_NS
    963951            if (iiDeclCommand(&$$,&$2,myynest,$1,&($2.req_packhdl->idroot)))
    964952              YYERROR;
    965             #else
    966             if (iiDeclCommand(&$$,&$2,myynest,$1,&IDROOT)) YYERROR;
    967             #endif
    968953            leftv v=&$$;
    969954            idhdl h;
     
    988973            else
    989974            {
    990               #ifdef HAVE_NS
    991975              if (iiDeclCommand(&r,&$3,myynest,t,&($3.req_packhdl->idroot)))
    992976                YYERROR;
    993               #else
    994               if (iiDeclCommand(&r,&$3,myynest,t,&IDROOT)) YYERROR;
    995               #endif
    996977            }
    997978            leftv v=&$1;
     
    1003984        | PROC_CMD elemexpr
    1004985          {
    1005             #ifdef HAVE_NS
    1006986            if (iiDeclCommand(&$$,&$2,myynest,$1,&($2.req_packhdl->idroot)))
    1007987              YYERROR;
    1008             #else
    1009             if (iiDeclCommand(&$$,&$2,myynest,$1,&IDROOT)) YYERROR;
    1010             #endif
    1011988          }
    1012989        ;
     
    11531130        EXPORT_CMD exprlist
    11541131        {
    1155 #ifdef HAVE_NS
    11561132          if (basePack!=$2.req_packhdl)
    11571133          {
     
    11591135          }
    11601136          else
    1161 #endif /* HAVE_NS */
    11621137            if (iiExport(&$2,0)) YYERROR;
    11631138        }
     
    11781153          else
    11791154          {
    1180             #ifdef HAVE_NS
    11811155            killhdl((idhdl)v->data,v->req_packhdl);
    1182             #else
    1183             killhdl((idhdl)v->data);
    1184             #endif
    11851156          }
    11861157        }
     
    11981169          else
    11991170          {
    1200             #ifdef HAVE_NS
    12011171            killhdl((idhdl)v->data,v->req_packhdl);
    1202             #else
    1203             killhdl((idhdl)v->data);
    1204             #endif
    12051172          }
    12061173        }
     
    12481215        | LISTVAR_CMD '(' elemexpr ',' ROOT_DECL ')'
    12491216          {
    1250 #ifdef HAVE_NS
    1251             //PrintS("?????\n");
    12521217            if($3.Typ() == PACKAGE_CMD)
    12531218              list_cmd($5,NULL,"// ",TRUE);
    1254 #endif /* HAVE_NS */
    12551219            $3.CleanUp();
    12561220          }
    12571221        | LISTVAR_CMD '(' elemexpr ',' ROOT_DECL_LIST ')'
    12581222          {
    1259 #ifdef HAVE_NS
    1260             //PrintS("?????\n");
    12611223            if($3.Typ() == PACKAGE_CMD)
    12621224              list_cmd($5,NULL,"// ",TRUE);
    1263 #endif /* HAVE_NS */
    12641225            $3.CleanUp();
    12651226          }
    12661227        | LISTVAR_CMD '(' elemexpr ',' RING_DECL ')'
    12671228          {
    1268 #ifdef HAVE_NS
    1269             //PrintS("?????\n");
    12701229            if($3.Typ() == PACKAGE_CMD)
    12711230              list_cmd($5,NULL,"// ",TRUE);
    1272 #endif /* HAVE_NS */
    12731231            $3.CleanUp();
    12741232          }
    12751233        | LISTVAR_CMD '(' elemexpr ',' currring_lists ')'
    12761234          {
    1277 #ifdef HAVE_NS
    1278             //PrintS("?????\n");
    12791235            if($3.Typ() == PACKAGE_CMD)
    12801236              list_cmd($5,NULL,"// ",TRUE);
    1281 #endif /* HAVE_NS */
    12821237            $3.CleanUp();
    12831238          }
    12841239        | LISTVAR_CMD '(' elemexpr ',' RING_CMD ')'
    12851240          {
    1286 #ifdef HAVE_NS
    1287             //PrintS("?????\n");
    12881241            if($3.Typ() == PACKAGE_CMD)
    12891242              list_cmd($5,NULL,"// ",TRUE);
    1290 #endif /* HAVE_NS */
    12911243            $3.CleanUp();
    12921244          }
    12931245        | LISTVAR_CMD '(' elemexpr ',' MATRIX_CMD ')'
    12941246          {
    1295 #ifdef HAVE_NS
    1296             //PrintS("?????\n");
    12971247            if($3.Typ() == PACKAGE_CMD)
    12981248              list_cmd($5,NULL,"// ",TRUE);
    1299 #endif /* HAVE_NS */
    13001249            $3.CleanUp();
    13011250          }
    13021251        | LISTVAR_CMD '(' elemexpr ',' INTMAT_CMD ')'
    13031252          {
    1304 #ifdef HAVE_NS
    1305             //PrintS("?????\n");
    13061253            if($3.Typ() == PACKAGE_CMD)
    13071254              list_cmd($5,NULL,"// ",TRUE);
    1308 #endif /* HAVE_NS */
    13091255            $3.CleanUp();
    13101256          }
    13111257        | LISTVAR_CMD '(' elemexpr ',' PROC_CMD ')'
    13121258          {
    1313 #ifdef HAVE_NS
    1314             //PrintS("?????\n");
    13151259            if($3.Typ() == PACKAGE_CMD)
    13161260              list_cmd($5,NULL,"// ",TRUE);
    1317 #endif /* HAVE_NS */
    13181261            $3.CleanUp();
    13191262          }
    13201263        //| LISTVAR_CMD '(' elemexpr ',' elemexpr ')'
    13211264        //  {
    1322         //#ifdef HAVE_NS
    1323         //    //PrintS("?????\n");
    13241265        //    //if($3.Typ() == PACKAGE_CMD)
    13251266        //    //  list_cmd($5,NULL,"// ",TRUE);
    1326         //#endif /* HAVE_NS */
    13271267        //    $3.CleanUp();
    13281268        //  }
     
    13531293            if (b!=NULL)
    13541294            {
    1355               #ifdef HAVE_NS
    13561295                newRingHdl=enterid(ring_name, myynest, RING_CMD,
    13571296                                   &($2.req_packhdl->idroot));
    1358               #else
    1359                 newRingHdl=enterid(ring_name, myynest, RING_CMD, &IDROOT);
    1360               #endif
    13611297              $2.CleanUp();
    13621298              if (newRingHdl!=NULL)
  • Singular/iparith.cc

    r01cda73 rd3e630  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: iparith.cc,v 1.511 2009-07-13 16:35:56 Singular Exp $ */
     4/* $Id: iparith.cc,v 1.512 2009-07-28 14:18:34 Singular Exp $ */
    55
    66/*
     
    819819static BOOLEAN jjCOLCOL(leftv res, leftv u, leftv v)
    820820{
    821 #ifdef HAVE_NS
    822821  idhdl packhdl;
    823822  switch(u->Typ())
     
    837836        && (IDPACKAGE(packhdl)->language > LANG_TOP))
    838837        {
    839           //if(iiReLoadLib(packhdl))
    840           //  Werror("unable to reload package '%s'", IDID(packhdl));
    841838          Werror("'%s' not loaded", u->name);
    842839          return TRUE;
     
    858855        return TRUE;
    859856  }
    860 #else /* HAVE_NS */
    861   WerrorS("package is not supported in this version");
    862 #endif /* HAVE_NS */
    863857  return FALSE;
    864858}
     
    16681662    typ=u->rtyp; u->rtyp=IDHDL;
    16691663  }
    1670 #ifdef HAVE_NS
    16711664  leftv sl;
    16721665  if (u->req_packhdl==currPack)
     
    16741667  else
    16751668    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 */
    16791669  if (t)
    16801670  {
     
    19971987static BOOLEAN jjEXPORTTO(leftv res, leftv u, leftv v)
    19981988{
    1999 #ifdef HAVE_NS
    20001989  //Print("exportto %s -> %s\n",v->Name(),u->Name() );
    20011990  return iiExport(v,0,(idhdl)u->data);
    2002 #else /* HAVE_NS */
    2003   return TRUE;
    2004 #endif /* HAVE_NS */
    20051991}
    20061992static BOOLEAN jjERROR(leftv res, leftv u)
     
    34353421,{jjGCD_N,     GCD_CMD,        NUMBER_CMD,     NUMBER_CMD, NUMBER_CMD, ALLOW_PLURAL |ALLOW_RING}
    34363422,{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)
    34383424,{jjGCD_P,     GCD_CMD,        POLY_CMD,       POLY_CMD,   POLY_CMD, NO_PLURAL |NO_RING}
    34393425#else
     
    48514837static BOOLEAN jjLOAD(leftv res, leftv v, BOOLEAN autoexport)
    48524838{
    4853 #ifdef HAVE_NS
    48544839  char * s=(char *)v->CopyD();
    48554840  char libnamebuf[256];
     
    49044889#endif /* HAVE_DYNAMIC_LOADING */
    49054890  }
    4906 #endif
    49074891  return TRUE;
    49084892}
  • Singular/ipassign.cc

    r01cda73 rd3e630  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: ipassign.cc,v 1.105 2009-05-04 15:06:15 Singular Exp $ */
     4/* $Id: ipassign.cc,v 1.106 2009-07-28 14:18:34 Singular Exp $ */
    55
    66/*
     
    16181618BOOLEAN jjIMPORTFROM(leftv res, leftv u, leftv v)
    16191619{
    1620   #ifdef HAVE_NS
    16211620  //Print("importfrom %s::%s ->.\n",v->Name(),u->Name() );
    16221621  assume(u->Typ()==PACKAGE_CMD);
     
    16511650    return TRUE;
    16521651  }
    1653 #endif
    1654   return FALSE;
    1655 }
     1652  return FALSE;
     1653}
  • Singular/ipid.cc

    r01cda73 rd3e630  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: ipid.cc,v 1.86 2009-05-05 09:54:38 Singular Exp $ */
     4/* $Id: ipid.cc,v 1.87 2009-07-28 14:18:34 Singular Exp $ */
    55
    66/*
     
    4343idhdl idroot = NULL;
    4444
    45 #ifdef HAVE_NS
    4645idhdl currPackHdl = NULL;
    4746idhdl basePackHdl = NULL;
    4847package currPack =NULL;
    4948package basePack =NULL;
    50 #endif /* HAVE_NS */
    5149idhdl currRingHdl = NULL;
    5250ring  currRing = NULL;
     
    437435  }
    438436  *root = (*root)->set(s, lev, t, init);
    439 #ifdef HAVE_NS
    440437#ifndef NDEBUG
    441438  checkall();
    442 #endif
    443439#endif
    444440  return *root;
     
    447443    //Werror("identifier `%s` in use(lev h=%d,typ=%d,t=%d, curr=%d)",s,IDLEV(h),IDTYP(h),t,lev);
    448444    Werror("identifier `%s` in use",s);
    449 #ifdef HAVE_NS
    450445    //listall();
    451 #endif
    452446    omFree((ADDRESS)s);
    453447    return NULL;
     
    481475}
    482476
    483 #ifndef HAVE_NS
    484 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   else
    491   {
    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 #else
    501 //#ifdef HAVE_NS
    502477void killhdl(idhdl h, package proot)
    503478{
     
    530505  }
    531506}
    532 #endif /* HAVE_NS */
    533507
    534508void killhdl2(idhdl h, idhdl * ih, ring r)
     
    554528    rKill(h);
    555529  }
    556 #ifdef HAVE_NS
    557530  // package -------------------------------------------------------------
    558531  else if (IDTYP(h) == PACKAGE_CMD)
     
    582555    iiCheckPack(currPack);
    583556  }
    584 #endif /* HAVE_NS */
    585557  // poly / vector -------------------------------------------------------
    586558  else if ((IDTYP(h) == POLY_CMD) || (IDTYP(h) == VECTOR_CMD))
     
    718690  if (h2!=NULL) return h2;
    719691  if (h!=NULL) return h;
    720 #ifdef HAVE_NS
    721692  if (basePack!=currPack)
    722693    return basePack->idroot->get(n,myynest);
    723 #endif
    724694  return NULL;
    725695}
     
    792762    {
    793763      /*move 'tomove' to ring id's*/
    794 #ifdef HAVE_NS
    795764      if (ipSwapId(tomove,IDROOT,currRing->idroot))
    796765      ipSwapId(tomove,basePack->idroot,currRing->idroot);
    797 #else
    798       ipSwapId(tomove,IDROOT,currRing->idroot);
    799 #endif
    800766    }
    801767    else
     
    949915  p->cRingHdl=currRingHdl;
    950916  p->name=n;
    951   #ifdef HAVE_NS
    952917  p->cPackHdl=currPackHdl;
    953918  p->cPack=currPack;
    954   #endif
    955919  p->next=this;
    956920  procstack=p;
     
    965929  //if((::currRingHdl==NULL)||(IDRING(::currRingHdl)!=(::currRing)))
    966930  //  ::currRingHdl=rFindHdl(::currRing,NULL,NULL);
    967   #ifdef HAVE_NS
    968931  //Print("restore pack=%s,1.obj=%s\n",IDID(currPackHdl),IDID(currPack->idroot));
    969932  currPackHdl=this->cPackHdl;
    970933  currPack=this->cPack;
    971934  iiCheckPack(currPack);
    972   #endif
    973935  proclevel *p=this;
    974936  procstack=next;
     
    976938}
    977939
    978 #ifdef HAVE_NS
    979940idhdl packFindHdl(package r)
    980941{
     
    989950  return NULL;
    990951}
    991 #endif
  • Singular/ipid.h

    r01cda73 rd3e630  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: ipid.h,v 1.44 2009-07-25 13:21:02 Singular Exp $ */
     6/* $Id: ipid.h,v 1.45 2009-07-28 14:18:34 Singular Exp $ */
    77/*
    88* ABSTRACT: identfier handling
     
    4747  idhdl      cRingHdl;
    4848  ring       cRing;
    49   #ifdef HAVE_NS
    5049  idhdl      cPackHdl;
    5150  package    cPack;
    52   #endif
    5351  char      * name;
    5452  proclevel()  { memset(this,0,sizeof(*this)); }
     
    7876idhdl ggetid(const char *n, BOOLEAN local, idhdl *packhdl);
    7977void  killid(const char * a, idhdl * i);
    80 #ifdef HAVE_NS
    8178void killhdl(idhdl h, package prooti=currPack);
    82 #else
    83 void  killhdl(idhdl h);
    84 #endif
    8579void  killhdl2(idhdl h, idhdl * ih, ring r);
    8680lists ipNameList(idhdl root);
    8781void  ipMoveId(idhdl h);
    8882BOOLEAN checkPackage(package pack);
    89 #ifdef HAVE_NS
    9083idhdl packFindHdl(package r);
    91 #endif
    9284
    9385#define FLAG_STD   0
  • Singular/iplib.cc

    r01cda73 rd3e630  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: iplib.cc,v 1.129 2009-06-21 14:10:18 Singular Exp $ */
     4/* $Id: iplib.cc,v 1.130 2009-07-28 14:18:34 Singular Exp $ */
    55/*
    66* ABSTRACT: interpreter: LIB and help
     
    6767  idhdl hl;
    6868
    69 #ifndef HAVE_NS
    70   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 #else
    7869  char *plib = iiConvName(lib);
    7970  hl = basePack->idroot->get(plib,0);
     
    8576  omFree(plib);
    8677  return (strcmp(lib,IDPACKAGE(hl)->libname)==0);
    87 #endif
    8878}
    8979
     
    343333  {
    344334    err=yyparse();
    345 #ifdef HAVE_NS
    346335#ifndef NDEBUG
    347336    checkall();
    348337#endif
    349 #endif
    350338    if (sLastPrinted.rtyp!=0)
    351339    {
     
    354342    //Print("kill locals for %s (level %d)\n",IDID(pn),myynest);
    355343    killlocals(myynest);
    356 #ifdef HAVE_NS
    357344#ifndef NDEBUG
    358345    checkall();
    359 #endif
    360346#endif
    361347    //Print("end kill locals for %s (%d)\n",IDID(pn),myynest);
     
    391377#endif
    392378#if  0
    393 //#ifdef HAVE_NS
    394379  i=myynest;
    395380  proclevel *p=procstack;
     
    426411  }
    427412}
    428 #ifdef HAVE_NS
    429413sleftv * iiMake_proc(idhdl pn, package pack, sleftv* sl)
    430 #else /* HAVE_NS */
    431 sleftv * iiMake_proc(idhdl pn, sleftv* sl)
    432 #endif /* HAVE_NS */
    433414{
    434415  int err;
     
    465446
    466447    case LANG_SINGULAR:
    467                  #ifdef HAVE_NS
    468448                 if ((pi->pack!=NULL)&&(currPack!=pi->pack))
    469449                 {
     
    480460                   //Print("set pack=%s\n",IDID(currPackHdl));
    481461                 }
    482                  #endif
    483462                 err=iiPStart(pn,sl);
    484                  #ifdef HAVE_NS
    485                  #endif
    486463                 break;
    487464    case LANG_C:
     
    572549        //PrintS("reset ring\n");
    573550        procstack->cRingHdl=rFindHdl(procstack->cRing,NULL, NULL);
    574         #ifdef HAVE_NS
    575551        if (procstack->cRingHdl==NULL)
    576552          procstack->cRingHdl=
     
    579555          procstack->cRingHdl=
    580556           rFindHdl(procstack->cRing,NULL,basePack->idroot);
    581         #endif
    582557        o=IDID(procstack->cRingHdl);
    583558        currRing=procstack->cRing;
     
    692667{
    693668  BOOLEAN LoadResult = TRUE;
    694 #ifdef HAVE_NS
    695669  char libnamebuf[128];
    696670  char *libname = (char *)omAlloc(strlen(id)+5);
     
    725699  }
    726700  omFree(libname);
    727 #endif /* HAVE_NS */
    728   return LoadResult;
    729 }
    730 
    731 BOOLEAN iiReLoadLib(idhdl packhdl)
    732 {
    733   BOOLEAN LoadResult = TRUE;
    734 #ifdef HAVE_NAMESPACES
    735   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 */
    751701  return LoadResult;
    752702}
     
    794744  idhdl h;
    795745  BOOLEAN LoadResult = TRUE;
    796 #ifdef HAVE_NS
    797746  idhdl pl;
    798 #endif
    799747  idhdl hl;
    800748  int lines = 1;
    801749  long pos = 0L;
    802750  procinfov pi;
    803 #ifdef HAVE_NS
    804751  char *plib = iiConvName(newlib);
    805 #endif
    806752  FILE * fp = feFopen( newlib, "r", libnamebuf, tellerror );
    807753  if (fp==NULL)
     
    809755    return TRUE;
    810756  }
    811 #ifndef HAVE_NS
    812   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   else
    819   {
    820 #ifdef TEST
    821     if (IDSTRING(hl) != NULL)
    822 #endif
    823     {
    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       else
    833       {
    834         char *p=strtok(s,",");
    835         do
    836         {
    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       else
    848       {
    849         sprintf( s, "%s,%s", IDSTRING(hl), newlib);
    850         omFree((ADDRESS)IDSTRING(hl));
    851         IDSTRING(hl) = s;
    852       }
    853     }
    854 #ifdef TEST
    855     else
    856     {
    857       PrintS("## empty LIB string\n");
    858       IDSTRING(hl) = omStrDup(newlib);
    859     }
    860 #endif
    861   }
    862 #endif /* HAVE_NS */
    863757#ifdef HAVE_TCL
    864758  if (tclmode)
     
    867761  }
    868762#endif
    869 #ifdef HAVE_NS
    870763  pl = basePack->idroot->get(plib,0);
    871764  if (pl==NULL)
     
    887780  }
    888781  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 
    893782  omFree((ADDRESS)newlib);
    894783
    895 #ifdef HAVE_NS
    896784  if(!LoadResult) IDPACKAGE(pl)->loaded = TRUE;
    897785  omFree((ADDRESS)plib);
    898 #endif /* HAVE_NS */
    899786
    900787 return LoadResult;
     
    946833  if (BVERBOSE(V_DEBUG_LIB)) lpverbose=1;
    947834  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);
    953836  if(yylp_errno)
    954837  {
     
    1022905  pi->language = LANG_SINGULAR;
    1023906  pi->ref = 1;
    1024 #ifdef HAVE_NS
    1025907  pi->pack = NULL;
    1026 #endif
    1027908  pi->is_static = pstatic;
    1028909  pi->data.s.proc_start = pos;
     
    1072953{
    1073954  int r=iiAddCproc(libname,procname,pstatic,func);
    1074   #ifdef HAVE_NS
    1075955  package s=currPack;
    1076956  currPack=basePack;
    1077957  if (r) r=iiAddCproc(libname,procname,pstatic,func);
    1078958  currPack=s;
    1079   #endif
    1080959  return r;
    1081960}
     
    11391018    SModulFunctions sModulFunctions;
    11401019   
    1141 #ifdef HAVE_NS
    11421020    package s=currPack;
    11431021    currPack=IDPACKAGE(pl);
    1144 #endif
    11451022    fktn = (fktn2_t)dynl_sym(IDPACKAGE(pl)->handle, "mod_init");
    11461023    if( fktn!= NULL)
     
    11531030    else Werror("mod_init: %s\n", dynl_error());
    11541031    if (BVERBOSE(V_LOAD_LIB)) Print( "// ** loaded %s \n", fullname);
    1155 #ifdef HAVE_NS
    11561032    currPack->loaded=1;
    11571033    currPack=s;
    1158 #endif
    11591034  }
    11601035  RET=FALSE;
  • Singular/ipshell.cc

    r01cda73 rd3e630  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: ipshell.cc,v 1.207 2009-06-04 09:58:49 Singular Exp $ */
     4/* $Id: ipshell.cc,v 1.208 2009-07-28 14:18:34 Singular Exp $ */
    55/*
    66* ABSTRACT:
     
    263263  }
    264264}
    265 #ifndef HAVE_NS
    266 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 #endif
    319 #ifdef HAVE_NS
    320265void killlocals_rec(idhdl *root,int v, ring r)
    321266{
     
    414359  //listall();
    415360}
    416 #endif
    417361
    418362void list_cmd(int typ, const char* what, const char *prefix,BOOLEAN iterate, BOOLEAN fullname)
     
    429373    {
    430374      really_all=TRUE;
    431 #ifdef HAVE_NS
    432375      h=basePack->idroot;
    433 #else
    434       h=IDROOT;
    435 #endif
    436376    }
    437377    else
     
    443383        if ((IDTYP(h)==RING_CMD)
    444384            || (IDTYP(h)==QRING_CMD)
    445 #ifdef HAVE_NS
    446385            //|| (IDTYP(h)==PACKE_CMD)
    447 #endif
    448386        )
    449387        {
     
    487425        list_cmd(0,IDID(h),"//      ",FALSE);
    488426      }
    489 #ifdef HAVE_NS
    490427      if (IDTYP(h)==PACKAGE_CMD && really_all)
    491428      {
     
    495432        currPack=save_p;
    496433      }
    497 #endif /* HAVE_NS */
    498434    }
    499435    h = IDNEXT(h);
     
    668604
    669605  r=IDROOT->get(theMap->preimage,myynest);
    670 #ifdef HAVE_NS
    671606  if ((currPack!=basePack)
    672607  &&((r==NULL) || ((r->typ != RING_CMD) && (r->typ != QRING_CMD))))
     
    677612    r=currRingHdl;
    678613  }
    679 #endif /* HAVE_NS */
    680614  if ((r!=NULL) && ((r->typ == RING_CMD) || (r->typ== QRING_CMD)))
    681615  {
     
    12431177}
    12441178
    1245 #ifdef HAVE_NS
    12461179BOOLEAN iiInternalExport (leftv v, int toLev, idhdl roothdl)
    12471180{
     
    12911224  return FALSE;
    12921225}
    1293 #endif /* HAVE_NS */
    12941226
    12951227BOOLEAN iiExport (leftv v, int toLev)
    12961228{
    1297 #ifdef HAVE_NS
    12981229#ifndef NDEBUG
    12991230  checkall();
    1300 #endif
    13011231#endif
    13021232  BOOLEAN nok=FALSE;
     
    13201250  }
    13211251  r->CleanUp();
    1322 #ifdef HAVE_NS
    13231252#ifndef NDEBUG
    13241253  checkall();
    13251254#endif
    1326 #endif
    13271255  return nok;
    13281256}
    13291257
    13301258/*assume root!=idroot*/
    1331 #ifdef HAVE_NS
    13321259BOOLEAN iiExport (leftv v, int toLev, idhdl root)
    13331260{
     
    13871314  return nok;
    13881315}
    1389 #endif
    13901316
    13911317BOOLEAN iiCheckRing(int i)
     
    14331359}
    14341360
    1435 #ifdef HAVE_NS
    14361361void iiCheckPack(package &p)
    14371362{
     
    14491374  return;
    14501375}
    1451 #endif
    14521376
    14531377idhdl rDefault(const char *s)
     
    15021426  idhdl h=rSimpleFindHdl(r,IDROOT,n);
    15031427  if (h!=NULL)  return h;
    1504 #ifdef HAVE_NS
    15051428  if (IDROOT!=basePack->idroot) h=rSimpleFindHdl(r,basePack->idroot,n);
    15061429  if (h!=NULL)  return h;
     
    15221445    tmp=IDNEXT(tmp);
    15231446  }
    1524 #endif
    15251447  return NULL;
    15261448}
  • Singular/ipshell.h

    r01cda73 rd3e630  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: ipshell.h,v 1.54 2009-07-13 16:35:56 Singular Exp $ */
     6/* $Id: ipshell.h,v 1.55 2009-07-28 14:18:34 Singular Exp $ */
    77/*
    88* ABSTRACT
     
    5454BOOLEAN iiWRITE(leftv res,leftv exprlist);
    5555BOOLEAN iiExport(leftv v, int toLev);
    56 #ifdef HAVE_NS
    5756BOOLEAN iiExport(leftv v, int toLev, idhdl roothdl);
    5857BOOLEAN iiInternalExport (leftv v, int toLev, idhdl roothdl);
    59 #endif /* HAVE_NS */
    6058char *  iiGetLibName(procinfov v);
    6159char *  iiGetLibProcBuffer( procinfov pi, int part=1 );
     
    178176int     iiDeclCommand(leftv sy, leftv name, int lev, int t, idhdl* root,
    179177  BOOLEAN isring = FALSE, BOOLEAN init_b=TRUE);
    180 #ifdef HAVE_NS
    181178sleftv * iiMake_proc(idhdl pn, package pack, sleftv* sl);
    182 #else /* HAVE_NS */
    183 sleftv * iiMake_proc(idhdl pn, sleftv* sl);
    184 #endif /* HAVE_NS */
    185179// from misc.cc:
    186180char *  showOption();
     
    193187BOOLEAN iiTryLoadLib(leftv v, const char *id);
    194188
    195 #ifdef HAVE_NS
    196189void listall(int showproc=1);
    197190void iiCheckPack(package &p);
     
    200193#endif
    201194#endif
    202 #endif
    203195
  • Singular/libparse.cc

    r01cda73 rd3e630  
    2020
    2121/* Scanner skeleton version:
    22  * $Header: /exports/cvsroot-2/cvsroot/Singular/libparse.cc,v 1.13 2008-03-19 17:44:35 Singular Exp $
     22 * $Header: /exports/cvsroot-2/cvsroot/Singular/libparse.cc,v 1.14 2009-07-28 14:18:34 Singular Exp $
    2323 */
    2424
     
    10521052*  Computer Algebra System SINGULAR     *
    10531053****************************************/
    1054 /* $Id: libparse.cc,v 1.13 2008-03-19 17:44:35 Singular Exp $ */
     1054/* $Id: libparse.cc,v 1.14 2009-07-28 14:18:34 Singular Exp $ */
    10551055#include <stdio.h>
    10561056#include <string.h>
     
    11391139#else /* STANDALONE_PARSER */
    11401140idhdl h0;
    1141 #ifdef HAVE_NS
    11421141idhdl h_top;
    1143 #endif
    11441142#define pi IDPROC(h0)
    11451143extern "C"
     
    11981196
    11991197#undef YY_DECL
    1200 #ifdef HAVE_NS
    12011198#define YY_DECL int yylex(char *newlib, char *libfile, \
    12021199                           lib_style_types *lib_style, \
    12031200                           idhdl pl, BOOLEAN autoexport, lp_modes mode)
    1204 #else
    1205 #define YY_DECL int yylex(char *newlib, char *libfile, \
    1206                            lib_style_types *lib_style, \
    1207                            lp_modes mode)
    1208 #endif /* HAVE_NS */
    1209 
    12101201#undef YY_INPUT
    12111202#define YY_INPUT(buf,result,max_size) \
     
    14211412        register int yy_act;
    14221413
    1423 #line 237 "libparse.l"
     1414#line 228 "libparse.l"
    14241415
    14251416
     
    15141505case 1:
    15151506YY_RULE_SETUP
    1516 #line 238 "libparse.l"
     1507#line 229 "libparse.l"
    15171508{ }
    15181509        YY_BREAK
    15191510case 2:
    15201511YY_RULE_SETUP
    1521 #line 239 "libparse.l"
     1512#line 230 "libparse.l"
    15221513{ old_state = YYSTATE; BEGIN(comment); }
    15231514        YY_BREAK
    15241515case 3:
    15251516YY_RULE_SETUP
    1526 #line 241 "libparse.l"
     1517#line 232 "libparse.l"
    15271518{
    15281519         yyless(4); old_state = YYSTATE; BEGIN(info);
     
    15311522case 4:
    15321523YY_RULE_SETUP
    1533 #line 244 "libparse.l"
     1524#line 235 "libparse.l"
    15341525{
    15351526         yyless(8); old_state = YYSTATE; BEGIN(category);
     
    15381529case 5:
    15391530YY_RULE_SETUP
    1540 #line 247 "libparse.l"
     1531#line 238 "libparse.l"
    15411532{
    15421533             if ( mode != GET_INFO )
     
    15621553case 6:
    15631554YY_RULE_SETUP
    1564 #line 268 "libparse.l"
     1555#line 259 "libparse.l"
    15651556{
    15661557             found_version++;
     
    15991590case 7:
    16001591YY_RULE_SETUP
    1601 #line 302 "libparse.l"
     1592#line 293 "libparse.l"
    16021593{ p_static=TRUE; }
    16031594        YY_BREAK
    16041595case 8:
    16051596YY_RULE_SETUP
    1606 #line 304 "libparse.l"
     1597#line 295 "libparse.l"
    16071598{
    16081599             char proc[256];
     
    16311622             if( mode == LOAD_LIB)
    16321623             {
    1633                #ifdef HAVE_NS
    16341624               h0 = enterid( proc, 0 /*myynest*/, PROC_CMD,
    16351625                                 &(IDPACKAGE(pl)->idroot), TRUE);
     
    16441634                  if (h_top==NULL) return(1);
    16451635               }
    1646                #else
    1647                h0 = enterid( proc, 0 /*myynest*/, PROC_CMD,
    1648                                    &IDROOT, TRUE );
    1649                #endif /* HAVE_NS */
    16501636               /* omCheckAddr(IDID(h0)); */
    16511637               if (h0!=NULL)
     
    16531639                 iiInitSingularProcinfo(IDPROC(h0), newlib, proc,
    16541640                                yylplineno, current_pos(0),p_static);
    1655                  #ifdef HAVE_NS
    16561641                 if ((!p_static) && (h_top != NULL) && autoexport)
    16571642                 {
     
    16611646                 }
    16621647                 IDPROC(h0)->pack=IDPACKAGE(pl);
    1663                  #endif /* HAVE_NS */
    16641648                 if (BVERBOSE(V_LOAD_PROC))
    16651649                   Warn( "     proc '%s' registered", proc );
     
    16841668case 9:
    16851669YY_RULE_SETUP
    1686 #line 380 "libparse.l"
     1670#line 364 "libparse.l"
    16871671{
    16881672             BEGIN(pexample);
     
    16991683case 10:
    17001684YY_RULE_SETUP
    1701 #line 392 "libparse.l"
     1685#line 376 "libparse.l"
    17021686{ quote++;
    17031687             BEGIN(libcmd);
     
    17061690case 11:
    17071691YY_RULE_SETUP
    1708 #line 396 "libparse.l"
     1692#line 380 "libparse.l"
    17091693{ quote++; brace2++;
    17101694             BEGIN(libcmd2);
     
    17131697case 12:
    17141698YY_RULE_SETUP
    1715 #line 400 "libparse.l"
     1699#line 384 "libparse.l"
    17161700{
    17171701             make_version(yytext, 0);
     
    17231707case 13:
    17241708YY_RULE_SETUP
    1725 #line 406 "libparse.l"
     1709#line 390 "libparse.l"
    17261710{
    17271711             #if YYLPDEBUG
     
    17321716case 14:
    17331717YY_RULE_SETUP
    1734 #line 411 "libparse.l"
     1718#line 395 "libparse.l"
    17351719{
    17361720             #if YYLPDEBUG > 1
     
    17411725case 15:
    17421726YY_RULE_SETUP
    1743 #line 416 "libparse.l"
     1727#line 400 "libparse.l"
    17441728{ yyless(0);
    17451729             BEGIN(INITIAL);
     
    17491733case 16:
    17501734YY_RULE_SETUP
    1751 #line 420 "libparse.l"
     1735#line 404 "libparse.l"
    17521736{
    17531737             yyless(0);
     
    17591743case 17:
    17601744YY_RULE_SETUP
    1761 #line 427 "libparse.l"
     1745#line 411 "libparse.l"
    17621746{ quote++;
    17631747             BEGIN(libcmd);
     
    17661750case 18:
    17671751YY_RULE_SETUP
    1768 #line 430 "libparse.l"
     1752#line 414 "libparse.l"
    17691753{ quote++; brace2++;
    17701754             BEGIN(libcmd2);
     
    17731757case 19:
    17741758YY_RULE_SETUP
    1775 #line 433 "libparse.l"
     1759#line 417 "libparse.l"
    17761760{ yylplineno++; }
    17771761        YY_BREAK
    17781762case 20:
    17791763YY_RULE_SETUP
    1780 #line 434 "libparse.l"
     1764#line 418 "libparse.l"
    17811765{
    17821766             #if YYLPDEBUG > 1
     
    17891773case 21:
    17901774YY_RULE_SETUP
    1791 #line 441 "libparse.l"
     1775#line 425 "libparse.l"
    17921776{
    17931777             #if YYLPDEBUG > 1
     
    17981782case 22:
    17991783YY_RULE_SETUP
    1800 #line 446 "libparse.l"
     1784#line 430 "libparse.l"
    18011785{
    18021786             #if YYLPDEBUG > 1
     
    18081792case 23:
    18091793YY_RULE_SETUP
    1810 #line 452 "libparse.l"
     1794#line 436 "libparse.l"
    18111795{
    18121796             yyless(0);
     
    18181802case 24:
    18191803YY_RULE_SETUP
    1820 #line 458 "libparse.l"
     1804#line 442 "libparse.l"
    18211805{
    18221806             yyless(0);
     
    18281812case 25:
    18291813YY_RULE_SETUP
    1830 #line 464 "libparse.l"
     1814#line 448 "libparse.l"
    18311815{ quote++;
    18321816             BEGIN(libcmd);
     
    18351819case 26:
    18361820YY_RULE_SETUP
    1837 #line 467 "libparse.l"
     1821#line 451 "libparse.l"
    18381822{ quote++; brace2++;
    18391823             BEGIN(libcmd2);
     
    18421826case 27:
    18431827YY_RULE_SETUP
    1844 #line 471 "libparse.l"
     1828#line 455 "libparse.l"
    18451829{ yylplineno++; }
    18461830        YY_BREAK
    18471831case 28:
    18481832YY_RULE_SETUP
    1849 #line 472 "libparse.l"
     1833#line 456 "libparse.l"
    18501834{
    18511835             #if YYLPDEBUG
     
    18561840case 29:
    18571841YY_RULE_SETUP
    1858 #line 477 "libparse.l"
     1842#line 461 "libparse.l"
    18591843{
    18601844             found_oldhelp=1;
     
    18661850case 30:
    18671851YY_RULE_SETUP
    1868 #line 485 "libparse.l"
     1852#line 469 "libparse.l"
    18691853{ quote--;
    18701854             yytext[yyleng-1] = '\0';
     
    18831867case 31:
    18841868YY_RULE_SETUP
    1885 #line 498 "libparse.l"
     1869#line 482 "libparse.l"
    18861870{ quote--; brace2--;
    18871871             yytext[yyleng-1] = '\0';
     
    19001884case 32:
    19011885YY_RULE_SETUP
    1902 #line 512 "libparse.l"
     1886#line 496 "libparse.l"
    19031887{ }
    19041888        YY_BREAK
    19051889case 33:
    19061890YY_RULE_SETUP
    1907 #line 513 "libparse.l"
     1891#line 497 "libparse.l"
    19081892{
    19091893             brace2++;
     
    19151899case 34:
    19161900YY_RULE_SETUP
    1917 #line 519 "libparse.l"
     1901#line 503 "libparse.l"
    19181902{
    19191903             brace2--;
     
    19341918case 35:
    19351919YY_RULE_SETUP
    1936 #line 534 "libparse.l"
     1920#line 518 "libparse.l"
    19371921{
    19381922             if(brace2>0)
     
    19561940case 36:
    19571941YY_RULE_SETUP
    1958 #line 552 "libparse.l"
     1942#line 536 "libparse.l"
    19591943{ yylplineno++;
    19601944              if(brace2<=0)
     
    19691953case 37:
    19701954YY_RULE_SETUP
    1971 #line 561 "libparse.l"
     1955#line 545 "libparse.l"
    19721956{ }
    19731957        YY_BREAK
    19741958case 38:
    19751959YY_RULE_SETUP
    1976 #line 562 "libparse.l"
     1960#line 546 "libparse.l"
    19771961{ old_state = YYSTATE; BEGIN(comment); }
    19781962        YY_BREAK
    19791963case 39:
    19801964YY_RULE_SETUP
    1981 #line 563 "libparse.l"
     1965#line 547 "libparse.l"
    19821966{
    19831967             if(brace2<=0)
     
    19901974case 40:
    19911975YY_RULE_SETUP
    1992 #line 571 "libparse.l"
     1976#line 555 "libparse.l"
    19931977{
    19941978              #if YYLPDEBUG
     
    20071991case 41:
    20081992YY_RULE_SETUP
    2009 #line 584 "libparse.l"
     1993#line 568 "libparse.l"
    20101994{
    20111995              #if YYLPDEBUG
     
    20182002case 42:
    20192003YY_RULE_SETUP
    2020 #line 591 "libparse.l"
     2004#line 575 "libparse.l"
    20212005{
    20222006              if(check && yyleng>2)
     
    20362020case 43:
    20372021YY_RULE_SETUP
    2038 #line 605 "libparse.l"
     2022#line 589 "libparse.l"
    20392023{ printf("[%s]", yytext); }
    20402024        YY_BREAK
    20412025case 44:
    20422026YY_RULE_SETUP
    2043 #line 607 "libparse.l"
     2027#line 591 "libparse.l"
    20442028{ }
    20452029        YY_BREAK
    20462030case 45:
    20472031YY_RULE_SETUP
    2048 #line 608 "libparse.l"
     2032#line 592 "libparse.l"
    20492033{
    20502034                SET_HELP_END(mode, pi, current_pos(0));
     
    20682052case 46:
    20692053YY_RULE_SETUP
    2070 #line 626 "libparse.l"
     2054#line 610 "libparse.l"
    20712055{ yylplineno++; }
    20722056        YY_BREAK
    20732057case 47:
    20742058YY_RULE_SETUP
    2075 #line 627 "libparse.l"
     2059#line 611 "libparse.l"
    20762060{ }
    20772061        YY_BREAK
    20782062case 48:
    20792063YY_RULE_SETUP
    2080 #line 629 "libparse.l"
     2064#line 613 "libparse.l"
    20812065{
    20822066             old_state = YYSTATE;
     
    20872071case 49:
    20882072YY_RULE_SETUP
    2089 #line 634 "libparse.l"
     2073#line 618 "libparse.l"
    20902074{}
    20912075        YY_BREAK
    20922076case 50:
    20932077YY_RULE_SETUP
    2094 #line 635 "libparse.l"
     2078#line 619 "libparse.l"
    20952079{
    20962080             brace1++; BEGIN(pbody);
     
    21132097case 51:
    21142098YY_RULE_SETUP
    2115 #line 652 "libparse.l"
     2099#line 636 "libparse.l"
    21162100{ yylplineno++;}
    21172101        YY_BREAK
    21182102case 52:
    21192103YY_RULE_SETUP
    2120 #line 654 "libparse.l"
     2104#line 638 "libparse.l"
    21212105{ }
    21222106        YY_BREAK
    21232107case 53:
    21242108YY_RULE_SETUP
    2125 #line 655 "libparse.l"
     2109#line 639 "libparse.l"
    21262110{ quote++; old_state = YYSTATE;
    21272111                 BEGIN(string); /* printf("%s", yytext); */
     
    21302114case 54:
    21312115YY_RULE_SETUP
    2132 #line 659 "libparse.l"
     2116#line 643 "libparse.l"
    21332117{
    21342118             if(check) printf("*** found 2 proc whithin procedure '%s'.\n",
     
    21392123case 55:
    21402124YY_RULE_SETUP
    2141 #line 664 "libparse.l"
     2125#line 648 "libparse.l"
    21422126{
    21432127             if(check) printf("*** found 1 proc whithin procedure '%s'.\n",
     
    21482132case 56:
    21492133YY_RULE_SETUP
    2150 #line 669 "libparse.l"
     2134#line 653 "libparse.l"
    21512135{
    21522136                 brace1++;
     
    21582142case 57:
    21592143YY_RULE_SETUP
    2160 #line 675 "libparse.l"
     2144#line 659 "libparse.l"
    21612145{
    21622146                           #if YYLPDEBUG > 1
     
    21882172case 58:
    21892173YY_RULE_SETUP
    2190 #line 701 "libparse.l"
     2174#line 685 "libparse.l"
    21912175{
    21922176                           brace2++; /* printf("%s", yytext); */
     
    21952179case 59:
    21962180YY_RULE_SETUP
    2197 #line 704 "libparse.l"
     2181#line 688 "libparse.l"
    21982182{
    21992183                           brace2--; /* printf("%s", yytext); */
     
    22062190case 60:
    22072191YY_RULE_SETUP
    2208 #line 711 "libparse.l"
     2192#line 695 "libparse.l"
    22092193{
    22102194                           brace3++; /* printf("%s", yytext); */
     
    22132197case 61:
    22142198YY_RULE_SETUP
    2215 #line 714 "libparse.l"
     2199#line 698 "libparse.l"
    22162200{
    22172201                           brace3--; /* printf("%s", yytext); */
     
    22242208case 62:
    22252209YY_RULE_SETUP
    2226 #line 721 "libparse.l"
     2210#line 705 "libparse.l"
    22272211{ yylplineno++; }
    22282212        YY_BREAK
    22292213case 63:
    22302214YY_RULE_SETUP
    2231 #line 722 "libparse.l"
     2215#line 706 "libparse.l"
    22322216{ }
    22332217        YY_BREAK
    22342218case 64:
    22352219YY_RULE_SETUP
    2236 #line 724 "libparse.l"
     2220#line 708 "libparse.l"
    22372221{
    22382222             quote++; BEGIN(string);
     
    22452229case 65:
    22462230YY_RULE_SETUP
    2247 #line 731 "libparse.l"
     2231#line 715 "libparse.l"
    22482232{ yylplineno++; }
    22492233        YY_BREAK
    22502234case 66:
    22512235YY_RULE_SETUP
    2252 #line 732 "libparse.l"
     2236#line 716 "libparse.l"
    22532237{ }
    22542238        YY_BREAK
    22552239case 67:
    22562240YY_RULE_SETUP
    2257 #line 734 "libparse.l"
     2241#line 718 "libparse.l"
    22582242{
    22592243             quote++; BEGIN(string);
     
    22662250case 68:
    22672251YY_RULE_SETUP
    2268 #line 741 "libparse.l"
     2252#line 725 "libparse.l"
    22692253{ yylplineno++; }
    22702254        YY_BREAK
    22712255case 69:
    22722256YY_RULE_SETUP
    2273 #line 742 "libparse.l"
     2257#line 726 "libparse.l"
    22742258{ }
    22752259        YY_BREAK
    22762260case 70:
    22772261YY_RULE_SETUP
    2278 #line 745 "libparse.l"
     2262#line 729 "libparse.l"
    22792263{ quote--;
    22802264                           copy_string(mode);
     
    22892273case 71:
    22902274YY_RULE_SETUP
    2291 #line 754 "libparse.l"
     2275#line 738 "libparse.l"
    22922276{ if (old_state == phelp) IncrCheckSum(*yytext);}
    22932277        YY_BREAK
    22942278case 72:
    22952279YY_RULE_SETUP
    2296 #line 755 "libparse.l"
     2280#line 739 "libparse.l"
    22972281{ yylplineno++; if (old_state == phelp) IncrCheckSum('\n');}
    22982282        YY_BREAK
    22992283case 73:
    23002284YY_RULE_SETUP
    2301 #line 756 "libparse.l"
     2285#line 740 "libparse.l"
    23022286{ if (old_state == phelp) IncrCheckSum(*yytext);}
    23032287        YY_BREAK
    23042288case 74:
    23052289YY_RULE_SETUP
    2306 #line 758 "libparse.l"
     2290#line 742 "libparse.l"
    23072291{ }
    23082292        YY_BREAK
    23092293case 75:
    23102294YY_RULE_SETUP
    2311 #line 759 "libparse.l"
     2295#line 743 "libparse.l"
    23122296{ quote++; old_state = YYSTATE;
    23132297                           BEGIN(string); /* printf("%s", yytext); */
     
    23162300case 76:
    23172301YY_RULE_SETUP
    2318 #line 762 "libparse.l"
     2302#line 746 "libparse.l"
    23192303{
    23202304                           brace1++; /* printf("(%d)%s", brace1, yytext); */
     
    23232307case 77:
    23242308YY_RULE_SETUP
    2325 #line 765 "libparse.l"
     2309#line 749 "libparse.l"
    23262310{
    23272311                           brace1--; /* printf("(%d)%s", brace1, yytext); */
     
    23362320case 78:
    23372321YY_RULE_SETUP
    2338 #line 774 "libparse.l"
     2322#line 758 "libparse.l"
    23392323{
    23402324                           brace2++; /* printf("%s", yytext); */
     
    23432327case 79:
    23442328YY_RULE_SETUP
    2345 #line 777 "libparse.l"
     2329#line 761 "libparse.l"
    23462330{
    23472331                           brace2--; /* printf("%s", yytext); */
     
    23502334case 80:
    23512335YY_RULE_SETUP
    2352 #line 780 "libparse.l"
     2336#line 764 "libparse.l"
    23532337{
    23542338                           brace3++; /* printf("%s", yytext); */
     
    23572341case 81:
    23582342YY_RULE_SETUP
    2359 #line 783 "libparse.l"
     2343#line 767 "libparse.l"
    23602344{
    23612345                           brace3--; /* printf("%s", yytext); */
     
    23642348case 82:
    23652349YY_RULE_SETUP
    2366 #line 786 "libparse.l"
     2350#line 770 "libparse.l"
    23672351{ yylplineno++; }
    23682352        YY_BREAK
    23692353case 83:
    23702354YY_RULE_SETUP
    2371 #line 787 "libparse.l"
     2355#line 771 "libparse.l"
    23722356{ }
    23732357        YY_BREAK
    23742358case 84:
    23752359YY_RULE_SETUP
    2376 #line 789 "libparse.l"
     2360#line 773 "libparse.l"
    23772361{ quote--;
    23782362                           BEGIN(pexample); /* printf("%s", yytext); */
     
    23812365case 85:
    23822366YY_RULE_SETUP
    2383 #line 792 "libparse.l"
     2367#line 776 "libparse.l"
    23842368{ }
    23852369        YY_BREAK
    23862370case 86:
    23872371YY_RULE_SETUP
    2388 #line 793 "libparse.l"
     2372#line 777 "libparse.l"
    23892373{ }
    23902374        YY_BREAK
    23912375case 87:
    23922376YY_RULE_SETUP
    2393 #line 794 "libparse.l"
     2377#line 778 "libparse.l"
    23942378{ yylplineno++; }
    23952379        YY_BREAK
    23962380case 88:
    23972381YY_RULE_SETUP
    2398 #line 795 "libparse.l"
     2382#line 779 "libparse.l"
    23992383{ }
    24002384        YY_BREAK
    24012385case 89:
    24022386YY_RULE_SETUP
    2403 #line 797 "libparse.l"
     2387#line 781 "libparse.l"
    24042388{ BEGIN(old_state); }
    24052389        YY_BREAK
    24062390case 90:
    24072391YY_RULE_SETUP
    2408 #line 798 "libparse.l"
     2392#line 782 "libparse.l"
    24092393{ yylplineno++; }
    24102394        YY_BREAK
    24112395case 91:
    24122396YY_RULE_SETUP
    2413 #line 799 "libparse.l"
     2397#line 783 "libparse.l"
    24142398{ }
    24152399        YY_BREAK
    24162400case 92:
    24172401YY_RULE_SETUP
    2418 #line 801 "libparse.l"
     2402#line 785 "libparse.l"
    24192403{ yylplineno++; }
    24202404        YY_BREAK
    24212405case 93:
    24222406YY_RULE_SETUP
    2423 #line 802 "libparse.l"
     2407#line 786 "libparse.l"
    24242408{ }
    24252409        YY_BREAK
    24262410case 94:
    24272411YY_RULE_SETUP
    2428 #line 803 "libparse.l"
     2412#line 787 "libparse.l"
    24292413{ p_static = FALSE;
    24302414                            #if YYLPDEBUG > 1