Changeset a70441f in git


Ignore:
Timestamp:
Apr 27, 2000, 12:07:30 PM (24 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'spielwiese', 'e7cc1ebecb61be8b9ca6c18016352af89940b21a')
Children:
e5f8ae07e0b41bb1b0e5aaaac2dad244e619d563
Parents:
eec9b2d2a332c04f20d743bdd4ccc107766fbc61
Message:
Windows and gcc 2.95 porting


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

Legend:

Unmodified
Added
Removed
  • Makefile.in

    reec9b2 ra70441f  
    121121        ${PERL} Tst/regress.cmd -r -s ${SINGULAR} Tst/Long/ok_l.lst
    122122
    123 
    124 
    125 
    126123##############################################################
    127124# distribution targets
  • Singular/LIB/general.lib

    reec9b2 ra70441f  
    1 // $Id: general.lib,v 1.25 2000-01-13 12:15:54 obachman Exp $
     1// $Id: general.lib,v 1.26 2000-04-27 10:07:13 obachman Exp $
    22//GMG, last modified 18.6.99
    33///////////////////////////////////////////////////////////////////////////////
    44
    5 version="$Id: general.lib,v 1.25 2000-01-13 12:15:54 obachman Exp $";
     5version="$Id: general.lib,v 1.26 2000-04-27 10:07:13 obachman Exp $";
    66info="
    77LIBRARY:  general.lib   PROCEDURES OF GENERAL TYPE
     
    980980   int rs;
    981981   int i;
    982    string fn = "/tmp/which_" + string(system("pid"));
     982   string fn = "which_" + string(system("pid"));
    983983   string pn;
     984   string cmd;
    984985   if( typeof(command) != "string")
    985986   {
    986987     return (pn);
    987988   }
    988    i = system("sh", "which " + command + " > " + fn);
     989   if (system("uname") != "ix86-Win")
     990   {
     991     cmd = "which ";
     992   }
     993   else
     994   {
     995     // unfortunately, it does not take -path
     996     cmd = "type ";
     997   }
     998   i = system("sh", cmd + command + " > " + fn);
    989999   pn = read(fn);
    990    pn[size(pn)] = "";
    991    i = 1;
    992    while ((pn[i] != " ") and (pn[i] != ""))
    993    {
    994      i = i+1;
    995    }
    996    if (pn[i] == " ") {pn[i] = "";}
    997    rs = system("sh", "ls " + pn + " > " + fn + " 2>&1 ");
     1000   if (system("uname") != "ix86-Win")
     1001   {
     1002     // TBC: Hmm... should parse output to get rid of 'command is '
     1003     pn[size(pn)] = "";
     1004     i = 1;
     1005     while ((pn[i] != " ") and (pn[i] != ""))
     1006     {
     1007       i = i+1;
     1008     }
     1009     if (pn[i] == " ") {pn[i] = "";}
     1010     rs = system("sh", "ls " + pn + " > " + fn + " 2>&1 ");
     1011   }
     1012   else
     1013   {
     1014     rs = 0;
     1015   }
    9981016   i = system("sh", "rm " + fn);
    9991017   if (rs == 0) {return (pn);}
     
    10061024example
    10071025{  "EXAMPLE:"; echo = 2;
    1008     which("Singular");
    1009 }
    1010 ///////////////////////////////////////////////////////////////////////////////
     1026    which("sh");
     1027}
     1028///////////////////////////////////////////////////////////////////////////////
  • Singular/LIB/inout.lib

    reec9b2 ra70441f  
    1 // $Id: inout.lib,v 1.13 1999-09-21 17:32:16 Singular Exp $
     1// $Id: inout.lib,v 1.14 2000-04-27 10:07:13 obachman Exp $
    22// (GMG/BM, last modified 22.06.96)
    33///////////////////////////////////////////////////////////////////////////////
    44
    5 version="$Id: inout.lib,v 1.13 1999-09-21 17:32:16 Singular Exp $";
     5version="$Id: inout.lib,v 1.14 2000-04-27 10:07:13 obachman Exp $";
    66info="
    77LIBRARY:  inout.lib     PROCEDURES FOR MANIPULATING IN- AND OUTPUT
     
    307307   return(s0);
    308308}
     309/* This is broken under ix86-Win
    309310example
    310311{  "EXAMPLE:"; echo = 2;
     
    338339   rMacaulay(s2);
    339340}
     341*/
     342
    340343///////////////////////////////////////////////////////////////////////////////
    341344
  • Singular/Makefile.in

    reec9b2 ra70441f  
    1313SINGULAR                = @SINGULAR@
    1414SINGUNAME               = @SINGUNAME@
    15 
     15EXEC_EXT                = @EXEC_EXT@
    1616##
    1717## various paths
     
    3636CXX             = @CXX@
    3737LEX             = @LEX@
    38 PERL5           = @PERL5@
     38PERL            = @PERL@
    3939BISON           = bison
    4040INSTALL         = ./install-sh -c
     
    107107ASO_SOURCES = structs.aso.cc ipid.aso.cc mmprivate.aso.cc silink.aso.cc \
    108108              matpol.aso.cc longrat.aso.cc kbuckets.aso.cc mpsr_Get.aso.cc \
    109               attrib.aso.cc lists.aso.cc kutil.aso.cc \
     109              attrib.aso.cc lists.aso.cc\
    110110              syz.aso.cc subexpr.aso.cc
    111111
     
    234234        echo unsigned long feVersionId =  `date '+%Y%m%d%H'`\; >version.h
    235235
    236 libparse: libparse_main.o utils.o fegetopt.o
    237         ${CXX}  -DHAVE_ASO=0  -o libparse libparse_main.o utils.o fegetopt.o
     236libparse: libparse_main.o utils.o fegetopt.o febase.cc
     237        ${CXX}  -DHAVE_ASO=0 -DSTANDALONE_PARSER -o libparse febase.cc libparse_main.o utils.o fegetopt.o
    238238
    239239libparse_main.o: libparse.cc
     
    270270
    271271prCopy.inc : prCopyMacros.h prCopyTemplate.cc prCopy.pl
    272         $(PERL5) prCopy.pl > prCopy.inc
     272        $(PERL) prCopy.pl > prCopy.inc
    273273
    274274src: scanner.cc grammar.h grammar.cc libparse.cc
     
    297297installbin: Singular libparse ESingular
    298298        ${MKINSTALLDIRS} ${bindir}
    299         ${INSTALL_PROGRAM} Singular ${bindir}/Singular-${SINGULAR_VERSION}
    300         ${INSTALL_PROGRAM} libparse ${bindir}/libparse
    301         ${INSTALL_PROGRAM} ESingular ${bindir}/ESingular
    302         chmod a+x ${bindir}/Singular-${SINGULAR_VERSION}
    303         rm -f ${bindir}/Singular
    304         cd ${bindir}; ${LN_S} Singular-${SINGULAR_VERSION} Singular;\
    305         if test ! -x ${SINGULAR}; then \
    306                 ${LN_S} Singular-${SINGULAR_VERSION} ${SINGULAR};\
    307         fi
     299        ${INSTALL_PROGRAM} Singular ${SINGULAR}
     300        ${INSTALL_PROGRAM} libparse ${bindir}
     301        ${INSTALL_PROGRAM} ESingular ${bindir}
     302        chmod a+x ${SINGULAR}
     303        rm -f ${bindir}/Singular${EXEC_EXT}
     304        cd ${bindir}; ${LN_S} ${SINGULAR} Singular${EXEC_EXT};\
    308305
    309306installslib: LIB
     
    314311
    315312uninstallbin:
    316         rm -f ${bindir}/Singular rm -f ${bindir}/Singular-${SINGULAR_VERSION}
     313        rm -f ${bindir}/Singular${EXEC_EXT}
     314        rm -f ${SINGULAR}
    317315        -rmdir ${bindir}
    318316
     
    386384
    387385
    388 TAGS:   ${SOURCES} ${HEADERS} ${INCS}
     386TAGS:   ${SOURCES} ${HEADERS}
    389387        etags ${SOURCES} ${HEADERS}
    390388
     
    577575##
    578576check_aso:
    579         ${PERL5} check_aso.pl $(SOURCES)
     577        ${PERL} check_aso.pl $(SOURCES)
    580578##
    581579## dependencies
  • Singular/configure

    reec9b2 ra70441f  
    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#
     
    1818ac_help="$ac_help
    1919  --with-lex=[LEX,no]     uses LEX as lex program, default is flex"
    20 ac_help="$ac_help
    21   --with-perl5=[PERL5,no] uses PERL5 as perl5 program, default is perl5"
    2220ac_help="$ac_help
    2321  --with-readline          do use static readline for fancy display"
     
    8482subdirs=
    8583MFLAGS= MAKEFLAGS=
     84SHELL=${CONFIG_SHELL-/bin/sh}
    8685# Maximum number of lines to put in a shell here document.
    8786ac_max_here_lines=12
     
    367366
    368367  -version | --version | --versio | --versi | --vers)
    369     echo "configure generated by autoconf version 2.12"
     368    echo "configure generated by autoconf version 2.13"
    370369    exit 0 ;;
    371370
     
    537536ac_cpp='$CPP $CPPFLAGS'
    538537ac_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'
     538ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    540539cross_compiling=$ac_cv_prog_cc_cross
    541540
     541ac_exeext=
     542ac_objext=o
    542543if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
    543544  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
     
    557558
    558559echo $ac_n "checking uname for singular""... $ac_c" 1>&6
    559 echo "configure:560: checking uname for singular" >&5
     560echo "configure:561: checking uname for singular" >&5
    560561if eval "test \"`echo '$''{'ac_cv_singuname'+set}'`\" = set"; then
    561562  echo $ac_n "(cached) $ac_c" 1>&6
     
    587588
    588589
     590if test "$ac_cv_singuname" = ix86-Win; then
     591  EXEC_EXT=".exe"
     592fi
     593
     594
    589595SING_UNAME=`echo $SINGUNAME | tr '-' '_' `
    590596
     
    645651set dummy gcc; ac_word=$2
    646652echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    647 echo "configure:648: checking for $ac_word" >&5
     653echo "configure:654: checking for $ac_word" >&5
    648654if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    649655  echo $ac_n "(cached) $ac_c" 1>&6
     
    652658  ac_cv_prog_CC="$CC" # Let the user override the test.
    653659else
    654   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    655   for ac_dir in $PATH; do
     660  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     661  ac_dummy="$PATH"
     662  for ac_dir in $ac_dummy; do
    656663    test -z "$ac_dir" && ac_dir=.
    657664    if test -f $ac_dir/$ac_word; then
     
    674681set dummy cc; ac_word=$2
    675682echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    676 echo "configure:677: checking for $ac_word" >&5
     683echo "configure:684: checking for $ac_word" >&5
    677684if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    678685  echo $ac_n "(cached) $ac_c" 1>&6
     
    681688  ac_cv_prog_CC="$CC" # Let the user override the test.
    682689else
    683   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
     690  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    684691  ac_prog_rejected=no
    685   for ac_dir in $PATH; do
     692  ac_dummy="$PATH"
     693  for ac_dir in $ac_dummy; do
    686694    test -z "$ac_dir" && ac_dir=.
    687695    if test -f $ac_dir/$ac_word; then
     
    718726fi
    719727
     728  if test -z "$CC"; then
     729    case "`uname -s`" in
     730    *win32* | *WIN32*)
     731      # Extract the first word of "cl", so it can be a program name with args.
     732set dummy cl; ac_word=$2
     733echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     734echo "configure:735: checking for $ac_word" >&5
     735if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
     736  echo $ac_n "(cached) $ac_c" 1>&6
     737else
     738  if test -n "$CC"; then
     739  ac_cv_prog_CC="$CC" # Let the user override the test.
     740else
     741  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     742  ac_dummy="$PATH"
     743  for ac_dir in $ac_dummy; do
     744    test -z "$ac_dir" && ac_dir=.
     745    if test -f $ac_dir/$ac_word; then
     746      ac_cv_prog_CC="cl"
     747      break
     748    fi
     749  done
     750  IFS="$ac_save_ifs"
     751fi
     752fi
     753CC="$ac_cv_prog_CC"
     754if test -n "$CC"; then
     755  echo "$ac_t""$CC" 1>&6
     756else
     757  echo "$ac_t""no" 1>&6
     758fi
     759 ;;
     760    esac
     761  fi
    720762  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
    721763fi
    722764
    723765echo $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
     766echo "configure:767: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
    725767
    726768ac_ext=c
     
    728770ac_cpp='$CPP $CPPFLAGS'
    729771ac_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'
     772ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    731773cross_compiling=$ac_cv_prog_cc_cross
    732774
    733 cat > conftest.$ac_ext <<EOF
    734 #line 735 "configure"
    735 #include "confdefs.h"
     775cat > conftest.$ac_ext << EOF
     776
     777#line 778 "configure"
     778#include "confdefs.h"
     779
    736780main(){return(0);}
    737781EOF
    738 if { (eval echo configure:739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     782if { (eval echo configure:783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    739783  ac_cv_prog_cc_works=yes
    740784  # If we can't run a trivial program, we are probably using a cross compiler.
     
    750794fi
    751795rm -fr conftest*
     796ac_ext=c
     797# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
     798ac_cpp='$CPP $CPPFLAGS'
     799ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
     800ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     801cross_compiling=$ac_cv_prog_cc_cross
    752802
    753803echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
     
    756806fi
    757807echo $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
     808echo "configure:809: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
    759809echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
    760810cross_compiling=$ac_cv_prog_cc_cross
    761811
    762812echo $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
     813echo "configure:814: checking whether we are using GNU C" >&5
    764814if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
    765815  echo $ac_n "(cached) $ac_c" 1>&6
     
    770820#endif
    771821EOF
    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
     822if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:823: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    773823  ac_cv_prog_gcc=yes
    774824else
     
    781831if test $ac_cv_prog_gcc = yes; then
    782832  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
     833else
     834  GCC=
     835fi
     836
     837ac_test_CFLAGS="${CFLAGS+set}"
     838ac_save_CFLAGS="$CFLAGS"
     839CFLAGS=
     840echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
     841echo "configure:842: checking whether ${CC-cc} accepts -g" >&5
    788842if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
    789843  echo $ac_n "(cached) $ac_c" 1>&6
     
    800854
    801855echo "$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
     856if test "$ac_test_CFLAGS" = set; then
     857  CFLAGS="$ac_save_CFLAGS"
     858elif test $ac_cv_prog_cc_g = yes; then
     859  if test "$GCC" = yes; then
    805860    CFLAGS="-g -O2"
    806861  else
     862    CFLAGS="-g"
     863  fi
     864else
     865  if test "$GCC" = yes; then
    807866    CFLAGS="-O2"
     867  else
     868    CFLAGS=
    808869  fi
    809 else
    810   GCC=
    811   test "${CFLAGS+set}" = set || CFLAGS="-g"
    812870fi
    813871
    814872echo $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
     873echo "configure:874: checking how to run the C preprocessor" >&5
    816874# On Suns, sometimes $CPP names a directory.
    817875if test -n "$CPP" && test -d "$CPP"; then
     
    828886  # not just through cpp.
    829887  cat > conftest.$ac_ext <<EOF
    830 #line 831 "configure"
     888#line 889 "configure"
    831889#include "confdefs.h"
    832890#include <assert.h>
     
    834892EOF
    835893ac_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`
     894{ (eval echo configure:895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     895ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    838896if test -z "$ac_err"; then
    839897  :
     
    845903  CPP="${CC-cc} -E -traditional-cpp"
    846904  cat > conftest.$ac_ext <<EOF
    847 #line 848 "configure"
     905#line 906 "configure"
    848906#include "confdefs.h"
    849907#include <assert.h>
     
    851909EOF
    852910ac_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`
     911{ (eval echo configure:912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     912ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    855913if test -z "$ac_err"; then
    856914  :
     
    860918  cat conftest.$ac_ext >&5
    861919  rm -rf conftest*
     920  CPP="${CC-cc} -nologo -E"
     921  cat > conftest.$ac_ext <<EOF
     922#line 923 "configure"
     923#include "confdefs.h"
     924#include <assert.h>
     925Syntax Error
     926EOF
     927ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
     928{ (eval echo configure:929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     929ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
     930if test -z "$ac_err"; then
     931  :
     932else
     933  echo "$ac_err" >&5
     934  echo "configure: failed program was:" >&5
     935  cat conftest.$ac_ext >&5
     936  rm -rf conftest*
    862937  CPP=/lib/cpp
    863938fi
     
    865940fi
    866941rm -f conftest*
     942fi
     943rm -f conftest*
    867944  ac_cv_prog_CPP="$CPP"
    868945fi
     
    873950echo "$ac_t""$CPP" 1>&6
    874951
    875 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
     952for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
    876953do
    877954# Extract the first word of "$ac_prog", so it can be a program name with args.
    878955set dummy $ac_prog; ac_word=$2
    879956echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    880 echo "configure:881: checking for $ac_word" >&5
     957echo "configure:958: checking for $ac_word" >&5
    881958if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
    882959  echo $ac_n "(cached) $ac_c" 1>&6
     
    885962  ac_cv_prog_CXX="$CXX" # Let the user override the test.
    886963else
    887   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    888   for ac_dir in $PATH; do
     964  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     965  ac_dummy="$PATH"
     966  for ac_dir in $ac_dummy; do
    889967    test -z "$ac_dir" && ac_dir=.
    890968    if test -f $ac_dir/$ac_word; then
     
    909987
    910988echo $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
     989echo "configure:990: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
    912990
    913991ac_ext=C
     
    915993ac_cpp='$CXXCPP $CPPFLAGS'
    916994ac_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'
     995ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    918996cross_compiling=$ac_cv_prog_cxx_cross
    919997
    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
     998cat > conftest.$ac_ext << EOF
     999
     1000#line 1001 "configure"
     1001#include "confdefs.h"
     1002
     1003int main(){return(0);}
     1004EOF
     1005if { (eval echo configure:1006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    9261006  ac_cv_prog_cxx_works=yes
    9271007  # If we can't run a trivial program, we are probably using a cross compiler.
     
    9411021ac_cpp='$CPP $CPPFLAGS'
    9421022ac_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'
     1023ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    9441024cross_compiling=$ac_cv_prog_cc_cross
    9451025
     
    9491029fi
    9501030echo $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
     1031echo "configure:1032: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
    9521032echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
    9531033cross_compiling=$ac_cv_prog_cxx_cross
    9541034
    9551035echo $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
     1036echo "configure:1037: checking whether we are using GNU C++" >&5
    9571037if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
    9581038  echo $ac_n "(cached) $ac_c" 1>&6
     
    9631043#endif
    9641044EOF
    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
     1045if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1046: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    9661046  ac_cv_prog_gxx=yes
    9671047else
     
    9741054if test $ac_cv_prog_gxx = yes; then
    9751055  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
     1056else
     1057  GXX=
     1058fi
     1059
     1060ac_test_CXXFLAGS="${CXXFLAGS+set}"
     1061ac_save_CXXFLAGS="$CXXFLAGS"
     1062CXXFLAGS=
     1063echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
     1064echo "configure:1065: checking whether ${CXX-g++} accepts -g" >&5
    9811065if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
    9821066  echo $ac_n "(cached) $ac_c" 1>&6
     
    9931077
    9941078echo "$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
     1079if test "$ac_test_CXXFLAGS" = set; then
     1080  CXXFLAGS="$ac_save_CXXFLAGS"
     1081elif test $ac_cv_prog_cxx_g = yes; then
     1082  if test "$GXX" = yes; then
    9981083    CXXFLAGS="-g -O2"
    9991084  else
     1085    CXXFLAGS="-g"
     1086  fi
     1087else
     1088  if test "$GXX" = yes; then
    10001089    CXXFLAGS="-O2"
     1090  else
     1091    CXXFLAGS=
    10011092  fi
    1002 else
    1003   GXX=
    1004   test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
    10051093fi
    10061094
    10071095echo $ac_n "checking for AIX""... $ac_c" 1>&6
    1008 echo "configure:1009: checking for AIX" >&5
     1096echo "configure:1097: checking for AIX" >&5
    10091097cat > conftest.$ac_ext <<EOF
    1010 #line 1011 "configure"
     1098#line 1099 "configure"
    10111099#include "confdefs.h"
    10121100#ifdef _AIX
     
    10381126# check whether the compiler accepts -pipe
    10391127echo $ac_n "checking whether compiler accepts -pipe""... $ac_c" 1>&6
    1040 echo "configure:1041: checking whether compiler accepts -pipe" >&5
     1128echo "configure:1129: checking whether compiler accepts -pipe" >&5
    10411129temp_cflags=${CFLAGS}
    10421130CFLAGS="${CFLAGS} -pipe"
     
    10451133else
    10461134  cat > conftest.$ac_ext <<EOF
    1047 #line 1048 "configure"
     1135#line 1136 "configure"
    10481136#include "confdefs.h"
    10491137
     
    10521140; return 0; }
    10531141EOF
    1054 if { (eval echo configure:1055: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     1142if { (eval echo configure:1143: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    10551143  rm -rf conftest*
    10561144  ac_cv_cxx_have_pipe=yes
     
    10761164# Customize CFLAGS
    10771165echo $ac_n "checking whether _AIX is defined""... $ac_c" 1>&6
    1078 echo "configure:1079: checking whether _AIX is defined" >&5
     1166echo "configure:1167: checking whether _AIX is defined" >&5
    10791167if eval "test \"`echo '$''{'ac_cv_is_aix'+set}'`\" = set"; then
    10801168  echo $ac_n "(cached) $ac_c" 1>&6
    10811169else
    10821170  cat > conftest.$ac_ext <<EOF
    1083 #line 1084 "configure"
     1171#line 1172 "configure"
    10841172#include "confdefs.h"
    10851173#ifdef _AIX
     
    11321220
    11331221echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
    1134 echo "configure:1135: checking whether ${MAKE-make} sets \${MAKE}" >&5
     1222echo "configure:1223: checking whether ${MAKE-make} sets \${MAKE}" >&5
    11351223set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
    11361224if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
     
    11821270
    11831271# expand bindir
    1184 test "x$bindir" = 'x${exec_prefix}/bin' && bindir="${exec_prefix}/bin"
    1185 SINGULAR=${SINGULAR:-$bindir/Singular-$SINGULAR_MAJOR_VERSION${VERSION_SEP}$SINGULAR_MINOR_VERSION${VERSION_SEP}$SINGULAR_SUB_VERSION}
     1272test "x$bindir" = 'x${exec_prefix}/bin' && bindir="${exec_prefix}"
     1273SINGULAR=${SINGULAR:-$bindir/Singular-$SINGULAR_MAJOR_VERSION${VERSION_SEP}$SINGULAR_MINOR_VERSION${VERSION_SEP}$SINGULAR_SUB_VERSION}${EXEC_EXT}
    11861274
    11871275cat >> confdefs.h <<EOF
     
    11911279
    11921280# expand libdir
    1193 test "x$libdir" = 'x${exec_prefix}/lib'&& libdir="${exec_prefix}/lib/${SINGULAR_VERSION}"
     1281test "x$libdir" = 'x${exec_prefix}/lib'&& libdir="${exec_prefix}/lib"
    11941282
    11951283# expand includedir
    1196 test "x$includedir" = 'x${prefix}/include' && includedir="${exec_prefix}/include/${SINGULAR_VERSION}"
     1284test "x$includedir" = 'x${prefix}/include' && includedir="${exec_prefix}/include"
    11971285
    11981286# add to -I to CPPFLAGS and and -L to LDFLAGS, just to be sure
    1199 LDFLAGS="-L${libdir} ${LDFLAGS}"
    1200 CPPFLAGS="-I${includedir} ${CPPFLAGS}"
     1287LDFLAGS="-L${libdir} ${LDFLAGS} -L/usr/local/lib"
     1288CPPFLAGS="-I${includedir} ${CPPFLAGS} -I/usr/local/include"
    12011289
    12021290# this is a work-around to include the right term.h
     
    12111299if test "${with_lex+set}" != set; then
    12121300  echo $ac_n "checking for flex""... $ac_c" 1>&6
    1213 echo "configure:1214: checking for flex" >&5
     1301echo "configure:1302: checking for flex" >&5
    12141302    if eval "test \"`echo '$''{'ac_cv_prog_flex'+set}'`\" = set"; then
    12151303  echo $ac_n "(cached) $ac_c" 1>&6
     
    12421330set dummy $ac_prog; ac_word=$2
    12431331echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1244 echo "configure:1245: checking for $ac_word" >&5
     1332echo "configure:1333: checking for $ac_word" >&5
    12451333if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
    12461334  echo $ac_n "(cached) $ac_c" 1>&6
     
    12491337  ac_cv_prog_LEX="$LEX" # Let the user override the test.
    12501338else
    1251   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    1252   for ac_dir in $PATH; do
     1339  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     1340  ac_dummy="$PATH"
     1341  for ac_dir in $ac_dummy; do
    12531342    test -z "$ac_dir" && ac_dir=.
    12541343    if test -f $ac_dir/$ac_word; then
     
    12811370set dummy $ac_prog; ac_word=$2
    12821371echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1283 echo "configure:1284: checking for $ac_word" >&5
     1372echo "configure:1373: checking for $ac_word" >&5
    12841373if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
    12851374  echo $ac_n "(cached) $ac_c" 1>&6
     
    12881377  ac_cv_prog_BISON="$BISON" # Let the user override the test.
    12891378else
    1290   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    1291   for ac_dir in $PATH; do
     1379  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     1380  ac_dummy="$PATH"
     1381  for ac_dir in $ac_dummy; do
    12921382    test -z "$ac_dir" && ac_dir=.
    12931383    if test -f $ac_dir/$ac_word; then
     
    13151405# ln -s
    13161406echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
    1317 echo "configure:1318: checking whether ln -s works" >&5
     1407echo "configure:1408: checking whether ln -s works" >&5
    13181408if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
    13191409  echo $ac_n "(cached) $ac_c" 1>&6
     
    13361426
    13371427
     1428for ac_prog in perl5 perl
     1429do
     1430# Extract the first word of "$ac_prog", so it can be a program name with args.
     1431set dummy $ac_prog; ac_word=$2
     1432echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     1433echo "configure:1434: checking for $ac_word" >&5
     1434if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
     1435  echo $ac_n "(cached) $ac_c" 1>&6
     1436else
     1437  if test -n "$PERL"; then
     1438  ac_cv_prog_PERL="$PERL" # Let the user override the test.
     1439else
     1440  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     1441  ac_dummy="$PATH"
     1442  for ac_dir in $ac_dummy; do
     1443    test -z "$ac_dir" && ac_dir=.
     1444    if test -f $ac_dir/$ac_word; then
     1445      ac_cv_prog_PERL="$ac_prog"
     1446      break
     1447    fi
     1448  done
     1449  IFS="$ac_save_ifs"
     1450fi
     1451fi
     1452PERL="$ac_cv_prog_PERL"
     1453if test -n "$PERL"; then
     1454  echo "$ac_t""$PERL" 1>&6
     1455else
     1456  echo "$ac_t""no" 1>&6
     1457fi
     1458
     1459test -n "$PERL" && break
     1460done
     1461
     1462
    13381463# lib checks
    13391464echo $ac_n "checking for atof in -lm""... $ac_c" 1>&6
    1340 echo "configure:1341: checking for atof in -lm" >&5
     1465echo "configure:1466: checking for atof in -lm" >&5
    13411466ac_lib_var=`echo m'_'atof | sed 'y%./+-%__p_%'`
    13421467if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    13461471LIBS="-lm  $LIBS"
    13471472cat > conftest.$ac_ext <<EOF
    1348 #line 1349 "configure"
     1473#line 1474 "configure"
    13491474#include "confdefs.h"
    13501475/* Override any gcc2 internal prototype to avoid an error.  */
     
    13571482; return 0; }
    13581483EOF
    1359 if { (eval echo configure:1360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     1484if { (eval echo configure:1485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    13601485  rm -rf conftest*
    13611486  eval "ac_cv_lib_$ac_lib_var=yes"
     
    13851510
    13861511echo $ac_n "checking for socket in -lbsd""... $ac_c" 1>&6
    1387 echo "configure:1388: checking for socket in -lbsd" >&5
     1512echo "configure:1513: checking for socket in -lbsd" >&5
    13881513ac_lib_var=`echo bsd'_'socket | sed 'y%./+-%__p_%'`
    13891514if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    13931518LIBS="-lbsd  $LIBS"
    13941519cat > conftest.$ac_ext <<EOF
    1395 #line 1396 "configure"
     1520#line 1521 "configure"
    13961521#include "confdefs.h"
    13971522/* Override any gcc2 internal prototype to avoid an error.  */
     
    14041529; return 0; }
    14051530EOF
    1406 if { (eval echo configure:1407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     1531if { (eval echo configure:1532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    14071532  rm -rf conftest*
    14081533  eval "ac_cv_lib_$ac_lib_var=yes"
     
    14321557
    14331558echo $ac_n "checking for listen in -lsocket""... $ac_c" 1>&6
    1434 echo "configure:1435: checking for listen in -lsocket" >&5
     1559echo "configure:1560: checking for listen in -lsocket" >&5
    14351560ac_lib_var=`echo socket'_'listen | sed 'y%./+-%__p_%'`
    14361561if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    14401565LIBS="-lsocket  $LIBS"
    14411566cat > conftest.$ac_ext <<EOF
    1442 #line 1443 "configure"
     1567#line 1568 "configure"
    14431568#include "confdefs.h"
    14441569/* Override any gcc2 internal prototype to avoid an error.  */
     
    14511576; return 0; }
    14521577EOF
    1453 if { (eval echo configure:1454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     1578if { (eval echo configure:1579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    14541579  rm -rf conftest*
    14551580  eval "ac_cv_lib_$ac_lib_var=yes"
     
    14791604
    14801605echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
    1481 echo "configure:1482: checking for gethostbyname in -lnsl" >&5
     1606echo "configure:1607: checking for gethostbyname in -lnsl" >&5
    14821607ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
    14831608if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    14871612LIBS="-lnsl  $LIBS"
    14881613cat > conftest.$ac_ext <<EOF
    1489 #line 1490 "configure"
     1614#line 1615 "configure"
    14901615#include "confdefs.h"
    14911616/* Override any gcc2 internal prototype to avoid an error.  */
     
    14981623; return 0; }
    14991624EOF
    1500 if { (eval echo configure:1501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     1625if { (eval echo configure:1626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    15011626  rm -rf conftest*
    15021627  eval "ac_cv_lib_$ac_lib_var=yes"
     
    15261651
    15271652echo $ac_n "checking for index in -lucb""... $ac_c" 1>&6
    1528 echo "configure:1529: checking for index in -lucb" >&5
     1653echo "configure:1654: checking for index in -lucb" >&5
    15291654ac_lib_var=`echo ucb'_'index | sed 'y%./+-%__p_%'`
    15301655if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    15341659LIBS="-lucb  $LIBS"
    15351660cat > conftest.$ac_ext <<EOF
    1536 #line 1537 "configure"
     1661#line 1662 "configure"
    15371662#include "confdefs.h"
    15381663/* Override any gcc2 internal prototype to avoid an error.  */
     
    15451670; return 0; }
    15461671EOF
    1547 if { (eval echo configure:1548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     1672if { (eval echo configure:1673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    15481673  rm -rf conftest*
    15491674  eval "ac_cv_lib_$ac_lib_var=yes"
     
    15751700# heder file checks
    15761701echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
    1577 echo "configure:1578: checking for ANSI C header files" >&5
     1702echo "configure:1703: checking for ANSI C header files" >&5
    15781703if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
    15791704  echo $ac_n "(cached) $ac_c" 1>&6
    15801705else
    15811706  cat > conftest.$ac_ext <<EOF
    1582 #line 1583 "configure"
     1707#line 1708 "configure"
    15831708#include "confdefs.h"
    15841709#include <stdlib.h>
     
    15881713EOF
    15891714ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1590 { (eval echo configure:1591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1591 ac_err=`grep -v '^ *+' conftest.out`
     1715{ (eval echo configure:1716: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1716ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    15921717if test -z "$ac_err"; then
    15931718  rm -rf conftest*
     
    16051730  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    16061731cat > conftest.$ac_ext <<EOF
    1607 #line 1608 "configure"
     1732#line 1733 "configure"
    16081733#include "confdefs.h"
    16091734#include <string.h>
     
    16231748  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    16241749cat > conftest.$ac_ext <<EOF
    1625 #line 1626 "configure"
     1750#line 1751 "configure"
    16261751#include "confdefs.h"
    16271752#include <stdlib.h>
     
    16441769else
    16451770  cat > conftest.$ac_ext <<EOF
    1646 #line 1647 "configure"
     1771#line 1772 "configure"
    16471772#include "confdefs.h"
    16481773#include <ctype.h>
     
    16551780
    16561781EOF
    1657 if { (eval echo configure:1658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     1782if { (eval echo configure:1783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    16581783then
    16591784  :
     
    16821807ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    16831808echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    1684 echo "configure:1685: checking for $ac_hdr" >&5
     1809echo "configure:1810: checking for $ac_hdr" >&5
    16851810if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    16861811  echo $ac_n "(cached) $ac_c" 1>&6
    16871812else
    16881813  cat > conftest.$ac_ext <<EOF
    1689 #line 1690 "configure"
     1814#line 1815 "configure"
    16901815#include "confdefs.h"
    16911816#include <$ac_hdr>
    16921817EOF
    16931818ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1694 { (eval echo configure:1695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1695 ac_err=`grep -v '^ *+' conftest.out`
     1819{ (eval echo configure:1820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1820ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    16961821if test -z "$ac_err"; then
    16971822  rm -rf conftest*
     
    17201845
    17211846
    1722 for ac_hdr in malloc.h sys/file.h sys/ioctl.h sys/time.h sys/times.h sys/types.h sys/stat.h fcntl.h sys/param.h pwd.h asm/sigcontext.h pwd.h termcap.h termios.h term.h
     1847for ac_hdr in malloc.h sys/file.h sys/ioctl.h sys/time.h sys/times.h sys/types.h sys/stat.h fcntl.h sys/param.h pwd.h asm/sigcontext.h pwd.h termcap.h termios.h term.h readline/readline.h
    17231848do
    17241849ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    17251850echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    1726 echo "configure:1727: checking for $ac_hdr" >&5
     1851echo "configure:1852: checking for $ac_hdr" >&5
    17271852if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    17281853  echo $ac_n "(cached) $ac_c" 1>&6
    17291854else
    17301855  cat > conftest.$ac_ext <<EOF
    1731 #line 1732 "configure"
     1856#line 1857 "configure"
    17321857#include "confdefs.h"
    17331858#include <$ac_hdr>
    17341859EOF
    17351860ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1736 { (eval echo configure:1737: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1737 ac_err=`grep -v '^ *+' conftest.out`
     1861{ (eval echo configure:1862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1862ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    17381863if test -z "$ac_err"; then
    17391864  rm -rf conftest*
     
    17631888# typedefs, structures
    17641889echo $ac_n "checking for working const""... $ac_c" 1>&6
    1765 echo "configure:1766: checking for working const" >&5
     1890echo "configure:1891: checking for working const" >&5
    17661891if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
    17671892  echo $ac_n "(cached) $ac_c" 1>&6
    17681893else
    17691894  cat > conftest.$ac_ext <<EOF
    1770 #line 1771 "configure"
     1895#line 1896 "configure"
    17711896#include "confdefs.h"
    17721897
     
    18171942; return 0; }
    18181943EOF
    1819 if { (eval echo configure:1820: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     1944if { (eval echo configure:1945: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    18201945  rm -rf conftest*
    18211946  ac_cv_c_const=yes
     
    18381963
    18391964echo $ac_n "checking for inline""... $ac_c" 1>&6
    1840 echo "configure:1841: checking for inline" >&5
     1965echo "configure:1966: checking for inline" >&5
    18411966if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
    18421967  echo $ac_n "(cached) $ac_c" 1>&6
     
    18451970for ac_kw in inline __inline__ __inline; do
    18461971  cat > conftest.$ac_ext <<EOF
    1847 #line 1848 "configure"
     1972#line 1973 "configure"
    18481973#include "confdefs.h"
    18491974
     
    18521977; return 0; }
    18531978EOF
    1854 if { (eval echo configure:1855: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     1979if { (eval echo configure:1980: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    18551980  rm -rf conftest*
    18561981  ac_cv_c_inline=$ac_kw; break
     
    18782003
    18792004echo $ac_n "checking for size_t""... $ac_c" 1>&6
    1880 echo "configure:1881: checking for size_t" >&5
     2005echo "configure:2006: checking for size_t" >&5
    18812006if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
    18822007  echo $ac_n "(cached) $ac_c" 1>&6
    18832008else
    18842009  cat > conftest.$ac_ext <<EOF
    1885 #line 1886 "configure"
     2010#line 2011 "configure"
    18862011#include "confdefs.h"
    18872012#include <sys/types.h>
     
    18922017EOF
    18932018if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    1894   egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
     2019  egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
    18952020  rm -rf conftest*
    18962021  ac_cv_type_size_t=yes
     
    19112036
    19122037echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
    1913 echo "configure:1914: checking whether time.h and sys/time.h may both be included" >&5
     2038echo "configure:2039: checking whether time.h and sys/time.h may both be included" >&5
    19142039if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
    19152040  echo $ac_n "(cached) $ac_c" 1>&6
    19162041else
    19172042  cat > conftest.$ac_ext <<EOF
    1918 #line 1919 "configure"
     2043#line 2044 "configure"
    19192044#include "confdefs.h"
    19202045#include <sys/types.h>
     
    19252050; return 0; }
    19262051EOF
    1927 if { (eval echo configure:1928: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2052if { (eval echo configure:2053: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    19282053  rm -rf conftest*
    19292054  ac_cv_header_time=yes
     
    19462071
    19472072echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
    1948 echo "configure:1949: checking whether struct tm is in sys/time.h or time.h" >&5
     2073echo "configure:2074: checking whether struct tm is in sys/time.h or time.h" >&5
    19492074if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
    19502075  echo $ac_n "(cached) $ac_c" 1>&6
    19512076else
    19522077  cat > conftest.$ac_ext <<EOF
    1953 #line 1954 "configure"
     2078#line 2079 "configure"
    19542079#include "confdefs.h"
    19552080#include <sys/types.h>
     
    19592084; return 0; }
    19602085EOF
    1961 if { (eval echo configure:1962: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2086if { (eval echo configure:2087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    19622087  rm -rf conftest*
    19632088  ac_cv_struct_tm=time.h
     
    19842109# for constant arguments.  Useless!
    19852110echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
    1986 echo "configure:1987: checking for working alloca.h" >&5
     2111echo "configure:2112: checking for working alloca.h" >&5
    19872112if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
    19882113  echo $ac_n "(cached) $ac_c" 1>&6
    19892114else
    19902115  cat > conftest.$ac_ext <<EOF
    1991 #line 1992 "configure"
     2116#line 2117 "configure"
    19922117#include "confdefs.h"
    19932118#include <alloca.h>
     
    19962121; return 0; }
    19972122EOF
    1998 if { (eval echo configure:1999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     2123if { (eval echo configure:2124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    19992124  rm -rf conftest*
    20002125  ac_cv_header_alloca_h=yes
     
    20172142
    20182143echo $ac_n "checking for alloca""... $ac_c" 1>&6
    2019 echo "configure:2020: checking for alloca" >&5
     2144echo "configure:2145: checking for alloca" >&5
    20202145if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
    20212146  echo $ac_n "(cached) $ac_c" 1>&6
    20222147else
    20232148  cat > conftest.$ac_ext <<EOF
    2024 #line 2025 "configure"
     2149#line 2150 "configure"
    20252150#include "confdefs.h"
    20262151
     
    20282153# define alloca __builtin_alloca
    20292154#else
    2030 # if HAVE_ALLOCA_H
    2031 #  include <alloca.h>
     2155# ifdef _MSC_VER
     2156#  include <malloc.h>
     2157#  define alloca _alloca
    20322158# else
    2033 #  ifdef _AIX
     2159#  if HAVE_ALLOCA_H
     2160#   include <alloca.h>
     2161#  else
     2162#   ifdef _AIX
    20342163 #pragma alloca
    2035 else
    2036 #   ifndef alloca /* predefined by HP cc +Olibcalls */
     2164 else
     2165#    ifndef alloca /* predefined by HP cc +Olibcalls */
    20372166char *alloca ();
     2167#    endif
    20382168#   endif
    20392169#  endif
     
    20452175; return 0; }
    20462176EOF
    2047 if { (eval echo configure:2048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     2177if { (eval echo configure:2178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    20482178  rm -rf conftest*
    20492179  ac_cv_func_alloca_works=yes
     
    20702200  # contain a buggy version.  If you still want to use their alloca,
    20712201  # use ar to extract alloca.o from them instead of compiling alloca.c.
    2072   ALLOCA=alloca.o
     2202  ALLOCA=alloca.${ac_objext}
    20732203  cat >> confdefs.h <<\EOF
    20742204#define C_ALLOCA 1
     
    20772207
    20782208echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
    2079 echo "configure:2080: checking whether alloca needs Cray hooks" >&5
     2209echo "configure:2210: checking whether alloca needs Cray hooks" >&5
    20802210if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
    20812211  echo $ac_n "(cached) $ac_c" 1>&6
    20822212else
    20832213  cat > conftest.$ac_ext <<EOF
    2084 #line 2085 "configure"
     2214#line 2215 "configure"
    20852215#include "confdefs.h"
    20862216#if defined(CRAY) && ! defined(CRAY2)
     
    21072237for ac_func in _getb67 GETB67 getb67; do
    21082238  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2109 echo "configure:2110: checking for $ac_func" >&5
     2239echo "configure:2240: checking for $ac_func" >&5
    21102240if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    21112241  echo $ac_n "(cached) $ac_c" 1>&6
    21122242else
    21132243  cat > conftest.$ac_ext <<EOF
    2114 #line 2115 "configure"
     2244#line 2245 "configure"
    21152245#include "confdefs.h"
    21162246/* System header to define __stub macros and hopefully few prototypes,
     
    21352265; return 0; }
    21362266EOF
    2137 if { (eval echo configure:2138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     2267if { (eval echo configure:2268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    21382268  rm -rf conftest*
    21392269  eval "ac_cv_func_$ac_func=yes"
     
    21622292
    21632293echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
    2164 echo "configure:2165: checking stack direction for C alloca" >&5
     2294echo "configure:2295: checking stack direction for C alloca" >&5
    21652295if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
    21662296  echo $ac_n "(cached) $ac_c" 1>&6
     
    21702300else
    21712301  cat > conftest.$ac_ext <<EOF
    2172 #line 2173 "configure"
     2302#line 2303 "configure"
    21732303#include "confdefs.h"
    21742304find_stack_direction ()
     
    21892319}
    21902320EOF
    2191 if { (eval echo configure:2192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     2321if { (eval echo configure:2322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    21922322then
    21932323  ac_cv_c_stack_direction=1
     
    22122342if test $ac_cv_prog_gcc = yes; then
    22132343    echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
    2214 echo "configure:2215: checking whether ${CC-cc} needs -traditional" >&5
     2344echo "configure:2345: checking whether ${CC-cc} needs -traditional" >&5
    22152345if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
    22162346  echo $ac_n "(cached) $ac_c" 1>&6
     
    22182348    ac_pattern="Autoconf.*'x'"
    22192349  cat > conftest.$ac_ext <<EOF
    2220 #line 2221 "configure"
     2350#line 2351 "configure"
    22212351#include "confdefs.h"
    22222352#include <sgtty.h>
     
    22362366  if test $ac_cv_prog_gcc_traditional = no; then
    22372367    cat > conftest.$ac_ext <<EOF
    2238 #line 2239 "configure"
     2368#line 2369 "configure"
    22392369#include "confdefs.h"
    22402370#include <termio.h>
     
    22612391ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    22622392echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    2263 echo "configure:2264: checking for $ac_hdr" >&5
     2393echo "configure:2394: checking for $ac_hdr" >&5
    22642394if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    22652395  echo $ac_n "(cached) $ac_c" 1>&6
    22662396else
    22672397  cat > conftest.$ac_ext <<EOF
    2268 #line 2269 "configure"
     2398#line 2399 "configure"
    22692399#include "confdefs.h"
    22702400#include <$ac_hdr>
    22712401EOF
    22722402ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2273 { (eval echo configure:2274: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    2274 ac_err=`grep -v '^ *+' conftest.out`
     2403{ (eval echo configure:2404: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2404ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    22752405if test -z "$ac_err"; then
    22762406  rm -rf conftest*
     
    23002430do
    23012431echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2302 echo "configure:2303: checking for $ac_func" >&5
     2432echo "configure:2433: checking for $ac_func" >&5
    23032433if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    23042434  echo $ac_n "(cached) $ac_c" 1>&6
    23052435else
    23062436  cat > conftest.$ac_ext <<EOF
    2307 #line 2308 "configure"
     2437#line 2438 "configure"
    23082438#include "confdefs.h"
    23092439/* System header to define __stub macros and hopefully few prototypes,
     
    23282458; return 0; }
    23292459EOF
    2330 if { (eval echo configure:2331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     2460if { (eval echo configure:2461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    23312461  rm -rf conftest*
    23322462  eval "ac_cv_func_$ac_func=yes"
     
    23532483
    23542484echo $ac_n "checking for working mmap""... $ac_c" 1>&6
    2355 echo "configure:2356: checking for working mmap" >&5
     2485echo "configure:2486: checking for working mmap" >&5
    23562486if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
    23572487  echo $ac_n "(cached) $ac_c" 1>&6
     
    23612491else
    23622492  cat > conftest.$ac_ext <<EOF
    2363 #line 2364 "configure"
     2493#line 2494 "configure"
    23642494#include "confdefs.h"
    23652495
     
    25012631
    25022632EOF
    2503 if { (eval echo configure:2504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     2633if { (eval echo configure:2634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    25042634then
    25052635  ac_cv_func_mmap_fixed_mapped=yes
     
    25242654
    25252655echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
    2526 echo "configure:2527: checking return type of signal handlers" >&5
     2656echo "configure:2657: checking return type of signal handlers" >&5
    25272657if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
    25282658  echo $ac_n "(cached) $ac_c" 1>&6
    25292659else
    25302660  cat > conftest.$ac_ext <<EOF
    2531 #line 2532 "configure"
     2661#line 2662 "configure"
    25322662#include "confdefs.h"
    25332663#include <sys/types.h>
     
    25462676; return 0; }
    25472677EOF
    2548 if { (eval echo configure:2549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2678if { (eval echo configure:2679: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    25492679  rm -rf conftest*
    25502680  ac_cv_type_signal=void
     
    25652695
    25662696echo $ac_n "checking for vprintf""... $ac_c" 1>&6
    2567 echo "configure:2568: checking for vprintf" >&5
     2697echo "configure:2698: checking for vprintf" >&5
    25682698if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
    25692699  echo $ac_n "(cached) $ac_c" 1>&6
    25702700else
    25712701  cat > conftest.$ac_ext <<EOF
    2572 #line 2573 "configure"
     2702#line 2703 "configure"
    25732703#include "confdefs.h"
    25742704/* System header to define __stub macros and hopefully few prototypes,
     
    25932723; return 0; }
    25942724EOF
    2595 if { (eval echo configure:2596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     2725if { (eval echo configure:2726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    25962726  rm -rf conftest*
    25972727  eval "ac_cv_func_vprintf=yes"
     
    26172747if test "$ac_cv_func_vprintf" != yes; then
    26182748echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
    2619 echo "configure:2620: checking for _doprnt" >&5
     2749echo "configure:2750: checking for _doprnt" >&5
    26202750if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
    26212751  echo $ac_n "(cached) $ac_c" 1>&6
    26222752else
    26232753  cat > conftest.$ac_ext <<EOF
    2624 #line 2625 "configure"
     2754#line 2755 "configure"
    26252755#include "confdefs.h"
    26262756/* System header to define __stub macros and hopefully few prototypes,
     
    26452775; return 0; }
    26462776EOF
    2647 if { (eval echo configure:2648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     2777if { (eval echo configure:2778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    26482778  rm -rf conftest*
    26492779  eval "ac_cv_func__doprnt=yes"
     
    26722802do
    26732803echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2674 echo "configure:2675: checking for $ac_func" >&5
     2804echo "configure:2805: checking for $ac_func" >&5
    26752805if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    26762806  echo $ac_n "(cached) $ac_c" 1>&6
    26772807else
    26782808  cat > conftest.$ac_ext <<EOF
    2679 #line 2680 "configure"
     2809#line 2810 "configure"
    26802810#include "confdefs.h"
    26812811/* System header to define __stub macros and hopefully few prototypes,
     
    27002830; return 0; }
    27012831EOF
    2702 if { (eval echo configure:2703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     2832if { (eval echo configure:2833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    27032833  rm -rf conftest*
    27042834  eval "ac_cv_func_$ac_func=yes"
     
    27282858# arithmetic shifts
    27292859echo $ac_n "checking whether your machine has correct arithmetic shifts""... $ac_c" 1>&6
    2730 echo "configure:2731: checking whether your machine has correct arithmetic shifts" >&5
     2860echo "configure:2861: checking whether your machine has correct arithmetic shifts" >&5
    27312861if eval "test \"`echo '$''{'ac_cv_shift'+set}'`\" = set"; then
    27322862  echo $ac_n "(cached) $ac_c" 1>&6
     
    27412871else
    27422872  cat > conftest.$ac_ext <<EOF
    2743 #line 2744 "configure"
     2873#line 2874 "configure"
    27442874#include "confdefs.h"
    27452875 int main() { if (-2 >> 1 == -1) exit(0); else exit(1); }
    27462876EOF
    2747 if { (eval echo configure:2748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     2877if { (eval echo configure:2878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    27482878then
    27492879  ac_cv_shift=yes
     
    27702900# check for a peculiar constructor initialization
    27712901echo $ac_n "checking whether explicit C++ constructor calls are allowed""... $ac_c" 1>&6
    2772 echo "configure:2773: checking whether explicit C++ constructor calls are allowed" >&5
     2902echo "configure:2903: checking whether explicit C++ constructor calls are allowed" >&5
    27732903
    27742904ac_ext=C
     
    27762906ac_cpp='$CXXCPP $CPPFLAGS'
    27772907ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    2778 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     2908ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    27792909cross_compiling=$ac_cv_prog_cxx_cross
    27802910
     
    27832913else
    27842914  cat > conftest.$ac_ext <<EOF
    2785 #line 2786 "configure"
     2915#line 2916 "configure"
    27862916#include "confdefs.h"
    27872917
     
    28012931; return 0; }
    28022932EOF
    2803 if { (eval echo configure:2804: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2933if { (eval echo configure:2934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    28042934  rm -rf conftest*
    28052935  ac_cv_explicit_const=yes
     
    28172947ac_cpp='$CPP $CPPFLAGS'
    28182948ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    2819 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     2949ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    28202950cross_compiling=$ac_cv_prog_cc_cross
    28212951
     
    28302960# sprintf returns number of printed chars
    28312961echo $ac_n "checking whether vsprintf returns number of printed chars""... $ac_c" 1>&6
    2832 echo "configure:2833: checking whether vsprintf returns number of printed chars" >&5
     2962echo "configure:2963: checking whether vsprintf returns number of printed chars" >&5
    28332963if eval "test \"`echo '$''{'ac_cv_returns_n_of_chars'+set}'`\" = set"; then
    28342964  echo $ac_n "(cached) $ac_c" 1>&6
     
    28382968else
    28392969  cat > conftest.$ac_ext <<EOF
    2840 #line 2841 "configure"
     2970#line 2971 "configure"
    28412971#include "confdefs.h"
    28422972#include <stdio.h>
    28432973 main() { char *str=(char*)malloc(20); if (((int) sprintf(str,"123456789")) == 9) exit(0); else exit(1); }
    28442974EOF
    2845 if { (eval echo configure:2846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     2975if { (eval echo configure:2976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    28462976then
    28472977  ac_cv_returns_n_of_chars=yes
     
    28692999# determine ALIGN_8
    28703000echo $ac_n "checking size of char""... $ac_c" 1>&6
    2871 echo "configure:2872: checking size of char" >&5
     3001echo "configure:3002: checking size of char" >&5
    28723002if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
    28733003  echo $ac_n "(cached) $ac_c" 1>&6
     
    28773007else
    28783008  cat > conftest.$ac_ext <<EOF
    2879 #line 2880 "configure"
     3009#line 3010 "configure"
    28803010#include "confdefs.h"
    28813011#include <stdio.h>
     
    28883018}
    28893019EOF
    2890 if { (eval echo configure:2891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     3020if { (eval echo configure:3021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    28913021then
    28923022  ac_cv_sizeof_char=`cat conftestval`
     
    29083038
    29093039echo $ac_n "checking size of short""... $ac_c" 1>&6
    2910 echo "configure:2911: checking size of short" >&5
     3040echo "configure:3041: checking size of short" >&5
    29113041if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
    29123042  echo $ac_n "(cached) $ac_c" 1>&6
     
    29163046else
    29173047  cat > conftest.$ac_ext <<EOF
    2918 #line 2919 "configure"
     3048#line 3049 "configure"
    29193049#include "confdefs.h"
    29203050#include <stdio.h>
     
    29273057}
    29283058EOF
    2929 if { (eval echo configure:2930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     3059if { (eval echo configure:3060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    29303060then
    29313061  ac_cv_sizeof_short=`cat conftestval`
     
    29473077
    29483078echo $ac_n "checking size of int""... $ac_c" 1>&6
    2949 echo "configure:2950: checking size of int" >&5
     3079echo "configure:3080: checking size of int" >&5
    29503080if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
    29513081  echo $ac_n "(cached) $ac_c" 1>&6
     
    29553085else
    29563086  cat > conftest.$ac_ext <<EOF
    2957 #line 2958 "configure"
     3087#line 3088 "configure"
    29583088#include "confdefs.h"
    29593089#include <stdio.h>
     
    29663096}
    29673097EOF
    2968 if { (eval echo configure:2969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     3098if { (eval echo configure:3099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    29693099then
    29703100  ac_cv_sizeof_int=`cat conftestval`
     
    29863116
    29873117echo $ac_n "checking size of long""... $ac_c" 1>&6
    2988 echo "configure:2989: checking size of long" >&5
     3118echo "configure:3119: checking size of long" >&5
    29893119if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
    29903120  echo $ac_n "(cached) $ac_c" 1>&6
     
    29943124else
    29953125  cat > conftest.$ac_ext <<EOF
    2996 #line 2997 "configure"
     3126#line 3127 "configure"
    29973127#include "confdefs.h"
    29983128#include <stdio.h>
     
    30053135}
    30063136EOF
    3007 if { (eval echo configure:3008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     3137if { (eval echo configure:3138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    30083138then
    30093139  ac_cv_sizeof_long=`cat conftestval`
     
    30253155
    30263156echo $ac_n "checking size of void*""... $ac_c" 1>&6
    3027 echo "configure:3028: checking size of void*" >&5
     3157echo "configure:3158: checking size of void*" >&5
    30283158if eval "test \"`echo '$''{'ac_cv_sizeof_voidp'+set}'`\" = set"; then
    30293159  echo $ac_n "(cached) $ac_c" 1>&6
     
    30333163else
    30343164  cat > conftest.$ac_ext <<EOF
    3035 #line 3036 "configure"
     3165#line 3166 "configure"
    30363166#include "confdefs.h"
    30373167#include <stdio.h>
     
    30443174}
    30453175EOF
    3046 if { (eval echo configure:3047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     3176if { (eval echo configure:3177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    30473177then
    30483178  ac_cv_sizeof_voidp=`cat conftestval`
     
    30643194
    30653195echo $ac_n "checking size of double""... $ac_c" 1>&6
    3066 echo "configure:3067: checking size of double" >&5
     3196echo "configure:3197: checking size of double" >&5
    30673197if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then
    30683198  echo $ac_n "(cached) $ac_c" 1>&6
     
    30723202else
    30733203  cat > conftest.$ac_ext <<EOF
    3074 #line 3075 "configure"
     3204#line 3205 "configure"
    30753205#include "confdefs.h"
    30763206#include <stdio.h>
     
    30833213}
    30843214EOF
    3085 if { (eval echo configure:3086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     3215if { (eval echo configure:3216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    30863216then
    30873217  ac_cv_sizeof_double=`cat conftestval`
     
    31033233
    31043234echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
    3105 echo "configure:3106: checking whether byte ordering is bigendian" >&5
     3235echo "configure:3236: checking whether byte ordering is bigendian" >&5
    31063236if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
    31073237  echo $ac_n "(cached) $ac_c" 1>&6
     
    31103240# See if sys/param.h defines the BYTE_ORDER macro.
    31113241cat > conftest.$ac_ext <<EOF
    3112 #line 3113 "configure"
     3242#line 3243 "configure"
    31133243#include "confdefs.h"
    31143244#include <sys/types.h>
     
    31213251; return 0; }
    31223252EOF
    3123 if { (eval echo configure:3124: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     3253if { (eval echo configure:3254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    31243254  rm -rf conftest*
    31253255  # It does; now see whether it defined to BIG_ENDIAN or not.
    31263256cat > conftest.$ac_ext <<EOF
    3127 #line 3128 "configure"
     3257#line 3258 "configure"
    31283258#include "confdefs.h"
    31293259#include <sys/types.h>
     
    31363266; return 0; }
    31373267EOF
    3138 if { (eval echo configure:3139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     3268if { (eval echo configure:3269: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    31393269  rm -rf conftest*
    31403270  ac_cv_c_bigendian=yes
     
    31563286else
    31573287  cat > conftest.$ac_ext <<EOF
    3158 #line 3159 "configure"
     3288#line 3289 "configure"
    31593289#include "confdefs.h"
    31603290main () {
     
    31693299}
    31703300EOF
    3171 if { (eval echo configure:3172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     3301if { (eval echo configure:3302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    31723302then
    31733303  ac_cv_c_bigendian=no
     
    32063336
    32073337echo $ac_n "checking size of system page""... $ac_c" 1>&6
    3208 echo "configure:3209: checking size of system page" >&5
     3338echo "configure:3339: checking size of system page" >&5
    32093339if eval "test \"`echo '$''{'ac_cv_pagesize'+set}'`\" = set"; then
    32103340  echo $ac_n "(cached) $ac_c" 1>&6
     
    32143344else
    32153345  cat > conftest.$ac_ext <<EOF
    3216 #line 3217 "configure"
     3346#line 3347 "configure"
    32173347#include "confdefs.h"
    32183348#include <stdio.h>
     
    32283358}
    32293359EOF
    3230 if { (eval echo configure:3231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     3360if { (eval echo configure:3361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    32313361then
    32323362  ac_cv_pagesize=`cat conftestval`
     
    32523382
    32533383echo $ac_n "checking for page aligned valloc""... $ac_c" 1>&6
    3254 echo "configure:3255: checking for page aligned valloc" >&5
     3384echo "configure:3385: checking for page aligned valloc" >&5
    32553385if eval "test \"`echo '$''{'ac_cv_have_page_alignment'+set}'`\" = set"; then
    32563386  echo $ac_n "(cached) $ac_c" 1>&6
     
    32983428else
    32993429  cat > conftest.$ac_ext <<EOF
    3300 #line 3301 "configure"
     3430#line 3431 "configure"
    33013431#include "confdefs.h"
    33023432
     
    33053435
    33063436EOF
    3307 if { (eval echo configure:3308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     3437if { (eval echo configure:3438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    33083438then
    33093439  ac_cv_have_page_alignment="ac_cv_usable_pagesize="`cat  conftestval`
     
    33223452else
    33233453  cat > conftest.$ac_ext <<EOF
    3324 #line 3325 "configure"
     3454#line 3455 "configure"
    33253455#include "confdefs.h"
    33263456
     
    33293459
    33303460EOF
    3331 if { (eval echo configure:3332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     3461if { (eval echo configure:3462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    33323462then
    33333463  ac_cv_have_page_alignment="ac_cv_usable_pagesize="`cat  conftestval`
     
    33493479else
    33503480  cat > conftest.$ac_ext <<EOF
    3351 #line 3352 "configure"
     3481#line 3482 "configure"
    33523482#include "confdefs.h"
    33533483
     
    33583488
    33593489EOF
    3360 if { (eval echo configure:3361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     3490if { (eval echo configure:3491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    33613491then
    33623492  ac_cv_have_page_alignment="ac_cv_have_gmalloc=yes; ac_cv_usable_pagesize="`cat  conftestval`
     
    33753505else
    33763506  cat > conftest.$ac_ext <<EOF
    3377 #line 3378 "configure"
     3507#line 3508 "configure"
    33783508#include "confdefs.h"
    33793509
     
    33843514
    33853515EOF
    3386 if { (eval echo configure:3387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     3516if { (eval echo configure:3517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    33873517then
    33883518  ac_cv_have_page_alignment="ac_cv_have_gmalloc=yes; ac_cv_usable_pagesize="`cat  conftestval`
     
    34443574fi
    34453575
    3446 # Check whether --with-perl5 or --without-perl5 was given.
    3447 if test "${with_perl5+set}" = set; then
    3448   withval="$with_perl5"
    3449   :
    3450 fi
    3451 
    34523576# Check whether --with-readline or --without-readline was given.
    34533577if test "${with_readline+set}" = set; then
     
    35163640fi
    35173641
    3518 # perl version 5
    3519 if test "${with_perl5+set}" != set; then
    3520   echo $ac_n "checking for perl5""... $ac_c" 1>&6
    3521 echo "configure:3522: checking for perl5" >&5
    3522     if eval "test \"`echo '$''{'ac_cv_prog_perl5'+set}'`\" = set"; then
    3523   echo $ac_n "(cached) $ac_c" 1>&6
    3524 else
    3525   if (perl5 -v >/dev/null 2>&1)
    3526   then
    3527    if (perl5 -v | egrep "version 5\.[0-9]" >/dev/null 2>&1 )
    3528     then
    3529     ac_cv_prog_perl5=perl5
    3530    fi
    3531   elif (perl -v >/dev/null 2>&1)
    3532   then
    3533     if (perl -v | egrep "version 5\.[0-9]" >/dev/null 2>&1 )
    3534     then
    3535       ac_cv_prog_perl5=perl
    3536     fi
    3537   fi
    3538  
    3539 fi
    3540 
    3541     if test "${ac_cv_prog_perl5+set}" = set; then
    3542     echo "$ac_t""${ac_cv_prog_perl5}" 1>&6
    3543     PERL5=${ac_cv_prog_perl5}
    3544    
    3545   else
    3546     { echo "configure: error: can not find perl version 5" 1>&2; exit 1; }
    3547   fi
    3548 elif test "${with_perl5}" = no; then
    3549   echo "configure: warning: building without perl5 --  make might fail" 1>&2
    3550 else
    3551   unset PERL5
    3552   unset ac_cv_prog_PERL5
    3553   for ac_prog in ${with_perl5}
    3554 do
    3555 # Extract the first word of "$ac_prog", so it can be a program name with args.
    3556 set dummy $ac_prog; ac_word=$2
    3557 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    3558 echo "configure:3559: checking for $ac_word" >&5
    3559 if eval "test \"`echo '$''{'ac_cv_prog_PERL5'+set}'`\" = set"; then
    3560   echo $ac_n "(cached) $ac_c" 1>&6
    3561 else
    3562   if test -n "$PERL5"; then
    3563   ac_cv_prog_PERL5="$PERL5" # Let the user override the test.
    3564 else
    3565   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    3566   for ac_dir in $PATH; do
    3567     test -z "$ac_dir" && ac_dir=.
    3568     if test -f $ac_dir/$ac_word; then
    3569       ac_cv_prog_PERL5="$ac_prog"
    3570       break
    3571     fi
    3572   done
    3573   IFS="$ac_save_ifs"
    3574 fi
    3575 fi
    3576 PERL5="$ac_cv_prog_PERL5"
    3577 if test -n "$PERL5"; then
    3578   echo "$ac_t""$PERL5" 1>&6
    3579 else
    3580   echo "$ac_t""no" 1>&6
    3581 fi
    3582 
    3583 test -n "$PERL5" && break
    3584 done
    3585 
    3586   if test "x${PERL5}" = x; then
    3587     echo "configure: warning: building without perl5 -- make might fail" 1>&2
    3588   fi
    3589 fi
    3590 
    35913642
    35923643echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
    3593 echo "configure:3594: checking for tgetent in -lncurses" >&5
     3644echo "configure:3645: checking for tgetent in -lncurses" >&5
    35943645ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
    35953646if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    35993650LIBS="-lncurses  $LIBS"
    36003651cat > conftest.$ac_ext <<EOF
    3601 #line 3602 "configure"
     3652#line 3653 "configure"
    36023653#include "confdefs.h"
    36033654/* Override any gcc2 internal prototype to avoid an error.  */
     
    36103661; return 0; }
    36113662EOF
    3612 if { (eval echo configure:3613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     3663if { (eval echo configure:3664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    36133664  rm -rf conftest*
    36143665  eval "ac_cv_lib_$ac_lib_var=yes"
     
    36373688\
    36383689 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
    3639 echo "configure:3640: checking for tgetent in -lcurses" >&5
     3690echo "configure:3691: checking for tgetent in -lcurses" >&5
    36403691ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
    36413692if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    36453696LIBS="-lcurses  $LIBS"
    36463697cat > conftest.$ac_ext <<EOF
    3647 #line 3648 "configure"
     3698#line 3699 "configure"
    36483699#include "confdefs.h"
    36493700/* Override any gcc2 internal prototype to avoid an error.  */
     
    36563707; return 0; }
    36573708EOF
    3658 if { (eval echo configure:3659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     3709if { (eval echo configure:3710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    36593710  rm -rf conftest*
    36603711  eval "ac_cv_lib_$ac_lib_var=yes"
     
    36833734\
    36843735  echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
    3685 echo "configure:3686: checking for tgetent in -ltermcap" >&5
     3736echo "configure:3737: checking for tgetent in -ltermcap" >&5
    36863737ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
    36873738if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    36913742LIBS="-ltermcap  $LIBS"
    36923743cat > conftest.$ac_ext <<EOF
    3693 #line 3694 "configure"
     3744#line 3745 "configure"
    36943745#include "confdefs.h"
    36953746/* Override any gcc2 internal prototype to avoid an error.  */
     
    37023753; return 0; }
    37033754EOF
    3704 if { (eval echo configure:3705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     3755if { (eval echo configure:3756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    37053756  rm -rf conftest*
    37063757  eval "ac_cv_lib_$ac_lib_var=yes"
     
    37363787# readline
    37373788if test "$with_readline" = yes; then
     3789
     3790ac_ext=C
     3791# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
     3792ac_cpp='$CXXCPP $CPPFLAGS'
     3793ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
     3794ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     3795cross_compiling=$ac_cv_prog_cxx_cross
     3796
    37383797   echo $ac_n "checking for rl_abort in -lreadline""... $ac_c" 1>&6
    3739 echo "configure:3740: checking for rl_abort in -lreadline" >&5
     3798echo "configure:3799: checking for rl_abort in -lreadline" >&5
    37403799ac_lib_var=`echo readline'_'rl_abort | sed 'y%./+-%__p_%'`
    37413800if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    37453804LIBS="-lreadline  $LIBS"
    37463805cat > conftest.$ac_ext <<EOF
    3747 #line 3748 "configure"
     3806#line 3807 "configure"
    37483807#include "confdefs.h"
    37493808/* Override any gcc2 internal prototype to avoid an error.  */
     3809#ifdef __cplusplus
     3810extern "C"
     3811#endif
    37503812/* We use char because int might match the return type of a gcc2
    37513813    builtin and then its argument prototype would still apply.  */
     
    37563818; return 0; }
    37573819EOF
    3758 if { (eval echo configure:3759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     3820if { (eval echo configure:3821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    37593821  rm -rf conftest*
    37603822  eval "ac_cv_lib_$ac_lib_var=yes"
     
    37833845fi
    37843846
    3785    for ac_hdr in readline/readline.h readline/history.h
     3847   echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
     3848echo "configure:3849: checking how to run the C++ preprocessor" >&5
     3849if test -z "$CXXCPP"; then
     3850if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
     3851  echo $ac_n "(cached) $ac_c" 1>&6
     3852else
     3853  ac_ext=C
     3854# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
     3855ac_cpp='$CXXCPP $CPPFLAGS'
     3856ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
     3857ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     3858cross_compiling=$ac_cv_prog_cxx_cross
     3859  CXXCPP="${CXX-g++} -E"
     3860  cat > conftest.$ac_ext <<EOF
     3861#line 3862 "configure"
     3862#include "confdefs.h"
     3863#include <stdlib.h>
     3864EOF
     3865ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
     3866{ (eval echo configure:3867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     3867ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
     3868if test -z "$ac_err"; then
     3869  :
     3870else
     3871  echo "$ac_err" >&5
     3872  echo "configure: failed program was:" >&5
     3873  cat conftest.$ac_ext >&5
     3874  rm -rf conftest*
     3875  CXXCPP=/lib/cpp
     3876fi
     3877rm -f conftest*
     3878  ac_cv_prog_CXXCPP="$CXXCPP"
     3879ac_ext=C
     3880# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
     3881ac_cpp='$CXXCPP $CPPFLAGS'
     3882ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
     3883ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     3884cross_compiling=$ac_cv_prog_cxx_cross
     3885fi
     3886fi
     3887CXXCPP="$ac_cv_prog_CXXCPP"
     3888echo "$ac_t""$CXXCPP" 1>&6
     3889
     3890for ac_hdr in readline/readline.h readline/history.h
    37863891do
    37873892ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    37883893echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    3789 echo "configure:3790: checking for $ac_hdr" >&5
     3894echo "configure:3895: checking for $ac_hdr" >&5
    37903895if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    37913896  echo $ac_n "(cached) $ac_c" 1>&6
    37923897else
    37933898  cat > conftest.$ac_ext <<EOF
    3794 #line 3795 "configure"
     3899#line 3900 "configure"
    37953900#include "confdefs.h"
    37963901#include <$ac_hdr>
    37973902EOF
    37983903ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    3799 { (eval echo configure:3800: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    3800 ac_err=`grep -v '^ *+' conftest.out`
     3904{ (eval echo configure:3905: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     3905ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    38013906if test -z "$ac_err"; then
    38023907  rm -rf conftest*
     
    38263931      test "$ac_cv_header_readline_readline_h" = yes; then
    38273932     echo $ac_n "checking whether readline.h is ok""... $ac_c" 1>&6
    3828 echo "configure:3829: checking whether readline.h is ok" >&5
     3933echo "configure:3934: checking whether readline.h is ok" >&5
    38293934     if eval "test \"`echo '$''{'ac_cv_header_readline_readline_h_ok'+set}'`\" = set"; then
    38303935  echo $ac_n "(cached) $ac_c" 1>&6
    38313936else
    38323937  cat > conftest.$ac_ext <<EOF
    3833 #line 3834 "configure"
     3938#line 3939 "configure"
    38343939#include "confdefs.h"
    38353940#include<unistd.h>
     
    38563961; return 0; }
    38573962EOF
    3858 if { (eval echo configure:3859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     3963if { (eval echo configure:3964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    38593964  rm -rf conftest*
    38603965  ac_cv_header_readline_readline_h_ok="yes"
     
    38723977#not ok -- try once more with explicitly declaring everything
    38733978      echo $ac_n "checking whether or not we nevertheless can use readline""... $ac_c" 1>&6
    3874 echo "configure:3875: checking whether or not we nevertheless can use readline" >&5
     3979echo "configure:3980: checking whether or not we nevertheless can use readline" >&5
    38753980      if eval "test \"`echo '$''{'ac_cv_have_readline'+set}'`\" = set"; then
    38763981  echo $ac_n "(cached) $ac_c" 1>&6
    38773982else
    38783983  cat > conftest.$ac_ext <<EOF
    3879 #line 3880 "configure"
     3984#line 3985 "configure"
    38803985#include "confdefs.h"
    38813986#include <stdio.h>
     
    39074012; return 0; }
    39084013EOF
    3909 if { (eval echo configure:3910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     4014if { (eval echo configure:4015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    39104015  rm -rf conftest*
    39114016  ac_cv_have_readline="yes"
     
    39384043    echo "configure: warning: building without readline: disabling fancy display" 1>&2
    39394044  fi
     4045ac_ext=c
     4046# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
     4047ac_cpp='$CPP $CPPFLAGS'
     4048ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
     4049ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     4050cross_compiling=$ac_cv_prog_cc_cross
     4051
    39404052fi
    39414053
     
    39434055
    39444056# gmp, smallgmp, MP, MPT, factory, libfac
    3945 echo $ac_n "checking for mpq_init in -lgmp""... $ac_c" 1>&6
    3946 echo "configure:3947: checking for mpq_init in -lgmp" >&5
    3947 ac_lib_var=`echo gmp'_'mpq_init | sed 'y%./+-%__p_%'`
     4057echo $ac_n "checking for main in -lgmp""... $ac_c" 1>&6
     4058echo "configure:4059: checking for main in -lgmp" >&5
     4059ac_lib_var=`echo gmp'_'main | sed 'y%./+-%__p_%'`
    39484060if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    39494061  echo $ac_n "(cached) $ac_c" 1>&6
     
    39524064LIBS="-lgmp  $LIBS"
    39534065cat > conftest.$ac_ext <<EOF
    3954 #line 3955 "configure"
    3955 #include "confdefs.h"
    3956 /* Override any gcc2 internal prototype to avoid an error.  */
    3957 /* We use char because int might match the return type of a gcc2
    3958     builtin and then its argument prototype would still apply.  */
    3959 char mpq_init();
     4066#line 4067 "configure"
     4067#include "confdefs.h"
    39604068
    39614069int main() {
    3962 mpq_init()
     4070main()
    39634071; return 0; }
    39644072EOF
    3965 if { (eval echo configure:3966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     4073if { (eval echo configure:4074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    39664074  rm -rf conftest*
    39674075  eval "ac_cv_lib_$ac_lib_var=yes"
     
    39904098fi
    39914099
    3992 if test "ac_cv_lib_gmp_mpq_init" = yes && test "$with-apint" = smallgmp; then
     4100if test "ac_cv_lib_gmp_main" = yes && test "$with-apint" = smallgmp; then
    39934101  LIBS=NEED_LIBS
    39944102fi
    3995 echo $ac_n "checking for mpz_init in -lsmallgmp""... $ac_c" 1>&6
    3996 echo "configure:3997: checking for mpz_init in -lsmallgmp" >&5
    3997 ac_lib_var=`echo smallgmp'_'mpz_init | sed 'y%./+-%__p_%'`
     4103echo $ac_n "checking for main in -lsmallgmp""... $ac_c" 1>&6
     4104echo "configure:4105: checking for main in -lsmallgmp" >&5
     4105ac_lib_var=`echo smallgmp'_'main | sed 'y%./+-%__p_%'`
    39984106if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    39994107  echo $ac_n "(cached) $ac_c" 1>&6
     
    40024110LIBS="-lsmallgmp  $LIBS"
    40034111cat > conftest.$ac_ext <<EOF
    4004 #line 4005 "configure"
    4005 #include "confdefs.h"
    4006 /* Override any gcc2 internal prototype to avoid an error.  */
    4007 /* We use char because int might match the return type of a gcc2
    4008     builtin and then its argument prototype would still apply.  */
    4009 char mpz_init();
     4112#line 4113 "configure"
     4113#include "confdefs.h"
    40104114
    40114115int main() {
    4012 mpz_init()
     4116main()
    40134117; return 0; }
    40144118EOF
    4015 if { (eval echo configure:4016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     4119if { (eval echo configure:4120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    40164120  rm -rf conftest*
    40174121  eval "ac_cv_lib_$ac_lib_var=yes"
     
    40414145
    40424146echo $ac_n "checking for IMP_PutGmpInt in -lMP""... $ac_c" 1>&6
    4043 echo "configure:4044: checking for IMP_PutGmpInt in -lMP" >&5
     4147echo "configure:4148: checking for IMP_PutGmpInt in -lMP" >&5
    40444148ac_lib_var=`echo MP'_'IMP_PutGmpInt | sed 'y%./+-%__p_%'`
    40454149if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    40494153LIBS="-lMP  $LIBS"
    40504154cat > conftest.$ac_ext <<EOF
    4051 #line 4052 "configure"
     4155#line 4156 "configure"
    40524156#include "confdefs.h"
    40534157/* Override any gcc2 internal prototype to avoid an error.  */
     
    40604164; return 0; }
    40614165EOF
    4062 if { (eval echo configure:4063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     4166if { (eval echo configure:4167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    40634167  rm -rf conftest*
    40644168  eval "ac_cv_lib_$ac_lib_var=yes"
     
    40884192
    40894193echo $ac_n "checking for MPT_GetTree in -lMPT""... $ac_c" 1>&6
    4090 echo "configure:4091: checking for MPT_GetTree in -lMPT" >&5
     4194echo "configure:4195: checking for MPT_GetTree in -lMPT" >&5
    40914195ac_lib_var=`echo MPT'_'MPT_GetTree | sed 'y%./+-%__p_%'`
    40924196if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    40964200LIBS="-lMPT  $LIBS"
    40974201cat > conftest.$ac_ext <<EOF
    4098 #line 4099 "configure"
     4202#line 4203 "configure"
    40994203#include "confdefs.h"
    41004204/* Override any gcc2 internal prototype to avoid an error.  */
     
    41074211; return 0; }
    41084212EOF
    4109 if { (eval echo configure:4110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     4213if { (eval echo configure:4214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    41104214  rm -rf conftest*
    41114215  eval "ac_cv_lib_$ac_lib_var=yes"
     
    41354239
    41364240echo $ac_n "checking for atof in -lsingcf""... $ac_c" 1>&6
    4137 echo "configure:4138: checking for atof in -lsingcf" >&5
     4241echo "configure:4242: checking for atof in -lsingcf" >&5
    41384242ac_lib_var=`echo singcf'_'atof | sed 'y%./+-%__p_%'`
    41394243if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    41434247LIBS="-lsingcf  $LIBS"
    41444248cat > conftest.$ac_ext <<EOF
    4145 #line 4146 "configure"
     4249#line 4250 "configure"
    41464250#include "confdefs.h"
    41474251/* Override any gcc2 internal prototype to avoid an error.  */
     
    41544258; return 0; }
    41554259EOF
    4156 if { (eval echo configure:4157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     4260if { (eval echo configure:4261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    41574261  rm -rf conftest*
    41584262  eval "ac_cv_lib_$ac_lib_var=yes"
     
    41824286
    41834287echo $ac_n "checking for atof in -lsingfac""... $ac_c" 1>&6
    4184 echo "configure:4185: checking for atof in -lsingfac" >&5
     4288echo "configure:4289: checking for atof in -lsingfac" >&5
    41854289ac_lib_var=`echo singfac'_'atof | sed 'y%./+-%__p_%'`
    41864290if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    41904294LIBS="-lsingfac  $LIBS"
    41914295cat > conftest.$ac_ext <<EOF
    4192 #line 4193 "configure"
     4296#line 4297 "configure"
    41934297#include "confdefs.h"
    41944298/* Override any gcc2 internal prototype to avoid an error.  */
     
    42014305; return 0; }
    42024306EOF
    4203 if { (eval echo configure:4204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     4307if { (eval echo configure:4308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    42044308  rm -rf conftest*
    42054309  eval "ac_cv_lib_$ac_lib_var=yes"
     
    42334337ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    42344338echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    4235 echo "configure:4236: checking for $ac_hdr" >&5
     4339echo "configure:4340: checking for $ac_hdr" >&5
    42364340if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    42374341  echo $ac_n "(cached) $ac_c" 1>&6
    42384342else
    42394343  cat > conftest.$ac_ext <<EOF
    4240 #line 4241 "configure"
     4344#line 4345 "configure"
    42414345#include "confdefs.h"
    42424346#include <$ac_hdr>
    42434347EOF
    42444348ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    4245 { (eval echo configure:4246: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    4246 ac_err=`grep -v '^ *+' conftest.out`
     4349{ (eval echo configure:4350: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     4350ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    42474351if test -z "$ac_err"; then
    42484352  rm -rf conftest*
     
    42704374
    42714375
    4272 if test "$ac_cv_lib_gmp_mpq_init" = yes && \
     4376if test "$ac_cv_lib_gmp_main" = yes && \
    42734377 test "$ac_cv_header_gmp_h" = yes; then
    42744378    ac_gmp_ok=yes
    42754379fi
    42764380
    4277 if test "$ac_cv_lib_smallgmp_mpz_init" = yes && \
     4381if test "$ac_cv_lib_smallgmp_main" = yes && \
    42784382 test "$ac_cv_header_smallgmp_h" = yes && \
    42794383 test "$ac_cv_header_gmp_h" = yes; then
     
    43004404# evaluate results
    43014405echo $ac_n "checking which apint package to use""... $ac_c" 1>&6
    4302 echo "configure:4303: checking which apint package to use" >&5
     4406echo "configure:4407: checking which apint package to use" >&5
    43034407if test "${with_apint}" != gmp && test "${with_apint}" != smallgmp; then
    43044408  if test "$ac_gmp_ok" = yes || test "$enable_gmp" = yes; then
     
    43444448if test "$with_dl" != no; then
    43454449  echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
    4346 echo "configure:4347: checking for dlopen in -ldl" >&5
     4450echo "configure:4451: checking for dlopen in -ldl" >&5
    43474451ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
    43484452if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    43524456LIBS="-ldl  $LIBS"
    43534457cat > conftest.$ac_ext <<EOF
    4354 #line 4355 "configure"
     4458#line 4459 "configure"
    43554459#include "confdefs.h"
    43564460/* Override any gcc2 internal prototype to avoid an error.  */
     
    43634467; return 0; }
    43644468EOF
    4365 if { (eval echo configure:4366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     4469if { (eval echo configure:4470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    43664470  rm -rf conftest*
    43674471  eval "ac_cv_lib_$ac_lib_var=yes"
     
    44034507  fi
    44044508  echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
    4405 echo "configure:4406: checking for shl_load in -ldld" >&5
     4509echo "configure:4510: checking for shl_load in -ldld" >&5
    44064510ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
    44074511if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    44114515LIBS="-ldld  $LIBS"
    44124516cat > conftest.$ac_ext <<EOF
    4413 #line 4414 "configure"
     4517#line 4518 "configure"
    44144518#include "confdefs.h"
    44154519/* Override any gcc2 internal prototype to avoid an error.  */
     
    44224526; return 0; }
    44234527EOF
    4424 if { (eval echo configure:4425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     4528if { (eval echo configure:4529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    44254529  rm -rf conftest*
    44264530  eval "ac_cv_lib_$ac_lib_var=yes"
     
    44624566
    44634567echo $ac_n "checking whether to have MP""... $ac_c" 1>&6
    4464 echo "configure:4465: checking whether to have MP" >&5
     4568echo "configure:4569: checking whether to have MP" >&5
    44654569if test "${with_MP}" != yes && test "${with_MP}" != no; then
    44664570  if (test "${will_have_gmp}" = yes) && \
     
    44934597
    44944598echo $ac_n "checking whether to have factory""... $ac_c" 1>&6
    4495 echo "configure:4496: checking whether to have factory" >&5
     4599echo "configure:4600: checking whether to have factory" >&5
    44964600if test "${with_factory}" != yes && test "${with_factory}" != no; then
    44974601  if test "$ac_factory_ok" =  yes || test "$enable_factory" = yes; then
     
    45244628
    45254629echo $ac_n "checking whether to have libfac""... $ac_c" 1>&6
    4526 echo "configure:4527: checking whether to have libfac" >&5
     4630echo "configure:4631: checking whether to have libfac" >&5
    45274631if test "${with_libfac}" != yes && test "${with_libfac}" != no; then
    45284632  if (test "${will_have_factory}" = yes) && \
     
    45564660
    45574661echo $ac_n "checking whether to have dbm links""... $ac_c" 1>&6
    4558 echo "configure:4559: checking whether to have dbm links" >&5
     4662echo "configure:4663: checking whether to have dbm links" >&5
    45594663if test "$with_dbm" != no; then
    45604664  cat >> confdefs.h <<\EOF
     
    45684672
    45694673echo $ac_n "checking whether to have namespaces""... $ac_c" 1>&6
    4570 echo "configure:4571: checking whether to have namespaces" >&5
     4674echo "configure:4675: checking whether to have namespaces" >&5
    45714675if test "$with_namespaces" != yes; then
    45724676  echo "$ac_t""no" 1>&6
     
    45804684
    45814685echo $ac_n "checking whether to have dynamic loading""... $ac_c" 1>&6
    4582 echo "configure:4583: checking whether to have dynamic loading" >&5
     4686echo "configure:4687: checking whether to have dynamic loading" >&5
    45834687if test "$with_dl" != yes; then
    45844688  echo "$ac_t""no" 1>&6
     
    45934697        HPUX-9)
    45944698          echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
    4595 echo "configure:4596: checking for shl_load in -ldld" >&5
     4699echo "configure:4700: checking for shl_load in -ldld" >&5
    45964700ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
    45974701if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    46014705LIBS="-ldld  $LIBS"
    46024706cat > conftest.$ac_ext <<EOF
    4603 #line 4604 "configure"
     4707#line 4708 "configure"
    46044708#include "confdefs.h"
    46054709/* Override any gcc2 internal prototype to avoid an error.  */
     
    46124716; return 0; }
    46134717EOF
    4614 if { (eval echo configure:4615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     4718if { (eval echo configure:4719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    46154719  rm -rf conftest*
    46164720  eval "ac_cv_lib_$ac_lib_var=yes"
     
    46444748        HPUX-10)
    46454749          echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
    4646 echo "configure:4647: checking for shl_load in -ldld" >&5
     4750echo "configure:4751: checking for shl_load in -ldld" >&5
    46474751ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
    46484752if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    46524756LIBS="-ldld  $LIBS"
    46534757cat > conftest.$ac_ext <<EOF
    4654 #line 4655 "configure"
     4758#line 4759 "configure"
    46554759#include "confdefs.h"
    46564760/* Override any gcc2 internal prototype to avoid an error.  */
     
    46634767; return 0; }
    46644768EOF
    4665 if { (eval echo configure:4666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     4769if { (eval echo configure:4770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    46664770  rm -rf conftest*
    46674771  eval "ac_cv_lib_$ac_lib_var=yes"
     
    47024806
    47034807echo $ac_n "checking whether to use mtrack""... $ac_c" 1>&6
    4704 echo "configure:4705: checking whether to use mtrack" >&5
     4808echo "configure:4809: checking whether to use mtrack" >&5
    47054809if test "$with_mtrack" = yes && test "$ac_cv_singuname" = ix86-Linux; then
    47064810  echo "$ac_t""yes" 1>&6
     
    47164820
    47174821echo $ac_n "checking which exponent type to use""... $ac_c" 1>&6
    4718 echo "configure:4719: checking which exponent type to use" >&5
     4822echo "configure:4823: checking which exponent type to use" >&5
    47194823if test "$with_exp_type" = "char"; then
    47204824  echo "$ac_t""char" 1>&6
     
    47724876# and sets the high bit in the cache file unless we assign to the vars.
    47734877(set) 2>&1 |
    4774   case `(ac_space=' '; set) 2>&1` in
     4878  case `(ac_space=' '; set | grep ac_space) 2>&1` in
    47754879  *ac_space=\ *)
    47764880    # `set' does not quote correctly, so add quotes (double-quote substitution
     
    48394943    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
    48404944  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
    4841     echo "$CONFIG_STATUS generated by autoconf version 2.12"
     4945    echo "$CONFIG_STATUS generated by autoconf version 2.13"
    48424946    exit 0 ;;
    48434947  -help | --help | --hel | --he | --h)
     
    48584962$ac_vpsub
    48594963$extrasub
     4964s%@SHELL@%$SHELL%g
    48604965s%@CFLAGS@%$CFLAGS%g
    48614966s%@CPPFLAGS@%$CPPFLAGS%g
    48624967s%@CXXFLAGS@%$CXXFLAGS%g
     4968s%@FFLAGS@%$FFLAGS%g
    48634969s%@DEFS@%$DEFS%g
    48644970s%@LDFLAGS@%$LDFLAGS%g
     
    48804986s%@mandir@%$mandir%g
    48814987s%@SINGUNAME@%$SINGUNAME%g
     4988s%@EXEC_EXT@%$EXEC_EXT%g
    48824989s%@SING_UNAME@%$SING_UNAME%g
    48834990s%@SINGULAR_VERSION@%$SINGULAR_VERSION%g
     
    48945001s%@BISON@%$BISON%g
    48955002s%@LN_S@%$LN_S%g
     5003s%@PERL@%$PERL%g
    48965004s%@ALLOCA@%$ALLOCA%g
    4897 s%@PERL5@%$PERL5%g
     5005s%@CXXCPP@%$CXXCPP%g
    48985006s%@LD_LIBC@%$LD_LIBC%g
    48995007s%@NEED_LIBS@%$NEED_LIBS%g
  • Singular/configure.in

    reec9b2 ra70441f  
    2929SINGUNAME=$ac_cv_singuname
    3030AC_SUBST(SINGUNAME)
     31
     32if test "$ac_cv_singuname" = ix86-Win; then
     33  EXEC_EXT=".exe"
     34fi
     35AC_SUBST(EXEC_EXT)
    3136
    3237SING_UNAME=`echo $SINGUNAME | tr '-' '_' `
     
    167172
    168173# expand bindir
    169 test "x$bindir" = 'x${exec_prefix}/bin' && bindir="${exec_prefix}/bin"
    170 SINGULAR=${SINGULAR:-$bindir/Singular-$SINGULAR_MAJOR_VERSION${VERSION_SEP}$SINGULAR_MINOR_VERSION${VERSION_SEP}$SINGULAR_SUB_VERSION}
     174test "x$bindir" = 'x${exec_prefix}/bin' && bindir="${exec_prefix}"
     175SINGULAR=${SINGULAR:-$bindir/Singular-$SINGULAR_MAJOR_VERSION${VERSION_SEP}$SINGULAR_MINOR_VERSION${VERSION_SEP}$SINGULAR_SUB_VERSION}${EXEC_EXT}
    171176AC_SUBST(SINGULAR)
    172177AC_DEFINE_UNQUOTED(S_BIN_DIR, "${bindir}")
    173178
    174179# expand libdir
    175 test "x$libdir" = 'x${exec_prefix}/lib'&& libdir="${exec_prefix}/lib/${SINGULAR_VERSION}"
     180test "x$libdir" = 'x${exec_prefix}/lib'&& libdir="${exec_prefix}/lib"
    176181
    177182# expand includedir
    178 test "x$includedir" = 'x${prefix}/include' && includedir="${exec_prefix}/include/${SINGULAR_VERSION}"
     183test "x$includedir" = 'x${prefix}/include' && includedir="${exec_prefix}/include"
    179184
    180185# add to -I to CPPFLAGS and and -L to LDFLAGS, just to be sure
    181 LDFLAGS="-L${libdir} ${LDFLAGS}"
    182 CPPFLAGS="-I${includedir} ${CPPFLAGS}"
     186LDFLAGS="-L${libdir} ${LDFLAGS} -L/usr/local/lib"
     187CPPFLAGS="-I${includedir} ${CPPFLAGS} -I/usr/local/include"
    183188
    184189# this is a work-around to include the right term.h
     
    234239AC_PROG_LN_S
    235240
     241AC_CHECK_PROGS(PERL, perl5 perl)
     242
    236243dnl llllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
    237244dnl check for general libraries, header files, typedefs, etc
     
    249256  AC_MSG_ERROR(Can not compile without limits.h unistd.h))
    250257
    251 AC_CHECK_HEADERS(malloc.h sys/file.h sys/ioctl.h sys/time.h sys/times.h sys/types.h sys/stat.h fcntl.h sys/param.h pwd.h asm/sigcontext.h pwd.h termcap.h termios.h term.h)
     258AC_CHECK_HEADERS(malloc.h sys/file.h sys/ioctl.h sys/time.h sys/times.h sys/types.h sys/stat.h fcntl.h sys/param.h pwd.h asm/sigcontext.h pwd.h termcap.h termios.h term.h readline/readline.h)
    252259
    253260# typedefs, structures
     
    481488  [  --with-lex=[LEX,no]     uses LEX as lex program, default is flex])
    482489AC_ARG_WITH(
    483   perl5,
    484   [  --with-perl5=[PERL5,no] uses PERL5 as perl5 program, default is perl5])
    485 AC_ARG_WITH(
    486490  readline,
    487491  [  --with-readline          do use static readline for fancy display])
     
    519523  [  --with-mtrack           use mpr routines for extended memory tracking
    520524                             -- works only under ix86-Linux])
    521 dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
    522 dnl Check for perl 5
    523 dnl
    524 # perl version 5
    525 if test "${with_perl5+set}" != set; then
    526   AC_MSG_CHECKING(for perl5)
    527   changequote(<<,>>)dnl
    528   AC_CACHE_VAL(ac_cv_prog_perl5,
    529   if (perl5 -v >/dev/null 2>&1)
    530   then
    531    if (perl5 -v | egrep "version 5\.[0-9]" >/dev/null 2>&1 )
    532     then
    533     ac_cv_prog_perl5=perl5
    534    fi
    535   elif (perl -v >/dev/null 2>&1)
    536   then
    537     if (perl -v | egrep "version 5\.[0-9]" >/dev/null 2>&1 )
    538     then
    539       ac_cv_prog_perl5=perl
    540     fi
    541   fi
    542   )
    543   changequote([,])dnl
    544   if test "${ac_cv_prog_perl5+set}" = set; then
    545     AC_MSG_RESULT(${ac_cv_prog_perl5})
    546     PERL5=${ac_cv_prog_perl5}
    547     AC_SUBST(PERL5)
    548   else
    549     AC_MSG_ERROR(can not find perl version 5)
    550   fi
    551 elif test "${with_perl5}" = no; then
    552   AC_MSG_WARN(building without perl5 --  make might fail)
    553 else
    554   unset PERL5
    555   unset ac_cv_prog_PERL5
    556   AC_CHECK_PROGS(PERL5, ${with_perl5})
    557   if test "x${PERL5}" = x; then
    558     AC_MSG_WARN(building without perl5 -- make might fail)
    559   fi
    560 fi
    561 
    562525dnl llllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
    563526dnl check for packages we need
     
    573536# readline
    574537if test "$with_readline" = yes; then
     538AC_LANG_SAVE
     539AC_LANG_CPLUSPLUS
    575540   AC_CHECK_LIB(readline, rl_abort)
    576541   AC_CHECK_HEADERS(readline/readline.h readline/history.h)
     
    649614    AC_MSG_WARN(building without readline: disabling fancy display)
    650615  fi
     616AC_LANG_RESTORE
    651617fi
    652618
     
    654620
    655621# gmp, smallgmp, MP, MPT, factory, libfac
    656 AC_CHECK_LIB(gmp, mpq_init)
    657 if test "ac_cv_lib_gmp_mpq_init" = yes && test "$with-apint" = smallgmp; then
     622AC_CHECK_LIB(gmp, main)
     623if test "ac_cv_lib_gmp_main" = yes && test "$with-apint" = smallgmp; then
    658624  LIBS=NEED_LIBS
    659625fi
    660 AC_CHECK_LIB(smallgmp, mpz_init)
     626AC_CHECK_LIB(smallgmp, main)
    661627AC_CHECK_LIB(MP, IMP_PutGmpInt)
    662628AC_CHECK_LIB(MPT, MPT_GetTree)
     
    666632AC_CHECK_HEADERS(gmp.h smallgmp.h MP.h  MPT.h factory.h factor.h)
    667633
    668 if test "$ac_cv_lib_gmp_mpq_init" = yes && \
     634if test "$ac_cv_lib_gmp_main" = yes && \
    669635 test "$ac_cv_header_gmp_h" = yes; then
    670636    ac_gmp_ok=yes
    671637fi
    672638
    673 if test "$ac_cv_lib_smallgmp_mpz_init" = yes && \
     639if test "$ac_cv_lib_smallgmp_main" = yes && \
    674640 test "$ac_cv_header_smallgmp_h" = yes && \
    675641 test "$ac_cv_header_gmp_h" = yes; then
  • Singular/emacs.cc

    reec9b2 ra70441f  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: emacs.cc,v 1.11 1999-12-16 13:41:30 obachman Exp $ */
     4/* $Id: emacs.cc,v 1.12 2000-04-27 10:07:05 obachman Exp $ */
    55/*
    66* ABSTRACT: Esingular main file
     
    145145  // make sure  emacs, singular, emacs_dir, emacs_load are set
    146146  if (emacs == NULL) emacs = feResource("emacs", 0);
     147  if (emacs == NULL) emacs = feResource("xemacs", 0);
    147148  if (emacs == NULL)
    148149  {
     
    215216    prefix = "-";
    216217  getcwd(cwd, MAXPATHLEN);
    217 
     218  // append / at the end of cwd
     219  if (cwd[strlen(cwd)-1] != '/') strcat(cwd, "/");
     220   
    218221  // Note: option -no-init-file should be equivalent to -q. Anyhow,
    219222  // xemacs-20.4 sometimes crashed on startup when using -q. DonŽt know why.
  • Singular/extra.cc

    reec9b2 ra70441f  
    22*  Computer Algebra System SINGULAR      *
    33*****************************************/
    4 /* $Id: extra.cc,v 1.132 2000-01-22 12:04:06 Singular Exp $ */
     4/* $Id: extra.cc,v 1.133 2000-04-27 10:07:05 obachman Exp $ */
    55/*
    66* ABSTRACT: general interface to internals of Singular ("system" command)
     
    167167    }
    168168    else
    169 /*==================== gc ==================================*/
    170     if(strcmp(sys_cmd,"gc")==0)
    171     {
    172       mmGarbageCollectHeaps(3);
    173       PrintLn();
    174       return FALSE;
    175     }
    176     else
    177169/*==================== sh ==================================*/
    178170    if(strcmp(sys_cmd,"sh")==0)
     
    188180      res->data=(void *)0;
    189181      #endif
     182      return FALSE;
     183    }
     184    else
     185/*==================== uname ==================================*/
     186    if(strcmp(sys_cmd,"uname")==0)
     187    {
     188      res->rtyp=STRING_CMD;
     189      res->data = mstrdup(S_UNAME);
    190190      return FALSE;
    191191    }
  • Singular/feOpt.cc

    reec9b2 ra70441f  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: feOpt.cc,v 1.9 2000-02-04 13:15:25 obachman Exp $ */
     4/* $Id: feOpt.cc,v 1.10 2000-04-27 10:07:06 obachman Exp $ */
    55/*
    66* ABSTRACT: Implementation of option buisness
     
    131131
    132132  {"min-time",          required_argument,  LONG_OPTION_RETURN,
    133   "SECS",     "Do not display times smaller than SECS (in seconds)",   feOptString, "0.5",  0},
     133  "SECS",     "Do not display times smaller than SECS (in seconds)",   feOptString, (void*) "0.5",  0},
    134134
    135135#ifdef HAVE_MPSR
  • Singular/feResource.cc

    reec9b2 ra70441f  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: feResource.cc,v 1.22 2000-02-04 13:15:26 obachman Exp $ */
     4/* $Id: feResource.cc,v 1.23 2000-04-27 10:07:06 obachman Exp $ */
    55/*
    66* ABSTRACT: management of resources
     
    5757// 1.) '/' characters are replaced by respective directory - separators
    5858// 2.) ';' characters are replaced by respective path separators
    59 static feResourceConfig_s feResourceConfigs[20] =
     59static feResourceConfig_s feResourceConfigs[25] =
    6060{
    6161  {"SearchPath",    's',     feResPath,  NULL,
     
    8686#ifdef ESINGULAR
    8787  {"emacs",    'E',    feResBinary, "ESINGULAR_EMACS",      "%b/emacs",              ""},
     88  {"xemacs",    'A',    feResBinary, "ESINGULAR_EMACS",      "%b/xemacs",              ""},
    8889  {"SingularEmacs",'M',feResBinary, "ESINGULAR_SINGULAR",    "%b/Singular",           ""},
    8990  {"EmacsLoad",'l',    feResFile,   "ESINGULAR_EMACS_LOAD",  "%e/.emacs-singular",             ""},
  • Singular/febase.cc

    reec9b2 ra70441f  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: febase.cc,v 1.85 2000-04-11 15:18:06 Singular Exp $ */
     4/* $Id: febase.cc,v 1.86 2000-04-27 10:07:06 obachman Exp $ */
    55/*
    66* ABSTRACT: i/o system
    77*/
    88
     9/* I need myfread in standalone_parser */
     10#ifndef STANDALONE_PARSER
    911#include "mod2.h"
    1012
     
    631633  return s;
    632634}
     635#else /* ! STANDALONE_PARSER */
     636#include <stdio.h>
     637
     638#endif
    633639
    634640#ifndef unix
     
    638644  char mmode[4];
    639645  int i;
    640   BOOLEAN done = FALSE;
     646  int done = 0;
    641647
    642648  for (i=0;;i++)
     
    644650    mmode[i] = mode[i];
    645651    if (mode[i] == '\0') break;
    646     if (mode[i] == 'b') done = TRUE;
     652    if (mode[i] == 'b') done = 1;
    647653  }
    648654
     
    655661}
    656662#endif
    657 
    658663// replace "\r\n" by " \n" and "\r" by "\n"
    659664
  • Singular/febase.h

    reec9b2 ra70441f  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: febase.h,v 1.45 2000-03-08 15:08:09 Singular Exp $ */
     6/* $Id: febase.h,v 1.46 2000-04-27 10:07:07 obachman Exp $ */
    77/*
    88* ABSTRACT: basic i/o
     
    3939  #undef HAVE_READLINE
    4040  #define HAVE_FEREAD 1
     41#elif ! defined(HAVE_READLINE)
     42  #define HAVE_FEREAD
    4143#endif
    4244
  • Singular/febase.inc

    reec9b2 ra70441f  
     1/* -*-c++-*- */
    12/****************************************
    23*  Computer Algebra System SINGULAR     *
    34****************************************/
    4 /* $Id: febase.inc,v 1.29 2000-02-14 17:00:10 Singular Exp $ */
     5/* $Id: febase.inc,v 1.30 2000-04-27 10:07:07 obachman Exp $ */
    56/*
    67* ABSTRACT: handling of 'voices'
     
    440441{
    441442  char *s=NULL;
    442   int offset; /* will not be used if s==NULL*/
     443  int offset = 0; /* will not be used if s==NULL*/
    443444  // try to read from the buffer into b, max l chars
    444445  if (currentVoice!=NULL)
  • Singular/feread.cc

    reec9b2 ra70441f  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: feread.cc,v 1.34 1999-12-16 16:12:45 Singular Exp $ */
     4/* $Id: feread.cc,v 1.35 2000-04-27 10:07:08 obachman Exp $ */
    55/*
    66* ABSTRACT: input from ttys, simulating fgets
     
    7676#include <sys/stat.h>
    7777#include <sys/errno.h>
     78
     79// #undef READLINE_READLINE_H_OK
    7880
    7981extern "C" {
     
    9193  extern CPPFunction * rl_attempted_completion_function;
    9294  extern FILE * rl_outstream;
    93   char * readline ();
    94   void add_history ();
    95   int write_history ();
     95  extern char * readline ();
     96  extern void add_history ();
     97  extern int write_history ();
     98  extern void using_history();
     99  extern int read_history();
     100  extern int history_total_bytes();
    96101 #endif /* READLINE_READLINE_H_OK */
    97102}
  • Singular/kutil.h

    reec9b2 ra70441f  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: kutil.h,v 1.24 2000-02-01 15:30:24 Singular Exp $ */
     6/* $Id: kutil.h,v 1.25 2000-04-27 10:07:08 obachman Exp $ */
    77/*
    88* ABSTRACT: kernel: utils for kStd
     
    1212#include "mmemory.h"
    1313#include "ring.h"
    14 #if HAVE_ASO == 1
    15 #include "kutil.aso"
    16 #endif
    1714
    1815#define setmax 16
  • Singular/libparse.h

    reec9b2 ra70441f  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: libparse.h,v 1.11 1999-11-15 17:20:17 obachman Exp $ */
     6/* $Id: libparse.h,v 1.12 2000-04-27 10:07:08 obachman Exp $ */
    77/*
    88* ABSTRACT: lib parsing
     
    4444
    4545#  ifdef STANDALONE_PARSER
    46 #    define myfread fread
    47 #    define myfopen fopen
     46#ifndef unix
     47extern FILE* myfopen(char *path, char *mode);
     48extern size_t myfread(void *ptr, size_t size, size_t nmemb, FILE *stream);
     49#else
     50#define myfopen fopen
     51#define myfread fread
     52#endif
    4853#  endif
    4954
  • Singular/libparse.l

    reec9b2 ra70441f  
    33*  Computer Algebra System SINGULAR     *
    44****************************************/
    5 /* $Id: libparse.l,v 1.38 1999-12-08 20:36:20 obachman Exp $ */
     5/* $Id: libparse.l,v 1.39 2000-04-27 10:07:08 obachman Exp $ */
    66#include <stdio.h>
    77#include <string.h>
     
    104104#ifdef STANDALONE_PARSER
    105105procinfov pi;
    106 printpi(procinfov pi);
    107 pi_clear(procinfov pi);
     106void printpi(procinfov pi);
     107void pi_clear(procinfov pi);
    108108extern "C" {
    109109  int yylpwrap();
  • Singular/mod2.h.in

    reec9b2 ra70441f  
     1/* -*-c++-*- */
    12/*******************************************************************
    23 *  Computer Algebra System SINGULAR
     
    56 *          DO NOT EDIT!
    67 *
    7  *  Version: $Id: mod2.h.in,v 1.81 2000-02-01 15:29:26 Singular Exp $
     8 *  Version: $Id: mod2.h.in,v 1.82 2000-04-27 10:07:09 obachman Exp $
    89 *******************************************************************/
    910#ifndef MOD2_H
  • Singular/mpr_complex.cc

    reec9b2 ra70441f  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: mpr_complex.cc,v 1.18 1999-11-14 21:35:09 wenk Exp $ */
     4/* $Id: mpr_complex.cc,v 1.19 2000-04-27 10:07:09 obachman Exp $ */
    55
    66/*
     
    169169{
    170170  gmp_float tmp;
    171   mpf_neg( *(tmp.mpfp()), *(a.mpfp()) );
     171  mpf_neg( *(tmp._mpfp()), *(a.mpfp()) );
    172172  return tmp;
    173173}
     
    176176{
    177177  gmp_float *tmp= new gmp_float();
    178   mpf_abs( *tmp->mpfp(), *a.mpfp() );
     178  mpf_abs( *tmp->_mpfp(), *a.mpfp() );
    179179  return *tmp;
    180180}
     
    182182{
    183183  gmp_float *tmp= new gmp_float();
    184   mpf_sqrt( *tmp->mpfp(), *a.mpfp() );
     184  mpf_sqrt( *tmp->_mpfp(), *a.mpfp() );
    185185  return *tmp;
    186186}
  • Singular/mpr_complex.h

    reec9b2 ra70441f  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: mpr_complex.h,v 1.10 1999-11-14 21:35:09 wenk Exp $ */
     6/* $Id: mpr_complex.h,v 1.11 2000-04-27 10:07:10 obachman Exp $ */
    77
    88/*
     
    114114  // access
    115115  inline const mpf_t *mpfp() const;
    116 
     116  inline mpf_t *_mpfp();
     117 
    117118  inline operator double();
    118119  inline operator double() const;
     
    250251}
    251252
     253inline mpf_t *gmp_float::_mpfp()
     254{
     255  return &t;
     256}
     257
    252258// built-in functions of GMP
    253259gmp_float abs( const gmp_float & );
  • Singular/polys-impl.cc

    reec9b2 ra70441f  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: polys-impl.cc,v 1.41 2000-03-31 13:21:25 Singular Exp $ */
     4/* $Id: polys-impl.cc,v 1.42 2000-04-27 10:07:10 obachman Exp $ */
    55
    66/***************************************************************
     
    137137    d_p->next = (poly) mmDBAllocHeap(d_h, f, l);
    138138#else
    139     mmAllocHeap(d_p->next, d_h);
     139    mmAllocHeapType(d_p->next, d_h, poly);
    140140#endif
    141141    d_p = d_p->next;
     
    188188        d_p->next = (poly) mmDBAllocHeap(d_h, f, l);
    189189#else
    190         mmAllocHeap(d_p->next, d_h);
     190        mmAllocHeapType(d_p->next, d_h, poly);
    191191#endif
    192192        d_p = d_p->next;
     
    211211        d_p->next = (poly) mmDBAllocHeap(d_h, f, l);
    212212#else
    213         mmAllocHeap(d_p->next, d_h);
     213        mmAllocHeapType(d_p->next, d_h, poly);
    214214#endif
    215215        d_p = d_p->next;
     
    239239        d_p->next = (poly) mmDBAllocHeap(d_h, f, l);
    240240#else
    241         mmAllocHeap(d_p->next, d_h);
     241        mmAllocHeapType(d_p->next, d_h, poly);
    242242#endif
    243243        d_p = d_p->next;
     
    263263        d_p->next = (poly) mmDBAllocHeap(d_h, f, l);
    264264#else
    265         mmAllocHeap(d_p->next, d_h);
     265        mmAllocHeapType(d_p->next, d_h,poly);
    266266#endif
    267267        d_p = d_p->next;
     
    328328    w = (poly) mmDBAllocHeap(heap, f, l);
    329329#else
    330     mmAllocHeap(w, heap);
     330    mmAllocHeapType(w, heap, poly);
    331331#endif
    332332    memcpyW(&(w->exp.l[0]), &(p->exp.l[0]), currRing->ExpLSize);
     
    354354    w = (poly) mmDBAllocHeap(d_h, f, l);
    355355#else
    356     mmAllocHeap(w, d_h);
     356    mmAllocHeapType(w, d_h, poly);
    357357#endif
    358358    memcpyW(&(w->exp.l[0]), &(p->exp.l[0]), currRing->ExpLSize);
  • Singular/prProcs.cc

    reec9b2 ra70441f  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: prProcs.cc,v 1.1 1999-11-15 17:20:44 obachman Exp $ */
     4/* $Id: prProcs.cc,v 1.2 2000-04-27 10:07:10 obachman Exp $ */
    55/*
    66*  ABSTRACT -  Routines for primitive poly arithmetic
     
    180180    while (p != NULL)
    181181    {
    182       pNext(q) = AllocHeap(ri->mm_specHeap);
     182      pNext(q) = AllocHeapType(ri->mm_specHeap, poly);
    183183      q = pNext(q);
    184184      pSetCoeff0(q, nMult(ln, pGetCoeff(p)));
     
    192192    while (p != NULL)
    193193    {
    194       r = AllocHeap(ri->mm_specHeap);
     194      r = AllocHeapType(ri->mm_specHeap, poly);
    195195      prMonAdd(r, p, m, ri);
    196196
     
    262262  if (p == NULL) goto Finish;       // we are done if p is 0
    263263 
    264   qm = AllocHeap(r->mm_specHeap);
     264  qm = AllocHeapType(r->mm_specHeap,poly);
    265265  assume(pGetComp(q) == 0 || pGetComp(m) == 0);
    266266  prMonAdd(qm, q, m, r);
     
    309309      }
    310310      // construct new qm
    311       qm = AllocHeap(r->mm_specHeap);
     311      qm = AllocHeapType(r->mm_specHeap,poly);
    312312      assume(pGetComp(q) == 0 || pGetComp(m) == 0);
    313313      prMonAdd(qm, q, m, r);
  • Singular/silink.cc

    reec9b2 ra70441f  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: silink.cc,v 1.33 1999-11-15 17:20:47 obachman Exp $ */
     4/* $Id: silink.cc,v 1.34 2000-04-27 10:07:11 obachman Exp $ */
    55
    66/*
     
    439439  memset(&tmp,0,sizeof(sleftv));
    440440  tmp.rtyp=STRING_CMD;
    441   tmp.data="? ";
     441  tmp.data=(void*) "? ";
    442442  return slReadAscii2(l,&tmp);
    443443}
  • Singular/subexpr.cc

    reec9b2 ra70441f  
    55* ABSTRACT: handling of leftv
    66*/
    7 /* $Id: subexpr.cc,v 1.55 1999-11-15 17:20:51 obachman Exp $ */
     7/* $Id: subexpr.cc,v 1.56 2000-04-27 10:07:11 obachman Exp $ */
    88
    99#include <stdlib.h>
     
    713713
    714714        case NUMBER_CMD:
    715           StringSetS((typed ? "number(" : ""));
     715          StringSetS((char*) (typed ? "number(" : ""));
    716716          if ((rtyp==IDHDL)&&(IDTYP((idhdl)data)==NUMBER_CMD))
    717717          {
     
    734734            nDelete(&n);
    735735          }
    736           s = StringAppendS((typed ? ")" : ""));
     736          s = StringAppendS((char*) (typed ? ")" : ""));
    737737          return mstrdup(s);
    738738         
  • Singular/tesths.cc

    reec9b2 ra70441f  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: tesths.cc,v 1.79 2000-04-11 15:18:08 Singular Exp $ */
     4/* $Id: tesths.cc,v 1.80 2000-04-27 10:07:12 obachman Exp $ */
    55
    66/*
     
    5050  extern void ttGen2();
    5151  #ifndef __MWERKS__
    52     extern mpsr_ttGen(); // For initialization of (CMD, MP_COP) tables
     52    extern void mpsr_ttGen(); // For initialization of (CMD, MP_COP) tables
    5353    mpsr_ttGen();
    5454  #endif
  • Singular/timer.cc

    reec9b2 ra70441f  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: timer.cc,v 1.13 1999-11-15 17:20:55 obachman Exp $ */
     4/* $Id: timer.cc,v 1.14 2000-04-27 10:07:12 obachman Exp $ */
    55
    66/*
     
    122122* if this time is > mintime sec
    123123*/
    124 void writeTime(void* v)
     124void writeTime(char* v)
    125125{
    126126  clock_t curr;
     
    177177* if this time is > mintime
    178178*/
    179 void writeRTime(void* v)
     179void writeRTime(char* v)
    180180{
    181181  struct timeval now;
  • Singular/timer.h

    reec9b2 ra70441f  
    77*  ABSTRACT - get the computing time
    88*/
    9 /* $Id: timer.h,v 1.5 1999-11-15 17:20:55 obachman Exp $ */
     9/* $Id: timer.h,v 1.6 2000-04-27 10:07:12 obachman Exp $ */
    1010
    1111extern int timerv;
    1212void startTimer(void);
    13 void writeTime(void* s);
     13void writeTime(char* s);
    1414
    1515int initTimer();
     
    1919extern int rtimerv;
    2020void startRTimer(void);
    21 void writeRTime(void* s);
     21void writeRTime(char* s);
    2222
    2323void initRTimer();
  • Singular/utils.cc

    reec9b2 ra70441f  
    1818int warning_info = 0, warning_version = 0;
    1919
    20 static usage(char *progname)
     20static void usage(char *progname)
    2121{
    2222  printf("libparse: a syntax-checker for Singular Libraries.\n");
     
    3232 
    3333static char* lib_file = NULL;
     34extern "C" { int fe_getopt (); }
    3435
    3536/*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*/
     
    133134
    134135/*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*/
    135 pi_clear(procinfov pi)
     136void pi_clear(procinfov pi)
    136137{
    137138  free(pi->libname);
     
    168169
    169170
    170 printpi(procinfov pi)
     171void printpi(procinfov pi)
    171172{
    172173  char *buf, name[256];
     
    178179  {
    179180    printf("Can not open %s\n", lib_file);
    180     return 0;
     181    return;
    181182  }
    182183
  • configure

    reec9b2 ra70441f  
    1616\
    1717  --with-tmpdir=DIR       use DIR as temporary directory"
    18 ac_help="$ac_help
    19   --with-perl5=[PERL5,no] uses PERL5 as perl5 program, default is perl5"
    2018ac_help="$ac_help
    2119\
     
    614612
    615613echo $ac_n "checking uname for singular""... $ac_c" 1>&6
    616 echo "configure:617: checking uname for singular" >&5
     614echo "configure:615: checking uname for singular" >&5
    617615if eval "test \"`echo '$''{'ac_cv_singuname'+set}'`\" = set"; then
    618616  echo $ac_n "(cached) $ac_c" 1>&6
     
    633631  SINGUNAME=$ac_cv_singuname
    634632 
     633fi
     634
     635if test "$ac_cv_singuname" = ix86-Win; then
     636  EXEC_EXT=".exe"
    635637fi
    636638
     
    662664set dummy gcc; ac_word=$2
    663665echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    664 echo "configure:665: checking for $ac_word" >&5
     666echo "configure:667: checking for $ac_word" >&5
    665667if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    666668  echo $ac_n "(cached) $ac_c" 1>&6
     
    692694set dummy cc; ac_word=$2
    693695echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    694 echo "configure:695: checking for $ac_word" >&5
     696echo "configure:697: checking for $ac_word" >&5
    695697if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    696698  echo $ac_n "(cached) $ac_c" 1>&6
     
    743745set dummy cl; ac_word=$2
    744746echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    745 echo "configure:746: checking for $ac_word" >&5
     747echo "configure:748: checking for $ac_word" >&5
    746748if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    747749  echo $ac_n "(cached) $ac_c" 1>&6
     
    775777
    776778echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    777 echo "configure:778: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
     779echo "configure:780: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
    778780
    779781ac_ext=c
     
    786788cat > conftest.$ac_ext << EOF
    787789
    788 #line 789 "configure"
     790#line 791 "configure"
    789791#include "confdefs.h"
    790792
    791793main(){return(0);}
    792794EOF
    793 if { (eval echo configure:794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     795if { (eval echo configure:796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    794796  ac_cv_prog_cc_works=yes
    795797  # If we can't run a trivial program, we are probably using a cross compiler.
     
    817819fi
    818820echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    819 echo "configure:820: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
     821echo "configure:822: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
    820822echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
    821823cross_compiling=$ac_cv_prog_cc_cross
    822824
    823825echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
    824 echo "configure:825: checking whether we are using GNU C" >&5
     826echo "configure:827: checking whether we are using GNU C" >&5
    825827if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
    826828  echo $ac_n "(cached) $ac_c" 1>&6
     
    831833#endif
    832834EOF
    833 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:834: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     835if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    834836  ac_cv_prog_gcc=yes
    835837else
     
    850852CFLAGS=
    851853echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
    852 echo "configure:853: checking whether ${CC-cc} accepts -g" >&5
     854echo "configure:855: checking whether ${CC-cc} accepts -g" >&5
    853855if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
    854856  echo $ac_n "(cached) $ac_c" 1>&6
     
    882884
    883885echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
    884 echo "configure:885: checking how to run the C preprocessor" >&5
     886echo "configure:887: checking how to run the C preprocessor" >&5
    885887# On Suns, sometimes $CPP names a directory.
    886888if test -n "$CPP" && test -d "$CPP"; then
     
    897899  # not just through cpp.
    898900  cat > conftest.$ac_ext <<EOF
    899 #line 900 "configure"
     901#line 902 "configure"
    900902#include "confdefs.h"
    901903#include <assert.h>
     
    903905EOF
    904906ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    905 { (eval echo configure:906: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     907{ (eval echo configure:908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    906908ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    907909if test -z "$ac_err"; then
     
    914916  CPP="${CC-cc} -E -traditional-cpp"
    915917  cat > conftest.$ac_ext <<EOF
    916 #line 917 "configure"
     918#line 919 "configure"
    917919#include "confdefs.h"
    918920#include <assert.h>
     
    920922EOF
    921923ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    922 { (eval echo configure:923: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     924{ (eval echo configure:925: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    923925ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    924926if test -z "$ac_err"; then
     
    931933  CPP="${CC-cc} -nologo -E"
    932934  cat > conftest.$ac_ext <<EOF
    933 #line 934 "configure"
     935#line 936 "configure"
    934936#include "confdefs.h"
    935937#include <assert.h>
     
    937939EOF
    938940ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    939 { (eval echo configure:940: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     941{ (eval echo configure:942: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    940942ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    941943if test -z "$ac_err"; then
     
    992994# ./install, which can be erroneously created by make from ./install.sh.
    993995echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
    994 echo "configure:995: checking for a BSD compatible install" >&5
     996echo "configure:997: checking for a BSD compatible install" >&5
    995997if test -z "$INSTALL"; then
    996998if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
     
    10451047
    10461048echo $ac_n "checking for AIX""... $ac_c" 1>&6
    1047 echo "configure:1048: checking for AIX" >&5
     1049echo "configure:1050: checking for AIX" >&5
    10481050cat > conftest.$ac_ext <<EOF
    1049 #line 1050 "configure"
     1051#line 1052 "configure"
    10501052#include "confdefs.h"
    10511053#ifdef _AIX
     
    10741076set dummy $ac_prog; ac_word=$2
    10751077echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1076 echo "configure:1077: checking for $ac_word" >&5
     1078echo "configure:1079: checking for $ac_word" >&5
    10771079if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
    10781080  echo $ac_n "(cached) $ac_c" 1>&6
     
    11031105done
    11041106
     1107for ac_prog in uudecode "uudeview -i"
     1108do
     1109# Extract the first word of "$ac_prog", so it can be a program name with args.
     1110set dummy $ac_prog; ac_word=$2
     1111echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     1112echo "configure:1113: checking for $ac_word" >&5
     1113if eval "test \"`echo '$''{'ac_cv_prog_UUDECODE'+set}'`\" = set"; then
     1114  echo $ac_n "(cached) $ac_c" 1>&6
     1115else
     1116  if test -n "$UUDECODE"; then
     1117  ac_cv_prog_UUDECODE="$UUDECODE" # Let the user override the test.
     1118else
     1119  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     1120  ac_dummy="$PATH"
     1121  for ac_dir in $ac_dummy; do
     1122    test -z "$ac_dir" && ac_dir=.
     1123    if test -f $ac_dir/$ac_word; then
     1124      ac_cv_prog_UUDECODE="$ac_prog"
     1125      break
     1126    fi
     1127  done
     1128  IFS="$ac_save_ifs"
     1129fi
     1130fi
     1131UUDECODE="$ac_cv_prog_UUDECODE"
     1132if test -n "$UUDECODE"; then
     1133  echo "$ac_t""$UUDECODE" 1>&6
     1134else
     1135  echo "$ac_t""no" 1>&6
     1136fi
     1137
     1138test -n "$UUDECODE" && break
     1139done
     1140
    11051141for ac_prog in gunzip
    11061142do
     
    11081144set dummy $ac_prog; ac_word=$2
    11091145echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1110 echo "configure:1111: checking for $ac_word" >&5
     1146echo "configure:1147: checking for $ac_word" >&5
    11111147if eval "test \"`echo '$''{'ac_cv_prog_GUNZIP'+set}'`\" = set"; then
    11121148  echo $ac_n "(cached) $ac_c" 1>&6
     
    11441180set dummy $ac_prog; ac_word=$2
    11451181echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1146 echo "configure:1147: checking for $ac_word" >&5
     1182echo "configure:1183: checking for $ac_word" >&5
    11471183if eval "test \"`echo '$''{'ac_cv_prog_MYGZIP'+set}'`\" = set"; then
    11481184  echo $ac_n "(cached) $ac_c" 1>&6
     
    11771213set dummy latex2html; ac_word=$2
    11781214echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1179 echo "configure:1180: checking for $ac_word" >&5
     1215echo "configure:1216: checking for $ac_word" >&5
    11801216if eval "test \"`echo '$''{'ac_cv_prog_LATEX2HTML'+set}'`\" = set"; then
    11811217  echo $ac_n "(cached) $ac_c" 1>&6
     
    12041240
    12051241echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
    1206 echo "configure:1207: checking whether ln -s works" >&5
     1242echo "configure:1243: checking whether ln -s works" >&5
    12071243if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
    12081244  echo $ac_n "(cached) $ac_c" 1>&6
     
    12561292
    12571293# construct name of installed Singular executable
    1258 SINGULAR=${bindir}/Singular-${SINGULAR_MAJOR_VERSION}${VERSION_SEP}${SINGULAR_MINOR_VERSION}${VERSION_SEP}${SINGULAR_SUB_VERSION}
     1294SINGULAR=${bindir}/Singular-${SINGULAR_MAJOR_VERSION}${VERSION_SEP}${SINGULAR_MINOR_VERSION}${VERSION_SEP}${SINGULAR_SUB_VERSION}${EXEC_EXT}
    12591295export SINGULAR
    12601296
     
    12671303# check for AIX
    12681304echo $ac_n "checking whether _AIX is defined""... $ac_c" 1>&6
    1269 echo "configure:1270: checking whether _AIX is defined" >&5
     1305echo "configure:1306: checking whether _AIX is defined" >&5
    12701306if eval "test \"`echo '$''{'ac_cv_is_aix'+set}'`\" = set"; then
    12711307  echo $ac_n "(cached) $ac_c" 1>&6
    12721308else
    12731309  cat > conftest.$ac_ext <<EOF
    1274 #line 1275 "configure"
     1310#line 1311 "configure"
    12751311#include "confdefs.h"
    12761312#ifdef _AIX
     
    12981334
    12991335echo $ac_n "checking for atof in -lm""... $ac_c" 1>&6
    1300 echo "configure:1301: checking for atof in -lm" >&5
     1336echo "configure:1337: checking for atof in -lm" >&5
    13011337ac_lib_var=`echo m'_'atof | sed 'y%./+-%__p_%'`
    13021338if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    13061342LIBS="-lm  $LIBS"
    13071343cat > conftest.$ac_ext <<EOF
    1308 #line 1309 "configure"
     1344#line 1345 "configure"
    13091345#include "confdefs.h"
    13101346/* Override any gcc2 internal prototype to avoid an error.  */
     
    13171353; return 0; }
    13181354EOF
    1319 if { (eval echo configure:1320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1355if { (eval echo configure:1356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    13201356  rm -rf conftest*
    13211357  eval "ac_cv_lib_$ac_lib_var=yes"
     
    13451381
    13461382echo $ac_n "checking for socket in -lbsd""... $ac_c" 1>&6
    1347 echo "configure:1348: checking for socket in -lbsd" >&5
     1383echo "configure:1384: checking for socket in -lbsd" >&5
    13481384ac_lib_var=`echo bsd'_'socket | sed 'y%./+-%__p_%'`
    13491385if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    13531389LIBS="-lbsd  $LIBS"
    13541390cat > conftest.$ac_ext <<EOF
    1355 #line 1356 "configure"
     1391#line 1392 "configure"
    13561392#include "confdefs.h"
    13571393/* Override any gcc2 internal prototype to avoid an error.  */
     
    13641400; return 0; }
    13651401EOF
    1366 if { (eval echo configure:1367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1402if { (eval echo configure:1403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    13671403  rm -rf conftest*
    13681404  eval "ac_cv_lib_$ac_lib_var=yes"
     
    13921428
    13931429echo $ac_n "checking for listen in -lsocket""... $ac_c" 1>&6
    1394 echo "configure:1395: checking for listen in -lsocket" >&5
     1430echo "configure:1431: checking for listen in -lsocket" >&5
    13951431ac_lib_var=`echo socket'_'listen | sed 'y%./+-%__p_%'`
    13961432if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    14001436LIBS="-lsocket  $LIBS"
    14011437cat > conftest.$ac_ext <<EOF
    1402 #line 1403 "configure"
     1438#line 1439 "configure"
    14031439#include "confdefs.h"
    14041440/* Override any gcc2 internal prototype to avoid an error.  */
     
    14111447; return 0; }
    14121448EOF
    1413 if { (eval echo configure:1414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1449if { (eval echo configure:1450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    14141450  rm -rf conftest*
    14151451  eval "ac_cv_lib_$ac_lib_var=yes"
     
    14391475
    14401476echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
    1441 echo "configure:1442: checking for gethostbyname in -lnsl" >&5
     1477echo "configure:1478: checking for gethostbyname in -lnsl" >&5
    14421478ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
    14431479if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    14471483LIBS="-lnsl  $LIBS"
    14481484cat > conftest.$ac_ext <<EOF
    1449 #line 1450 "configure"
     1485#line 1486 "configure"
    14501486#include "confdefs.h"
    14511487/* Override any gcc2 internal prototype to avoid an error.  */
     
    14581494; return 0; }
    14591495EOF
    1460 if { (eval echo configure:1461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1496if { (eval echo configure:1497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    14611497  rm -rf conftest*
    14621498  eval "ac_cv_lib_$ac_lib_var=yes"
     
    14851521fi
    14861522
    1487 echo $ac_n "checking for mpq_init in -lgmp""... $ac_c" 1>&6
    1488 echo "configure:1489: checking for mpq_init in -lgmp" >&5
    1489 ac_lib_var=`echo gmp'_'mpq_init | sed 'y%./+-%__p_%'`
     1523echo $ac_n "checking for main in -lgmp""... $ac_c" 1>&6
     1524echo "configure:1525: checking for main in -lgmp" >&5
     1525ac_lib_var=`echo gmp'_'main | sed 'y%./+-%__p_%'`
    14901526if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    14911527  echo $ac_n "(cached) $ac_c" 1>&6
     
    14941530LIBS="-lgmp  $LIBS"
    14951531cat > conftest.$ac_ext <<EOF
    1496 #line 1497 "configure"
     1532#line 1533 "configure"
    14971533#include "confdefs.h"
    1498 /* Override any gcc2 internal prototype to avoid an error.  */
    1499 /* We use char because int might match the return type of a gcc2
    1500     builtin and then its argument prototype would still apply.  */
    1501 char mpq_init();
    15021534
    15031535int main() {
    1504 mpq_init()
     1536main()
    15051537; return 0; }
    15061538EOF
    1507 if { (eval echo configure:1508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1539if { (eval echo configure:1540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    15081540  rm -rf conftest*
    15091541  eval "ac_cv_lib_$ac_lib_var=yes"
     
    15331565
    15341566echo $ac_n "checking for mpz_init in -lsmallgmp""... $ac_c" 1>&6
    1535 echo "configure:1536: checking for mpz_init in -lsmallgmp" >&5
     1567echo "configure:1568: checking for mpz_init in -lsmallgmp" >&5
    15361568ac_lib_var=`echo smallgmp'_'mpz_init | sed 'y%./+-%__p_%'`
    15371569if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    15411573LIBS="-lsmallgmp  $LIBS"
    15421574cat > conftest.$ac_ext <<EOF
    1543 #line 1544 "configure"
     1575#line 1576 "configure"
    15441576#include "confdefs.h"
    15451577/* Override any gcc2 internal prototype to avoid an error.  */
     
    15521584; return 0; }
    15531585EOF
    1554 if { (eval echo configure:1555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1586if { (eval echo configure:1587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    15551587  rm -rf conftest*
    15561588  eval "ac_cv_lib_$ac_lib_var=yes"
     
    15801612
    15811613echo $ac_n "checking for IMP_PutGmpInt in -lMP""... $ac_c" 1>&6
    1582 echo "configure:1583: checking for IMP_PutGmpInt in -lMP" >&5
     1614echo "configure:1615: checking for IMP_PutGmpInt in -lMP" >&5
    15831615ac_lib_var=`echo MP'_'IMP_PutGmpInt | sed 'y%./+-%__p_%'`
    15841616if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    15881620LIBS="-lMP  $LIBS"
    15891621cat > conftest.$ac_ext <<EOF
    1590 #line 1591 "configure"
     1622#line 1623 "configure"
    15911623#include "confdefs.h"
    15921624/* Override any gcc2 internal prototype to avoid an error.  */
     
    15991631; return 0; }
    16001632EOF
    1601 if { (eval echo configure:1602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1633if { (eval echo configure:1634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    16021634  rm -rf conftest*
    16031635  eval "ac_cv_lib_$ac_lib_var=yes"
     
    16271659
    16281660echo $ac_n "checking for MPT_GetTree in -lMPT""... $ac_c" 1>&6
    1629 echo "configure:1630: checking for MPT_GetTree in -lMPT" >&5
     1661echo "configure:1662: checking for MPT_GetTree in -lMPT" >&5
    16301662ac_lib_var=`echo MPT'_'MPT_GetTree | sed 'y%./+-%__p_%'`
    16311663if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    16351667LIBS="-lMPT  $LIBS"
    16361668cat > conftest.$ac_ext <<EOF
    1637 #line 1638 "configure"
     1669#line 1670 "configure"
    16381670#include "confdefs.h"
    16391671/* Override any gcc2 internal prototype to avoid an error.  */
     
    16461678; return 0; }
    16471679EOF
    1648 if { (eval echo configure:1649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1680if { (eval echo configure:1681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    16491681  rm -rf conftest*
    16501682  eval "ac_cv_lib_$ac_lib_var=yes"
     
    16741706
    16751707echo $ac_n "checking for atof in -lsingcf""... $ac_c" 1>&6
    1676 echo "configure:1677: checking for atof in -lsingcf" >&5
     1708echo "configure:1709: checking for atof in -lsingcf" >&5
    16771709ac_lib_var=`echo singcf'_'atof | sed 'y%./+-%__p_%'`
    16781710if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    16821714LIBS="-lsingcf  $LIBS"
    16831715cat > conftest.$ac_ext <<EOF
    1684 #line 1685 "configure"
     1716#line 1717 "configure"
    16851717#include "confdefs.h"
    16861718/* Override any gcc2 internal prototype to avoid an error.  */
     
    16931725; return 0; }
    16941726EOF
    1695 if { (eval echo configure:1696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1727if { (eval echo configure:1728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    16961728  rm -rf conftest*
    16971729  eval "ac_cv_lib_$ac_lib_var=yes"
     
    17211753
    17221754echo $ac_n "checking for atof in -lsingfac""... $ac_c" 1>&6
    1723 echo "configure:1724: checking for atof in -lsingfac" >&5
     1755echo "configure:1756: checking for atof in -lsingfac" >&5
    17241756ac_lib_var=`echo singfac'_'atof | sed 'y%./+-%__p_%'`
    17251757if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    17291761LIBS="-lsingfac  $LIBS"
    17301762cat > conftest.$ac_ext <<EOF
    1731 #line 1732 "configure"
     1763#line 1764 "configure"
    17321764#include "confdefs.h"
    17331765/* Override any gcc2 internal prototype to avoid an error.  */
     
    17401772; return 0; }
    17411773EOF
    1742 if { (eval echo configure:1743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1774if { (eval echo configure:1775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    17431775  rm -rf conftest*
    17441776  eval "ac_cv_lib_$ac_lib_var=yes"
     
    17721804ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    17731805echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    1774 echo "configure:1775: checking for $ac_hdr" >&5
     1806echo "configure:1807: checking for $ac_hdr" >&5
    17751807if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    17761808  echo $ac_n "(cached) $ac_c" 1>&6
    17771809else
    17781810  cat > conftest.$ac_ext <<EOF
    1779 #line 1780 "configure"
     1811#line 1812 "configure"
    17801812#include "confdefs.h"
    17811813#include <$ac_hdr>
    17821814EOF
    17831815ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1784 { (eval echo configure:1785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1816{ (eval echo configure:1817: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    17851817ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    17861818if test -z "$ac_err"; then
     
    18091841
    18101842
    1811 if test "$ac_cv_lib_gmp_mpq_init" = yes && \
     1843if test "$ac_cv_lib_gmp_main" = yes && \
    18121844 test "$ac_cv_header_gmp_h" = yes; then
    18131845  ac_gmp_ok=yes
     
    18441876fi
    18451877
    1846 # Check whether --with-perl5 or --without-perl5 was given.
    1847 if test "${with_perl5+set}" = set; then
    1848   withval="$with_perl5"
    1849   :
    1850 fi
    1851 
    18521878# Check whether --enable-smallgmp or --disable-smallgmp was given.
    18531879if test "${enable_smallgmp+set}" = set; then
     
    19541980
    19551981echo $ac_n "checking which tmp dir to use""... $ac_c" 1>&6
    1956 echo "configure:1957: checking which tmp dir to use" >&5
     1982echo "configure:1983: checking which tmp dir to use" >&5
    19571983if test "${with_tmpdir+set}" = set && test -d ${with_tmpdir}; then
    19581984  if (echo "${with_tmpdir}" | egrep "\." >/dev/null 2>&1)
     
    19681994
    19691995
    1970 # perl version 5
    1971 if test "${with_perl5+set}" != set; then
    1972   echo $ac_n "checking for perl5""... $ac_c" 1>&6
    1973 echo "configure:1974: checking for perl5" >&5
    1974     if eval "test \"`echo '$''{'ac_cv_prog_perl5'+set}'`\" = set"; then
    1975   echo $ac_n "(cached) $ac_c" 1>&6
    1976 else
    1977   if (perl5 -v >/dev/null 2>&1)
    1978   then
    1979    if (perl5 -v | egrep "version 5\.[0-9]" >/dev/null 2>&1 )
    1980     then
    1981     ac_cv_prog_perl5=perl5
    1982    fi
    1983   elif (perl -v >/dev/null 2>&1)
    1984   then
    1985     if (perl -v | egrep "version 5\.[0-9]" >/dev/null 2>&1 )
    1986     then
    1987       ac_cv_prog_perl5=perl
    1988     fi
    1989   fi
    1990  
    1991 fi
    1992 
    1993     if test "${ac_cv_prog_perl5+set}" = set; then
    1994     echo "$ac_t""${ac_cv_prog_perl5}" 1>&6
    1995     PERL5=${ac_cv_prog_perl5}
    1996    
    1997   else
    1998     { echo "configure: error: can not find perl version 5" 1>&2; exit 1; }
    1999   fi
    2000 elif test "${with_perl5}" = no; then
    2001   echo "configure: warning: building without perl5 --  make might fail" 1>&2
    2002 else
    2003   unset PERL5
    2004   unset ac_cv_prog_PERL5
    2005   for ac_prog in ${with_perl5}
    2006 do
    2007 # Extract the first word of "$ac_prog", so it can be a program name with args.
    2008 set dummy $ac_prog; ac_word=$2
    2009 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2010 echo "configure:2011: checking for $ac_word" >&5
    2011 if eval "test \"`echo '$''{'ac_cv_prog_PERL5'+set}'`\" = set"; then
    2012   echo $ac_n "(cached) $ac_c" 1>&6
    2013 else
    2014   if test -n "$PERL5"; then
    2015   ac_cv_prog_PERL5="$PERL5" # Let the user override the test.
    2016 else
    2017   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    2018   ac_dummy="$PATH"
    2019   for ac_dir in $ac_dummy; do
    2020     test -z "$ac_dir" && ac_dir=.
    2021     if test -f $ac_dir/$ac_word; then
    2022       ac_cv_prog_PERL5="$ac_prog"
    2023       break
    2024     fi
    2025   done
    2026   IFS="$ac_save_ifs"
    2027 fi
    2028 fi
    2029 PERL5="$ac_cv_prog_PERL5"
    2030 if test -n "$PERL5"; then
    2031   echo "$ac_t""$PERL5" 1>&6
    2032 else
    2033   echo "$ac_t""no" 1>&6
    2034 fi
    2035 
    2036 test -n "$PERL5" && break
    2037 done
    2038 
    2039   if test "x${PERL5}" = x; then
    2040     echo "configure: warning: building without perl5 -- make might fail" 1>&2
    2041   fi
    2042 fi
    2043 
    2044 
    20451996
    20461997echo $ac_n "checking whether to configure and build gmp lib""... $ac_c" 1>&6
    2047 echo "configure:2048: checking whether to configure and build gmp lib" >&5
     1998echo "configure:1999: checking whether to configure and build gmp lib" >&5
    20481999if test "$enable_gmp" != yes && test "$enable_gmp" != no; then
    20492000  if test "$ac_gmp_ok" != yes && test -d gmp; then
     
    20712022
    20722023echo $ac_n "checking whether to configure and build smallgmp lib""... $ac_c" 1>&6
    2073 echo "configure:2074: checking whether to configure and build smallgmp lib" >&5
     2024echo "configure:2025: checking whether to configure and build smallgmp lib" >&5
    20742025if test "$enable_smallgmp" != yes && test "$enable_smallgmp" != no; then
    20752026  if test "$ac_smallgmp_ok" != yes && test "$ac_gmp_ok" != yes && \
     
    21102061
    21112062echo $ac_n "checking whether to configure and build MP lib""... $ac_c" 1>&6
    2112 echo "configure:2113: checking whether to configure and build MP lib" >&5
     2063echo "configure:2064: checking whether to configure and build MP lib" >&5
    21132064if test "$enable_MP" != yes && test "$enable_MP" != no; then
    21142065  if test "$with_MP" != no && test "$ac_MP_ok" != yes && test -d MP && \
     
    21392090 
    21402091echo $ac_n "checking whether to configure and build factory lib""... $ac_c" 1>&6
    2141 echo "configure:2142: checking whether to configure and build factory lib" >&5
     2092echo "configure:2093: checking whether to configure and build factory lib" >&5
    21422093if test "$enable_factory" != yes && test "$enable_factory" != no; then
    21432094  if test "$with_factory" != no && test "$ac_factory_ok" != yes && \
     
    21642115
    21652116echo $ac_n "checking whether to configure and build libfac lib""... $ac_c" 1>&6
    2166 echo "configure:2167: checking whether to configure and build libfac lib" >&5
     2117echo "configure:2118: checking whether to configure and build libfac lib" >&5
    21672118if test "$enable_libfac" != yes && test "$enable_libfac" != no; then
    21682119  if test "$with_libfac" != no && test "$ac_libfac_ok" != yes && \
     
    21942145
    21952146echo $ac_n "checking whether to configure and build sgroup lib""... $ac_c" 1>&6
    2196 echo "configure:2197: checking whether to configure and build sgroup lib" >&5
     2147echo "configure:2148: checking whether to configure and build sgroup lib" >&5
    21972148if test "$enable_sgroup" = yes; then
    21982149  if test ! -d sgroup; then
     
    22142165
    22152166echo $ac_n "checking whether to build mpr and use mtrack""... $ac_c" 1>&6
    2216 echo "configure:2217: checking whether to build mpr and use mtrack" >&5
     2167echo "configure:2168: checking whether to build mpr and use mtrack" >&5
    22172168if test -d mpr && test "$ac_cv_singuname" = ix86-Linux && test "$enable_mtrack" != no; then
    22182169  echo "$ac_t""yes" 1>&6
     
    22292180
    22302181echo $ac_n "checking whether to configure and build Singular""... $ac_c" 1>&6
    2231 echo "configure:2232: checking whether to configure and build Singular" >&5
     2182echo "configure:2183: checking whether to configure and build Singular" >&5
    22322183if test "$enable_Singular" != yes && test "$enable_Singular" != no; then
    22332184  if test "$with_Singular" != no && test -d Singular; then
     
    22552206
    22562207echo $ac_n "checking whether to configure and build Texinfo""... $ac_c" 1>&6
    2257 echo "configure:2258: checking whether to configure and build Texinfo" >&5
     2208echo "configure:2209: checking whether to configure and build Texinfo" >&5
    22582209if test "$enable_Texinfo" != no && test -d Texinfo; then
    22592210  echo "$ac_t""yes" 1>&6
     
    22772228set dummy makeinfo; ac_word=$2
    22782229echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2279 echo "configure:2280: checking for $ac_word" >&5
     2230echo "configure:2231: checking for $ac_word" >&5
    22802231if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
    22812232  echo $ac_n "(cached) $ac_c" 1>&6
     
    23072258set dummy texi2dvi; ac_word=$2
    23082259echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2309 echo "configure:2310: checking for $ac_word" >&5
     2260echo "configure:2261: checking for $ac_word" >&5
    23102261if eval "test \"`echo '$''{'ac_cv_prog_TEXI2DVI'+set}'`\" = set"; then
    23112262  echo $ac_n "(cached) $ac_c" 1>&6
     
    23372288set dummy texindex; ac_word=$2
    23382289echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2339 echo "configure:2340: checking for $ac_word" >&5
     2290echo "configure:2291: checking for $ac_word" >&5
    23402291if eval "test \"`echo '$''{'ac_cv_prog_TEXINDEX'+set}'`\" = set"; then
    23412292  echo $ac_n "(cached) $ac_c" 1>&6
     
    23682319
    23692320echo $ac_n "checking whether to configure and build Texi2html""... $ac_c" 1>&6
    2370 echo "configure:2371: checking whether to configure and build Texi2html" >&5
     2321echo "configure:2322: checking whether to configure and build Texi2html" >&5
    23712322if test "$enable_Texi2html" != no && test -d Texi2html; then
    23722323 echo "$ac_t""yes" 1>&6
     
    23832334set dummy texi2html; ac_word=$2
    23842335echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2385 echo "configure:2386: checking for $ac_word" >&5
     2336echo "configure:2337: checking for $ac_word" >&5
    23862337if eval "test \"`echo '$''{'ac_cv_prog_TEXI2HTML'+set}'`\" = set"; then
    23872338  echo $ac_n "(cached) $ac_c" 1>&6
     
    24212372
    24222373echo $ac_n "checking whether to build doc""... $ac_c" 1>&6
    2423 echo "configure:2424: checking whether to build doc" >&5
     2374echo "configure:2375: checking whether to build doc" >&5
    24242375if test "$enable_doc" != no && test -d doc; then
    24252376 echo "$ac_t""yes" 1>&6
     
    24352386
    24362387echo $ac_n "checking whether to build emacs""... $ac_c" 1>&6
    2437 echo "configure:2438: checking whether to build emacs" >&5
     2388echo "configure:2389: checking whether to build emacs" >&5
    24382389if test "$enable_doc" = yes && test "$enable_emacs" != no && test -d emacs; then
    24392390 echo "$ac_t""yes" 1>&6
     
    24472398
    24482399echo $ac_n "checking which apint package to use""... $ac_c" 1>&6
    2449 echo "configure:2450: checking which apint package to use" >&5
     2400echo "configure:2401: checking which apint package to use" >&5
    24502401if test "$with_apint" = gmp; then
    24512402  if test "$ac_gmp_ok" = yes || test "$enable_gmp" = yes; then
     
    24712422
    24722423echo $ac_n "checking whether to use with MP""... $ac_c" 1>&6
    2473 echo "configure:2474: checking whether to use with MP" >&5
     2424echo "configure:2425: checking whether to use with MP" >&5
    24742425if test "$with_MP" = yes; then
    24752426  if test "$ac_MP_ok" = yes || test "$enable_MP" = yes; then
     
    24902441
    24912442echo $ac_n "checking whether to use with factory""... $ac_c" 1>&6
    2492 echo "configure:2493: checking whether to use with factory" >&5
     2443echo "configure:2444: checking whether to use with factory" >&5
    24932444if test "$with_factory" = yes; then
    24942445  if test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then
     
    25092460 
    25102461echo $ac_n "checking whether to use with libfac""... $ac_c" 1>&6
    2511 echo "configure:2512: checking whether to use with libfac" >&5
     2462echo "configure:2463: checking whether to use with libfac" >&5
    25122463if test "$with_libfac" = yes; then
    25132464  if test "$ac_libfac_ok" = yes || test "$enable_libfac" = yes; then
     
    25292480
    25302481echo $ac_n "checking whether to use with mtrack""... $ac_c" 1>&6
    2531 echo "configure:2532: checking whether to use with mtrack" >&5
     2482echo "configure:2483: checking whether to use with mtrack" >&5
    25322483if test "$with_mtrack" != no && test "$with_mtrack" != yes; then
    25332484  if test "$enable_mtrack" = yes; then
     
    25492500
    25502501echo $ac_n "checking whether to use with Singular""... $ac_c" 1>&6
    2551 echo "configure:2552: checking whether to use with Singular" >&5
     2502echo "configure:2503: checking whether to use with Singular" >&5
    25522503if test "$with_Singular" != no && test "$with_Singular" != yes; then
    25532504  if test "$enable_Singular" = yes; then
     
    26092560
    26102561echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
    2611 echo "configure:2612: checking whether ${MAKE-make} sets \${MAKE}" >&5
     2562echo "configure:2563: checking whether ${MAKE-make} sets \${MAKE}" >&5
    26122563set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
    26132564if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
     
    27972748s%@INSTALL_DATA@%$INSTALL_DATA%g
    27982749s%@PERL@%$PERL%g
     2750s%@UUDECODE@%$UUDECODE%g
    27992751s%@GUNZIP@%$GUNZIP%g
    28002752s%@MYGZIP@%$MYGZIP%g
     
    28032755s%@SINGULAR@%$SINGULAR%g
    28042756s%@TMP_DIR@%$TMP_DIR%g
    2805 s%@PERL5@%$PERL5%g
    28062757s%@TEXI2DVI@%$TEXI2DVI%g
    28072758s%@MAKEINFO@%$MAKEINFO%g
  • configure.in

    reec9b2 ra70441f  
    4343  SINGUNAME=$ac_cv_singuname
    4444  AC_SUBST(SINGUNAME)
     45fi
     46
     47if test "$ac_cv_singuname" = ix86-Win; then
     48  EXEC_EXT=".exe"
    4549fi
    4650
     
    8286
    8387AC_CHECK_PROGS(PERL, perl5 perl)
     88AC_CHECK_PROGS(UUDECODE, uudecode "uudeview -i")
    8489AC_CHECK_PROGS(GUNZIP, gunzip,  ${pwd}/warn_not_found.sh gunzip)
    8590# don't use GZIP this breaks configure
     
    122127
    123128# construct name of installed Singular executable
    124 SINGULAR=${bindir}/Singular-${SINGULAR_MAJOR_VERSION}${VERSION_SEP}${SINGULAR_MINOR_VERSION}${VERSION_SEP}${SINGULAR_SUB_VERSION}
     129SINGULAR=${bindir}/Singular-${SINGULAR_MAJOR_VERSION}${VERSION_SEP}${SINGULAR_MINOR_VERSION}${VERSION_SEP}${SINGULAR_SUB_VERSION}${EXEC_EXT}
    125130export SINGULAR
    126131AC_SUBST(SINGULAR)
     
    156161AC_CHECK_LIB(socket, listen)
    157162AC_CHECK_LIB(nsl, gethostbyname)
    158 AC_CHECK_LIB(gmp, mpq_init)
     163AC_CHECK_LIB(gmp, main)
    159164AC_CHECK_LIB(smallgmp, mpz_init)
    160165AC_CHECK_LIB(MP, IMP_PutGmpInt)
     
    165170AC_CHECK_HEADERS(gmp.h smallgmp.h MP.h  MPT.h factory.h factor.h)
    166171
    167 if test "$ac_cv_lib_gmp_mpq_init" = yes && \
     172if test "$ac_cv_lib_gmp_main" = yes && \
    168173 test "$ac_cv_header_gmp_h" = yes; then
    169174  ac_gmp_ok=yes
     
    199204AC_ARG_WITH(tmpdir, \
    200205 [ --with-tmpdir=DIR       use DIR as temporary directory])
    201 AC_ARG_WITH(
    202   perl5,
    203   [  --with-perl5=[PERL5,no] uses PERL5 as perl5 program, default is perl5])
    204206AC_ARG_ENABLE(smallgmp, \
    205207 [ --enable-PACKAGE        configure and/or build PACKAGE
     
    265267
    266268dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
    267 dnl Check for perl 5
    268 dnl
    269 # perl version 5
    270 if test "${with_perl5+set}" != set; then
    271   AC_MSG_CHECKING(for perl5)
    272   changequote(<<,>>)dnl
    273   AC_CACHE_VAL(ac_cv_prog_perl5,
    274   if (perl5 -v >/dev/null 2>&1)
    275   then
    276    if (perl5 -v | egrep "version 5\.[0-9]" >/dev/null 2>&1 )
    277     then
    278     ac_cv_prog_perl5=perl5
    279    fi
    280   elif (perl -v >/dev/null 2>&1)
    281   then
    282     if (perl -v | egrep "version 5\.[0-9]" >/dev/null 2>&1 )
    283     then
    284       ac_cv_prog_perl5=perl
    285     fi
    286   fi
    287   )
    288   changequote([,])dnl
    289   if test "${ac_cv_prog_perl5+set}" = set; then
    290     AC_MSG_RESULT(${ac_cv_prog_perl5})
    291     PERL5=${ac_cv_prog_perl5}
    292     AC_SUBST(PERL5)
    293   else
    294     AC_MSG_ERROR(can not find perl version 5)
    295   fi
    296 elif test "${with_perl5}" = no; then
    297   AC_MSG_WARN(building without perl5 --  make might fail)
    298 else
    299   unset PERL5
    300   unset ac_cv_prog_PERL5
    301   AC_CHECK_PROGS(PERL5, ${with_perl5})
    302   if test "x${PERL5}" = x; then
    303     AC_MSG_WARN(building without perl5 -- make might fail)
    304   fi
    305 fi
    306 
    307 
    308 dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
    309269dnl Check whether or not to configure and build various packages
    310270dnl
  • doc/Makefile.in

    reec9b2 ra70441f  
    22###
    33### Makefile for Singular documentation
    4 ### $Id: Makefile.in,v 1.62 2000-03-13 15:51:27 obachman Exp $
     4### $Id: Makefile.in,v 1.63 2000-04-27 10:07:18 obachman Exp $
    55#####################################################################
    66SHELL=/bin/sh
     
    3636MKINSTALLDIRS   = ../mkinstalldirs
    3737GZIP            = @GZIP@
    38 
    39 PERL5           = @PERL5@
     38UUDECODE        = @UUDECODE@
     39
     40PERL            = @PERL@
    4041TEX             = tex
    41 MAKEINFO        = @MAKEINFO@
     42MAKEINFO        = @MAKEINFO@ --force
    4243TEXI2DVI        = @TEXI2DVI@
    4344TEXINDEX        = @TEXINDEX@
     
    5455EX_SUBDIR       = ./examples
    5556CHKSUM_DB       = ${DOC_SUBDIR}/chksum
    56 DOC2TEX         = ${PERL5} ./doc2tex.pl -docdir ${DOC_SUBDIR} \
     57DOC2TEX         = ${PERL} ./doc2tex.pl -docdir ${DOC_SUBDIR} \
    5758                  -Singular ${SINGULAR} -verbose ${VERBOSE} -make ${MAKE} \
    5859                  -exdir ${EX_SUBDIR}
    59 PL2DOC          = ${PERL5} ./pl2doc.pl -db  ${CHKSUM_DB}
     60PL2DOC          = ${PERL} ./pl2doc.pl -db  ${CHKSUM_DB}
    6061
    6162# t2h stuff
     
    173174# index file for help
    174175singular.idx: singular.hlp ${HTML_SUBDIR}/${HTML_MANUAL_PREFIX}_cp.idx doc2idx.pl
    175         ${PERL5} doc2idx.pl singular.hlp ${HTML_SUBDIR}/${HTML_MANUAL_PREFIX}_cp.idx ${CHKSUM_DB} > singular.idx
     176        ${PERL} doc2idx.pl singular.hlp ${HTML_SUBDIR}/${HTML_MANUAL_PREFIX}_cp.idx ${CHKSUM_DB} > singular.idx
    176177
    177178###########################################################
     
    195196
    196197%.${SINGUNAME}.html : %.texi
    197         ${PERL5} ${TEXI2HTML} $(UNAME_OPT) -init_file t2h_standalone.init -verbose -split none -o $@ $<
     198        ${PERL} ${TEXI2HTML} $(UNAME_OPT) -init_file t2h_standalone.init -verbose -split none -o $@ $<
    198199
    199200%.html : %.texi
    200         ${PERL5} ${TEXI2HTML} -init_file t2h_standalone.init -verbose -split none -o $@ $<
     201        ${PERL} ${TEXI2HTML} -init_file t2h_standalone.init -verbose -split none -o $@ $<
    201202
    202203% : %.txt
     
    228229html: ${TMP_DIR} ${HTML_SUBDIR}/${HTML_MANUAL_TOP} ${IMAGES_HTML} $(STANDALONE_TEXI_FILES)
    229230${HTML_SUBDIR}/${HTML_MANUAL_TOP}: ${TEXI2HTML_INIT} ${TEXI2HTML} singular.tex
    230         ${PERL5} ${TEXI2HTML} ${TEXI2HTML_OPTS} -prefix ${HTML_MANUAL_PREFIX} \
     231        ${PERL} ${TEXI2HTML} ${TEXI2HTML_OPTS} -prefix ${HTML_MANUAL_PREFIX} \
    231232        -top_file ${HTML_MANUAL_TOP} singular.tex
    232233
     
    234235html_tutor: ${TMP_DIR} ${HTML_SUBDIR}/${HTML_TUTOR_TOP} ${IMAGES_HTML}
    235236${HTML_SUBDIR}/${HTML_TUTOR_TOP}: ${TEXI2HTML_INIT} ${TEXI2HTML} tutor.tex
    236         ${PERL5} ${TEXI2HTML} ${TEXI2HTML_OPTS} -prefix ${HTML_TUTOR_PREFIX} \
     237        ${PERL} ${TEXI2HTML} ${TEXI2HTML_OPTS} -prefix ${HTML_TUTOR_PREFIX} \
    237238        -top_file ${HTML_TUTOR_TOP} tutor.tex
    238239
     
    244245# pattern rules for images - but not everybody has gnu-uudecode
    245246images/%.gif : images/%.gif.uu
    246         cd images; uudecode ../$< ;cd ..
     247        cd images; ${UUDECODE} ../$< ;cd ..
    247248
    248249images/%.jpg : images/%.jpg.uu
    249         cd images; uudecode ../$< ;cd ..
     250        cd images; ${UUDECODE} ../$< ;cd ..
    250251
    251252images/%.xbm : images/%.xbm.uu
    252         cd images; uudecode ../$< ;cd ..
     253        cd images; ${UUDECODE} ../$< ;cd ..
    253254
    254255${IMAGES_HTML} : ${IMAGES_SRC}
  • doc/NEWS.texi

    reec9b2 ra70441f  
    11@comment -*-texinfo-*-
    2 @comment $Id: NEWS.texi,v 1.11 2000-03-03 15:45:12 Singular Exp $
     2@comment $Id: NEWS.texi,v 1.12 2000-04-27 10:07:19 obachman Exp $
    33@comment this file contains the News about Singular versions
    44@comment Unix
     
    188188@heading TBC
    189189
    190 @itemize
     190@itemize @bullet
    191191@item
    192192@code{libreadline} for other architectures than ix86-libc5,
  • doc/doc2idx.pl

    reec9b2 ra70441f  
    11#!/usr/local/bin/perl
    2 # $Id: doc2idx.pl,v 1.1 1999-07-22 13:54:21 obachman Exp $
     2# $Id: doc2idx.pl,v 1.2 2000-04-27 10:07:19 obachman Exp $
    33###################################################################
    44#  Computer Algebra System SINGULAR
     
    3232open (URL, "<$ARGV[1]") || die "Can't open $ARGV[1]: $!\n";
    3333$db_file = $ARGV[2];
    34 $db_file = $1 if ($db_file =~ /(.*)\..*$/);
    35 dbmopen (%CHK, $db_file, 0666) ||
    36       die "Error: can't open chksum data base $db_file";
     34unless ($return = do $db_file)
     35{
     36  die "couldn't parse $db_file: $@" if $@;
     37  die "couldn't do $db_file: $!"    unless defined $return;
     38  die "couldn't run $db_file"       unless $return;
     39}
    3740
    3841# fill hashes
     
    7578for $entry (sort keys %$index)
    7679{
    77   print "$entry\t$index->{$entry}->{Node}\t$index->{$entry}->{Url}\t$CHK{$entry}\n";
     80  print "$entry\t$index->{$entry}->{Node}\t$index->{$entry}->{Url}\t$CHECKSUMS{$entry}\n";
    7881}
    7982
    80 close(%CHK);
    8183
  • doc/doc2tex.pl

    reec9b2 ra70441f  
    11#!/usr/local/bin/perl
    2 # $Id: doc2tex.pl,v 1.24 2000-03-09 16:37:23 hannes Exp $
     2# $Id: doc2tex.pl,v 1.25 2000-04-27 10:07:20 obachman Exp $
    33###################################################################
    44#  Computer Algebra System SINGULAR
     
    77#
    88####
    9 # @c example [error] [no_comp]
     9# @c example [error] [no_comp] [unix_only]
    1010#    -> the text till the next @c example is feed into Singular,
    1111#       the text is then substituted by
     
    2222#       unless 'error' is specified
    2323#       if no_comp is given, then computation is not run
     24#       if unix_only is given, then computation is only run
     25#                              under unix
    2426#       
    2527#
     
    5052#
    5153###################################################################
     54
     55use Config;
     56$Win32 = 1 if ($Config{osname} =~ /win/i);
    5257
    5358#
     
    6671$make = 0;
    6772$make_opts = " --no-print-directory";
     73
    6874
    6975#
     
    217223
    218224######################################################################
    219 # @c example [error] [no_comp]
     225# @c example [error] [no_comp] [unix_only]
    220226#    -> the text till the next @c example is fed into Singular,
    221227#       the text is then substituted by
     
    232238#       unless 'error' is specified
    233239#       If [no_comp] is given, actual computation is not run
     240#       if [unix_only] is given, then computation is only run
     241#                                under unix
     242
    234243sub HandleExample
    235244{
    236   my($inc_file, $ex_file, $lline, $thisexample, $error_ok, $cache, $no_comp);
     245  my($inc_file, $ex_file, $lline, $thisexample, $error_ok, $cache, $no_comp,
     246     $unix_only);
    237247 
    238248  $lline = $line;
     
    262272  $error_ok = 1 if /error/;
    263273  $no_comp = 1 if /no_comp/;
    264 
    265   # print content in example file till next @c example
     274  $unix_only = 1 if /unix_only/ && $Win32;
     275 
     276  # print content in example file till next @c example
     277  print TEX "// only supported on Unix platforms\n"
     278    if $unix_only;
     279 
    266280  while (<DOC>)
    267281  {
     
    269283    last if (/^\@c\s*example\s*$/);
    270284#    s/^\s*//; # remove preceeding white spaces
    271     if ($no_ex || $no_comp)
     285    if ($no_ex || $no_comp || $unix_only)
    272286    {
    273287      &protect_texi;
     
    289303
    290304  # done, if no examples
    291   return if ($no_ex || $no_comp);
     305  return if ($no_ex || $no_comp || $unix_only);
    292306
    293307  # check whether it can be reused
     
    321335    print EX "$thisexample";
    322336    close(EX);
     337
     338    unless ($Singular_OK)
     339    {
     340      if (system("echo '\$' | $Singular $Singular_opts > $res_file"))
     341      {
     342        $Singular .= '.exe' if ($Win32 && $Singular !~ /\.exe$/);
     343        Error("CanŽt run '$Singular $Singular_opts': $@")
     344          if (system("echo '\$' | $Singular $Singular_opts > $res_file"));
     345      }
     346      $Singular_OK = 1
     347    }
    323348
    324349    &System("echo '\$' | $Singular $Singular_opts $ex_file > $res_file");
     
    492517  $proc = $1 if (/^:(.*?) /);
    493518  $n_fun = 1 if ($no_fun || /no_fun/);
    494   $n_ex = 1 if ($no_ex || /no_ex/);
     519  $n_ex = 1 if ($no_ex || /no_ex/ || (/unix_only/ && $Win32));
    495520  $section = $1 if /(\w*)section/;
    496521 
  • doc/pl2doc.pl

    reec9b2 ra70441f  
    11#!/usr/local/bin/perl
    2 # $Id: pl2doc.pl,v 1.14 1999-12-13 16:28:34 obachman Exp $
     2# $Id: pl2doc.pl,v 1.15 2000-04-27 10:07:23 obachman Exp $
    33###################################################################
    44#  Computer Algebra System SINGULAR
     
    6868unless ($no_fun)
    6969{
    70   if ($db_file)
    71   {
    72     $db_file = $1 if ($db_file =~ /(.*)\..*$/);
    73     dbmopen(%CHECKSUMS, $db_file, oct(755)) ||
    74       die "Error: can't open chksum data base $db_file";
    75   }
     70  if ($db_file && -e $db_file && ! -z $db_file)
     71  {
     72    my $return;
     73    unless ($return = do $db_file)
     74    {
     75      die "couldn't parse $db_file: $@" if $@;
     76      die "couldn't do $db_file: $!"    unless defined $return;
     77      die "couldn't run $db_file"       unless $return;
     78    }
     79  }
     80
    7681  # print help and example of each function
    7782  for ($i = 0; $i <= $#procs; $i++)
     
    8691    print LDOC "\@subsubsection " . $procs[$i] . "\n";
    8792    print LDOC "\@cindex ". $procs[$i] . "\n";
    88     $CHECKSUMS{$procs[$i]} = $chksum{$procs[$i]} if ($db_file);
     93    if ($db_file &&
     94        (!defined($CHECKSUMS{$procs[$i]}) ||
     95         $CHECKSUMS{$procs[$i]} != $chksum{$procs[$i]}))
     96    {
     97      $CHECKSUMS{$procs[$i]} = $chksum{$procs[$i]};
     98      $CHECKSUMS_CHANGED = 1;
     99    }
    89100    print LDOC "\@c ---content $procs[$i]---\n";
    90101    print LDOC "Procedure from library \@code{$lib.lib} (\@pxref{${lib}_lib}).\n\n";
     
    115126    print LDOC "\@c ---end content $procs[$i]---\n";
    116127  }
    117   dbmclose(%CHECKSUMS);
     128  # save checksums
     129  if ($CHECKSUMS_CHANGED)
     130  {
     131    open(CD, ">$db_file") || die "Can't open '$db_file' for writing: $!";
     132    print CD "%CHECKSUMS = (\n";
     133    for $key (keys %CHECKSUMS)
     134    {
     135      print CD "q{$key}, $CHECKSUMS{$key},\n";
     136    }
     137    print CD ");\n";
     138    close(CD);
     139  }
    118140}
    119141
  • doc/uname.texi.in

    reec9b2 ra70441f  
    22
    33@set _UNAME @SINGUNAME@
    4 
     4@set @SINGUNAME@
  • emacs/Makefile.in

    reec9b2 ra70441f  
    1212emacsdir        = ${install_prefix}/emacs
    1313
    14 PERL5           = @PERL5@
     14PERL            = @PERL@
    1515INSTALL         = ../install-sh -c
    1616INSTALL_DATA    = ${INSTALL} -m 644
     
    2222
    2323cmd-cmpl.el: ${SINGULAR} cmpl.pl
    24         ${PERL5} cmpl.pl -Singular ${SINGULAR} -cmpl cmd > cmd-cmpl.el
     24        ${PERL} cmpl.pl -Singular ${SINGULAR} -cmpl cmd > cmd-cmpl.el
    2525
    2626hlp-cmpl.el: ${SINGULAR_HLP} cmpl.pl
    27         ${PERL5} cmpl.pl -hlp ${SINGULAR_HLP} -cmpl hlp > hlp-cmpl.el
     27        ${PERL} cmpl.pl -hlp ${SINGULAR_HLP} -cmpl hlp > hlp-cmpl.el
    2828
    2929ex-cmpl.el: cmpl.pl ${examplesdir}
    30                 ${PERL5} cmpl.pl -cmpl ex -ex_dir ${examplesdir} > ex-cmpl.el
     30                ${PERL} cmpl.pl -cmpl ex -ex_dir ${examplesdir} > ex-cmpl.el
    3131
    3232# this is weird, if I work directly with _one_ pipe,
     
    3434lib-cmpl.el: ${prefix}/Singular/Makefile cmpl.pl
    3535        ${MAKE} --no-print-directory -s -f ${prefix}/Singular/Makefile echoLIBS > lib-temp
    36         cat lib-temp | ${PERL5} cmpl.pl -cmpl lib > lib-cmpl.el
     36        cat lib-temp | ${PERL} cmpl.pl -cmpl lib > lib-cmpl.el
    3737        rm lib-temp
    3838
  • emacs/singular.el

    reec9b2 ra70441f  
    11;;; singular.el --- Emacs support for Computer Algebra System Singular
    22
    3 ;; $Id: singular.el,v 1.54 1999-12-06 19:00:27 wichmann Exp $
     3;; $Id: singular.el,v 1.55 2000-04-27 10:07:27 obachman Exp $
    44
    55;;; Commentary:
     
    38013801  "History list of Singular switches.")
    38023802
    3803 (defvar singular-switches-magic '("-t" "--exec" "if (system(\"version\") > 1304){system(\"--emacs\", 1);};")
     3803; (defvar singular-switches-magic '("-t" "--exec" "if (system(\"version\") > 1304){system(\"--emacs\", 1);};")
     3804(defvar singular-switches-magic '("-t" "--emacs")
    38043805  "Additional magic switches for Singular process.
    38053806List of switch-strings which are automagically added when new Singular
  • factory/configure

    reec9b2 ra70441f  
    33# From configure.in Id: configure.in
    44# Guess values for system-dependent variables and create Makefiles.
    5 # Generated automatically using autoconf version 2.12
     5# Generated automatically using autoconf version 2.13
    66# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
    77#
     
    7777subdirs=
    7878MFLAGS= MAKEFLAGS=
     79SHELL=${CONFIG_SHELL-/bin/sh}
    7980# Maximum number of lines to put in a shell here document.
    8081ac_max_here_lines=12
     
    360361
    361362  -version | --version | --versio | --versi | --vers)
    362     echo "configure generated by autoconf version 2.12"
     363    echo "configure generated by autoconf version 2.13"
    363364    exit 0 ;;
    364365
     
    530531ac_cpp='$CPP $CPPFLAGS'
    531532ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    532 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     533ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    533534cross_compiling=$ac_cv_prog_cc_cross
    534535
     536ac_exeext=
     537ac_objext=o
    535538if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
    536539  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
     
    703706set dummy gcc; ac_word=$2
    704707echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    705 echo "configure:706: checking for $ac_word" >&5
     708echo "configure:709: checking for $ac_word" >&5
    706709if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    707710  echo $ac_n "(cached) $ac_c" 1>&6
     
    710713  ac_cv_prog_CC="$CC" # Let the user override the test.
    711714else
    712   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    713   for ac_dir in $PATH; do
     715  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     716  ac_dummy="$PATH"
     717  for ac_dir in $ac_dummy; do
    714718    test -z "$ac_dir" && ac_dir=.
    715719    if test -f $ac_dir/$ac_word; then
     
    732736set dummy cc; ac_word=$2
    733737echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    734 echo "configure:735: checking for $ac_word" >&5
     738echo "configure:739: checking for $ac_word" >&5
    735739if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    736740  echo $ac_n "(cached) $ac_c" 1>&6
     
    739743  ac_cv_prog_CC="$CC" # Let the user override the test.
    740744else
    741   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
     745  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    742746  ac_prog_rejected=no
    743   for ac_dir in $PATH; do
     747  ac_dummy="$PATH"
     748  for ac_dir in $ac_dummy; do
    744749    test -z "$ac_dir" && ac_dir=.
    745750    if test -f $ac_dir/$ac_word; then
     
    776781fi
    777782
     783  if test -z "$CC"; then
     784    case "`uname -s`" in
     785    *win32* | *WIN32*)
     786      # Extract the first word of "cl", so it can be a program name with args.
     787set dummy cl; ac_word=$2
     788echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     789echo "configure:790: checking for $ac_word" >&5
     790if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
     791  echo $ac_n "(cached) $ac_c" 1>&6
     792else
     793  if test -n "$CC"; then
     794  ac_cv_prog_CC="$CC" # Let the user override the test.
     795else
     796  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     797  ac_dummy="$PATH"
     798  for ac_dir in $ac_dummy; do
     799    test -z "$ac_dir" && ac_dir=.
     800    if test -f $ac_dir/$ac_word; then
     801      ac_cv_prog_CC="cl"
     802      break
     803    fi
     804  done
     805  IFS="$ac_save_ifs"
     806fi
     807fi
     808CC="$ac_cv_prog_CC"
     809if test -n "$CC"; then
     810  echo "$ac_t""$CC" 1>&6
     811else
     812  echo "$ac_t""no" 1>&6
     813fi
     814 ;;
     815    esac
     816  fi
    778817  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
    779818fi
    780819
    781820echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    782 echo "configure:783: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
     821echo "configure:822: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
    783822
    784823ac_ext=c
     
    786825ac_cpp='$CPP $CPPFLAGS'
    787826ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    788 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     827ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    789828cross_compiling=$ac_cv_prog_cc_cross
    790829
    791 cat > conftest.$ac_ext <<EOF
    792 #line 793 "configure"
     830cat > conftest.$ac_ext << EOF
     831
     832#line 833 "configure"
    793833#include "confdefs.h"
     834
    794835main(){return(0);}
    795836EOF
    796 if { (eval echo configure:797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     837if { (eval echo configure:838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    797838  ac_cv_prog_cc_works=yes
    798839  # If we can't run a trivial program, we are probably using a cross compiler.
     
    808849fi
    809850rm -fr conftest*
     851ac_ext=c
     852# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
     853ac_cpp='$CPP $CPPFLAGS'
     854ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
     855ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     856cross_compiling=$ac_cv_prog_cc_cross
    810857
    811858echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
     
    814861fi
    815862echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    816 echo "configure:817: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
     863echo "configure:864: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
    817864echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
    818865cross_compiling=$ac_cv_prog_cc_cross
    819866
    820867echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
    821 echo "configure:822: checking whether we are using GNU C" >&5
     868echo "configure:869: checking whether we are using GNU C" >&5
    822869if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
    823870  echo $ac_n "(cached) $ac_c" 1>&6
     
    828875#endif
    829876EOF
    830 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     877if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    831878  ac_cv_prog_gcc=yes
    832879else
     
    839886if test $ac_cv_prog_gcc = yes; then
    840887  GCC=yes
    841   ac_test_CFLAGS="${CFLAGS+set}"
    842   ac_save_CFLAGS="$CFLAGS"
    843   CFLAGS=
    844   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
    845 echo "configure:846: checking whether ${CC-cc} accepts -g" >&5
     888else
     889  GCC=
     890fi
     891
     892ac_test_CFLAGS="${CFLAGS+set}"
     893ac_save_CFLAGS="$CFLAGS"
     894CFLAGS=
     895echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
     896echo "configure:897: checking whether ${CC-cc} accepts -g" >&5
    846897if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
    847898  echo $ac_n "(cached) $ac_c" 1>&6
     
    858909
    859910echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
    860   if test "$ac_test_CFLAGS" = set; then
    861     CFLAGS="$ac_save_CFLAGS"
    862   elif test $ac_cv_prog_cc_g = yes; then
     911if test "$ac_test_CFLAGS" = set; then
     912  CFLAGS="$ac_save_CFLAGS"
     913elif test $ac_cv_prog_cc_g = yes; then
     914  if test "$GCC" = yes; then
    863915    CFLAGS="-g -O2"
    864916  else
     917    CFLAGS="-g"
     918  fi
     919else
     920  if test "$GCC" = yes; then
    865921    CFLAGS="-O2"
     922  else
     923    CFLAGS=
    866924  fi
    867 else
    868   GCC=
    869   test "${CFLAGS+set}" = set || CFLAGS="-g"
    870925fi
    871926
    872927test "${CXXFLAGS+set}" = set || cxxflags_expl_set=no
    873 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
     928for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
    874929do
    875930# Extract the first word of "$ac_prog", so it can be a program name with args.
    876931set dummy $ac_prog; ac_word=$2
    877932echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    878 echo "configure:879: checking for $ac_word" >&5
     933echo "configure:934: checking for $ac_word" >&5
    879934if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
    880935  echo $ac_n "(cached) $ac_c" 1>&6
     
    883938  ac_cv_prog_CXX="$CXX" # Let the user override the test.
    884939else
    885   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    886   for ac_dir in $PATH; do
     940  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     941  ac_dummy="$PATH"
     942  for ac_dir in $ac_dummy; do
    887943    test -z "$ac_dir" && ac_dir=.
    888944    if test -f $ac_dir/$ac_word; then
     
    907963
    908964echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    909 echo "configure:910: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
     965echo "configure:966: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
    910966
    911967ac_ext=C
     
    913969ac_cpp='$CXXCPP $CPPFLAGS'
    914970ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    915 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     971ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    916972cross_compiling=$ac_cv_prog_cxx_cross
    917973
    918 cat > conftest.$ac_ext <<EOF
    919 #line 920 "configure"
     974cat > conftest.$ac_ext << EOF
     975
     976#line 977 "configure"
    920977#include "confdefs.h"
    921 main(){return(0);}
    922 EOF
    923 if { (eval echo configure:924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     978
     979int main(){return(0);}
     980EOF
     981if { (eval echo configure:982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    924982  ac_cv_prog_cxx_works=yes
    925983  # If we can't run a trivial program, we are probably using a cross compiler.
     
    939997ac_cpp='$CPP $CPPFLAGS'
    940998ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    941 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     999ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    9421000cross_compiling=$ac_cv_prog_cc_cross
    9431001
     
    9471005fi
    9481006echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    949 echo "configure:950: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
     1007echo "configure:1008: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
    9501008echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
    9511009cross_compiling=$ac_cv_prog_cxx_cross
    9521010
    9531011echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
    954 echo "configure:955: checking whether we are using GNU C++" >&5
     1012echo "configure:1013: checking whether we are using GNU C++" >&5
    9551013if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
    9561014  echo $ac_n "(cached) $ac_c" 1>&6
     
    9611019#endif
    9621020EOF
    963 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:964: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     1021if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    9641022  ac_cv_prog_gxx=yes
    9651023else
     
    9721030if test $ac_cv_prog_gxx = yes; then
    9731031  GXX=yes
    974   ac_test_CXXFLAGS="${CXXFLAGS+set}"
    975   ac_save_CXXFLAGS="$CXXFLAGS"
    976   CXXFLAGS=
    977   echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
    978 echo "configure:979: checking whether ${CXX-g++} accepts -g" >&5
     1032else
     1033  GXX=
     1034fi
     1035
     1036ac_test_CXXFLAGS="${CXXFLAGS+set}"
     1037ac_save_CXXFLAGS="$CXXFLAGS"
     1038CXXFLAGS=
     1039echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
     1040echo "configure:1041: checking whether ${CXX-g++} accepts -g" >&5
    9791041if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
    9801042  echo $ac_n "(cached) $ac_c" 1>&6
     
    9911053
    9921054echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
    993   if test "$ac_test_CXXFLAGS" = set; then
    994     CXXFLAGS="$ac_save_CXXFLAGS"
    995   elif test $ac_cv_prog_cxx_g = yes; then
     1055if test "$ac_test_CXXFLAGS" = set; then
     1056  CXXFLAGS="$ac_save_CXXFLAGS"
     1057elif test $ac_cv_prog_cxx_g = yes; then
     1058  if test "$GXX" = yes; then
    9961059    CXXFLAGS="-g -O2"
    9971060  else
     1061    CXXFLAGS="-g"
     1062  fi
     1063else
     1064  if test "$GXX" = yes; then
    9981065    CXXFLAGS="-O2"
     1066  else
     1067    CXXFLAGS=
    9991068  fi
    1000 else
    1001   GXX=
    1002   test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
    10031069fi
    10041070
     
    10201086#
    10211087echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
    1022 echo "configure:1023: checking how to run the C preprocessor" >&5
     1088echo "configure:1089: checking how to run the C preprocessor" >&5
    10231089# On Suns, sometimes $CPP names a directory.
    10241090if test -n "$CPP" && test -d "$CPP"; then
     
    10351101  # not just through cpp.
    10361102  cat > conftest.$ac_ext <<EOF
    1037 #line 1038 "configure"
     1103#line 1104 "configure"
    10381104#include "confdefs.h"
    10391105#include <assert.h>
     
    10411107EOF
    10421108ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1043 { (eval echo configure:1044: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1044 ac_err=`grep -v '^ *+' conftest.out`
     1109{ (eval echo configure:1110: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1110ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    10451111if test -z "$ac_err"; then
    10461112  :
     
    10521118  CPP="${CC-cc} -E -traditional-cpp"
    10531119  cat > conftest.$ac_ext <<EOF
    1054 #line 1055 "configure"
     1120#line 1121 "configure"
    10551121#include "confdefs.h"
    10561122#include <assert.h>
     
    10581124EOF
    10591125ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1060 { (eval echo configure:1061: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1061 ac_err=`grep -v '^ *+' conftest.out`
     1126{ (eval echo configure:1127: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1127ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
     1128if test -z "$ac_err"; then
     1129  :
     1130else
     1131  echo "$ac_err" >&5
     1132  echo "configure: failed program was:" >&5
     1133  cat conftest.$ac_ext >&5
     1134  rm -rf conftest*
     1135  CPP="${CC-cc} -nologo -E"
     1136  cat > conftest.$ac_ext <<EOF
     1137#line 1138 "configure"
     1138#include "confdefs.h"
     1139#include <assert.h>
     1140Syntax Error
     1141EOF
     1142ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
     1143{ (eval echo configure:1144: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1144ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    10621145if test -z "$ac_err"; then
    10631146  :
     
    10721155fi
    10731156rm -f conftest*
     1157fi
     1158rm -f conftest*
    10741159  ac_cv_prog_CPP="$CPP"
    10751160fi
     
    10811166
    10821167echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
    1083 echo "configure:1084: checking how to run the C++ preprocessor" >&5
     1168echo "configure:1169: checking how to run the C++ preprocessor" >&5
    10841169if test -z "$CXXCPP"; then
    10851170if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
     
    10901175ac_cpp='$CXXCPP $CPPFLAGS'
    10911176ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    1092 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     1177ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    10931178cross_compiling=$ac_cv_prog_cxx_cross
    10941179  CXXCPP="${CXX-g++} -E"
    10951180  cat > conftest.$ac_ext <<EOF
    1096 #line 1097 "configure"
     1181#line 1182 "configure"
    10971182#include "confdefs.h"
    10981183#include <stdlib.h>
    10991184EOF
    11001185ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1101 { (eval echo configure:1102: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1102 ac_err=`grep -v '^ *+' conftest.out`
     1186{ (eval echo configure:1187: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1187ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    11031188if test -z "$ac_err"; then
    11041189  :
     
    11161201ac_cpp='$CPP $CPPFLAGS'
    11171202ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    1118 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     1203ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    11191204cross_compiling=$ac_cv_prog_cc_cross
    11201205fi
     
    11241209
    11251210echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
    1126 echo "configure:1127: checking whether ln -s works" >&5
     1211echo "configure:1212: checking whether ln -s works" >&5
    11271212if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
    11281213  echo $ac_n "(cached) $ac_c" 1>&6
     
    11511236# IRIX /sbin/install
    11521237# AIX /bin/install
     1238# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
    11531239# AFS /usr/afsws/bin/install, which mishandles nonexistent args
    11541240# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
    11551241# ./install, which can be erroneously created by make from ./install.sh.
    11561242echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
    1157 echo "configure:1158: checking for a BSD compatible install" >&5
     1243echo "configure:1244: checking for a BSD compatible install" >&5
    11581244if test -z "$INSTALL"; then
    11591245if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
    11601246  echo $ac_n "(cached) $ac_c" 1>&6
    11611247else
    1162     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
     1248    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
    11631249  for ac_dir in $PATH; do
    11641250    # Account for people who put trailing slashes in PATH elements.
     
    11671253    *)
    11681254      # OSF1 and SCO ODT 3.0 have their own names for install.
    1169       for ac_prog in ginstall installbsd scoinst install; do
     1255      # Don't use installbsd from OSF since it installs stuff as root
     1256      # by default.
     1257      for ac_prog in ginstall scoinst install; do
    11701258        if test -f $ac_dir/$ac_prog; then
    11711259          if test $ac_prog = install &&
    11721260            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
    11731261            # AIX install.  It has an incompatible calling convention.
    1174             # OSF/1 installbsd also uses dspmsg, but is usable.
    11751262            :
    11761263          else
     
    12021289test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
    12031290
     1291test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
     1292
    12041293test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
    12051294
     
    12071296set dummy ranlib; ac_word=$2
    12081297echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1209 echo "configure:1210: checking for $ac_word" >&5
     1298echo "configure:1299: checking for $ac_word" >&5
    12101299if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
    12111300  echo $ac_n "(cached) $ac_c" 1>&6
     
    12141303  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
    12151304else
    1216   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    1217   for ac_dir in $PATH; do
     1305  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     1306  ac_dummy="$PATH"
     1307  for ac_dir in $ac_dummy; do
    12181308    test -z "$ac_dir" && ac_dir=.
    12191309    if test -f $ac_dir/$ac_word; then
     
    12341324
    12351325echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
    1236 echo "configure:1237: checking whether ${MAKE-make} sets \${MAKE}" >&5
     1326echo "configure:1327: checking whether ${MAKE-make} sets \${MAKE}" >&5
    12371327set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
    12381328if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
     
    12631353set dummy ar; ac_word=$2
    12641354echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1265 echo "configure:1266: checking for $ac_word" >&5
     1355echo "configure:1356: checking for $ac_word" >&5
    12661356if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
    12671357  echo $ac_n "(cached) $ac_c" 1>&6
     
    12701360  ac_cv_prog_AR="$AR" # Let the user override the test.
    12711361else
    1272   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    1273   for ac_dir in $PATH; do
     1362  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     1363  ac_dummy="$PATH"
     1364  for ac_dir in $ac_dummy; do
    12741365    test -z "$ac_dir" && ac_dir=.
    12751366    if test -f $ac_dir/$ac_word; then
     
    12921383set dummy m4; ac_word=$2
    12931384echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1294 echo "configure:1295: checking for $ac_word" >&5
     1385echo "configure:1386: checking for $ac_word" >&5
    12951386if eval "test \"`echo '$''{'ac_cv_prog_M4'+set}'`\" = set"; then
    12961387  echo $ac_n "(cached) $ac_c" 1>&6
     
    12991390  ac_cv_prog_M4="$M4" # Let the user override the test.
    13001391else
    1301   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    1302   for ac_dir in $PATH; do
     1392  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     1393  ac_dummy="$PATH"
     1394  for ac_dir in $ac_dummy; do
    13031395    test -z "$ac_dir" && ac_dir=.
    13041396    if test -f $ac_dir/$ac_word; then