Changeset 416465 in git


Ignore:
Timestamp:
Nov 15, 1999, 6:20:58 PM (24 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
Children:
721650e849298f036e56d58feb3f554f1bd4d84b
Parents:
57e94c4a2330bb253fb2189a2502d15dabe880e9
Message:
* bug-fixes from work with Thomas


git-svn-id: file:///usr/local/Singular/svn/trunk@3826 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
Singular
Files:
5 added
165 edited
2 moved

Legend:

Unmodified
Added
Removed
  • Singular/Makefile.in

    r57e94c4 r416465  
    8888    GMPrat.cc multicnt.cc npolygon.cc semic.cc spectrum.cc splist.cc \
    8989    ndbm.cc  libparse.cc mod_raw.cc\
    90     pcv.cc kbuckets.cc pProcs.cc \
    91     mpr_inout.cc mpr_base.cc mpr_numeric.cc
     90    pcv.cc kbuckets.cc prProcs.cc \
     91    mpr_inout.cc mpr_base.cc mpr_numeric.cc \
     92    prCopy.cc
    9293
    9394
     
    122123        ndbm.h polys-impl.h polys-comp.h libparse.h \
    123124        GMPrat.h multicnt.h npolygon.h semic.h spectrum.h splist.h multicnt.h \
    124         pcv.h mod_raw.h kbuckets.h pProcs.h \
     125        pcv.h mod_raw.h kbuckets.h prProcs.h \
    125126        mpr_global.h mpr_inout.h mpr_base.h mpr_numeric.h \
    126         feOpt.h fegetopt.h distrib.h walk.h
     127        feOpt.h fegetopt.h distrib.h walk.h \
     128        prCopy.h
    127129
    128130INCS=febase.inc polys.inc iparith.inc mpsr_Tok.inc feOpt.inc
     
    252254        rm a.out
    253255
     256prCopy.cc : prCopy.inc
     257
     258prCopy.inc : prCopyMacros.h prCopyTemplate.cc prCopy.pl
     259        $(PERL5) prCopy.pl > prCopy.inc
     260
    254261src: scanner.cc grammar.h grammar.cc libparse.cc
    255262
  • Singular/algmap.cc

    r57e94c4 r416465  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: algmap.cc,v 1.14 1999-10-14 14:26:56 obachman Exp $ */
     4/* $Id: algmap.cc,v 1.15 1999-11-15 17:19:47 obachman Exp $ */
    55/*
    66* ABSTRACT - the mapping of polynomials from rings with
  • Singular/algmap.h

    r57e94c4 r416465  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: algmap.h,v 1.3 1997-04-09 12:19:37 Singular Exp $ */
     6/* $Id: algmap.h,v 1.4 1999-11-15 17:19:48 obachman Exp $ */
    77/*
    88* ABSTRACT:
  • Singular/aso.h

    r57e94c4 r416465  
    44 *  aso.h:  Header file for generation of ALLOC_SIZE_OF_ macros
    55 * 
    6  *  Version: $Id: aso.h,v 1.2 1999-10-26 15:06:09 obachman Exp $
     6 *  Version: $Id: aso.h,v 1.3 1999-11-15 17:19:48 obachman Exp $
    77 *******************************************************************/
    88#ifndef ASO_H
  • Singular/attrib.cc

    r57e94c4 r416465  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: attrib.cc,v 1.16 1999-10-14 14:26:57 obachman Exp $ */
     4/* $Id: attrib.cc,v 1.17 1999-11-15 17:19:48 obachman Exp $ */
    55
    66/*
  • Singular/attrib.h

    r57e94c4 r416465  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: attrib.h,v 1.4 1999-10-14 14:26:57 obachman Exp $ */
     6/* $Id: attrib.h,v 1.5 1999-11-15 17:19:48 obachman Exp $ */
    77/*
    88* ABSTRACT: attributes to leftv and idhdl
  • Singular/binom.cc

    r57e94c4 r416465  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: binom.cc,v 1.14 1998-03-23 22:50:54 obachman Exp $ */
     4/* $Id: binom.cc,v 1.15 1999-11-15 17:19:49 obachman Exp $ */
    55
    66/*
  • Singular/binom.h

    r57e94c4 r416465  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: binom.h,v 1.11 1998-01-27 18:51:18 Singular Exp $ */
     6/* $Id: binom.h,v 1.12 1999-11-15 17:19:49 obachman Exp $ */
    77/*
    88* ABSTRACT - set order (=number of monomial) for dp
  • Singular/check_aso.pl

    r57e94c4 r416465  
    11#!/usr/local/bin/perl
    22###########################################################################
    3 # $Id: check_aso.pl,v 1.1 1999-10-14 14:46:48 obachman Exp $
     3# $Id: check_aso.pl,v 1.2 1999-11-15 17:19:49 obachman Exp $
    44
    55###########################################################################
  • Singular/clapconv.cc

    r57e94c4 r416465  
    33*  Computer Algebra System SINGULAR     *
    44****************************************/
    5 // $Id: clapconv.cc,v 1.21 1999-10-14 14:26:57 obachman Exp $
     5// $Id: clapconv.cc,v 1.22 1999-11-15 17:19:50 obachman Exp $
    66/*
    77* ABSTRACT: convert data between Singular and factory
  • Singular/clapconv.h

    r57e94c4 r416465  
    33*  Computer Algebra System SINGULAR     *
    44****************************************/
    5 // $Id: clapconv.h,v 1.7 1999-06-15 08:33:13 Singular Exp $
     5// $Id: clapconv.h,v 1.8 1999-11-15 17:19:50 obachman Exp $
    66/*
    77* ABSTRACT: convert data between Singular and factory
  • Singular/clapmem.cc

    r57e94c4 r416465  
    33*  Computer Algebra System SINGULAR     *
    44****************************************/
    5 // $Id: clapmem.cc,v 1.3 1997-04-25 15:03:52 obachman Exp $
     5// $Id: clapmem.cc,v 1.4 1999-11-15 17:19:50 obachman Exp $
    66/*
    77* ABSTRACT: map new[]/delete[] to Singular memeory management
  • Singular/clapsing.cc

    r57e94c4 r416465  
    33*  Computer Algebra System SINGULAR     *
    44****************************************/
    5 // $Id: clapsing.cc,v 1.57 1999-10-27 15:04:42 Singular Exp $
     5// $Id: clapsing.cc,v 1.58 1999-11-15 17:19:50 obachman Exp $
    66/*
    77* ABSTRACT: interface between Singular and factory
  • Singular/clapsing.h

    r57e94c4 r416465  
    33*  Computer Algebra System SINGULAR     *
    44****************************************/
    5 // $Id: clapsing.h,v 1.5 1998-12-16 18:43:36 Singular Exp $
     5// $Id: clapsing.h,v 1.6 1999-11-15 17:19:51 obachman Exp $
    66/*
    77* ABSTRACT: interface between Singular and factory
  • Singular/claptmpl.cc

    r57e94c4 r416465  
    33*  Computer Algebra System SINGULAR     *
    44****************************************/
    5 // $Id: claptmpl.cc,v 1.19 1999-08-12 10:57:32 Singular Exp $
     5// $Id: claptmpl.cc,v 1.20 1999-11-15 17:19:51 obachman Exp $
    66/*
    77* ABSTRACT - instantiation of all templates
  • Singular/cntrlc.cc

    r57e94c4 r416465  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: cntrlc.cc,v 1.26 1999-10-26 15:06:10 obachman Exp $ */
     4/* $Id: cntrlc.cc,v 1.27 1999-11-15 17:19:52 obachman Exp $ */
    55/*
    66* ABSTRACT - interupt handling
  • Singular/cntrlc.h

    r57e94c4 r416465  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: cntrlc.h,v 1.6 1997-07-01 15:41:44 Singular Exp $ */
     6/* $Id: cntrlc.h,v 1.7 1999-11-15 17:19:52 obachman Exp $ */
    77/*
    88* ABSTRACT - interupt and signal handling
  • Singular/configure

    r57e94c4 r416465  
    22
    33# Guess values for system-dependent variables and create Makefiles.
    4 # Generated automatically using autoconf version 2.12
     4# Generated automatically using autoconf version 2.13
    55# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
    66#
     
    8484subdirs=
    8585MFLAGS= MAKEFLAGS=
     86SHELL=${CONFIG_SHELL-/bin/sh}
    8687# Maximum number of lines to put in a shell here document.
    8788ac_max_here_lines=12
     
    367368
    368369  -version | --version | --versio | --versi | --vers)
    369     echo "configure generated by autoconf version 2.12"
     370    echo "configure generated by autoconf version 2.13"
    370371    exit 0 ;;
    371372
     
    537538ac_cpp='$CPP $CPPFLAGS'
    538539ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    539 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     540ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    540541cross_compiling=$ac_cv_prog_cc_cross
    541542
     543ac_exeext=
     544ac_objext=o
    542545if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
    543546  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
     
    557560
    558561echo $ac_n "checking uname for singular""... $ac_c" 1>&6
    559 echo "configure:560: checking uname for singular" >&5
     562echo "configure:563: checking uname for singular" >&5
    560563if eval "test \"`echo '$''{'ac_cv_singuname'+set}'`\" = set"; then
    561564  echo $ac_n "(cached) $ac_c" 1>&6
     
    645648set dummy gcc; ac_word=$2
    646649echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    647 echo "configure:648: checking for $ac_word" >&5
     650echo "configure:651: checking for $ac_word" >&5
    648651if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    649652  echo $ac_n "(cached) $ac_c" 1>&6
     
    652655  ac_cv_prog_CC="$CC" # Let the user override the test.
    653656else
    654   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    655   for ac_dir in $PATH; do
     657  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     658  ac_dummy="$PATH"
     659  for ac_dir in $ac_dummy; do
    656660    test -z "$ac_dir" && ac_dir=.
    657661    if test -f $ac_dir/$ac_word; then
     
    674678set dummy cc; ac_word=$2
    675679echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    676 echo "configure:677: checking for $ac_word" >&5
     680echo "configure:681: checking for $ac_word" >&5
    677681if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    678682  echo $ac_n "(cached) $ac_c" 1>&6
     
    681685  ac_cv_prog_CC="$CC" # Let the user override the test.
    682686else
    683   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
     687  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    684688  ac_prog_rejected=no
    685   for ac_dir in $PATH; do
     689  ac_dummy="$PATH"
     690  for ac_dir in $ac_dummy; do
    686691    test -z "$ac_dir" && ac_dir=.
    687692    if test -f $ac_dir/$ac_word; then
     
    718723fi
    719724
     725  if test -z "$CC"; then
     726    case "`uname -s`" in
     727    *win32* | *WIN32*)
     728      # Extract the first word of "cl", so it can be a program name with args.
     729set dummy cl; ac_word=$2
     730echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     731echo "configure:732: checking for $ac_word" >&5
     732if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
     733  echo $ac_n "(cached) $ac_c" 1>&6
     734else
     735  if test -n "$CC"; then
     736  ac_cv_prog_CC="$CC" # Let the user override the test.
     737else
     738  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     739  ac_dummy="$PATH"
     740  for ac_dir in $ac_dummy; do
     741    test -z "$ac_dir" && ac_dir=.
     742    if test -f $ac_dir/$ac_word; then
     743      ac_cv_prog_CC="cl"
     744      break
     745    fi
     746  done
     747  IFS="$ac_save_ifs"
     748fi
     749fi
     750CC="$ac_cv_prog_CC"
     751if test -n "$CC"; then
     752  echo "$ac_t""$CC" 1>&6
     753else
     754  echo "$ac_t""no" 1>&6
     755fi
     756 ;;
     757    esac
     758  fi
    720759  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
    721760fi
    722761
    723762echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    724 echo "configure:725: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
     763echo "configure:764: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
    725764
    726765ac_ext=c
     
    728767ac_cpp='$CPP $CPPFLAGS'
    729768ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    730 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     769ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    731770cross_compiling=$ac_cv_prog_cc_cross
    732771
    733 cat > conftest.$ac_ext <<EOF
    734 #line 735 "configure"
    735 #include "confdefs.h"
     772cat > conftest.$ac_ext << EOF
     773
     774#line 775 "configure"
     775#include "confdefs.h"
     776
    736777main(){return(0);}
    737778EOF
    738 if { (eval echo configure:739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     779if { (eval echo configure:780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    739780  ac_cv_prog_cc_works=yes
    740781  # If we can't run a trivial program, we are probably using a cross compiler.
     
    750791fi
    751792rm -fr conftest*
     793ac_ext=c
     794# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
     795ac_cpp='$CPP $CPPFLAGS'
     796ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
     797ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     798cross_compiling=$ac_cv_prog_cc_cross
    752799
    753800echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
     
    756803fi
    757804echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    758 echo "configure:759: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
     805echo "configure:806: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
    759806echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
    760807cross_compiling=$ac_cv_prog_cc_cross
    761808
    762809echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
    763 echo "configure:764: checking whether we are using GNU C" >&5
     810echo "configure:811: checking whether we are using GNU C" >&5
    764811if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
    765812  echo $ac_n "(cached) $ac_c" 1>&6
     
    770817#endif
    771818EOF
    772 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:773: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     819if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    773820  ac_cv_prog_gcc=yes
    774821else
     
    781828if test $ac_cv_prog_gcc = yes; then
    782829  GCC=yes
    783   ac_test_CFLAGS="${CFLAGS+set}"
    784   ac_save_CFLAGS="$CFLAGS"
    785   CFLAGS=
    786   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
    787 echo "configure:788: checking whether ${CC-cc} accepts -g" >&5
     830else
     831  GCC=
     832fi
     833
     834ac_test_CFLAGS="${CFLAGS+set}"
     835ac_save_CFLAGS="$CFLAGS"
     836CFLAGS=
     837echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
     838echo "configure:839: checking whether ${CC-cc} accepts -g" >&5
    788839if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
    789840  echo $ac_n "(cached) $ac_c" 1>&6
     
    800851
    801852echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
    802   if test "$ac_test_CFLAGS" = set; then
    803     CFLAGS="$ac_save_CFLAGS"
    804   elif test $ac_cv_prog_cc_g = yes; then
     853if test "$ac_test_CFLAGS" = set; then
     854  CFLAGS="$ac_save_CFLAGS"
     855elif test $ac_cv_prog_cc_g = yes; then
     856  if test "$GCC" = yes; then
    805857    CFLAGS="-g -O2"
    806858  else
     859    CFLAGS="-g"
     860  fi
     861else
     862  if test "$GCC" = yes; then
    807863    CFLAGS="-O2"
     864  else
     865    CFLAGS=
    808866  fi
    809 else
    810   GCC=
    811   test "${CFLAGS+set}" = set || CFLAGS="-g"
    812867fi
    813868
    814869echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
    815 echo "configure:816: checking how to run the C preprocessor" >&5
     870echo "configure:871: checking how to run the C preprocessor" >&5
    816871# On Suns, sometimes $CPP names a directory.
    817872if test -n "$CPP" && test -d "$CPP"; then
     
    828883  # not just through cpp.
    829884  cat > conftest.$ac_ext <<EOF
    830 #line 831 "configure"
     885#line 886 "configure"
    831886#include "confdefs.h"
    832887#include <assert.h>
     
    834889EOF
    835890ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    836 { (eval echo configure:837: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    837 ac_err=`grep -v '^ *+' conftest.out`
     891{ (eval echo configure:892: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     892ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    838893if test -z "$ac_err"; then
    839894  :
     
    845900  CPP="${CC-cc} -E -traditional-cpp"
    846901  cat > conftest.$ac_ext <<EOF
    847 #line 848 "configure"
     902#line 903 "configure"
    848903#include "confdefs.h"
    849904#include <assert.h>
     
    851906EOF
    852907ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    853 { (eval echo configure:854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    854 ac_err=`grep -v '^ *+' conftest.out`
     908{ (eval echo configure:909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     909ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    855910if test -z "$ac_err"; then
    856911  :
     
    860915  cat conftest.$ac_ext >&5
    861916  rm -rf conftest*
     917  CPP="${CC-cc} -nologo -E"
     918  cat > conftest.$ac_ext <<EOF
     919#line 920 "configure"
     920#include "confdefs.h"
     921#include <assert.h>
     922Syntax Error
     923EOF
     924ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
     925{ (eval echo configure:926: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     926ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
     927if test -z "$ac_err"; then
     928  :
     929else
     930  echo "$ac_err" >&5
     931  echo "configure: failed program was:" >&5
     932  cat conftest.$ac_ext >&5
     933  rm -rf conftest*
    862934  CPP=/lib/cpp
    863935fi
     
    865937fi
    866938rm -f conftest*
     939fi
     940rm -f conftest*
    867941  ac_cv_prog_CPP="$CPP"
    868942fi
     
    873947echo "$ac_t""$CPP" 1>&6
    874948
    875 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
     949for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
    876950do
    877951# Extract the first word of "$ac_prog", so it can be a program name with args.
    878952set dummy $ac_prog; ac_word=$2
    879953echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    880 echo "configure:881: checking for $ac_word" >&5
     954echo "configure:955: checking for $ac_word" >&5
    881955if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
    882956  echo $ac_n "(cached) $ac_c" 1>&6
     
    885959  ac_cv_prog_CXX="$CXX" # Let the user override the test.
    886960else
    887   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    888   for ac_dir in $PATH; do
     961  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     962  ac_dummy="$PATH"
     963  for ac_dir in $ac_dummy; do
    889964    test -z "$ac_dir" && ac_dir=.
    890965    if test -f $ac_dir/$ac_word; then
     
    909984
    910985echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    911 echo "configure:912: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
     986echo "configure:987: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
    912987
    913988ac_ext=C
     
    915990ac_cpp='$CXXCPP $CPPFLAGS'
    916991ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    917 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     992ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    918993cross_compiling=$ac_cv_prog_cxx_cross
    919994
    920 cat > conftest.$ac_ext <<EOF
    921 #line 922 "configure"
    922 #include "confdefs.h"
    923 main(){return(0);}
    924 EOF
    925 if { (eval echo configure:926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     995cat > conftest.$ac_ext << EOF
     996
     997#line 998 "configure"
     998#include "confdefs.h"
     999
     1000int main(){return(0);}
     1001EOF
     1002if { (eval echo configure:1003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    9261003  ac_cv_prog_cxx_works=yes
    9271004  # If we can't run a trivial program, we are probably using a cross compiler.
     
    9411018ac_cpp='$CPP $CPPFLAGS'
    9421019ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    943 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     1020ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    9441021cross_compiling=$ac_cv_prog_cc_cross
    9451022
     
    9491026fi
    9501027echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    951 echo "configure:952: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
     1028echo "configure:1029: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
    9521029echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
    9531030cross_compiling=$ac_cv_prog_cxx_cross
    9541031
    9551032echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
    956 echo "configure:957: checking whether we are using GNU C++" >&5
     1033echo "configure:1034: checking whether we are using GNU C++" >&5
    9571034if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
    9581035  echo $ac_n "(cached) $ac_c" 1>&6
     
    9631040#endif
    9641041EOF
    965 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     1042if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1043: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    9661043  ac_cv_prog_gxx=yes
    9671044else
     
    9741051if test $ac_cv_prog_gxx = yes; then
    9751052  GXX=yes
    976   ac_test_CXXFLAGS="${CXXFLAGS+set}"
    977   ac_save_CXXFLAGS="$CXXFLAGS"
    978   CXXFLAGS=
    979   echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
    980 echo "configure:981: checking whether ${CXX-g++} accepts -g" >&5
     1053else
     1054  GXX=
     1055fi
     1056
     1057ac_test_CXXFLAGS="${CXXFLAGS+set}"
     1058ac_save_CXXFLAGS="$CXXFLAGS"
     1059CXXFLAGS=
     1060echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
     1061echo "configure:1062: checking whether ${CXX-g++} accepts -g" >&5
    9811062if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
    9821063  echo $ac_n "(cached) $ac_c" 1>&6
     
    9931074
    9941075echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
    995   if test "$ac_test_CXXFLAGS" = set; then
    996     CXXFLAGS="$ac_save_CXXFLAGS"
    997   elif test $ac_cv_prog_cxx_g = yes; then
     1076if test "$ac_test_CXXFLAGS" = set; then
     1077  CXXFLAGS="$ac_save_CXXFLAGS"
     1078elif test $ac_cv_prog_cxx_g = yes; then
     1079  if test "$GXX" = yes; then
    9981080    CXXFLAGS="-g -O2"
    9991081  else
     1082    CXXFLAGS="-g"
     1083  fi
     1084else
     1085  if test "$GXX" = yes; then
    10001086    CXXFLAGS="-O2"
     1087  else
     1088    CXXFLAGS=
    10011089  fi
    1002 else
    1003   GXX=
    1004   test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
    10051090fi
    10061091
    10071092echo $ac_n "checking for AIX""... $ac_c" 1>&6
    1008 echo "configure:1009: checking for AIX" >&5
     1093echo "configure:1094: checking for AIX" >&5
    10091094cat > conftest.$ac_ext <<EOF
    1010 #line 1011 "configure"
     1095#line 1096 "configure"
    10111096#include "confdefs.h"
    10121097#ifdef _AIX
     
    10381123# check whether the compiler accepts -pipe
    10391124echo $ac_n "checking whether compiler accepts -pipe""... $ac_c" 1>&6
    1040 echo "configure:1041: checking whether compiler accepts -pipe" >&5
     1125echo "configure:1126: checking whether compiler accepts -pipe" >&5
    10411126temp_cflags=${CFLAGS}
    10421127CFLAGS="${CFLAGS} -pipe"
     
    10451130else
    10461131  cat > conftest.$ac_ext <<EOF
    1047 #line 1048 "configure"
     1132#line 1133 "configure"
    10481133#include "confdefs.h"
    10491134
     
    10521137; return 0; }
    10531138EOF
    1054 if { (eval echo configure:1055: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     1139if { (eval echo configure:1140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    10551140  rm -rf conftest*
    10561141  ac_cv_cxx_have_pipe=yes
     
    10761161# Customize CFLAGS
    10771162echo $ac_n "checking whether _AIX is defined""... $ac_c" 1>&6
    1078 echo "configure:1079: checking whether _AIX is defined" >&5
     1163echo "configure:1164: checking whether _AIX is defined" >&5
    10791164if eval "test \"`echo '$''{'ac_cv_is_aix'+set}'`\" = set"; then
    10801165  echo $ac_n "(cached) $ac_c" 1>&6
    10811166else
    10821167  cat > conftest.$ac_ext <<EOF
    1083 #line 1084 "configure"
     1168#line 1169 "configure"
    10841169#include "confdefs.h"
    10851170#ifdef _AIX
     
    11321217
    11331218echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
    1134 echo "configure:1135: checking whether ${MAKE-make} sets \${MAKE}" >&5
     1219echo "configure:1220: checking whether ${MAKE-make} sets \${MAKE}" >&5
    11351220set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
    11361221if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
     
    12051290if test "${with_lex+set}" != set; then
    12061291  echo $ac_n "checking for flex""... $ac_c" 1>&6
    1207 echo "configure:1208: checking for flex" >&5
     1292echo "configure:1293: checking for flex" >&5
    12081293    if eval "test \"`echo '$''{'ac_cv_prog_flex'+set}'`\" = set"; then
    12091294  echo $ac_n "(cached) $ac_c" 1>&6
     
    12361321set dummy $ac_prog; ac_word=$2
    12371322echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1238 echo "configure:1239: checking for $ac_word" >&5
     1323echo "configure:1324: checking for $ac_word" >&5
    12391324if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
    12401325  echo $ac_n "(cached) $ac_c" 1>&6
     
    12431328  ac_cv_prog_LEX="$LEX" # Let the user override the test.
    12441329else
    1245   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    1246   for ac_dir in $PATH; do
     1330  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     1331  ac_dummy="$PATH"
     1332  for ac_dir in $ac_dummy; do
    12471333    test -z "$ac_dir" && ac_dir=.
    12481334    if test -f $ac_dir/$ac_word; then
     
    12751361set dummy $ac_prog; ac_word=$2
    12761362echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1277 echo "configure:1278: checking for $ac_word" >&5
     1363echo "configure:1364: checking for $ac_word" >&5
    12781364if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
    12791365  echo $ac_n "(cached) $ac_c" 1>&6
     
    12821368  ac_cv_prog_BISON="$BISON" # Let the user override the test.
    12831369else
    1284   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    1285   for ac_dir in $PATH; do
     1370  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     1371  ac_dummy="$PATH"
     1372  for ac_dir in $ac_dummy; do
    12861373    test -z "$ac_dir" && ac_dir=.
    12871374    if test -f $ac_dir/$ac_word; then
     
    13091396# ln -s
    13101397echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
    1311 echo "configure:1312: checking whether ln -s works" >&5
     1398echo "configure:1399: checking whether ln -s works" >&5
    13121399if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
    13131400  echo $ac_n "(cached) $ac_c" 1>&6
     
    13321419# lib checks
    13331420echo $ac_n "checking for atof in -lm""... $ac_c" 1>&6
    1334 echo "configure:1335: checking for atof in -lm" >&5
     1421echo "configure:1422: checking for atof in -lm" >&5
    13351422ac_lib_var=`echo m'_'atof | sed 'y%./+-%__p_%'`
    13361423if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    13401427LIBS="-lm  $LIBS"
    13411428cat > conftest.$ac_ext <<EOF
    1342 #line 1343 "configure"
     1429#line 1430 "configure"
    13431430#include "confdefs.h"
    13441431/* Override any gcc2 internal prototype to avoid an error.  */
     
    13511438; return 0; }
    13521439EOF
    1353 if { (eval echo configure:1354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     1440if { (eval echo configure:1441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    13541441  rm -rf conftest*
    13551442  eval "ac_cv_lib_$ac_lib_var=yes"
     
    13791466
    13801467echo $ac_n "checking for socket in -lbsd""... $ac_c" 1>&6
    1381 echo "configure:1382: checking for socket in -lbsd" >&5
     1468echo "configure:1469: checking for socket in -lbsd" >&5
    13821469ac_lib_var=`echo bsd'_'socket | sed 'y%./+-%__p_%'`
    13831470if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    13871474LIBS="-lbsd  $LIBS"
    13881475cat > conftest.$ac_ext <<EOF
    1389 #line 1390 "configure"
     1476#line 1477 "configure"
    13901477#include "confdefs.h"
    13911478/* Override any gcc2 internal prototype to avoid an error.  */
     
    13981485; return 0; }
    13991486EOF
    1400 if { (eval echo configure:1401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     1487if { (eval echo configure:1488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    14011488  rm -rf conftest*
    14021489  eval "ac_cv_lib_$ac_lib_var=yes"
     
    14261513
    14271514echo $ac_n "checking for listen in -lsocket""... $ac_c" 1>&6
    1428 echo "configure:1429: checking for listen in -lsocket" >&5
     1515echo "configure:1516: checking for listen in -lsocket" >&5
    14291516ac_lib_var=`echo socket'_'listen | sed 'y%./+-%__p_%'`
    14301517if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    14341521LIBS="-lsocket  $LIBS"
    14351522cat > conftest.$ac_ext <<EOF
    1436 #line 1437 "configure"
     1523#line 1524 "configure"
    14371524#include "confdefs.h"
    14381525/* Override any gcc2 internal prototype to avoid an error.  */
     
    14451532; return 0; }
    14461533EOF
    1447 if { (eval echo configure:1448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     1534if { (eval echo configure:1535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    14481535  rm -rf conftest*
    14491536  eval "ac_cv_lib_$ac_lib_var=yes"
     
    14731560
    14741561echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
    1475 echo "configure:1476: checking for gethostbyname in -lnsl" >&5
     1562echo "configure:1563: checking for gethostbyname in -lnsl" >&5
    14761563ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
    14771564if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    14811568LIBS="-lnsl  $LIBS"
    14821569cat > conftest.$ac_ext <<EOF
    1483 #line 1484 "configure"
     1570#line 1571 "configure"
    14841571#include "confdefs.h"
    14851572/* Override any gcc2 internal prototype to avoid an error.  */
     
    14921579; return 0; }
    14931580EOF
    1494 if { (eval echo configure:1495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     1581if { (eval echo configure:1582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    14951582  rm -rf conftest*
    14961583  eval "ac_cv_lib_$ac_lib_var=yes"
     
    15201607
    15211608echo $ac_n "checking for index in -lucb""... $ac_c" 1>&6
    1522 echo "configure:1523: checking for index in -lucb" >&5
     1609echo "configure:1610: checking for index in -lucb" >&5
    15231610ac_lib_var=`echo ucb'_'index | sed 'y%./+-%__p_%'`
    15241611if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    15281615LIBS="-lucb  $LIBS"
    15291616cat > conftest.$ac_ext <<EOF
    1530 #line 1531 "configure"
     1617#line 1618 "configure"
    15311618#include "confdefs.h"
    15321619/* Override any gcc2 internal prototype to avoid an error.  */
     
    15391626; return 0; }
    15401627EOF
    1541 if { (eval echo configure:1542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     1628if { (eval echo configure:1629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    15421629  rm -rf conftest*
    15431630  eval "ac_cv_lib_$ac_lib_var=yes"
     
    15691656# heder file checks
    15701657echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
    1571 echo "configure:1572: checking for ANSI C header files" >&5
     1658echo "configure:1659: checking for ANSI C header files" >&5
    15721659if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
    15731660  echo $ac_n "(cached) $ac_c" 1>&6
    15741661else
    15751662  cat > conftest.$ac_ext <<EOF
    1576 #line 1577 "configure"
     1663#line 1664 "configure"
    15771664#include "confdefs.h"
    15781665#include <stdlib.h>
     
    15821669EOF
    15831670ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1584 { (eval echo configure:1585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1585 ac_err=`grep -v '^ *+' conftest.out`
     1671{ (eval echo configure:1672: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1672ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    15861673if test -z "$ac_err"; then
    15871674  rm -rf conftest*
     
    15991686  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    16001687cat > conftest.$ac_ext <<EOF
    1601 #line 1602 "configure"
     1688#line 1689 "configure"
    16021689#include "confdefs.h"
    16031690#include <string.h>
     
    16171704  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    16181705cat > conftest.$ac_ext <<EOF
    1619 #line 1620 "configure"
     1706#line 1707 "configure"
    16201707#include "confdefs.h"
    16211708#include <stdlib.h>
     
    16381725else
    16391726  cat > conftest.$ac_ext <<EOF
    1640 #line 1641 "configure"
     1727#line 1728 "configure"
    16411728#include "confdefs.h"
    16421729#include <ctype.h>
     
    16491736
    16501737EOF
    1651 if { (eval echo configure:1652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     1738if { (eval echo configure:1739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    16521739then
    16531740  :
     
    16761763ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    16771764echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    1678 echo "configure:1679: checking for $ac_hdr" >&5
     1765echo "configure:1766: checking for $ac_hdr" >&5
    16791766if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    16801767  echo $ac_n "(cached) $ac_c" 1>&6
    16811768else
    16821769  cat > conftest.$ac_ext <<EOF
    1683 #line 1684 "configure"
     1770#line 1771 "configure"
    16841771#include "confdefs.h"
    16851772#include <$ac_hdr>
    16861773EOF
    16871774ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1688 { (eval echo configure:1689: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1689 ac_err=`grep -v '^ *+' conftest.out`
     1775{ (eval echo configure:1776: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1776ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    16901777if test -z "$ac_err"; then
    16911778  rm -rf conftest*
     
    17181805ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    17191806echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    1720 echo "configure:1721: checking for $ac_hdr" >&5
     1807echo "configure:1808: checking for $ac_hdr" >&5
    17211808if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    17221809  echo $ac_n "(cached) $ac_c" 1>&6
    17231810else
    17241811  cat > conftest.$ac_ext <<EOF
    1725 #line 1726 "configure"
     1812#line 1813 "configure"
    17261813#include "confdefs.h"
    17271814#include <$ac_hdr>
    17281815EOF
    17291816ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1730 { (eval echo configure:1731: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1731 ac_err=`grep -v '^ *+' conftest.out`
     1817{ (eval echo configure:1818: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1818ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    17321819if test -z "$ac_err"; then
    17331820  rm -rf conftest*
     
    17571844# typedefs, structures
    17581845echo $ac_n "checking for working const""... $ac_c" 1>&6
    1759 echo "configure:1760: checking for working const" >&5
     1846echo "configure:1847: checking for working const" >&5
    17601847if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
    17611848  echo $ac_n "(cached) $ac_c" 1>&6
    17621849else
    17631850  cat > conftest.$ac_ext <<EOF
    1764 #line 1765 "configure"
     1851#line 1852 "configure"
    17651852#include "confdefs.h"
    17661853
     
    18111898; return 0; }
    18121899EOF
    1813 if { (eval echo configure:1814: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     1900if { (eval echo configure:1901: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    18141901  rm -rf conftest*
    18151902  ac_cv_c_const=yes
     
    18321919
    18331920echo $ac_n "checking for inline""... $ac_c" 1>&6
    1834 echo "configure:1835: checking for inline" >&5
     1921echo "configure:1922: checking for inline" >&5
    18351922if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
    18361923  echo $ac_n "(cached) $ac_c" 1>&6
     
    18391926for ac_kw in inline __inline__ __inline; do
    18401927  cat > conftest.$ac_ext <<EOF
    1841 #line 1842 "configure"
     1928#line 1929 "configure"
    18421929#include "confdefs.h"
    18431930
     
    18461933; return 0; }
    18471934EOF
    1848 if { (eval echo configure:1849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     1935if { (eval echo configure:1936: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    18491936  rm -rf conftest*
    18501937  ac_cv_c_inline=$ac_kw; break
     
    18721959
    18731960echo $ac_n "checking for size_t""... $ac_c" 1>&6
    1874 echo "configure:1875: checking for size_t" >&5
     1961echo "configure:1962: checking for size_t" >&5
    18751962if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
    18761963  echo $ac_n "(cached) $ac_c" 1>&6
    18771964else
    18781965  cat > conftest.$ac_ext <<EOF
    1879 #line 1880 "configure"
     1966#line 1967 "configure"
    18801967#include "confdefs.h"
    18811968#include <sys/types.h>
     
    18861973EOF
    18871974if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    1888   egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
     1975  egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
    18891976  rm -rf conftest*
    18901977  ac_cv_type_size_t=yes
     
    19051992
    19061993echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
    1907 echo "configure:1908: checking whether time.h and sys/time.h may both be included" >&5
     1994echo "configure:1995: checking whether time.h and sys/time.h may both be included" >&5
    19081995if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
    19091996  echo $ac_n "(cached) $ac_c" 1>&6
    19101997else
    19111998  cat > conftest.$ac_ext <<EOF
    1912 #line 1913 "configure"
     1999#line 2000 "configure"
    19132000#include "confdefs.h"
    19142001#include <sys/types.h>
     
    19192006; return 0; }
    19202007EOF
    1921 if { (eval echo configure:1922: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2008if { (eval echo configure:2009: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    19222009  rm -rf conftest*
    19232010  ac_cv_header_time=yes
     
    19402027
    19412028echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
    1942 echo "configure:1943: checking whether struct tm is in sys/time.h or time.h" >&5
     2029echo "configure:2030: checking whether struct tm is in sys/time.h or time.h" >&5
    19432030if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
    19442031  echo $ac_n "(cached) $ac_c" 1>&6
    19452032else
    19462033  cat > conftest.$ac_ext <<EOF
    1947 #line 1948 "configure"
     2034#line 2035 "configure"
    19482035#include "confdefs.h"
    19492036#include <sys/types.h>
     
    19532040; return 0; }
    19542041EOF
    1955 if { (eval echo configure:1956: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2042if { (eval echo configure:2043: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    19562043  rm -rf conftest*
    19572044  ac_cv_struct_tm=time.h
     
    19782065# for constant arguments.  Useless!
    19792066echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
    1980 echo "configure:1981: checking for working alloca.h" >&5
     2067echo "configure:2068: checking for working alloca.h" >&5
    19812068if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
    19822069  echo $ac_n "(cached) $ac_c" 1>&6
    19832070else
    19842071  cat > conftest.$ac_ext <<EOF
    1985 #line 1986 "configure"
     2072#line 2073 "configure"
    19862073#include "confdefs.h"
    19872074#include <alloca.h>
     
    19902077; return 0; }
    19912078EOF
    1992 if { (eval echo configure:1993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     2079if { (eval echo configure:2080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    19932080  rm -rf conftest*
    19942081  ac_cv_header_alloca_h=yes
     
    20112098
    20122099echo $ac_n "checking for alloca""... $ac_c" 1>&6
    2013 echo "configure:2014: checking for alloca" >&5
     2100echo "configure:2101: checking for alloca" >&5
    20142101if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
    20152102  echo $ac_n "(cached) $ac_c" 1>&6
    20162103else
    20172104  cat > conftest.$ac_ext <<EOF
    2018 #line 2019 "configure"
     2105#line 2106 "configure"
    20192106#include "confdefs.h"
    20202107
     
    20222109# define alloca __builtin_alloca
    20232110#else
    2024 # if HAVE_ALLOCA_H
    2025 #  include <alloca.h>
     2111# ifdef _MSC_VER
     2112#  include <malloc.h>
     2113#  define alloca _alloca
    20262114# else
    2027 #  ifdef _AIX
     2115#  if HAVE_ALLOCA_H
     2116#   include <alloca.h>
     2117#  else
     2118#   ifdef _AIX
    20282119 #pragma alloca
    2029 else
    2030 #   ifndef alloca /* predefined by HP cc +Olibcalls */
     2120 else
     2121#    ifndef alloca /* predefined by HP cc +Olibcalls */
    20312122char *alloca ();
     2123#    endif
    20322124#   endif
    20332125#  endif
     
    20392131; return 0; }
    20402132EOF
    2041 if { (eval echo configure:2042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     2133if { (eval echo configure:2134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    20422134  rm -rf conftest*
    20432135  ac_cv_func_alloca_works=yes
     
    20642156  # contain a buggy version.  If you still want to use their alloca,
    20652157  # use ar to extract alloca.o from them instead of compiling alloca.c.
    2066   ALLOCA=alloca.o
     2158  ALLOCA=alloca.${ac_objext}
    20672159  cat >> confdefs.h <<\EOF
    20682160#define C_ALLOCA 1
     
    20712163
    20722164echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
    2073 echo "configure:2074: checking whether alloca needs Cray hooks" >&5
     2165echo "configure:2166: checking whether alloca needs Cray hooks" >&5
    20742166if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
    20752167  echo $ac_n "(cached) $ac_c" 1>&6
    20762168else
    20772169  cat > conftest.$ac_ext <<EOF
    2078 #line 2079 "configure"
     2170#line 2171 "configure"
    20792171#include "confdefs.h"
    20802172#if defined(CRAY) && ! defined(CRAY2)
     
    21012193for ac_func in _getb67 GETB67 getb67; do
    21022194  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2103 echo "configure:2104: checking for $ac_func" >&5
     2195echo "configure:2196: checking for $ac_func" >&5
    21042196if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    21052197  echo $ac_n "(cached) $ac_c" 1>&6
    21062198else
    21072199  cat > conftest.$ac_ext <<EOF
    2108 #line 2109 "configure"
     2200#line 2201 "configure"
    21092201#include "confdefs.h"
    21102202/* System header to define __stub macros and hopefully few prototypes,
     
    21292221; return 0; }
    21302222EOF
    2131 if { (eval echo configure:2132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     2223if { (eval echo configure:2224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    21322224  rm -rf conftest*
    21332225  eval "ac_cv_func_$ac_func=yes"
     
    21562248
    21572249echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
    2158 echo "configure:2159: checking stack direction for C alloca" >&5
     2250echo "configure:2251: checking stack direction for C alloca" >&5
    21592251if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
    21602252  echo $ac_n "(cached) $ac_c" 1>&6
     
    21642256else
    21652257  cat > conftest.$ac_ext <<EOF
    2166 #line 2167 "configure"
     2258#line 2259 "configure"
    21672259#include "confdefs.h"
    21682260find_stack_direction ()
     
    21832275}
    21842276EOF
    2185 if { (eval echo configure:2186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     2277if { (eval echo configure:2278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    21862278then
    21872279  ac_cv_c_stack_direction=1
     
    22062298if test $ac_cv_prog_gcc = yes; then
    22072299    echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
    2208 echo "configure:2209: checking whether ${CC-cc} needs -traditional" >&5
     2300echo "configure:2301: checking whether ${CC-cc} needs -traditional" >&5
    22092301if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
    22102302  echo $ac_n "(cached) $ac_c" 1>&6
     
    22122304    ac_pattern="Autoconf.*'x'"
    22132305  cat > conftest.$ac_ext <<EOF
    2214 #line 2215 "configure"
     2306#line 2307 "configure"
    22152307#include "confdefs.h"
    22162308#include <sgtty.h>
     
    22302322  if test $ac_cv_prog_gcc_traditional = no; then
    22312323    cat > conftest.$ac_ext <<EOF
    2232 #line 2233 "configure"
     2324#line 2325 "configure"
    22332325#include "confdefs.h"
    22342326#include <termio.h>
     
    22552347ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    22562348echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    2257 echo "configure:2258: checking for $ac_hdr" >&5
     2349echo "configure:2350: checking for $ac_hdr" >&5
    22582350if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    22592351  echo $ac_n "(cached) $ac_c" 1>&6
    22602352else
    22612353  cat > conftest.$ac_ext <<EOF
    2262 #line 2263 "configure"
     2354#line 2355 "configure"
    22632355#include "confdefs.h"
    22642356#include <$ac_hdr>
    22652357EOF
    22662358ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2267 { (eval echo configure:2268: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    2268 ac_err=`grep -v '^ *+' conftest.out`
     2359{ (eval echo configure:2360: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2360ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    22692361if test -z "$ac_err"; then
    22702362  rm -rf conftest*
     
    22942386do
    22952387echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2296 echo "configure:2297: checking for $ac_func" >&5
     2388echo "configure:2389: checking for $ac_func" >&5
    22972389if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    22982390  echo $ac_n "(cached) $ac_c" 1>&6
    22992391else
    23002392  cat > conftest.$ac_ext <<EOF
    2301 #line 2302 "configure"
     2393#line 2394 "configure"
    23022394#include "confdefs.h"
    23032395/* System header to define __stub macros and hopefully few prototypes,
     
    23222414; return 0; }
    23232415EOF
    2324 if { (eval echo configure:2325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     2416if { (eval echo configure:2417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    23252417  rm -rf conftest*
    23262418  eval "ac_cv_func_$ac_func=yes"
     
    23472439
    23482440echo $ac_n "checking for working mmap""... $ac_c" 1>&6
    2349 echo "configure:2350: checking for working mmap" >&5
     2441echo "configure:2442: checking for working mmap" >&5
    23502442if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
    23512443  echo $ac_n "(cached) $ac_c" 1>&6
     
    23552447else
    23562448  cat > conftest.$ac_ext <<EOF
    2357 #line 2358 "configure"
     2449#line 2450 "configure"
    23582450#include "confdefs.h"
    23592451
     
    24952587
    24962588EOF
    2497 if { (eval echo configure:2498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     2589if { (eval echo configure:2590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    24982590then
    24992591  ac_cv_func_mmap_fixed_mapped=yes
     
    25182610
    25192611echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
    2520 echo "configure:2521: checking return type of signal handlers" >&5
     2612echo "configure:2613: checking return type of signal handlers" >&5
    25212613if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
    25222614  echo $ac_n "(cached) $ac_c" 1>&6
    25232615else
    25242616  cat > conftest.$ac_ext <<EOF
    2525 #line 2526 "configure"
     2617#line 2618 "configure"
    25262618#include "confdefs.h"
    25272619#include <sys/types.h>
     
    25402632; return 0; }
    25412633EOF
    2542 if { (eval echo configure:2543: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2634if { (eval echo configure:2635: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    25432635  rm -rf conftest*
    25442636  ac_cv_type_signal=void
     
    25592651
    25602652echo $ac_n "checking for vprintf""... $ac_c" 1>&6
    2561 echo "configure:2562: checking for vprintf" >&5
     2653echo "configure:2654: checking for vprintf" >&5
    25622654if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
    25632655  echo $ac_n "(cached) $ac_c" 1>&6
    25642656else
    25652657  cat > conftest.$ac_ext <<EOF
    2566 #line 2567 "configure"
     2658#line 2659 "configure"
    25672659#include "confdefs.h"
    25682660/* System header to define __stub macros and hopefully few prototypes,
     
    25872679; return 0; }
    25882680EOF
    2589 if { (eval echo configure:2590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     2681if { (eval echo configure:2682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    25902682  rm -rf conftest*
    25912683  eval "ac_cv_func_vprintf=yes"
     
    26112703if test "$ac_cv_func_vprintf" != yes; then
    26122704echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
    2613 echo "configure:2614: checking for _doprnt" >&5
     2705echo "configure:2706: checking for _doprnt" >&5
    26142706if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
    26152707  echo $ac_n "(cached) $ac_c" 1>&6
    26162708else
    26172709  cat > conftest.$ac_ext <<EOF
    2618 #line 2619 "configure"
     2710#line 2711 "configure"
    26192711#include "confdefs.h"
    26202712/* System header to define __stub macros and hopefully few prototypes,
     
    26392731; return 0; }
    26402732EOF
    2641 if { (eval echo configure:2642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     2733if { (eval echo configure:2734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    26422734  rm -rf conftest*
    26432735  eval "ac_cv_func__doprnt=yes"
     
    26662758do
    26672759echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2668 echo "configure:2669: checking for $ac_func" >&5
     2760echo "configure:2761: checking for $ac_func" >&5
    26692761if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    26702762  echo $ac_n "(cached) $ac_c" 1>&6
    26712763else
    26722764  cat > conftest.$ac_ext <<EOF
    2673 #line 2674 "configure"
     2765#line 2766 "configure"
    26742766#include "confdefs.h"
    26752767/* System header to define __stub macros and hopefully few prototypes,
     
    26942786; return 0; }
    26952787EOF
    2696 if { (eval echo configure:2697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     2788if { (eval echo configure:2789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    26972789  rm -rf conftest*
    26982790  eval "ac_cv_func_$ac_func=yes"
     
    27222814# arithmetic shifts
    27232815echo $ac_n "checking whether your machine has correct arithmetic shifts""... $ac_c" 1>&6
    2724 echo "configure:2725: checking whether your machine has correct arithmetic shifts" >&5
     2816echo "configure:2817: checking whether your machine has correct arithmetic shifts" >&5
    27252817if eval "test \"`echo '$''{'ac_cv_shift'+set}'`\" = set"; then
    27262818  echo $ac_n "(cached) $ac_c" 1>&6
     
    27352827else
    27362828  cat > conftest.$ac_ext <<EOF
    2737 #line 2738 "configure"
     2829#line 2830 "configure"
    27382830#include "confdefs.h"
    27392831 int main() { if (-2 >> 1 == -1) exit(0); else exit(1); }
    27402832EOF
    2741 if { (eval echo configure:2742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     2833if { (eval echo configure:2834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    27422834then
    27432835  ac_cv_shift=yes
     
    27642856# check for a peculiar constructor initialization
    27652857echo $ac_n "checking whether explicit C++ constructor calls are allowed""... $ac_c" 1>&6
    2766 echo "configure:2767: checking whether explicit C++ constructor calls are allowed" >&5
     2858echo "configure:2859: checking whether explicit C++ constructor calls are allowed" >&5
    27672859
    27682860ac_ext=C
     
    27702862ac_cpp='$CXXCPP $CPPFLAGS'
    27712863ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    2772 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     2864ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    27732865cross_compiling=$ac_cv_prog_cxx_cross
    27742866
     
    27772869else
    27782870  cat > conftest.$ac_ext <<EOF
    2779 #line 2780 "configure"
     2871#line 2872 "configure"
    27802872#include "confdefs.h"
    27812873
     
    27952887; return 0; }
    27962888EOF
    2797 if { (eval echo configure:2798: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2889if { (eval echo configure:2890: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    27982890  rm -rf conftest*
    27992891  ac_cv_explicit_const=yes
     
    28112903ac_cpp='$CPP $CPPFLAGS'
    28122904ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    2813 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     2905ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    28142906cross_compiling=$ac_cv_prog_cc_cross
    28152907
     
    28242916# sprintf returns number of printed chars
    28252917echo $ac_n "checking whether vsprintf returns number of printed chars""... $ac_c" 1>&6
    2826 echo "configure:2827: checking whether vsprintf returns number of printed chars" >&5
     2918echo "configure:2919: checking whether vsprintf returns number of printed chars" >&5
    28272919if eval "test \"`echo '$''{'ac_cv_returns_n_of_chars'+set}'`\" = set"; then
    28282920  echo $ac_n "(cached) $ac_c" 1>&6
     
    28322924else
    28332925  cat > conftest.$ac_ext <<EOF
    2834 #line 2835 "configure"
     2926#line 2927 "configure"
    28352927#include "confdefs.h"
    28362928#include <stdio.h>
    28372929 main() { char *str=(char*)malloc(20); if (((int) sprintf(str,"123456789")) == 9) exit(0); else exit(1); }
    28382930EOF
    2839 if { (eval echo configure:2840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     2931if { (eval echo configure:2932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    28402932then
    28412933  ac_cv_returns_n_of_chars=yes
     
    28632955# determine ALIGN_8
    28642956echo $ac_n "checking size of char""... $ac_c" 1>&6
    2865 echo "configure:2866: checking size of char" >&5
     2957echo "configure:2958: checking size of char" >&5
    28662958if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
    28672959  echo $ac_n "(cached) $ac_c" 1>&6
     
    28712963else
    28722964  cat > conftest.$ac_ext <<EOF
    2873 #line 2874 "configure"
     2965#line 2966 "configure"
    28742966#include "confdefs.h"
    28752967#include <stdio.h>
     
    28822974}
    28832975EOF
    2884 if { (eval echo configure:2885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     2976if { (eval echo configure:2977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    28852977then
    28862978  ac_cv_sizeof_char=`cat conftestval`
     
    29022994
    29032995echo $ac_n "checking size of short""... $ac_c" 1>&6
    2904 echo "configure:2905: checking size of short" >&5
     2996echo "configure:2997: checking size of short" >&5
    29052997if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
    29062998  echo $ac_n "(cached) $ac_c" 1>&6
     
    29103002else
    29113003  cat > conftest.$ac_ext <<EOF
    2912 #line 2913 "configure"
     3004#line 3005 "configure"
    29133005#include "confdefs.h"
    29143006#include <stdio.h>
     
    29213013}
    29223014EOF
    2923 if { (eval echo configure:2924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     3015if { (eval echo configure:3016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    29243016then
    29253017  ac_cv_sizeof_short=`cat conftestval`
     
    29413033
    29423034echo $ac_n "checking size of int""... $ac_c" 1>&6
    2943 echo "configure:2944: checking size of int" >&5
     3035echo "configure:3036: checking size of int" >&5
    29443036if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
    29453037  echo $ac_n "(cached) $ac_c" 1>&6
     
    29493041else
    29503042  cat > conftest.$ac_ext <<EOF
    2951 #line 2952 "configure"
     3043#line 3044 "configure"
    29523044#include "confdefs.h"
    29533045#include <stdio.h>
     
    29603052}
    29613053EOF
    2962 if { (eval echo configure:2963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     3054if { (eval echo configure:3055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    29633055then
    29643056  ac_cv_sizeof_int=`cat conftestval`
     
    29803072
    29813073echo $ac_n "checking size of long""... $ac_c" 1>&6
    2982 echo "configure:2983: checking size of long" >&5
     3074echo "configure:3075: checking size of long" >&5
    29833075if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
    29843076  echo $ac_n "(cached) $ac_c" 1>&6
     
    29883080else
    29893081  cat > conftest.$ac_ext <<EOF
    2990 #line 2991 "configure"
     3082#line 3083 "configure"
    29913083#include "confdefs.h"
    29923084#include <stdio.h>
     
    29993091}
    30003092EOF
    3001 if { (eval echo configure:3002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     3093if { (eval echo configure:3094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    30023094then
    30033095  ac_cv_sizeof_long=`cat conftestval`
     
    30193111
    30203112echo $ac_n "checking size of void*""... $ac_c" 1>&6
    3021 echo "configure:3022: checking size of void*" >&5
     3113echo "configure:3114: checking size of void*" >&5
    30223114if eval "test \"`echo '$''{'ac_cv_sizeof_voidp'+set}'`\" = set"; then
    30233115  echo $ac_n "(cached) $ac_c" 1>&6
     
    30273119else
    30283120  cat > conftest.$ac_ext <<EOF
    3029 #line 3030 "configure"
     3121#line 3122 "configure"
    30303122#include "confdefs.h"
    30313123#include <stdio.h>
     
    30383130}
    30393131EOF
    3040 if { (eval echo configure:3041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     3132if { (eval echo configure:3133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    30413133then
    30423134  ac_cv_sizeof_voidp=`cat conftestval`
     
    30583150
    30593151echo $ac_n "checking size of double""... $ac_c" 1>&6
    3060 echo "configure:3061: checking size of double" >&5
     3152echo "configure:3153: checking size of double" >&5
    30613153if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then
    30623154  echo $ac_n "(cached) $ac_c" 1>&6
     
    30663158else
    30673159  cat > conftest.$ac_ext <<EOF
    3068 #line 3069 "configure"
     3160#line 3161 "configure"
    30693161#include "confdefs.h"
    30703162#include <stdio.h>
     
    30773169}
    30783170EOF
    3079 if { (eval echo configure:3080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     3171if { (eval echo configure:3172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    30803172then
    30813173  ac_cv_sizeof_double=`cat conftestval`
     
    30973189
    30983190echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
    3099 echo "configure:3100: checking whether byte ordering is bigendian" >&5
     3191echo "configure:3192: checking whether byte ordering is bigendian" >&5
    31003192if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
    31013193  echo $ac_n "(cached) $ac_c" 1>&6
     
    31043196# See if sys/param.h defines the BYTE_ORDER macro.
    31053197cat > conftest.$ac_ext <<EOF
    3106 #line 3107 "configure"
     3198#line 3199 "configure"
    31073199#include "confdefs.h"
    31083200#include <sys/types.h>
     
    31153207; return 0; }
    31163208EOF
    3117 if { (eval echo configure:3118: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     3209if { (eval echo configure:3210: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    31183210  rm -rf conftest*
    31193211  # It does; now see whether it defined to BIG_ENDIAN or not.
    31203212cat > conftest.$ac_ext <<EOF
    3121 #line 3122 "configure"
     3213#line 3214 "configure"
    31223214#include "confdefs.h"
    31233215#include <sys/types.h>
     
    31303222; return 0; }
    31313223EOF
    3132 if { (eval echo configure:3133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     3224if { (eval echo configure:3225: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    31333225  rm -rf conftest*
    31343226  ac_cv_c_bigendian=yes
     
    31503242else
    31513243  cat > conftest.$ac_ext <<EOF
    3152 #line 3153 "configure"
     3244#line 3245 "configure"
    31533245#include "confdefs.h"
    31543246main () {
     
    31633255}
    31643256EOF
    3165 if { (eval echo configure:3166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     3257if { (eval echo configure:3258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    31663258then
    31673259  ac_cv_c_bigendian=no
     
    32003292
    32013293echo $ac_n "checking size of system page""... $ac_c" 1>&6
    3202 echo "configure:3203: checking size of system page" >&5
     3294echo "configure:3295: checking size of system page" >&5
    32033295if eval "test \"`echo '$''{'ac_cv_pagesize'+set}'`\" = set"; then
    32043296  echo $ac_n "(cached) $ac_c" 1>&6
     
    32083300else
    32093301  cat > conftest.$ac_ext <<EOF
    3210 #line 3211 "configure"
     3302#line 3303 "configure"
    32113303#include "confdefs.h"
    32123304#include <stdio.h>
     
    32223314}
    32233315EOF
    3224 if { (eval echo configure:3225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     3316if { (eval echo configure:3317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    32253317then
    32263318  ac_cv_pagesize=`cat conftestval`
     
    32463338
    32473339echo $ac_n "checking for page aligned valloc""... $ac_c" 1>&6
    3248 echo "configure:3249: checking for page aligned valloc" >&5
     3340echo "configure:3341: checking for page aligned valloc" >&5
    32493341if eval "test \"`echo '$''{'ac_cv_have_page_alignment'+set}'`\" = set"; then
    32503342  echo $ac_n "(cached) $ac_c" 1>&6
     
    32923384else
    32933385  cat > conftest.$ac_ext <<EOF
    3294 #line 3295 "configure"
     3386#line 3387 "configure"
    32953387#include "confdefs.h"
    32963388
     
    32993391
    33003392EOF
    3301 if { (eval echo configure:3302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     3393if { (eval echo configure:3394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    33023394then
    33033395  ac_cv_have_page_alignment="ac_cv_usable_pagesize="`cat  conftestval`
     
    33163408else
    33173409  cat > conftest.$ac_ext <<EOF
    3318 #line 3319 "configure"
     3410#line 3411 "configure"
    33193411#include "confdefs.h"
    33203412
     
    33233415
    33243416EOF
    3325 if { (eval echo configure:3326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     3417if { (eval echo configure:3418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    33263418then
    33273419  ac_cv_have_page_alignment="ac_cv_usable_pagesize="`cat  conftestval`
     
    33433435else
    33443436  cat > conftest.$ac_ext <<EOF
    3345 #line 3346 "configure"
     3437#line 3438 "configure"
    33463438#include "confdefs.h"
    33473439
     
    33523444
    33533445EOF
    3354 if { (eval echo configure:3355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     3446if { (eval echo configure:3447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    33553447then
    33563448  ac_cv_have_page_alignment="ac_cv_have_gmalloc=yes; ac_cv_usable_pagesize="`cat  conftestval`
     
    33693461else
    33703462  cat > conftest.$ac_ext <<EOF
    3371 #line 3372 "configure"
     3463#line 3464 "configure"
    33723464#include "confdefs.h"
    33733465
     
    33783470
    33793471EOF
    3380 if { (eval echo configure:3381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     3472if { (eval echo configure:3473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    33813473then
    33823474  ac_cv_have_page_alignment="ac_cv_have_gmalloc=yes; ac_cv_usable_pagesize="`cat  conftestval`
     
    35133605if test "${with_perl5+set}" != set; then
    35143606  echo $ac_n "checking for perl5""... $ac_c" 1>&6
    3515 echo "configure:3516: checking for perl5" >&5
     3607echo "configure:3608: checking for perl5" >&5
    35163608    if eval "test \"`echo '$''{'ac_cv_prog_perl5'+set}'`\" = set"; then
    35173609  echo $ac_n "(cached) $ac_c" 1>&6
     
    35503642set dummy $ac_prog; ac_word=$2
    35513643echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    3552 echo "configure:3553: checking for $ac_word" >&5
     3644echo "configure:3645: checking for $ac_word" >&5
    35533645if eval "test \"`echo '$''{'ac_cv_prog_PERL5'+set}'`\" = set"; then
    35543646  echo $ac_n "(cached) $ac_c" 1>&6
     
    35573649  ac_cv_prog_PERL5="$PERL5" # Let the user override the test.
    35583650else
    3559   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    3560   for ac_dir in $PATH; do
     3651  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     3652  ac_dummy="$PATH"
     3653  for ac_dir in $ac_dummy; do
    35613654    test -z "$ac_dir" && ac_dir=.
    35623655    if test -f $ac_dir/$ac_word; then
     
    35873680if test "$with_readline" != no; then
    35883681  echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
    3589 echo "configure:3590: checking for tgetent in -lncurses" >&5
     3682echo "configure:3683: checking for tgetent in -lncurses" >&5
    35903683ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
    35913684if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    35953688LIBS="-lncurses  $LIBS"
    35963689cat > conftest.$ac_ext <<EOF
    3597 #line 3598 "configure"
     3690#line 3691 "configure"
    35983691#include "confdefs.h"
    35993692/* Override any gcc2 internal prototype to avoid an error.  */
     
    36063699; return 0; }
    36073700EOF
    3608 if { (eval echo configure:3609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     3701if { (eval echo configure:3702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    36093702  rm -rf conftest*
    36103703  eval "ac_cv_lib_$ac_lib_var=yes"
     
    36333726\
    36343727   echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
    3635 echo "configure:3636: checking for tgetent in -lcurses" >&5
     3728echo "configure:3729: checking for tgetent in -lcurses" >&5
    36363729ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
    36373730if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    36413734LIBS="-lcurses  $LIBS"
    36423735cat > conftest.$ac_ext <<EOF
    3643 #line 3644 "configure"
     3736#line 3737 "configure"
    36443737#include "confdefs.h"
    36453738/* Override any gcc2 internal prototype to avoid an error.  */
     
    36523745; return 0; }
    36533746EOF
    3654 if { (eval echo configure:3655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     3747if { (eval echo configure:3748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    36553748  rm -rf conftest*
    36563749  eval "ac_cv_lib_$ac_lib_var=yes"
     
    36793772\
    36803773   echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
    3681 echo "configure:3682: checking for tgetent in -ltermcap" >&5
     3774echo "configure:3775: checking for tgetent in -ltermcap" >&5
    36823775ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
    36833776if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    36873780LIBS="-ltermcap  $LIBS"
    36883781cat > conftest.$ac_ext <<EOF
    3689 #line 3690 "configure"
     3782#line 3783 "configure"
    36903783#include "confdefs.h"
    36913784/* Override any gcc2 internal prototype to avoid an error.  */
     
    36983791; return 0; }
    36993792EOF
    3700 if { (eval echo configure:3701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     3793if { (eval echo configure:3794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    37013794  rm -rf conftest*
    37023795  eval "ac_cv_lib_$ac_lib_var=yes"
     
    37303823
    37313824   echo $ac_n "checking for rl_abort in -lreadline""... $ac_c" 1>&6
    3732 echo "configure:3733: checking for rl_abort in -lreadline" >&5
     3825echo "configure:3826: checking for rl_abort in -lreadline" >&5
    37333826ac_lib_var=`echo readline'_'rl_abort | sed 'y%./+-%__p_%'`
    37343827if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    37383831LIBS="-lreadline  $LIBS"
    37393832cat > conftest.$ac_ext <<EOF
    3740 #line 3741 "configure"
     3833#line 3834 "configure"
    37413834#include "confdefs.h"
    37423835/* Override any gcc2 internal prototype to avoid an error.  */
     
    37493842; return 0; }
    37503843EOF
    3751 if { (eval echo configure:3752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     3844if { (eval echo configure:3845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    37523845  rm -rf conftest*
    37533846  eval "ac_cv_lib_$ac_lib_var=yes"
     
    37803873ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    37813874echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    3782 echo "configure:3783: checking for $ac_hdr" >&5
     3875echo "configure:3876: checking for $ac_hdr" >&5
    37833876if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    37843877  echo $ac_n "(cached) $ac_c" 1>&6
    37853878else
    37863879  cat > conftest.$ac_ext <<EOF
    3787 #line 3788 "configure"
     3880#line 3881 "configure"
    37883881#include "confdefs.h"
    37893882#include <$ac_hdr>
    37903883EOF
    37913884ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    3792 { (eval echo configure:3793: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    3793 ac_err=`grep -v '^ *+' conftest.out`
     3885{ (eval echo configure:3886: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     3886ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    37943887if test -z "$ac_err"; then
    37953888  rm -rf conftest*
     
    38193912      test "$ac_cv_header_readline_readline_h" = yes; then
    38203913     echo $ac_n "checking whether readline.h is ok""... $ac_c" 1>&6
    3821 echo "configure:3822: checking whether readline.h is ok" >&5
     3914echo "configure:3915: checking whether readline.h is ok" >&5
    38223915     if eval "test \"`echo '$''{'ac_cv_header_readline_readline_h_ok'+set}'`\" = set"; then
    38233916  echo $ac_n "(cached) $ac_c" 1>&6
    38243917else
    38253918  cat > conftest.$ac_ext <<EOF
    3826 #line 3827 "configure"
     3919#line 3920 "configure"
    38273920#include "confdefs.h"
    38283921#include<unistd.h>
     
    38493942; return 0; }
    38503943EOF
    3851 if { (eval echo configure:3852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     3944if { (eval echo configure:3945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    38523945  rm -rf conftest*
    38533946  ac_cv_header_readline_readline_h_ok="yes"
     
    38653958#not ok -- try once more with explicitly declaring everything
    38663959      echo $ac_n "checking whether or not we nevertheless can use readline""... $ac_c" 1>&6
    3867 echo "configure:3868: checking whether or not we nevertheless can use readline" >&5
     3960echo "configure:3961: checking whether or not we nevertheless can use readline" >&5
    38683961      if eval "test \"`echo '$''{'ac_cv_have_readline'+set}'`\" = set"; then
    38693962  echo $ac_n "(cached) $ac_c" 1>&6
    38703963else
    38713964  cat > conftest.$ac_ext <<EOF
    3872 #line 3873 "configure"
     3965#line 3966 "configure"
    38733966#include "confdefs.h"
    38743967#include <stdio.h>
     
    39003993; return 0; }
    39013994EOF
    3902 if { (eval echo configure:3903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     3995if { (eval echo configure:3996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    39033996  rm -rf conftest*
    39043997  ac_cv_have_readline="yes"
     
    39464039# gmp, smallgmp, MP, MPT, factory, libfac
    39474040echo $ac_n "checking for mpq_init in -lgmp""... $ac_c" 1>&6
    3948 echo "configure:3949: checking for mpq_init in -lgmp" >&5
     4041echo "configure:4042: checking for mpq_init in -lgmp" >&5
    39494042ac_lib_var=`echo gmp'_'mpq_init | sed 'y%./+-%__p_%'`
    39504043if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    39544047LIBS="-lgmp  $LIBS"
    39554048cat > conftest.$ac_ext <<EOF
    3956 #line 3957 "configure"
     4049#line 4050 "configure"
    39574050#include "confdefs.h"
    39584051/* Override any gcc2 internal prototype to avoid an error.  */
     
    39654058; return 0; }
    39664059EOF
    3967 if { (eval echo configure:3968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     4060if { (eval echo configure:4061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    39684061  rm -rf conftest*
    39694062  eval "ac_cv_lib_$ac_lib_var=yes"
     
    39964089fi
    39974090echo $ac_n "checking for mpz_init in -lsmallgmp""... $ac_c" 1>&6
    3998 echo "configure:3999: checking for mpz_init in -lsmallgmp" >&5
     4091echo "configure:4092: checking for mpz_init in -lsmallgmp" >&5
    39994092ac_lib_var=`echo smallgmp'_'mpz_init | sed 'y%./+-%__p_%'`
    40004093if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    40044097LIBS="-lsmallgmp  $LIBS"
    40054098cat > conftest.$ac_ext <<EOF
    4006 #line 4007 "configure"
     4099#line 4100 "configure"
    40074100#include "confdefs.h"
    40084101/* Override any gcc2 internal prototype to avoid an error.  */
     
    40154108; return 0; }
    40164109EOF
    4017 if { (eval echo configure:4018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     4110if { (eval echo configure:4111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    40184111  rm -rf conftest*
    40194112  eval "ac_cv_lib_$ac_lib_var=yes"
     
    40434136
    40444137echo $ac_n "checking for IMP_PutGmpInt in -lMP""... $ac_c" 1>&6
    4045 echo "configure:4046: checking for IMP_PutGmpInt in -lMP" >&5
     4138echo "configure:4139: checking for IMP_PutGmpInt in -lMP" >&5
    40464139ac_lib_var=`echo MP'_'IMP_PutGmpInt | sed 'y%./+-%__p_%'`
    40474140if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    40514144LIBS="-lMP  $LIBS"
    40524145cat > conftest.$ac_ext <<EOF
    4053 #line 4054 "configure"
     4146#line 4147 "configure"
    40544147#include "confdefs.h"
    40554148/* Override any gcc2 internal prototype to avoid an error.  */
     
    40624155; return 0; }
    40634156EOF
    4064 if { (eval echo configure:4065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     4157if { (eval echo configure:4158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    40654158  rm -rf conftest*
    40664159  eval "ac_cv_lib_$ac_lib_var=yes"
     
    40904183
    40914184echo $ac_n "checking for MPT_GetTree in -lMPT""... $ac_c" 1>&6
    4092 echo "configure:4093: checking for MPT_GetTree in -lMPT" >&5
     4185echo "configure:4186: checking for MPT_GetTree in -lMPT" >&5
    40934186ac_lib_var=`echo MPT'_'MPT_GetTree | sed 'y%./+-%__p_%'`
    40944187if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    40984191LIBS="-lMPT  $LIBS"
    40994192cat > conftest.$ac_ext <<EOF
    4100 #line 4101 "configure"
     4193#line 4194 "configure"
    41014194#include "confdefs.h"
    41024195/* Override any gcc2 internal prototype to avoid an error.  */
     
    41094202; return 0; }
    41104203EOF
    4111 if { (eval echo configure:4112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     4204if { (eval echo configure:4205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    41124205  rm -rf conftest*
    41134206  eval "ac_cv_lib_$ac_lib_var=yes"
     
    41374230
    41384231echo $ac_n "checking for atof in -lsingcf""... $ac_c" 1>&6
    4139 echo "configure:4140: checking for atof in -lsingcf" >&5
     4232echo "configure:4233: checking for atof in -lsingcf" >&5
    41404233ac_lib_var=`echo singcf'_'atof | sed 'y%./+-%__p_%'`
    41414234if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    41454238LIBS="-lsingcf  $LIBS"
    41464239cat > conftest.$ac_ext <<EOF
    4147 #line 4148 "configure"
     4240#line 4241 "configure"
    41484241#include "confdefs.h"
    41494242/* Override any gcc2 internal prototype to avoid an error.  */
     
    41564249; return 0; }
    41574250EOF
    4158 if { (eval echo configure:4159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     4251if { (eval echo configure:4252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    41594252  rm -rf conftest*
    41604253  eval "ac_cv_lib_$ac_lib_var=yes"
     
    41844277
    41854278echo $ac_n "checking for atof in -lsingfac""... $ac_c" 1>&6
    4186 echo "configure:4187: checking for atof in -lsingfac" >&5
     4279echo "configure:4280: checking for atof in -lsingfac" >&5
    41874280ac_lib_var=`echo singfac'_'atof | sed 'y%./+-%__p_%'`
    41884281if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    41924285LIBS="-lsingfac  $LIBS"
    41934286cat > conftest.$ac_ext <<EOF
    4194 #line 4195 "configure"
     4287#line 4288 "configure"
    41954288#include "confdefs.h"
    41964289/* Override any gcc2 internal prototype to avoid an error.  */
     
    42034296; return 0; }
    42044297EOF
    4205 if { (eval echo configure:4206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     4298if { (eval echo configure:4299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    42064299  rm -rf conftest*
    42074300  eval "ac_cv_lib_$ac_lib_var=yes"
     
    42354328ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    42364329echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    4237 echo "configure:4238: checking for $ac_hdr" >&5
     4330echo "configure:4331: checking for $ac_hdr" >&5
    42384331if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    42394332  echo $ac_n "(cached) $ac_c" 1>&6
    42404333else
    42414334  cat > conftest.$ac_ext <<EOF
    4242 #line 4243 "configure"
     4335#line 4336 "configure"
    42434336#include "confdefs.h"
    42444337#include <$ac_hdr>
    42454338EOF
    42464339ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    4247 { (eval echo configure:4248: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    4248 ac_err=`grep -v '^ *+' conftest.out`
     4340{ (eval echo configure:4341: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     4341ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    42494342if test -z "$ac_err"; then
    42504343  rm -rf conftest*
     
    43024395# evaluate results
    43034396echo $ac_n "checking which apint package to use""... $ac_c" 1>&6
    4304 echo "configure:4305: checking which apint package to use" >&5
     4397echo "configure:4398: checking which apint package to use" >&5
    43054398if test "${with_apint}" != gmp && test "${with_apint}" != smallgmp; then
    43064399  if test "$ac_gmp_ok" = yes || test "$enable_gmp" = yes; then
     
    43464439if test "$with_dl" != no; then
    43474440  echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
    4348 echo "configure:4349: checking for dlopen in -ldl" >&5
     4441echo "configure:4442: checking for dlopen in -ldl" >&5
    43494442ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
    43504443if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    43544447LIBS="-ldl  $LIBS"
    43554448cat > conftest.$ac_ext <<EOF
    4356 #line 4357 "configure"
     4449#line 4450 "configure"
    43574450#include "confdefs.h"
    43584451/* Override any gcc2 internal prototype to avoid an error.  */
     
    43654458; return 0; }
    43664459EOF
    4367 if { (eval echo configure:4368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     4460if { (eval echo configure:4461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    43684461  rm -rf conftest*
    43694462  eval "ac_cv_lib_$ac_lib_var=yes"
     
    44034496  fi
    44044497  echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
    4405 echo "configure:4406: checking for shl_load in -ldld" >&5
     4498echo "configure:4499: checking for shl_load in -ldld" >&5
    44064499ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
    44074500if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    44114504LIBS="-ldld  $LIBS"
    44124505cat > conftest.$ac_ext <<EOF
    4413 #line 4414 "configure"
     4506#line 4507 "configure"
    44144507#include "confdefs.h"
    44154508/* Override any gcc2 internal prototype to avoid an error.  */
     
    44224515; return 0; }
    44234516EOF
    4424 if { (eval echo configure:4425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     4517if { (eval echo configure:4518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    44254518  rm -rf conftest*
    44264519  eval "ac_cv_lib_$ac_lib_var=yes"
     
    44624555
    44634556echo $ac_n "checking whether to have MP""... $ac_c" 1>&6
    4464 echo "configure:4465: checking whether to have MP" >&5
     4557echo "configure:4558: checking whether to have MP" >&5
    44654558if test "${with_MP}" != yes && test "${with_MP}" != no; then
    44664559  if (test "${will_have_gmp}" = yes) && \
     
    44934586
    44944587echo $ac_n "checking whether to have factory""... $ac_c" 1>&6
    4495 echo "configure:4496: checking whether to have factory" >&5
     4588echo "configure:4589: checking whether to have factory" >&5
    44964589if test "${with_factory}" != yes && test "${with_factory}" != no; then
    44974590  if test "$ac_factory_ok" =  yes || test "$enable_factory" = yes; then
     
    45244617
    45254618echo $ac_n "checking whether to have libfac""... $ac_c" 1>&6
    4526 echo "configure:4527: checking whether to have libfac" >&5
     4619echo "configure:4620: checking whether to have libfac" >&5
    45274620if test "${with_libfac}" != yes && test "${with_libfac}" != no; then
    45284621  if (test "${will_have_factory}" = yes) && \
     
    45564649
    45574650echo $ac_n "checking whether to have dbm links""... $ac_c" 1>&6
    4558 echo "configure:4559: checking whether to have dbm links" >&5
     4651echo "configure:4652: checking whether to have dbm links" >&5
    45594652if test "$with_dbm" != no; then
    45604653  cat >> confdefs.h <<\EOF
     
    45684661
    45694662echo $ac_n "checking whether to have namespaces""... $ac_c" 1>&6
    4570 echo "configure:4571: checking whether to have namespaces" >&5
     4663echo "configure:4664: checking whether to have namespaces" >&5
    45714664if test "$with_namespaces" != yes; then
    45724665  echo "$ac_t""no" 1>&6
     
    45804673
    45814674echo $ac_n "checking whether to have dynamic loading""... $ac_c" 1>&6
    4582 echo "configure:4583: checking whether to have dynamic loading" >&5
     4675echo "configure:4676: checking whether to have dynamic loading" >&5
    45834676if test "$with_dl" != yes; then
    45844677  echo "$ac_t""no" 1>&6
     
    45934686        HPUX-9)
    45944687          echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
    4595 echo "configure:4596: checking for shl_load in -ldld" >&5
     4688echo "configure:4689: checking for shl_load in -ldld" >&5
    45964689ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
    45974690if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    46014694LIBS="-ldld  $LIBS"
    46024695cat > conftest.$ac_ext <<EOF
    4603 #line 4604 "configure"
     4696#line 4697 "configure"
    46044697#include "confdefs.h"
    46054698/* Override any gcc2 internal prototype to avoid an error.  */
     
    46124705; return 0; }
    46134706EOF
    4614 if { (eval echo configure:4615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     4707if { (eval echo configure:4708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    46154708  rm -rf conftest*
    46164709  eval "ac_cv_lib_$ac_lib_var=yes"
     
    46444737        HPUX-10)
    46454738          echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
    4646 echo "configure:4647: checking for shl_load in -ldld" >&5
     4739echo "configure:4740: checking for shl_load in -ldld" >&5
    46474740ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
    46484741if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    46524745LIBS="-ldld  $LIBS"
    46534746cat > conftest.$ac_ext <<EOF
    4654 #line 4655 "configure"
     4747#line 4748 "configure"
    46554748#include "confdefs.h"
    46564749/* Override any gcc2 internal prototype to avoid an error.  */
     
    46634756; return 0; }
    46644757EOF
    4665 if { (eval echo configure:4666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     4758if { (eval echo configure:4759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    46664759  rm -rf conftest*
    46674760  eval "ac_cv_lib_$ac_lib_var=yes"
     
    47024795
    47034796echo $ac_n "checking whether to use mtrack""... $ac_c" 1>&6
    4704 echo "configure:4705: checking whether to use mtrack" >&5
     4797echo "configure:4798: checking whether to use mtrack" >&5
    47054798if test "$with_mtrack" = yes && test "$ac_cv_singuname" = ix86-Linux; then
    47064799  echo "$ac_t""yes" 1>&6
     
    47164809
    47174810echo $ac_n "checking which exponent type to use""... $ac_c" 1>&6
    4718 echo "configure:4719: checking which exponent type to use" >&5
     4811echo "configure:4812: checking which exponent type to use" >&5
    47194812if test "$with_exp_type" = "char"; then
    47204813  echo "$ac_t""char" 1>&6
     
    47724865# and sets the high bit in the cache file unless we assign to the vars.
    47734866(set) 2>&1 |
    4774   case `(ac_space=' '; set) 2>&1` in
     4867  case `(ac_space=' '; set | grep ac_space) 2>&1` in
    47754868  *ac_space=\ *)
    47764869    # `set' does not quote correctly, so add quotes (double-quote substitution
     
    48394932    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
    48404933  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
    4841     echo "$CONFIG_STATUS generated by autoconf version 2.12"
     4934    echo "$CONFIG_STATUS generated by autoconf version 2.13"
    48424935    exit 0 ;;
    48434936  -help | --help | --hel | --he | --h)
     
    48584951$ac_vpsub
    48594952$extrasub
     4953s%@SHELL@%$SHELL%g
    48604954s%@CFLAGS@%$CFLAGS%g
    48614955s%@CPPFLAGS@%$CPPFLAGS%g
    48624956s%@CXXFLAGS@%$CXXFLAGS%g
     4957s%@FFLAGS@%$FFLAGS%g
    48634958s%@DEFS@%$DEFS%g
    48644959s%@LDFLAGS@%$LDFLAGS%g
  • Singular/feOpt.cc

    r57e94c4 r416465  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: feOpt.cc,v 1.6 1999-10-14 14:27:02 obachman Exp $ */
     4/* $Id: feOpt.cc,v 1.7 1999-11-15 17:19:56 obachman Exp $ */
    55/*
    66* ABSTRACT: Implementation of option buisness
  • Singular/feOpt.h

    r57e94c4 r416465  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: feOpt.h,v 1.2 1999-10-14 14:27:03 obachman Exp $ */
     6/* $Id: feOpt.h,v 1.3 1999-11-15 17:19:56 obachman Exp $ */
    77/*
    88* ABSTRACT: Declarations for working with Options
  • Singular/feResource.cc

    r57e94c4 r416465  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: feResource.cc,v 1.15 1999-10-25 18:21:50 Singular Exp $ */
     4/* $Id: feResource.cc,v 1.16 1999-11-15 17:19:57 obachman Exp $ */
    55/*
    66* ABSTRACT: management of resources
  • Singular/febase.h

    r57e94c4 r416465  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: febase.h,v 1.42 1999-10-25 18:21:51 Singular Exp $ */
     6/* $Id: febase.h,v 1.43 1999-11-15 17:19:57 obachman Exp $ */
    77/*
    88* ABSTRACT: basic i/o
  • Singular/febase.inc

    r57e94c4 r416465  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: febase.inc,v 1.27 1999-10-01 17:18:24 Singular Exp $ */
     4/* $Id: febase.inc,v 1.28 1999-11-15 17:19:57 obachman Exp $ */
    55/*
    66* ABSTRACT: handling of 'voices'
  • Singular/fegetopt.c

    r57e94c4 r416465  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: fegetopt.c,v 1.3 1999-09-22 15:42:13 Singular Exp $ */
     4/* $Id: fegetopt.c,v 1.4 1999-11-15 17:19:58 obachman Exp $ */
    55
    66/* Getopt for GNU.
  • Singular/fereadl.c

    r57e94c4 r416465  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: fereadl.c,v 1.2 1999-09-22 14:11:24 Singular Exp $ */
     4/* $Id: fereadl.c,v 1.3 1999-11-15 17:19:58 obachman Exp $ */
    55/*
    66* ABSTRACT: input from ttys, simulating fgets
  • Singular/ffields.cc

    r57e94c4 r416465  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: ffields.cc,v 1.23 1999-10-26 16:40:44 Singular Exp $ */
     4/* $Id: ffields.cc,v 1.24 1999-11-15 17:19:58 obachman Exp $ */
    55/*
    66* ABSTRACT: finite fields with a none-prime number of elements (via tables)
  • Singular/ffields.h

    r57e94c4 r416465  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: ffields.h,v 1.7 1999-10-26 16:40:44 Singular Exp $ */
     6/* $Id: ffields.h,v 1.8 1999-11-15 17:19:59 obachman Exp $ */
    77/*
    88* ABSTRACT: finite fields with a none-prime number of elements (via tables)
  • Singular/fglm.cc

    r57e94c4 r416465  
    11// emacs edit mode for this file is -*- C++ -*-
    2 // $Id: fglm.cc,v 1.18 1999-09-16 12:33:54 Singular Exp $
     2// $Id: fglm.cc,v 1.19 1999-11-15 17:19:59 obachman Exp $
    33
    44/****************************************
  • Singular/fglm.h

    r57e94c4 r416465  
    11// emacs edit mode for this file is -*- C++ -*-
    2 // $Id: fglm.h,v 1.10 1999-02-26 15:32:02 Singular Exp $
     2// $Id: fglm.h,v 1.11 1999-11-15 17:20:00 obachman Exp $
    33
    44/****************************************
  • Singular/fglmcomb.cc

    r57e94c4 r416465  
    11// emacs edit mode for this file is -*- C++ -*-
    2 // $Id: fglmcomb.cc,v 1.15 1999-09-29 10:59:28 obachman Exp $
     2// $Id: fglmcomb.cc,v 1.16 1999-11-15 17:20:01 obachman Exp $
    33
    44/****************************************
  • Singular/fglmgauss.cc

    r57e94c4 r416465  
    11// emacs edit mode for this file is -*- C++ -*-
    2 // $Id: fglmgauss.cc,v 1.10 1998-09-24 09:59:38 Singular Exp $
     2// $Id: fglmgauss.cc,v 1.11 1999-11-15 17:20:01 obachman Exp $
    33
    44/****************************************
  • Singular/fglmgauss.h

    r57e94c4 r416465  
    11// emacs edit mode for this file is -*- C++ -*-
    2 // $Id: fglmgauss.h,v 1.5 1999-02-26 15:32:03 Singular Exp $
     2// $Id: fglmgauss.h,v 1.6 1999-11-15 17:20:01 obachman Exp $
    33
    44/****************************************
  • Singular/fglmhom.cc

    r57e94c4 r416465  
    11// emacs edit mode for this file is -*- C++ -*-
    2 // $Id: fglmhom.cc,v 1.14 1999-09-16 12:33:54 Singular Exp $
     2// $Id: fglmhom.cc,v 1.15 1999-11-15 17:20:02 obachman Exp $
    33
    44/****************************************
  • Singular/fglmvec.cc

    r57e94c4 r416465  
    11// emacs edit mode for this file is -*- C++ -*-
    2 // $Id: fglmvec.cc,v 1.11 1998-09-24 09:59:40 Singular Exp $
     2// $Id: fglmvec.cc,v 1.12 1999-11-15 17:20:02 obachman Exp $
    33
    44/****************************************
  • Singular/fglmvec.h

    r57e94c4 r416465  
    11// emacs edit mode for this file is -*- C++ -*-
    2 // $Id: fglmvec.h,v 1.9 1998-12-16 18:43:38 Singular Exp $
     2// $Id: fglmvec.h,v 1.10 1999-11-15 17:20:02 obachman Exp $
    33
    44/****************************************
  • Singular/fglmzero.cc

    r57e94c4 r416465  
    11// emacs edit mode for this file is -*- C++ -*-
    2 // $Id: fglmzero.cc,v 1.25 1999-10-14 14:27:03 obachman Exp $
     2// $Id: fglmzero.cc,v 1.26 1999-11-15 17:20:03 obachman Exp $
    33
    44/****************************************
  • Singular/gnumpc.cc

    r57e94c4 r416465  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: gnumpc.cc,v 1.9 1999-09-16 12:33:55 Singular Exp $ */
     4/* $Id: gnumpc.cc,v 1.10 1999-11-15 17:20:03 obachman Exp $ */
    55/*
    66* ABSTRACT: computations with GMP complex floating-point numbers
  • Singular/gnumpc.h

    r57e94c4 r416465  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: gnumpc.h,v 1.4 1999-09-16 12:33:55 Singular Exp $ */
     6/* $Id: gnumpc.h,v 1.5 1999-11-15 17:20:03 obachman Exp $ */
    77/*
    88* ABSTRACT: computations with GMP floating-point numbers
  • Singular/gnumpfl.h

    r57e94c4 r416465  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: gnumpfl.h,v 1.4 1999-09-16 12:33:56 Singular Exp $ */
     6/* $Id: gnumpfl.h,v 1.5 1999-11-15 17:20:04 obachman Exp $ */
    77/*
    88* ABSTRACT: computations with GMP floating-point numbers
  • Singular/grammar.y

    r57e94c4 r416465  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: grammar.y,v 1.73 1999-10-22 11:14:08 obachman Exp $ */
     4/* $Id: grammar.y,v 1.74 1999-11-15 17:20:04 obachman Exp $ */
    55/*
    66* ABSTRACT: SINGULAR shell grammatik
  • Singular/hdegree.cc

    r57e94c4 r416465  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: hdegree.cc,v 1.18 1999-10-22 11:14:08 obachman Exp $ */
     4/* $Id: hdegree.cc,v 1.19 1999-11-15 17:20:04 obachman Exp $ */
    55/*
    66*  ABSTRACT -  dimension, multiplicity, HC, kbase
  • Singular/hilb.cc

    r57e94c4 r416465  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: hilb.cc,v 1.11 1999-10-22 11:14:09 obachman Exp $ */
     4/* $Id: hilb.cc,v 1.12 1999-11-15 17:20:05 obachman Exp $ */
    55/*
    66*  ABSTRACT -  Hilbert series
  • Singular/hutil.cc

    r57e94c4 r416465  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: hutil.cc,v 1.11 1999-09-07 18:15:31 Singular Exp $ */
     4/* $Id: hutil.cc,v 1.12 1999-11-15 17:20:05 obachman Exp $ */
    55/*
    66* ABSTRACT: Utilities for staircase operations
  • Singular/ideals.cc

    r57e94c4 r416465  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: ideals.cc,v 1.72 1999-11-05 19:11:06 obachman Exp $ */
     4/* $Id: ideals.cc,v 1.73 1999-11-15 17:20:06 obachman Exp $ */
    55/*
    66* ABSTRACT - all basic methods to manipulate ideals
     
    2323#include "ideals.h"
    2424#include "lists.h"
     25#include "prCopy.h"
    2526
    2627
    2728/* #define WITH_OLD_MINOR */
     29#define pCopy_noCheck(p) pCopy(p)
    2830
    2931static poly * idpower;
     
    6769}
    6870
     71#ifndef __OPTIMIZE__
     72// this is mainly for outputting an ideal within the debugger
    6973void idPrint(ideal id)
    7074{
     
    7983  }
    8084}
     85#endif
    8186
    8287/*2
     
    350355  }
    351356  return h2;
    352 }
    353 
    354 /*2
    355 * copy an ideal from ring r1 to currRing
    356 */
    357 ideal idRingCopy(ideal id, ring r)
    358 {
    359   if (id == NULL) return NULL;
    360   ideal res;
    361  
    362   int i;
    363   res = idInit(IDELEMS(id), id->rank);
    364   for (i=IDELEMS(id)-1; i>=0; i--)
    365   {
    366     res->m[i] = pFetchCopy(r, id->m[i]);
    367   }
    368   return res;
    369357}
    370358
     
    10991087  ring orig_ring=currRing;
    11001088  ring syz_ring=rCurrRingAssureSyzComp();
    1101   pSetSyzComp(length);
     1089  rSetSyzComp(length);
    11021090
    11031091  while ((j>0) && (first->m[j-1]==NULL)) j--;
     
    11101098        temp->m[k] = pCopy(first->m[i]);
    11111099      else
    1112         temp->m[k] = pFetchCopy(orig_ring,first->m[i]);
     1100        temp->m[k] = prCopyR(first->m[i], orig_ring);
    11131101      q = pOne();
    11141102      pSetComp(q,i+1+length);
     
    11301118        temp->m[k] = pCopy(second->m[i]);
    11311119      else
    1132         temp->m[k] = pFetchCopy(orig_ring,second->m[i]);
     1120        temp->m[k] = prCopyR(second->m[i], orig_ring);
    11331121      if (slength==0) pShift(&(temp->m[k]),1);
    11341122      k++;
     
    11411129  if(syz_ring!=orig_ring)
    11421130    rChangeCurrRing(orig_ring,TRUE);
    1143   pSetSyzComp(0);
    11441131
    11451132  result = idInit(IDELEMS(temp1),rank);
     
    11531140        p = pCopy(temp1->m[i]);
    11541141      else
    1155         p = pFetchCopy(syz_ring,temp1->m[i]);
     1142        p = prCopyR(temp1->m[i], syz_ring);
    11561143      while (p!=NULL)
    11571144      {
     
    12241211  ring orig_ring=currRing;
    12251212  ring syz_ring=rCurrRingAssureSyzComp();
    1226   pSetSyzComp(syzComp);
     1213  rSetSyzComp(syzComp);
    12271214
    12281215  bigmat = idInit(j,(k+1)*maxrk);
     
    12521239            bigmat->m[i] = pCopy(arg[j]->m[l]);
    12531240          else
    1254             bigmat->m[i] = pFetchCopy(orig_ring,arg[j]->m[l]);
     1241            bigmat->m[i] = prCopyR(arg[j]->m[l], orig_ring);
    12551242          pShift(&(bigmat->m[i]),k*maxrk+isIdeal);
    12561243          i++;
     
    12671254  if(syz_ring!=orig_ring)
    12681255    rChangeCurrRing(orig_ring,TRUE);
    1269   pSetSyzComp(0);
    12701256
    12711257  /* interprete result ----------------------------------------*/
     
    12841270        p = pCopy(tempstd->m[j]);
    12851271      else
    1286         p = pFetchCopy(syz_ring,tempstd->m[j]);
     1272        p = prCopyR(tempstd->m[j], syz_ring);
    12871273      pShift(&p,-syzComp-isIdeal);
    12881274      result->m[k] = p;
     
    13081294*works always in a ring with ringorder_s
    13091295*/
    1310 static ideal idPrepare (ideal  h1,ideal  quot, tHomog h,
    1311   int syzcomp, int *quotgen, int *quotdim, intvec **w)
     1296static ideal idPrepare (ideal  h1, tHomog h, int syzcomp, intvec **w)
    13121297{
    13131298  ideal   h2, h3;
     
    13291314    Warn("syzcomp too low, should be %d instead of %d",k,syzcomp);
    13301315    syzcomp = k;
    1331     pSetSyzComp(k);
     1316    rSetSyzComp(k);
    13321317  }
    13331318  h2->rank = syzcomp+i+1;
     
    13501335  for(j=0;j<IDELEMS(h2);j++) pTest(h2->m[j]);
    13511336#endif
    1352   h3=kStd(h2,quot,h,w,NULL,syzcomp);
     1337  h3=kStd(h2,currQuotient,h,w,NULL,syzcomp);
    13531338  idDelete(&h2);
    13541339  return h3;
    1355 }
    1356 
    1357 ideal idSyzygies (ideal  h1,ideal  quot, tHomog h,intvec **w)
    1358 {
    1359   int d;
    1360   return idSyzygies(h1,quot,h,w,FALSE,d);
    13611340}
    13621341
     
    13651344* weights of components are in w
    13661345* if setRegularity, return the regularity in deg
    1367 * do not change h1, quot, w
    1368 */
    1369 ideal idSyzygies (ideal  h1,ideal  quot, tHomog h,intvec **w,
     1346* do not change h1, w
     1347*/
     1348ideal idSyzygies (ideal  h1, tHomog h,intvec **w, BOOLEAN setSyzComp,
    13701349                  BOOLEAN setRegularity, int &deg)
    13711350{
    1372   ideal e;
     1351  ideal s_h1;
    13731352  poly  p;
    1374   int   i, j, k, quotdim, quotgen,length=0,reg;
     1353  int   i, j, k, length=0,reg;
    13751354  BOOLEAN isMonomial=TRUE;
    13761355
     
    13781357  int ii;
    13791358  for(ii=0;ii<IDELEMS(h1);ii++) pTest(h1->m[ii]);
    1380   if (quot!=NULL)
    1381   {
    1382     for(ii=0;ii<IDELEMS(quot);ii++) pTest(quot->m[ii]);
    1383   }
    13841359#endif
    13851360  if (idIs0(h1))
     
    13911366  ring syz_ring=rCurrRingAssureSyzComp();
    13921367
    1393   pSetSyzComp(k);
    1394 
    1395   ideal s_h1=idRingCopy(h1,orig_ring);
    1396   ideal s_quot=idRingCopy(quot,orig_ring);
    1397 
    1398   ideal s_h3=idPrepare(s_h1,s_quot,h,k,&quotgen,&quotdim,w);
    1399   idDelete(&s_h1);
    1400   if(s_quot!=NULL) idDelete(&s_quot);
    1401 
    1402   if (syz_ring!=orig_ring)
    1403     rChangeCurrRing(orig_ring,TRUE);
    1404   pSetSyzComp(0);
     1368  if (setSyzComp)
     1369    rSetSyzComp(k);
     1370
     1371  if (orig_ring != syz_ring)
     1372  {
     1373    s_h1=idrCopyR_NoSort(h1,orig_ring);
     1374  }
     1375  else
     1376  {
     1377    s_h1 = h1;
     1378  }
     1379
     1380  ideal s_h3=idPrepare(s_h1,h,k,w);
    14051381
    14061382  if (s_h3==NULL)
     
    14081384    return idFreeModule(IDELEMS(h1));
    14091385  }
    1410   i = -1;
    1411   e=idInit(16,s_h3->rank-k);
     1386
     1387  if (orig_ring != syz_ring)
     1388  {
     1389    idDelete(&s_h1);
     1390    for (j=0; j<IDELEMS(s_h3); j++)
     1391    {
     1392      if (s_h3->m[j] != NULL)
     1393      {
     1394        if (pMinComp(s_h3->m[j],syz_ring) > k)
     1395          pShift(&s_h3->m[j], -k);
     1396        else
     1397          pDelete(&s_h3->m[j]);
     1398      }
     1399    }
     1400    idSkipZeroes(s_h3);
     1401    s_h3->rank -= k;
     1402    rChangeCurrRing(orig_ring, TRUE);
     1403    s_h3 = idrMoveR_NoSort(s_h3, syz_ring);
     1404    rKill(syz_ring);
     1405    idTest(s_h3);
     1406    return s_h3;
     1407  }
     1408 
     1409  ideal e = idInit(IDELEMS(s_h3), s_h3->rank);
     1410
    14121411  for (j=0; j<IDELEMS(s_h3); j++)
    14131412  {
    14141413    if (s_h3->m[j] != NULL)
    14151414    {
    1416       if (pMinComp(s_h3->m[j],syz_ring) > k)
    1417       {
    1418         if (syz_ring==orig_ring)
    1419         {
    1420           p=s_h3->m[j];
    1421         }
    1422         else
    1423         {
    1424           p = pFetchCopy(syz_ring,s_h3->m[j]);
    1425           rChangeCurrRing(syz_ring,FALSE);
    1426           pDelete(&(s_h3->m[j]));
    1427           rChangeCurrRing(orig_ring,TRUE);
    1428         }
    1429         s_h3->m[j]=NULL;
    1430         pShift(&p,-k);
    1431         if (p!=NULL)
    1432         {
    1433           i++;
    1434           if (i+1 >= IDELEMS(e))
    1435           {
    1436             pEnlargeSet(&(e->m),IDELEMS(e),16);
    1437             IDELEMS(e) += 16;
    1438           }
    1439           e->m[i] = p;
    1440         }
    1441       }
    1442       else
    1443       {
     1415      if (pMinComp(s_h3->m[j],syz_ring) <= k)
     1416      {
     1417        e->m[j] = s_h3->m[j];
    14441418        isMonomial=isMonomial && (pNext(s_h3->m[j])==NULL);
    1445         if(syz_ring!=orig_ring)
    1446         {
    1447           rChangeCurrRing(syz_ring,FALSE);
    1448           pDelete(&pNext(s_h3->m[j]));
    1449           rChangeCurrRing(orig_ring,TRUE);
    1450         }
    1451         else
    1452         {
    1453           pDelete(&pNext(s_h3->m[j]));
    1454         }
    1455       }
    1456     }
    1457   }
     1419        pDelete(&pNext(s_h3->m[j]));
     1420        s_h3->m[j] = NULL;
     1421      }
     1422    }
     1423  }
     1424 
     1425  idSkipZeroes(s_h3);
     1426  idSkipZeroes(e);
     1427 
    14581428  if ((!isMonomial)
    14591429  && (!TEST_OPT_NOTREGULARITY)
     
    14611431  && (h==isHomog))
    14621432  {
    1463     idSkipZeroes(s_h3); // works ring independend
    1464     ideal h3=idRingCopy(s_h3,syz_ring);
    1465     resolvente res = sySchreyerResolvente(h3,-1,&length,TRUE, TRUE);
     1433    ring dp_C_ring = rCurrRingAssure_dp_C();
     1434    if (dp_C_ring != syz_ring)
     1435      e = idrMoveR_NoSort(e, syz_ring);
     1436    resolvente res = sySchreyerResolvente(e,-1,&length,TRUE, TRUE);
    14661437    intvec * dummy = syBetti(res,length,&reg, *w);
    14671438    deg = reg+2;
     
    14721443    }
    14731444    Free((ADDRESS)res,length*sizeof(ideal));
    1474     idDelete(&h3);
    1475   }
    1476   if (syz_ring!=orig_ring)
    1477   {
    1478     rChangeCurrRing(syz_ring,FALSE);
    1479     idDelete(&s_h3);
    1480     rChangeCurrRing(orig_ring,TRUE);
    1481     rKill(syz_ring);
     1445    idDelete(&e);
     1446    if (dp_C_ring != syz_ring)
     1447    {
     1448      rChangeCurrRing(syz_ring, TRUE);
     1449      rKill(dp_C_ring);
     1450    }
    14821451  }
    14831452  else
    1484     idDelete(&s_h3);
    1485   idSkipZeroes(e);
    1486 #ifdef PDEBUG
    1487   idTest(e);
    1488   idTest(h1);
    1489   if (quot!=NULL) idTest(quot);
    1490 #endif
    1491   return e;
     1453  {
     1454    idDelete(&e);
     1455  }
     1456  idTest(s_h3);
     1457  return s_h3;
    14921458}
    14931459
     
    14961462* in ma
    14971463*/
    1498 ideal idLiftStd (ideal  h1,ideal  quot, matrix* ma, tHomog h)
    1499 {
    1500   int   i, j, k, t, quotgen, inputIsIdeal=idRankFreeModule(h1);
     1464ideal idLiftStd (ideal  h1, matrix* ma, tHomog h)
     1465{
     1466  int   i, j, k, t, inputIsIdeal=idRankFreeModule(h1);
    15011467  poly  p=NULL, q, qq;
    15021468  intvec *w=NULL;
     
    15101476  ring orig_ring=currRing;
    15111477  ring syz_ring=rCurrRingAssureSyzComp();
    1512   pSetSyzComp(k);
    1513 
    1514   ideal s_h1=idRingCopy(h1,orig_ring);
    1515   ideal s_quot=idRingCopy(quot,orig_ring);
    1516 
    1517   ideal s_h3=idPrepare(s_h1,s_quot,h,k,&quotgen,&i,&w);
     1478  rSetSyzComp(k);
     1479
     1480  ideal s_h1=h1;
     1481
     1482  if (orig_ring != syz_ring)
     1483    s_h1 = idrCopyR_NoSort(h1,orig_ring);
     1484  else
     1485    s_h1 = h1;
     1486
     1487  ideal s_h3=idPrepare(s_h1,h,k,&w);
    15181488  ideal s_h2 = idInit(IDELEMS(s_h3), s_h3->rank);
    15191489
     
    15481518  idSkipZeroes(s_h3);
    15491519  j = IDELEMS(s_h1);
    1550   if (s_quot!=NULL) idDelete(&s_quot);
    1551   idDelete(&s_h1);
    15521520
    15531521  if (syz_ring!=orig_ring)
     1522  {
     1523    idDelete(&s_h1);
    15541524    rChangeCurrRing(orig_ring,TRUE);
    1555   pSetSyzComp(0);
     1525  }
     1526 
    15561527  idDelete((ideal*)ma);
    15571528  *ma = mpNew(j,i);
     
    15621533    if (s_h2->m[j] != NULL)
    15631534    {
    1564       q = pFetchCopyDelete(syz_ring, s_h2->m[j]);
     1535      q = prMoveR( s_h2->m[j], syz_ring);
    15651536      s_h2->m[j] = NULL;
    15661537
     
    15821553  for (i=0; i<IDELEMS(s_h3); i++)
    15831554  {
    1584     s_h3->m[i] = pFetchCopyDelete(syz_ring, s_h3->m[i]);
     1555    s_h3->m[i] = prMoveR_NoSort(s_h3->m[i], syz_ring);
    15851556  }
    15861557
     
    15951566ideal idLiftNonStB (ideal  mod, ideal submod,BOOLEAN goodShape)
    15961567{
    1597   int   lsmod =idRankFreeModule(submod), i, j, k, quotgen;
     1568  int   lsmod =idRankFreeModule(submod), i, j, k;
    15981569
    15991570  if (idIs0(mod))
     
    16061577  ring orig_ring=currRing;
    16071578  ring syz_ring=rCurrRingAssureSyzComp();
    1608   pSetSyzComp(k);
    1609 
    1610   ideal s_mod=idRingCopy(mod,orig_ring);
    1611 
    1612   ideal s_h3=idPrepare(s_mod,currQuotient,(tHomog)FALSE,k,&quotgen,&i,NULL);
     1579  rSetSyzComp(k);
     1580
     1581  ideal s_mod, s_temp;
     1582  if (orig_ring != syz_ring)
     1583  {
     1584    s_mod = idrCopyR_NoSort(mod,orig_ring);
     1585    s_temp = idrCopyR_NoSort(submod,orig_ring);
     1586  }
     1587  else
     1588  {
     1589    s_mod = mod;
     1590    s_temp = idCopy(submod);
     1591  }
     1592
     1593  ideal s_h3=idPrepare(s_mod,(tHomog)FALSE,k,NULL);
    16131594
    16141595  if (!goodShape)
     
    16211602  }
    16221603  idSkipZeroes(s_h3);
    1623   ideal s_temp = idRingCopy(submod,orig_ring);
    16241604  if (lsmod==0)
    16251605  {
     
    16551635
    16561636  if(syz_ring!=orig_ring)
     1637  {
     1638    idDelete(&s_mod);
    16571639    rChangeCurrRing(orig_ring,TRUE);
    1658   pSetSyzComp(0);
    1659 
    1660   if(syz_ring==orig_ring)
    1661     return s_result;
    1662   else
    1663   {
    1664     ideal result=idRingCopy(s_result,syz_ring);
    1665     rChangeCurrRing(syz_ring,FALSE);
    1666     idDelete(&s_result);
    1667     rChangeCurrRing(orig_ring,TRUE);
     1640    s_result = idrMoveR_NoSort(s_result, syz_ring);
    16681641    rKill(syz_ring);
    1669     return result;
    1670   }
     1642  }
     1643  return s_result;
    16711644}
    16721645
     
    16891662  ring orig_ring=currRing;
    16901663  ring syz_ring=rCurrRingAssureSyzComp();
    1691   pSetSyzComp(max(k,1));
     1664  rSetSyzComp(max(k,1));
    16921665
    16931666  ideal s_result=idInit(IDELEMS(submod),submod->rank);
    1694   ideal s_temp=idRingCopy(mod,orig_ring);
     1667  ideal s_temp;
     1668 
     1669  if (syz_ring != orig_ring)
     1670  {
     1671    s_temp = idrCopyR_NoSort(mod,orig_ring);
     1672  }
     1673  else
     1674  {
     1675    s_temp = idCopy(mod);
     1676  }
     1677 
    16951678  if (k == 0)
    16961679  {
     
    17221705        p = pCopy(submod->m[j]);
    17231706      else
    1724         p=pFetchCopy(orig_ring,submod->m[j]);
     1707        p=prCopyR(submod->m[j], orig_ring);
    17251708      if (pGetComp(p)==0) pSetCompP(p,1);
    17261709      q = kNF(s_temp,currQuotient,p,k);
     
    17511734  {
    17521735    rChangeCurrRing(orig_ring,TRUE);
    1753     ideal result=idRingCopy(s_result,syz_ring);
    1754     rChangeCurrRing(syz_ring,TRUE);
    1755     idDelete(&s_result);
    1756     rChangeCurrRing(orig_ring,TRUE);
     1736    s_result = idrMoveR_NoSort(s_result, syz_ring);
    17571737    rKill(syz_ring);
    1758     s_result=result;
    1759   }
    1760   pSetSyzComp(0);
     1738  }
    17611739
    17621740  return s_result;
    17631741}
    17641742
     1743
    17651744/*2
    17661745*computes the quotient of h1,h2
    17671746*/
    1768 #ifdef OLD_QUOT
    1769 // nicht angepasst an syzcomp
    1770 ideal idQuot (ideal  h1, ideal h2, BOOLEAN h1IsSB, BOOLEAN resultIsIdeal)
    1771 {
    1772   int i,j = 0,l,ll,k,kkk,k1,k2,kmax;
    1773   ideal h3,h4;
     1747static ideal idInitializeQuot (ideal  h1, ideal h2, BOOLEAN h1IsStb,
     1748                               BOOLEAN *addOnlyOne, int *kkmax)
     1749{
     1750  ideal temph1;
    17741751  poly     p,q = NULL;
    1775   BOOLEAN     b = FALSE;
    1776 
    1777   k1 = idRankFreeModule(h1);
    1778   k2 = idRankFreeModule(h2);
     1752  int i,l,ll,k,kkk,kmax;
     1753  int j = 0;
     1754  int k1 = idRankFreeModule(h1);
     1755  int k2 = idRankFreeModule(h2);
     1756  tHomog   hom=isNotHomog;
     1757
    17791758  k=max(k1,k2);
    1780   if (k==0) { k = 1; b=TRUE; }
    1781   h4 = idInit(1,1);
     1759  if (k==0)
     1760    k = 1;
     1761  if ((k2==0) && (k>1)) *addOnlyOne = FALSE;
     1762
     1763  intvec * weights;
     1764  hom = (tHomog)idHomModule(h1,currQuotient,&weights);
     1765  if (addOnlyOne && (!h1IsStb))
     1766    temph1 = kStd(h1,currQuotient,hom,&weights,NULL);
     1767  else
     1768    temph1 = idCopy(h1);
     1769  if (weights!=NULL) delete weights;
     1770  idTest(temph1);
     1771/*--- making a single vector from h2 ---------------------*/
    17821772  for (i=0; i<IDELEMS(h2); i++)
    17831773  {
     
    17931783    }
    17941784  }
    1795   kmax = j*k+1;
    1796   pSetSyzComp(kmax-1);
    1797   p = pOne();
     1785  *kkmax = kmax = j*k+1;
     1786/*--- adding a monomial for the result (syzygy) ----------*/
     1787  p = q;
     1788  while (pNext(p)!=NULL) pIter(p);
     1789  pNext(p) = pOne();
     1790  pIter(p);
    17981791  pSetComp(p,kmax);
    17991792  pSetmComp(p);
    1800   q = pAdd(q,p);
     1793/*--- constructing the big matrix ------------------------*/
     1794  ideal h4 = idInit(16,kmax);
    18011795  h4->m[0] = q;
    18021796  if (k2 == 0)
     
    18091803    for (i=1; i<k; i++)
    18101804    {
    1811       p = pCopy(h4->m[i-1]);
     1805      p = pCopy_noCheck(h4->m[i-1]);
    18121806      pShift(&p,1);
    18131807      h4->m[i] = p;
    18141808    }
    18151809  }
     1810
    18161811  kkk = IDELEMS(h4);
    1817   i = IDELEMS(h1);
    1818   while (h1->m[i-1] == NULL) i--;
     1812  i = IDELEMS(temph1);
     1813  while ((i>0) && (temph1->m[i-1]==NULL)) i--;
    18191814  for (l=0; l<i; l++)
    18201815  {
    1821     if(h1->m[l]!=NULL)
     1816    if(temph1->m[l]!=NULL)
    18221817    {
    18231818      for (ll=0; ll<j; ll++)
    18241819      {
    1825         p = pCopy(h1->m[l]);
     1820        p = pCopy(temph1->m[l]);
    18261821        if (k1 == 0)
    18271822          pShift(&p,ll*k+1);
     
    18381833    }
    18391834  }
    1840   h3 = kStd(h4,currQuotient,(tHomog)FALSE,NULL,NULL,kmax-1);
    1841   pSetSyzComp(0);
    1842   idDelete(&h4);
    1843   for (i=0;i<IDELEMS(h3);i++)
    1844   {
    1845     if ((h3->m[i]!=NULL) && (pGetComp(h3->m[i])>=kmax))
    1846     {
    1847       if (b)
    1848         pShift(&h3->m[i],-kmax);
    1849       else
    1850         pShift(&h3->m[i],-kmax+1);
    1851     }
    1852     else
    1853       pDelete(&h3->m[i]);
    1854   }
    1855   if (b)
    1856     h3->rank = 1;
    1857   else
    1858     h3->rank = h1->rank;
    1859   h4=idCompactify(h3);
    1860   idDelete(&h3);
     1835/*--- if h2 goes in as single vector - the h1-part is just SB ---*/
     1836  if (*addOnlyOne)
     1837  {
     1838    p = h4->m[0];
     1839    for (i=0;i<IDELEMS(h4)-1;i++)
     1840    {
     1841      h4->m[i] = h4->m[i+1];
     1842    }
     1843    h4->m[IDELEMS(h4)-1] = p;
     1844    idSkipZeroes(h4);
     1845    test |= Sy_bit(OPT_SB_1);
     1846  }
     1847  idDelete(&temph1);
     1848  idTest(h4);
    18611849  return h4;
    18621850}
    1863 #else
     1851/*2
     1852*computes the quotient of h1,h2
     1853*/
    18641854ideal idQuot (ideal  h1, ideal h2, BOOLEAN h1IsStb, BOOLEAN resultIsIdeal)
    18651855{
     
    18771867    return res;
    18781868  }
    1879 
    1880   // the usual part:
    1881   ideal temph1;
    18821869  BITSET old_test=test;
    18831870  poly     p,q = NULL;
    18841871  int i,l,ll,k,kkk,kmax;
    1885   int j = 0;
    1886   int k1 = idRankFreeModule(h1);
    1887   int k2 = idRankFreeModule(h2);
    18881872  BOOLEAN  addOnlyOne=TRUE;
    18891873  tHomog   hom=isNotHomog;
    1890 
    1891   k=max(k1,k2);
    1892   if (k==0)
    1893   {
    1894     k = 1;
    1895     //resultIsIdeal=TRUE;
    1896   }
    1897   if ((k2==0) && (k>1)) addOnlyOne = FALSE;
    1898 
    1899   intvec * weights;
    1900   hom = (tHomog)idHomModule(h1,currQuotient,&weights);
    1901   if (addOnlyOne && (!h1IsStb))
    1902     temph1 = kStd(h1,currQuotient,hom,&weights,NULL);
    1903   else
    1904     temph1 = h1;
    1905   if (weights!=NULL) delete weights;
    1906   idTest(temph1);
    1907 
    1908   for (i=0; i<IDELEMS(h2); i++)
    1909   {
    1910     if (h2->m[i] != NULL)
    1911     {
    1912       p = pCopy(h2->m[i]);
    1913       if (k2 == 0)
    1914         pShift(&p,j*k+1);
    1915       else
    1916         pShift(&p,j*k);
    1917       q = pAdd(q,p);
    1918       j++;
    1919     }
    1920   }
    1921   kmax = j*k+1;
    1922 
     1874  intvec * weights1;
     1875
     1876  ideal s_h4 = idInitializeQuot (h1,h2,h1IsStb,&addOnlyOne,&kmax);
     1877  hom = (tHomog)idHomModule(s_h4,currQuotient,&weights1);
    19231878  ring orig_ring=currRing;
    19241879  ring syz_ring=rCurrRingAssureSyzComp();
    1925   pSetSyzComp(kmax-1);
    1926 
    1927   poly s_p = pOne();
    1928   pSetComp(s_p,kmax);
    1929   pSetmComp(s_p);
    1930 
    1931   poly s_q;
    1932   if (syz_ring==orig_ring)
    1933     s_q=pCopy(q);
    1934   else
    1935     s_q=pFetchCopy(orig_ring,q);
    1936 
    1937   ideal s_h4 = idInit(16,kmax);
    1938   s_q = pAdd(s_q,s_p);
    1939   s_h4->m[0] = s_q;
    1940   if (k2 == 0)
    1941   {
    1942     if (k > IDELEMS(s_h4))
    1943     {
    1944       pEnlargeSet(&(s_h4->m),IDELEMS(s_h4),k-IDELEMS(s_h4));
    1945       IDELEMS(s_h4) = k;
    1946     }
    1947     for (i=1; i<k; i++)
    1948     {
    1949       s_p = pCopy(s_h4->m[i-1]);
    1950       pShift(&s_p,1);
    1951       s_h4->m[i] = s_p;
    1952     }
    1953   }
    1954 
    1955   kkk = IDELEMS(s_h4);
    1956   i = IDELEMS(temph1);
    1957   while ((i>0) && (temph1->m[i-1]==NULL)) i--;
    1958   for (l=0; l<i; l++)
    1959   {
    1960     if(temph1->m[l]!=NULL)
    1961     {
    1962       for (ll=0; ll<j; ll++)
    1963       {
    1964         if (syz_ring==orig_ring)
    1965           s_p = pCopy(temph1->m[l]);
    1966         else
    1967           s_p=pFetchCopy(orig_ring,temph1->m[l]);
    1968         if (k1 == 0)
    1969           pShift(&s_p,ll*k+1);
    1970         else
    1971           pShift(&s_p,ll*k);
    1972         if (kkk >= IDELEMS(s_h4))
    1973         {
    1974           pEnlargeSet(&(s_h4->m),IDELEMS(s_h4),16);
    1975           IDELEMS(s_h4) += 16;
    1976         }
    1977         s_h4->m[kkk] = s_p;
    1978         kkk++;
    1979       }
    1980     }
    1981   }
    1982 
    1983   if (addOnlyOne)
    1984   {
    1985     s_p = s_h4->m[0];
    1986     for (i=0;i<IDELEMS(s_h4)-1;i++)
    1987     {
    1988       s_h4->m[i] = s_h4->m[i+1];
    1989     }
    1990     s_h4->m[IDELEMS(s_h4)-1] = s_p;
    1991     idSkipZeroes(s_h4);
    1992     test |= Sy_bit(OPT_SB_1);
    1993   }
    1994   idTest(s_h4);
    1995   intvec * weights1;
    1996   hom = (tHomog)idHomModule(s_h4,currQuotient,&weights1);
     1880  rSetSyzComp(kmax-1);
     1881  if (orig_ring!=syz_ring)
     1882    s_h4 = idrMoveR_NoSort(s_h4,syz_ring);
     1883
    19971884  ideal s_h3;
    19981885  if (addOnlyOne)
     
    20081895  idDelete(&s_h4);
    20091896
    2010   pSetSyzComp(0);
     1897
     1898  for (i=0;i<IDELEMS(s_h3);i++)
     1899  {
     1900    if ((s_h3->m[i]!=NULL) && (pGetComp(s_h3->m[i])>=kmax))
     1901    {
     1902      if (resultIsIdeal)
     1903        pShift(&s_h3->m[i],-kmax);
     1904      else
     1905        pShift(&s_h3->m[i],-kmax+1);
     1906    }
     1907    else
     1908      pDelete(&s_h3->m[i]);
     1909  }
     1910  if (resultIsIdeal)
     1911    s_h3->rank = 1;
     1912  else
     1913    s_h3->rank = h1->rank;
    20111914  if(syz_ring!=orig_ring)
    20121915  {
     1916//    pDelete(&q);
    20131917    rChangeCurrRing(orig_ring,TRUE);
    2014     pDelete(&q);
    2015   }
    2016 
    2017   ideal h3=idRingCopy(s_h3,syz_ring);
    2018   for (i=0;i<IDELEMS(h3);i++)
    2019   {
    2020     if ((h3->m[i]!=NULL) && (pRingGetComp(syz_ring,s_h3->m[i])>=kmax))
    2021     {
    2022       if (resultIsIdeal)
    2023         pShift(&h3->m[i],-kmax);
    2024       else
    2025         pShift(&h3->m[i],-kmax+1);
    2026     }
    2027     else
    2028       pDelete(&h3->m[i]);
    2029   }
    2030   if (resultIsIdeal)
    2031     h3->rank = 1;
    2032   else
    2033     h3->rank = h1->rank;
    2034   if(syz_ring!=orig_ring)
    2035   {
    2036     rChangeCurrRing(syz_ring,FALSE);
    2037     idDelete(&s_h3);
    2038     rChangeCurrRing(orig_ring,TRUE);
     1918    s_h3 = idrMoveR_NoSort(s_h3, syz_ring);
    20391919    rKill(syz_ring);
    20401920  }
    2041   idSkipZeroes(h3);
    2042   if ((addOnlyOne) && (!h1IsStb))
    2043     idDelete(&temph1);
     1921  idSkipZeroes(s_h3);
    20441922  test = old_test;
    2045   idTest(h3);
    2046   return h3;
    2047 }
    2048 #endif
     1923  idTest(s_h3);
     1924  return s_h3;
     1925}
    20491926
    20501927/*2
     
    23152192  h = idInit(IDELEMS(h1),1);
    23162193  // fetch data from the old ring
    2317   for (k=0;k<IDELEMS(h1);k++) h->m[k] = pFetchCopy(origR, h1->m[k]);
     2194  for (k=0;k<IDELEMS(h1);k++) h->m[k] = prCopyR( h1->m[k], origR);
    23182195  // compute kStd
    23192196  hh = kStd(h,NULL,hom,&w,hilb);
     
    23382215        IDELEMS(h3) += 16;
    23392216      }
    2340       h3->m[j] = pFetchCopy(&tmpR, hh->m[k]);
     2217      h3->m[j] = prCopyR( hh->m[k], &tmpR);
    23412218    }
    23422219  }
     
    29272804}
    29282805
     2806/*3
     2807*handles for some ideal operations the ring/syzcomp managment
     2808*returns all syzygies (componentwise-)shifted by -syzcomp
     2809*or -syzcomp-1 (in case of ideals as input)
     2810static ideal idHandleIdealOp(ideal arg,int syzcomp,int isIdeal=FALSE)
     2811{
     2812  ring orig_ring=currRing;
     2813  ring syz_ring=rCurrRingAssureSyzComp();
     2814  rSetSyzComp(length);
     2815
     2816  ideal s_temp;
     2817  if (orig_ring!=syz_ring)
     2818    s_temp=idrMoveR_NoSort(arg,orig_ring);
     2819  else
     2820    s_temp=arg;
     2821
     2822  ideal s_temp1 = kStd(s_temp,currQuotient,testHomog,&w,NULL,length);
     2823  if (w!=NULL) delete w;
     2824
     2825  if (syz_ring!=orig_ring)
     2826  {
     2827    idDelete(&s_temp);
     2828    rChangeCurrRing(orig_ring,TRUE);
     2829  }
     2830
     2831  idDelete(&temp);
     2832  ideal temp1=idRingCopy(s_temp1,syz_ring);
     2833
     2834  if (syz_ring!=orig_ring)
     2835  {
     2836    rChangeCurrRing(syz_ring,FALSE);
     2837    idDelete(&s_temp1);
     2838    rChangeCurrRing(orig_ring,TRUE);
     2839    rKill(syz_ring);
     2840  }
     2841
     2842  for (i=0;i<IDELEMS(temp1);i++)
     2843  {
     2844    if ((temp1->m[i]!=NULL)
     2845    && (pGetComp(temp1->m[i])<=length))
     2846    {
     2847      pDelete(&(temp1->m[i]));
     2848    }
     2849    else
     2850    {
     2851      pShift(&(temp1->m[i]),-length);
     2852    }
     2853  }
     2854  temp1->rank = rk;
     2855  idSkipZeroes(temp1);
     2856
     2857  return temp1;
     2858}
     2859*/
    29292860/*2
    29302861* represents (h1+h2)/h2=h1/(h1 intersect h2)
     
    29812912  ring orig_ring=currRing;
    29822913  ring syz_ring=rCurrRingAssureSyzComp();
    2983   pSetSyzComp(length);
    2984 
    2985   ideal s_temp=idRingCopy(temp,orig_ring);
    2986 
     2914  rSetSyzComp(length);
     2915  ideal s_temp;
     2916 
     2917  if (syz_ring != orig_ring)
     2918  {
     2919    s_temp = idrCopyR_NoSort(temp, orig_ring);
     2920  }
     2921  else
     2922  {
     2923    s_temp = temp;
     2924  }
     2925 
    29872926  ideal s_temp1 = kStd(s_temp,currQuotient,testHomog,&w,NULL,length);
    2988   idDelete(&s_temp);
    29892927  if (w!=NULL) delete w;
    29902928
     2929  for (i=0;i<IDELEMS(s_temp1);i++)
     2930  {
     2931    if ((s_temp1->m[i]!=NULL)
     2932    && (pGetComp(s_temp1->m[i])<=length))
     2933    {
     2934      pDelete(&(s_temp1->m[i]));
     2935    }
     2936    else
     2937    {
     2938      pShift(&(s_temp1->m[i]),-length);
     2939    }
     2940  }
     2941  s_temp1->rank = rk;
     2942  idSkipZeroes(s_temp1);
     2943
    29912944  if (syz_ring!=orig_ring)
    29922945  {
    29932946    rChangeCurrRing(orig_ring,TRUE);
    2994   }
    2995   pSetSyzComp(0);
    2996 
    2997   idDelete(&temp);
    2998   ideal temp1=idRingCopy(s_temp1,syz_ring);
    2999 
    3000   if (syz_ring!=orig_ring)
    3001   {
    3002     rChangeCurrRing(syz_ring,FALSE);
    3003     idDelete(&s_temp1);
    3004     rChangeCurrRing(orig_ring,TRUE);
     2947    s_temp = idrMoveR_NoSort(s_temp, syz_ring);
     2948    idDelete(&temp);
    30052949    rKill(syz_ring);
    30062950  }
    3007 
    3008   for (i=0;i<IDELEMS(temp1);i++)
    3009   {
    3010     if ((temp1->m[i]!=NULL)
    3011     && (pGetComp(temp1->m[i])<=length))
    3012     {
    3013       pDelete(&(temp1->m[i]));
    3014     }
    3015     else
    3016     {
    3017       pShift(&(temp1->m[i]),-length);
    3018     }
    3019   }
    3020   temp1->rank = rk;
    3021   idSkipZeroes(temp1);
    3022 
    3023   return temp1;
     2951  return s_temp1;
    30242952}
    30252953
     
    32293157}
    32303158
     3159/*3
     3160* searches for units in the components of the module arg and
     3161* returns the first one
     3162*/
     3163static int idReadOutUnits(ideal arg,int* comp)
     3164{
     3165  if (idIs0(arg)) return -1;
     3166  int i=0,j,rk_arg=idRankFreeModule(arg),generator=-1;
     3167  intvec * componentIsUsed =new intvec(rk_arg+1);
     3168  poly p,q;
     3169
     3170  while ((i<IDELEMS(arg)) && (generator<0))
     3171  {
     3172    for (j=rk_arg;j>=0;j--)
     3173      (*componentIsUsed)[j]=0;
     3174    p = arg->m[i];
     3175    while (p!=NULL)
     3176    {
     3177      j = pGetComp(p);
     3178      if ((*componentIsUsed)[j]==0)
     3179      {
     3180        if (pIsConstantComp(p))
     3181        {
     3182          generator = i;
     3183          (*componentIsUsed)[j] = 1;
     3184        }
     3185        else
     3186        {
     3187          (*componentIsUsed)[j] = -1;
     3188        }
     3189      }
     3190      else if ((*componentIsUsed)[j]>0)
     3191      {
     3192        ((*componentIsUsed)[j])++;
     3193      }
     3194      pIter(p);
     3195    }
     3196    i++;
     3197  }
     3198  i = 0;
     3199  *comp = -1;
     3200  for (j=0;j<=rk_arg;j++)
     3201  {
     3202    if ((*componentIsUsed)[j]>0)
     3203    {
     3204      if ((*comp==-1) || ((*componentIsUsed)[j]<i))
     3205      {
     3206        *comp = j;
     3207        i= (*componentIsUsed)[j];
     3208      }
     3209    }
     3210  }
     3211  return generator;
     3212}
     3213
     3214static void idDeleteComp(ideal arg,int red_comp)
     3215{
     3216  int i,j;
     3217  poly p;
     3218
     3219  for (i=IDELEMS(arg)-1;i>=0;i--)
     3220  {
     3221    p = arg->m[i];
     3222    while (p!=NULL)
     3223    {
     3224      j = pGetComp(p);
     3225      if (j>red_comp)
     3226      {
     3227        pSetComp(p,j-1);
     3228        pSetm(p);
     3229      }
     3230      pIter(p);
     3231    }
     3232  }
     3233  (arg->rank)--;
     3234}
     3235
    32313236/*2
    32323237* returns the presentation of an isomorphic, minimally
    32333238* embedded  module
    32343239*/
    3235 ideal idMinEmbedding(ideal arg)
     3240ideal idMinEmbedding(ideal arg,BOOLEAN inPlace)
    32363241{
    32373242  if (idIs0(arg)) return idInit(1,arg->rank);
    3238 
    3239   int i,j,k,pC;
    3240   poly p,q;
    3241   int rg=arg->rank;
    3242   ideal res = idCopy(arg);
    3243   intvec *indexMap=NewIntvec1(rg+1);
    3244   intvec *toKill=NewIntvec1(rg+1);
    3245 
     3243  int next_gen,next_comp;
     3244  ideal res=arg;
     3245
     3246  if (!inPlace) res = idCopy(arg);
    32463247  loop
    32473248  {
    3248     k = 0;
    3249     for (i=indexMap->length()-1;i>0;i--)
    3250     {
    3251       (*indexMap)[i] = i;
    3252       (*toKill)[i] = 0;
    3253     }
    3254     for (j=IDELEMS(res)-1;j>=0;j--)
    3255     {
    3256       if ((res->m[j]!=NULL) && (pIsConstantComp(res->m[j])) &&
    3257            (pNext(res->m[j])==NULL))
    3258       {
    3259         pC = pGetComp(res->m[j]);
    3260         if ((*toKill)[pC]==0)
    3261         {
    3262           rg--;
    3263           (*toKill)[pC] = 1;
    3264           for (i=indexMap->length()-1;i>=pC;i--)
    3265             (*indexMap)[i]--;
    3266         }
    3267         pDelete(&(res->m[j]));
    3268         k++;
    3269       }
    3270     }
    3271     idSkipZeroes(res);
    3272     if (k==0) break;
    3273     if (rg>0)
    3274     {
    3275       res->rank=rg;
    3276       for (j=IDELEMS(res)-1;j>=0;j--)
    3277       {
    3278         while ((res->m[j]!=NULL) && ((*toKill)[pGetComp(res->m[j])]==1))
    3279           pDelete1(&res->m[j]);
    3280         p = res->m[j];
    3281         while ((p!=NULL) && (pNext(p)!=NULL))
    3282         {
    3283           pSetComp(p,(*indexMap)[pGetComp(p)]);
    3284           pSetmComp(p);
    3285           while ((pNext(p)!=NULL) && ((*toKill)[pGetComp(pNext(p))]==1))
    3286             pDelete1(&pNext(p));
    3287           pIter(p);
    3288         }
    3289         if (p!=NULL)
    3290         {
    3291           pSetComp(p,(*indexMap)[pGetComp(p)]);
    3292           pSetmComp(p);
    3293         }
    3294       }
    3295       idSkipZeroes(res);
    3296     }
    3297     else
    3298     {
    3299       idDelete(&res);
    3300       res=idFreeModule(1);
    3301       break;
    3302     }
    3303   }
    3304   delete toKill;
    3305   delete indexMap;
     3249    next_gen = idReadOutUnits(res,&next_comp);
     3250    if (next_gen<0) break;
     3251    syGaussForOne(res,next_gen,next_comp,0,IDELEMS(res));
     3252    idDeleteComp(res,next_comp);
     3253  }
     3254  idSkipZeroes(res);
    33063255  return res;
    33073256}
  • Singular/ideals.h

    r57e94c4 r416465  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: ideals.h,v 1.12 1999-10-19 12:42:42 obachman Exp $ */
     6/* $Id: ideals.h,v 1.13 1999-11-15 17:20:07 obachman Exp $ */
    77/*
    88* ABSTRACT - all basic methods to manipulate ideals
     
    2121  /*- deletes an ideal -*/
    2222#endif
     23void idPrint(ideal id);
    2324  /*- initialise an ideal -*/
    2425ideal idMaxIdeal (int deg);
     
    8081ideal   idMultSect(resolvente arg, int length);
    8182
    82 ideal   idSyzygies (ideal h1,ideal quot, tHomog h,intvec **w);
    83 ideal   idSyzygies (ideal h1,ideal quot, tHomog h,intvec **w,
    84            BOOLEAN setRegularity, int &deg);
    85 ideal   idLiftStd  (ideal h1, ideal quot, matrix *m, tHomog h=testHomog);
     83//ideal   idSyzygies (ideal h1, tHomog h,intvec **w);
     84ideal   idSyzygies (ideal h1, tHomog h,intvec **w, BOOLEAN setSyzComp=TRUE,
     85                    BOOLEAN setRegularity=FALSE, int &deg=0);
     86ideal   idLiftStd  (ideal h1, matrix *m, tHomog h=testHomog);
    8687
    8788ideal   idLift (ideal mod, ideal sumod);
     
    102103ideal   idCompactify(ideal id);
    103104
    104 ideal   idMinEmbedding(ideal arg);
     105ideal idMinEmbedding(ideal arg,BOOLEAN inPlace=FALSE);
    105106
    106107ideal   idHead(ideal h);
  • Singular/intvec.cc

    r57e94c4 r416465  
    22*  Computer Algebra System SINGULAR      *
    33*****************************************/
    4 /* $Id: intvec.cc,v 1.15 1999-10-22 11:14:10 obachman Exp $ */
     4/* $Id: intvec.cc,v 1.16 1999-11-15 17:20:07 obachman Exp $ */
    55/*
    66* ABSTRACT: class intvec: lists/vectors of integers
     
    7474#endif // ! MDEBUG
    7575
     76
    7677intvec::intvec(intvec* iv)
    7778{
     
    163164  }
    164165  return StringAppendS("");
     166}
     167
     168void intvec::resize(int new_length)
     169{
     170  assume(new_length > 0 && col == 1);
     171  v = (int*) ReAlloc0(v, row*sizeof(int), new_length*sizeof(int));
     172  row = new_length;
    165173}
    166174
  • Singular/intvec.h

    r57e94c4 r416465  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: intvec.h,v 1.11 1999-10-26 15:06:10 obachman Exp $ */
     6/* $Id: intvec.h,v 1.12 1999-11-15 17:20:07 obachman Exp $ */
    77/*
    88* ABSTRACT: class intvec: lists/vectors of integers
     
    5151  intvec(int r, int c, int init);
    5252  intvec(intvec* iv);
    53  
     53
     54  void resize(int new_length);
    5455  int range(int i)
    5556    { return ((i<row) && (i>=0) && (col==1)); }
  • Singular/iparith.cc

    r57e94c4 r416465  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: iparith.cc,v 1.185 1999-11-11 16:03:31 Singular Exp $ */
     4/* $Id: iparith.cc,v 1.186 1999-11-15 17:20:08 obachman Exp $ */
    55
    66/*
     
    17481748  idhdl h=(idhdl)v->data;
    17491749  // CopyD for IDEAL_CMD and MODUL_CMD are identical:
    1750   res->data = (char *)idLiftStd((ideal)u->Data(), currQuotient,
    1751               &(h->data.umatrix),testHomog);
     1750  res->data = (char *)idLiftStd((ideal)u->Data(),
     1751                                &(h->data.umatrix),testHomog);
    17521752  setFlag(res,FLAG_STD);
    17531753  return FALSE;
     
    30353035{
    30363036  intvec *w=NULL;
    3037   res->data = (char *)idSyzygies((ideal)v->Data(),currQuotient,testHomog,&w);
     3037  res->data = (char *)idSyzygies((ideal)v->Data(),testHomog,&w);
    30383038  if (w!=NULL) delete w;
    30393039  return FALSE;
  • Singular/ipassign.cc

    r57e94c4 r416465  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: ipassign.cc,v 1.51 1999-10-22 11:14:12 obachman Exp $ */
     4/* $Id: ipassign.cc,v 1.52 1999-11-15 17:20:09 obachman Exp $ */
    55
    66/*
  • Singular/ipconv.cc

    r57e94c4 r416465  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: ipconv.cc,v 1.20 1999-10-22 11:14:12 obachman Exp $ */
     4/* $Id: ipconv.cc,v 1.21 1999-11-15 17:20:09 obachman Exp $ */
    55/*
    66* ABSTRACT: automatic type conversions
  • Singular/ipconv.h

    r57e94c4 r416465  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: ipconv.h,v 1.3 1997-04-09 12:19:49 Singular Exp $ */
     6/* $Id: ipconv.h,v 1.4 1999-11-15 17:20:10 obachman Exp $ */
    77/*
    88* ABSTRACT: interpreter: converting types
  • Singular/ipid.cc

    r57e94c4 r416465  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: ipid.cc,v 1.38 1999-10-27 15:04:44 Singular Exp $ */
     4/* $Id: ipid.cc,v 1.39 1999-11-15 17:20:10 obachman Exp $ */
    55
    66/*
  • Singular/ipid.h

    r57e94c4 r416465  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: ipid.h,v 1.27 1999-10-14 14:27:09 obachman Exp $ */
     6/* $Id: ipid.h,v 1.28 1999-11-15 17:20:10 obachman Exp $ */
    77/*
    88* ABSTRACT: identfier handling
  • Singular/iplib.cc

    r57e94c4 r416465  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: iplib.cc,v 1.67 1999-11-06 15:07:56 obachman Exp $ */
     4/* $Id: iplib.cc,v 1.68 1999-11-15 17:20:11 obachman Exp $ */
    55/*
    66* ABSTRACT: interpreter: LIB and help
  • Singular/ipprint.cc

    r57e94c4 r416465  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: ipprint.cc,v 1.14 1999-08-19 11:56:28 Singular Exp $ */
     4/* $Id: ipprint.cc,v 1.15 1999-11-15 17:20:11 obachman Exp $ */
    55/*
    66* ABSTRACT: interpreter: printing
  • Singular/ipprint.h

    r57e94c4 r416465  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: ipprint.h,v 1.4 1999-04-17 14:58:50 obachman Exp $ */
     6/* $Id: ipprint.h,v 1.5 1999-11-15 17:20:11 obachman Exp $ */
    77/*
    88* ABSTRACT: interpreter: printing
  • Singular/ipshell.cc

    r57e94c4 r416465  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: ipshell.cc,v 1.51 1999-10-25 18:21:51 Singular Exp $ */
     4/* $Id: ipshell.cc,v 1.52 1999-11-15 17:20:12 obachman Exp $ */
    55/*
    66* ABSTRACT:
  • Singular/ipshell.h

    r57e94c4 r416465  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: ipshell.h,v 1.22 1999-11-06 15:07:56 obachman Exp $ */
     6/* $Id: ipshell.h,v 1.23 1999-11-15 17:20:12 obachman Exp $ */
    77/*
    88* ABSTRACT
  • Singular/kbuckets.cc

    r57e94c4 r416465  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: kbuckets.cc,v 1.11 1999-10-19 14:03:50 obachman Exp $ */
     4/* $Id: kbuckets.cc,v 1.12 1999-11-15 17:20:12 obachman Exp $ */
    55
    66#include "mod2.h"
     
    1010#include "polys.h"
    1111#include "febase.h"
    12 #include "pProcs.h"
     12#include "prProcs.h"
    1313#include "kbuckets.h"
    1414#include "numbers.h"
     
    293293  for (i=2; i<=bucket->buckets_used; i++)
    294294  {
    295     p = p_Add_q(p, bucket->buckets[i],
    296                 &pl, bucket->buckets_length[i],
    297                 bucket->heap);
     295    p = pr_Add_q(p, bucket->buckets[i],
     296                 &pl, bucket->buckets_length[i]);
    298297    bucket->buckets[i] = NULL;
    299298    bucket->buckets_length[i] = 0;
     
    423422  for (i=0; i<= bucket->buckets_used; i++)
    424423    if (bucket->buckets[i] != NULL)
    425       bucket->buckets[i] = p_Mult_n(bucket->buckets[i], n);
     424      bucket->buckets[i] = pr_Mult_n(bucket->buckets[i], n);
    426425#else
    427   bucket->p = p_Mult_n(bucket->p, n);
     426  bucket->p = pr_Mult_n(bucket->p, n);
    428427#endif
    429428}
     
    458457  if (i <= bucket->buckets_used && bucket->buckets[i] != NULL)
    459458  {
    460     p1 = p_Minus_m_Mult_q(bucket->buckets[i], m, p1,
     459    p1 = pr_Minus_m_Mult_q(bucket->buckets[i], m, p1,
    461460                         spNoether,
    462                          &(bucket->buckets_length[i]), l1,
    463                          bucket->heap);
     461                         &(bucket->buckets_length[i]), l1);
    464462    l1 = bucket->buckets_length[i];
    465463    bucket->buckets[i] = NULL;
     
    468466    while (bucket->buckets[i] != NULL)
    469467    {
    470       p1 = p_Add_q(p1, bucket->buckets[i],
    471                    &l1, bucket->buckets_length[i],
    472                    bucket->heap);
     468      p1 = pr_Add_q(p1, bucket->buckets[i],
     469                   &l1, bucket->buckets_length[i]);
    473470      bucket->buckets[i] = NULL;
    474471      bucket->buckets_length[i] = 0;
     
    479476  {
    480477    pSetCoeff0(m, nNeg(pGetCoeff(m)));
    481     p1 = p_Mult_m(p1, m, spNoether, bucket->heap);
     478    p1 = pr_Mult_m(p1, m, spNoether);
    482479    pSetCoeff0(m, nNeg(pGetCoeff(m)));
    483480  }
     
    490487    kBucketAdjustBucketsUsed(bucket);
    491488#else // HAVE_PSEUDO_BUCKETS
    492   bucket->p = p_Minus_m_Mult_q(bucket->p, m,  p,
     489  bucket->p = pr_Minus_m_Mult_q(bucket->p, m,  p,
    493490                               &(bucket->l), l1,
    494                                spNoether, bucket->heap);
     491                               spNoether);
    495492#endif
    496493  kbTests(bucket);
     
    524521        bucket->buckets_length[i] -= lq;
    525522        assume(pLength(bucket->buckets[i]) == bucket->buckets_length[i]);
    526         p = p_Add_q(p, q, &lp, lq, bucket->heap);
     523        p = pr_Add_q(p, q, &lp, lq);
    527524      }
    528525    }
     
    556553      {
    557554        bucket->buckets_length[i] -= lq;
    558         p = p_Add_q(p, q, &lp, lq, bucket->heap);
     555        p = pr_Add_q(p, q, &lp, lq);
    559556      }
    560557    }
  • Singular/kbuckets.h

    r57e94c4 r416465  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: kbuckets.h,v 1.6 1999-10-14 14:27:11 obachman Exp $ */
     6/* $Id: kbuckets.h,v 1.7 1999-11-15 17:20:13 obachman Exp $ */
    77#include "mod2.h"
    88#include "structs.h"
  • Singular/khstd.cc

    r57e94c4 r416465  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: khstd.cc,v 1.9 1999-10-22 09:39:05 pohl Exp $ */
     4/* $Id: khstd.cc,v 1.10 1999-11-15 17:20:13 obachman Exp $ */
    55/*
    66* ABSTRACT:utils for hilbert driven kStd
  • Singular/khstd.h

    r57e94c4 r416465  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: khstd.h,v 1.3 1997-04-09 12:19:52 Singular Exp $ */
     6/* $Id: khstd.h,v 1.4 1999-11-15 17:20:13 obachman Exp $ */
    77/*
    88* ABSTRACT:hilbert driven std
  • Singular/kspoly.cc

    r57e94c4 r416465  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: kspoly.cc,v 1.5 1999-11-05 19:11:07 obachman Exp $ */
     4/* $Id: kspoly.cc,v 1.6 1999-11-15 17:20:14 obachman Exp $ */
    55/*
    66*  ABSTRACT -  Routines for Spoly creation and reductions
     
    99#include "kutil.h"
    1010#include "polys.h"
    11 #include "pProcs.h"
     11#include "prProcs.h"
    1212#include "numbers.h"
    1313
     
    6161    pSetCoeff(lm, bn);
    6262    if ((ct == 0) || (ct == 2))
    63       p1 = p_Mult_n(p1, an);
     63      p1 = pr_Mult_n(p1, an);
    6464    if (coef != NULL) *coef = an;
    6565    else nDelete(&an);
     
    7373  pMonSubFrom(lm, p2);
    7474
    75   PR->p = p_Minus_m_Mult_q(p1, lm, a2, spNoether);
     75  PR->p = pr_Minus_m_Mult_q(p1, lm, a2, spNoether);
    7676
    7777  pDelete1(&lm);
     
    138138
    139139  // get m2 * a2
    140   a2 = p_Mult_m(a2, m2, spNoether);
     140  a2 = pr_Mult_m(a2, m2, spNoether);
    141141
    142142  // and, finally, the spoly
    143   Pair->p = p_Minus_m_Mult_q(a2, m1, a1, spNoether);
     143  Pair->p = pr_Minus_m_Mult_q(a2, m1, a1, spNoether);
    144144 
    145145  // Clean-up time
     
    184184  {
    185185    pNext(Current) = NULL;
    186     p_Mult_n(Lp, coef);
     186    pr_Mult_n(Lp, coef);
    187187  }
    188188  nDelete(&coef);
  • Singular/kstd1.cc

    r57e94c4 r416465  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: kstd1.cc,v 1.46 1999-11-05 19:11:07 obachman Exp $ */
     4/* $Id: kstd1.cc,v 1.47 1999-11-15 17:20:14 obachman Exp $ */
    55/*
    66* ABSTRACT:
     
    9393  //pTest(*with);
    9494#endif
    95   assume(strat->syzComp == 0 ||
    96          pGetComp(h->p) <= strat->syzComp);
    9795  if (!TEST_OPT_INTSTRATEGY)
    9896    pNorm(*with);
     
    198196        if ((strat->syzComp>0) && (pMinComp((*h).p) > strat->syzComp))
    199197        {
    200           if (TEST_OPT_DEBUG) PrintS(" > sysComp\n");
     198          if (TEST_OPT_DEBUG) PrintS(" > syzComp\n");
    201199          return -2;
    202200        }
     
    255253  unsigned long not_sev;
    256254
    257   assume(strat->syzComp == 0 ||
    258          pGetComp(h->p) <= strat->syzComp);
    259 
    260255  if (TEST_OPT_CANCELUNIT) cancelunit(h);
    261256  d = pFDeg((*h).p)+(*h).ecart;
     
    359354        if ((strat->syzComp>0) && (pMinComp((*h).p) > strat->syzComp))
    360355        {
    361           if (TEST_OPT_DEBUG) PrintS(" > sysComp\n");
     356          if (TEST_OPT_DEBUG) PrintS(" > syzComp\n");
    362357          return -2;
    363358        }
    364         assume(pGetComp(h->p) <= strat->syzComp);
    365359
    366360      }
     
    469463        if ((strat->syzComp>0) && (pMinComp((*h).p) > strat->syzComp))
    470464        {
    471           if (TEST_OPT_DEBUG) PrintS(" > sysComp\n");
     465          if (TEST_OPT_DEBUG) PrintS(" > syzComp\n");
    472466          return -2;
    473467        }
     
    626620        if ((strat->syzComp>0) && (pMinComp((*h).p) > strat->syzComp))
    627621        {
    628           if (TEST_OPT_DEBUG) PrintS(" > sysComp\n");
     622          if (TEST_OPT_DEBUG) PrintS(" > syzComp\n");
    629623          return -2;
    630624        }
  • Singular/kstd1.h

    r57e94c4 r416465  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: kstd1.h,v 1.10 1999-10-19 14:03:50 obachman Exp $ */
     6/* $Id: kstd1.h,v 1.11 1999-11-15 17:20:15 obachman Exp $ */
    77/*
    88* ABSTRACT
  • Singular/kstd2.cc

    r57e94c4 r416465  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: kstd2.cc,v 1.38 1999-11-02 15:19:07 Singular Exp $ */
     4/* $Id: kstd2.cc,v 1.39 1999-11-15 17:20:15 obachman Exp $ */
    55/*
    66*  ABSTRACT -  Kernel: alg. of Buchberger
  • Singular/kstdfac.cc

    r57e94c4 r416465  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: kstdfac.cc,v 1.29 1999-11-02 17:15:31 Singular Exp $ */
     4/* $Id: kstdfac.cc,v 1.30 1999-11-15 17:20:15 obachman Exp $ */
    55/*
    66*  ABSTRACT -  Kernel: factorizing alg. of Buchberger
  • Singular/kstdfac.h

    r57e94c4 r416465  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: kstdfac.h,v 1.4 1998-05-14 13:04:18 Singular Exp $ */
     6/* $Id: kstdfac.h,v 1.5 1999-11-15 17:20:16 obachman Exp $ */
    77/*
    88*  ABSTRACT -  Kernel: factorizing alg. of Buchberger
  • Singular/kutil.cc

    r57e94c4 r416465  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: kutil.cc,v 1.48 1999-11-02 17:15:31 Singular Exp $ */
     4/* $Id: kutil.cc,v 1.49 1999-11-15 17:20:16 obachman Exp $ */
    55/*
    66* ABSTRACT: kernel: utils for kStd
     
    24462446    wrp(strat->L[i].p);
    24472447    Print("  o:%d e:%d l:%d",
    2448      pGetOrder(strat->L[i].p),strat->L[i].ecart,strat->L[i].length);
     2448     pFDeg(strat->L[i].p),strat->L[i].ecart,strat->L[i].length);
    24492449  }
    24502450  PrintLn();
  • Singular/kutil.h

    r57e94c4 r416465  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: kutil.h,v 1.21 1999-11-02 15:19:08 Singular Exp $ */
     6/* $Id: kutil.h,v 1.22 1999-11-15 17:20:17 obachman Exp $ */
    77/*
    88* ABSTRACT: kernel: utils for kStd
  • Singular/libparse.h

    r57e94c4 r416465  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: libparse.h,v 1.10 1998-12-16 18:43:39 Singular Exp $ */
     6/* $Id: libparse.h,v 1.11 1999-11-15 17:20:17 obachman Exp $ */
    77/*
    88* ABSTRACT: lib parsing
  • Singular/libparse.l

    r57e94c4 r416465  
    33*  Computer Algebra System SINGULAR     *
    44****************************************/
    5 /* $Id: libparse.l,v 1.35 1999-07-21 19:52:52 obachman Exp $ */
     5/* $Id: libparse.l,v 1.36 1999-11-15 17:20:18 obachman Exp $ */
    66#include <stdio.h>
    77#include <string.h>
  • Singular/lists.cc

    r57e94c4 r416465  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: lists.cc,v 1.19 1999-10-15 16:07:08 obachman Exp $ */
     4/* $Id: lists.cc,v 1.20 1999-11-15 17:20:18 obachman Exp $ */
    55/*
    66* ABSTRACT: handling of the list type
  • Singular/lists.h

    r57e94c4 r416465  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: lists.h,v 1.11 1999-10-15 16:07:08 obachman Exp $ */
     6/* $Id: lists.h,v 1.12 1999-11-15 17:20:19 obachman Exp $ */
    77/*
    88* ABSTRACT: handling of the list type
  • Singular/longalg.cc

    r57e94c4 r416465  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: longalg.cc,v 1.37 1999-10-26 16:40:45 Singular Exp $ */
     4/* $Id: longalg.cc,v 1.38 1999-11-15 17:20:19 obachman Exp $ */
    55/*
    66* ABSTRACT:   algebraic numbers
  • Singular/longalg.h

    r57e94c4 r416465  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: longalg.h,v 1.11 1999-11-02 15:19:08 Singular Exp $ */
     6/* $Id: longalg.h,v 1.12 1999-11-15 17:20:19 obachman Exp $ */
    77/*
    88* ABSTRACT:   algebraic numbers
  • Singular/longrat.cc

    r57e94c4 r416465  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: longrat.cc,v 1.24 1999-10-14 14:27:15 obachman Exp $ */
     4/* $Id: longrat.cc,v 1.25 1999-11-15 17:20:20 obachman Exp $ */
    55/*
    66* ABSTRACT: computation with long rational numbers (Hubert Grassmann)
  • Singular/longrat.h

    r57e94c4 r416465  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: longrat.h,v 1.14 1999-10-14 14:27:16 obachman Exp $ */
     6/* $Id: longrat.h,v 1.15 1999-11-15 17:20:20 obachman Exp $ */
    77/*
    88* ABSTRACT: computation with long rational numbers
  • Singular/longrat0.cc

    r57e94c4 r416465  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: longrat0.cc,v 1.9 1999-10-14 14:27:16 obachman Exp $ */
     4/* $Id: longrat0.cc,v 1.10 1999-11-15 17:20:21 obachman Exp $ */
    55/*
    66* ABSTRACT -
  • Singular/maps.cc

    r57e94c4 r416465  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: maps.cc,v 1.20 1999-10-14 14:27:16 obachman Exp $ */
     4/* $Id: maps.cc,v 1.21 1999-11-15 17:20:21 obachman Exp $ */
    55/*
    66* ABSTRACT - the mapping of polynomials to other rings
     
    2121#include "longalg.h"
    2222#include "maps.h"
     23#include "prCopy.h"
    2324
    2425/* debug output: Tok2Cmdname in maApplyFetch*/
     
    522523    case VECTOR_CMD:
    523524      if (what==FETCH_CMD)
    524         res->data=(void *)pFetchCopy(preimage_r, (poly)data);
     525        res->data=(void *)prCopyR( (poly)data, preimage_r);
    525526      else
    526527      if (what==IMAP_CMD)
     
    556557        for (i=R*C-1;i>=0;i--)
    557558        {
    558           m->m[i]=pFetchCopy(preimage_r,((ideal)data)->m[i]);
     559          m->m[i]=prCopyR(((ideal)data)->m[i], preimage_r);
    559560          pTest(m->m[i]);
    560561        }
  • Singular/maps.h

    r57e94c4 r416465  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: maps.h,v 1.7 1999-03-09 12:28:49 obachman Exp $ */
     6/* $Id: maps.h,v 1.8 1999-11-15 17:20:21 obachman Exp $ */
    77/*
    88* ABSTRACT - the mapping of polynomials to other rings
  • Singular/matpol.cc

    r57e94c4 r416465  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: matpol.cc,v 1.28 1999-10-14 14:27:17 obachman Exp $ */
     4/* $Id: matpol.cc,v 1.29 1999-11-15 17:20:22 obachman Exp $ */
    55
    66/*
  • Singular/matpol.h

    r57e94c4 r416465  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: matpol.h,v 1.9 1999-10-14 14:27:17 obachman Exp $ */
     6/* $Id: matpol.h,v 1.10 1999-11-15 17:20:22 obachman Exp $ */
    77/*
    88* ABSTRACT
  • Singular/mmalloc.c

    r57e94c4 r416465  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: mmalloc.c,v 1.19 1999-10-22 16:31:21 obachman Exp $ */
     4/* $Id: mmalloc.c,v 1.20 1999-11-15 17:20:22 obachman Exp $ */
    55
    66/*
  • Singular/mmbt.c

    r57e94c4 r416465  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: mmbt.c,v 1.20 1999-10-25 18:21:52 Singular Exp $ */
     4/* $Id: mmbt.c,v 1.21 1999-11-15 17:20:23 obachman Exp $ */
    55/*
    66* ABSTRACT: backtrace: part of memory subsystem (for linux/elf)
  • Singular/mmbt.h

    r57e94c4 r416465  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: mmbt.h,v 1.6 1999-10-22 11:14:14 obachman Exp $ */
     6/* $Id: mmbt.h,v 1.7 1999-11-15 17:20:23 obachman Exp $ */
    77/*
    88* ABSTRACT: backtrace: part of memory subsystem (for linux/elf)
  • Singular/mmcheck.c

    r57e94c4 r416465  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: mmcheck.c,v 1.16 1999-11-05 19:11:08 obachman Exp $ */
     4/* $Id: mmcheck.c,v 1.17 1999-11-15 17:20:23 obachman Exp $ */
    55
    66/*
  • Singular/mmemory.h

    r57e94c4 r416465  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: mmemory.h,v 1.30 1999-10-26 15:06:11 obachman Exp $ */
     6/* $Id: mmemory.h,v 1.31 1999-11-15 17:20:24 obachman Exp $ */
    77/*
    88* ABSTRACT
  • Singular/mmheap.c

    r57e94c4 r416465  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: mmheap.c,v 1.15 1999-10-26 15:06:11 obachman Exp $ */
     4/* $Id: mmheap.c,v 1.16 1999-11-15 17:20:24 obachman Exp $ */
    55#include <stdio.h>
    66#include "mod2.h"
     
    9999
    100100  page = heap->pages;
    101  
     101
     102#if 0 
    102103  while(page != NULL)
    103104  {
     
    106107    page = next_page;
    107108  }
     109#endif
    108110  heap->current = NULL;
    109111  heap->pages = NULL;
     
    282284int mmNumberOfFreeHeapBlocks(memHeap heap)
    283285{
    284   mmListLength(heap->current);
     286  return mmListLength(heap->current);
    285287}
    286288
  • Singular/mminit.cc

    r57e94c4 r416465  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: mminit.cc,v 1.16 1999-09-24 16:39:46 Singular Exp $ */
     4/* $Id: mminit.cc,v 1.17 1999-11-15 17:20:25 obachman Exp $ */
    55/*
    66* ABSTRACT: init of memory management
  • Singular/mmisc.c

    r57e94c4 r416465  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: mmisc.c,v 1.21 1999-11-05 19:11:08 obachman Exp $ */
     4/* $Id: mmisc.c,v 1.22 1999-11-15 17:20:25 obachman Exp $ */
    55
    66/*
  • Singular/mmpage.c

    r57e94c4 r416465  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: mmpage.c,v 1.4 1999-10-19 14:55:40 obachman Exp $ */
     4/* $Id: mmpage.c,v 1.5 1999-11-15 17:20:25 obachman Exp $ */
    55
    66/*
  • Singular/mmprivate.h

    r57e94c4 r416465  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: mmprivate.h,v 1.15 1999-10-22 11:14:14 obachman Exp $ */
     6/* $Id: mmprivate.h,v 1.16 1999-11-15 17:20:26 obachman Exp $ */
    77/*
    88* ABSTRACT
  • Singular/mmtables.c

    r57e94c4 r416465  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: mmtables.c,v 1.6 1999-10-26 15:06:12 obachman Exp $ */
     4/* $Id: mmtables.c,v 1.7 1999-11-15 17:20:26 obachman Exp $ */
    55
    66/*
  • Singular/mod2.h.in

    r57e94c4 r416465  
    55 *          DO NOT EDIT!
    66 *
    7  *  Version: $Id: mod2.h.in,v 1.74 1999-11-15 12:53:27 obachman Exp $
     7 *  Version: $Id: mod2.h.in,v 1.75 1999-11-15 17:20:26 obachman Exp $
    88 *******************************************************************/
    99#ifndef MOD2_H
  • Singular/mod_raw.cc

    r57e94c4 r416465  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: mod_raw.cc,v 1.3 1999-09-22 12:03:33 hannes Exp $ */
     4/* $Id: mod_raw.cc,v 1.4 1999-11-15 17:20:28 obachman Exp $ */
    55/*
    66 * ABSTRACT: machine depend code for dynamic modules
  • Singular/mod_raw.h

    r57e94c4 r416465  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: mod_raw.h,v 1.2 1999-09-22 12:01:09 Singular Exp $ */
     6/* $Id: mod_raw.h,v 1.3 1999-11-15 17:20:28 obachman Exp $ */
    77/*
    88 * ABSTRACT: machine depend code for dynamic modules
  • Singular/modulop.cc

    r57e94c4 r416465  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: modulop.cc,v 1.13 1999-10-26 16:40:45 Singular Exp $ */
     4/* $Id: modulop.cc,v 1.14 1999-11-15 17:20:28 obachman Exp $ */
    55/*
    66* ABSTRACT: numbers modulo p (<=32003)
  • Singular/modulop.h

    r57e94c4 r416465  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: modulop.h,v 1.8 1999-10-26 16:40:46 Singular Exp $ */
     6/* $Id: modulop.h,v 1.9 1999-11-15 17:20:29 obachman Exp $ */
    77/*
    88* ABSTRACT: numbers modulo p (<=32003)
  • Singular/mpr_base.cc

    r57e94c4 r416465  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: mpr_base.cc,v 1.13 1999-10-26 15:06:12 obachman Exp $ */
     4/* $Id: mpr_base.cc,v 1.14 1999-11-15 17:20:29 obachman Exp $ */
    55
    66/*
  • Singular/mpr_base.h

    r57e94c4 r416465  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: mpr_base.h,v 1.3 1999-06-29 09:03:44 wenk Exp $ */
     6/* $Id: mpr_base.h,v 1.4 1999-11-15 17:20:30 obachman Exp $ */
    77
    88/*
  • Singular/mpr_global.h

    r57e94c4 r416465  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: mpr_global.h,v 1.7 1999-09-24 14:36:56 obachman Exp $ */
     6/* $Id: mpr_global.h,v 1.8 1999-11-15 17:20:30 obachman Exp $ */
    77
    88/*
  • Singular/mpr_inout.cc

    r57e94c4 r416465  
    33****************************************/
    44
    5 /* $Id: mpr_inout.cc,v 1.5 1999-10-14 14:27:23 obachman Exp $ */
     5/* $Id: mpr_inout.cc,v 1.6 1999-11-15 17:20:30 obachman Exp $ */
    66
    77/*
  • Singular/mpr_inout.h

    r57e94c4 r416465  
    55****************************************/
    66
    7 /* $Id: mpr_inout.h,v 1.4 1999-07-08 10:18:13 wenk Exp $ */
     7/* $Id: mpr_inout.h,v 1.5 1999-11-15 17:20:31 obachman Exp $ */
    88
    99/*
  • Singular/mpr_numeric.cc

    r57e94c4 r416465  
    33****************************************/
    44
    5 /* $Id: mpr_numeric.cc,v 1.5 1999-10-14 14:27:24 obachman Exp $ */
     5/* $Id: mpr_numeric.cc,v 1.6 1999-11-15 17:20:31 obachman Exp $ */
    66
    77/*
  • Singular/mpr_numeric.h

    r57e94c4 r416465  
    55****************************************/
    66
    7 /* $Id: mpr_numeric.h,v 1.3 1999-06-29 09:03:46 wenk Exp $ */
     7/* $Id: mpr_numeric.h,v 1.4 1999-11-15 17:20:31 obachman Exp $ */
    88
    99/*
  • Singular/mpsr.h

    r57e94c4 r416465  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: mpsr.h,v 1.16 1999-09-27 15:05:26 obachman Exp $ */
     4/* $Id: mpsr.h,v 1.17 1999-11-15 17:20:32 obachman Exp $ */
    55/***************************************************************
    66 *
  • Singular/mpsr_Error.cc

    r57e94c4 r416465  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: mpsr_Error.cc,v 1.10 1999-09-29 10:59:34 obachman Exp $ */
     4/* $Id: mpsr_Error.cc,v 1.11 1999-11-15 17:20:32 obachman Exp $ */
    55
    66/***************************************************************
  • Singular/mpsr_Get.cc

    r57e94c4 r416465  
    33****************************************/
    44
    5 /* $Id: mpsr_Get.cc,v 1.28 1999-10-22 11:14:16 obachman Exp $ */
     5/* $Id: mpsr_Get.cc,v 1.29 1999-11-15 17:20:32 obachman Exp $ */
    66/***************************************************************
    77 *
  • Singular/mpsr_Get.h

    r57e94c4 r416465  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: mpsr_Get.h,v 1.8 1999-10-14 14:27:24 obachman Exp $ */
     4/* $Id: mpsr_Get.h,v 1.9 1999-11-15 17:20:33 obachman Exp $ */
    55/***************************************************************
    66 *
  • Singular/mpsr_GetMisc.cc

    r57e94c4 r416465  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: mpsr_GetMisc.cc,v 1.18 1999-10-14 14:27:25 obachman Exp $ */
     4/* $Id: mpsr_GetMisc.cc,v 1.19 1999-11-15 17:20:33 obachman Exp $ */
    55
    66/***************************************************************
  • Singular/mpsr_GetPoly.cc

    r57e94c4 r416465  
    33****************************************/
    44
    5 /* $Id: mpsr_GetPoly.cc,v 1.25 1999-11-02 15:19:09 Singular Exp $ */
     5/* $Id: mpsr_GetPoly.cc,v 1.26 1999-11-15 17:20:33 obachman Exp $ */
    66
    77/***************************************************************
  • Singular/mpsr_Put.cc

    r57e94c4 r416465  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: mpsr_Put.cc,v 1.18 1999-10-14 14:27:26 obachman Exp $ */
     4/* $Id: mpsr_Put.cc,v 1.19 1999-11-15 17:20:34 obachman Exp $ */
    55
    66/***************************************************************
  • Singular/mpsr_Put.h

    r57e94c4 r416465  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: mpsr_Put.h,v 1.10 1998-12-18 11:11:42 obachman Exp $ */
     4/* $Id: mpsr_Put.h,v 1.11 1999-11-15 17:20:34 obachman Exp $ */
    55/***************************************************************
    66 *
  • Singular/mpsr_PutPoly.cc

    r57e94c4 r416465  
    33****************************************/
    44
    5 /* $Id: mpsr_PutPoly.cc,v 1.17 1999-10-14 14:27:26 obachman Exp $ */
     5/* $Id: mpsr_PutPoly.cc,v 1.18 1999-11-15 17:20:34 obachman Exp $ */
    66
    77/***************************************************************
  • Singular/mpsr_Tok.cc

    r57e94c4 r416465  
    33****************************************/
    44
    5 /* $Id: mpsr_Tok.cc,v 1.23 1999-09-27 15:05:28 obachman Exp $ */
     5/* $Id: mpsr_Tok.cc,v 1.24 1999-11-15 17:20:35 obachman Exp $ */
    66
    77/***************************************************************
  • Singular/mpsr_Tok.h

    r57e94c4 r416465  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: mpsr_Tok.h,v 1.3 1998-12-18 11:11:43 obachman Exp $ */
     4/* $Id: mpsr_Tok.h,v 1.4 1999-11-15 17:20:35 obachman Exp $ */
    55
    66/***************************************************************
  • Singular/ndbm.cc

    r57e94c4 r416465  
    55//**************************************************************************/
    66//
    7 // $Id: ndbm.cc,v 1.11 1999-07-14 15:30:51 Singular Exp $
     7// $Id: ndbm.cc,v 1.12 1999-11-15 17:20:36 obachman Exp $
    88//
    99//**************************************************************************/
  • Singular/ndbm.h

    r57e94c4 r416465  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: ndbm.h,v 1.1 1997-08-08 12:59:29 obachman Exp $ */
     6/* $Id: ndbm.h,v 1.2 1999-11-15 17:20:36 obachman Exp $ */
    77/*
    88* ABSTRACT: DBM
  • Singular/numbers.cc

    r57e94c4 r416465  
    22*  Computer Algebra System SINGULAR      *
    33*****************************************/
    4 /* $Id: numbers.cc,v 1.21 1999-10-26 16:40:46 Singular Exp $ */
     4/* $Id: numbers.cc,v 1.22 1999-11-15 17:20:36 obachman Exp $ */
    55
    66/*
  • Singular/numbers.h

    r57e94c4 r416465  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: numbers.h,v 1.11 1999-10-26 16:40:46 Singular Exp $ */
     6/* $Id: numbers.h,v 1.12 1999-11-15 17:20:37 obachman Exp $ */
    77/*
    88* ABSTRACT: interface to coefficient aritmetics
  • Singular/pcv.cc

    r57e94c4 r416465  
    22*  Computer Algebra System SINGULAR      *
    33*****************************************/
    4 /* $Id: pcv.cc,v 1.27 1999-10-14 14:27:27 obachman Exp $ */
     4/* $Id: pcv.cc,v 1.28 1999-11-15 17:20:38 obachman Exp $ */
    55/*
    66* ABSTRACT: conversion between polys and coef vectors
  • Singular/pcv.h

    r57e94c4 r416465  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: pcv.h,v 1.13 1999-06-11 17:13:33 mschulze Exp $ */
     4/* $Id: pcv.h,v 1.14 1999-11-15 17:20:38 obachman Exp $ */
    55/*
    66* ABSTRACT: conversion between polys and coef vectors
  • Singular/polys-comp.h

    r57e94c4 r416465  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: polys-comp.h,v 1.17 1999-10-22 11:14:16 obachman Exp $ */
     6/* $Id: polys-comp.h,v 1.18 1999-11-15 17:20:39 obachman Exp $ */
    77
    88/***************************************************************
     
    3333while (0)
    3434
    35 #define _pMonCmp(p1, p2, actionE, actionG, actionS)                         \
    36 do                                                                          \
    37 {                                                                           \
    38   register const u_s long* s1 = &(p1->exp.l[currRing->pCompLowIndex]); \
    39   register const u_s long* s2 = &(p2->exp.l[currRing->pCompLowIndex]); \
    40   int _l = currRing->pCompLSize;                                            \
    41   register int _i;                                                          \
    42   _memcmp(s1, s2, _i, _l, actionE, goto _NotEqual);                         \
    43                                                                             \
    44   _NotEqual:                                                                \
    45   if (currRing->ordsgn[_i] != 1)                                            \
    46   {                                                                         \
    47     if (s2[_i] > s1[_i]) actionG;                                           \
    48     actionS;                                                                \
    49   }                                                                         \
    50   if (s1[_i] > s2[_i]) actionG;                                             \
    51   actionS;                                                                  \
    52 }                                                                           \
     35#define _prMonCmp(p1, p2, r, actionE, actionG, actionS)         \
     36do                                                              \
     37{                                                               \
     38  register const u_s long* s1 = &(p1->exp.l[r->pCompLowIndex]); \
     39  register const u_s long* s2 = &(p2->exp.l[r->pCompLowIndex]); \
     40  int _l = r->pCompLSize;                                       \
     41  register int _i;                                              \
     42  _memcmp(s1, s2, _i, _l, actionE, goto _NotEqual);             \
     43                                                                \
     44  _NotEqual:                                                    \
     45  if (r->ordsgn[_i] != 1)                                       \
     46  {                                                             \
     47    if (s2[_i] > s1[_i]) actionG;                               \
     48    actionS;                                                    \
     49  }                                                             \
     50  if (s1[_i] > s2[_i]) actionG;                                 \
     51  actionS;                                                      \
     52}              &n