Changeset aac46c in git


Ignore:
Timestamp:
Dec 14, 1999, 4:53:15 PM (23 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'ad2543eab51733612ba7d118afc77edca719600e')
Children:
2bdfccbccdab814148f3d987b9a8100db861d0fc
Parents:
002eadb7aea4ec696a64e2ab62c5bab73995fb0b
Message:
* configure and Makefile stuff


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

Legend:

Unmodified
Added
Removed
  • Makefile.in

    r002ead raac46c  
    1414SINGULAR        = @SINGULAR@
    1515
    16 BUILD_SUBDIRS   = @CONFIG_SUBDIRS@ @BUILD_SUBDIRS@
     16BUILD_SUBDIRS   = @BUILD_SUBDIRS@
    1717SUBDIRS         = @SUBDIRS@
    1818
  • Singular/configure

    r002ead raac46c  
    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#
     
    2121  --with-perl5=[PERL5,no] uses PERL5 as perl5 program, default is perl5"
    2222ac_help="$ac_help
    23   --without-readline      do not use readline for fancy display"
     23  --with-readline          do use static readline for fancy display"
    2424ac_help="$ac_help
    2525  --without-MP            do not use MP (no MP links)"
     
    8484subdirs=
    8585MFLAGS= MAKEFLAGS=
     86SHELL=${CONFIG_SHELL-/bin/sh}
    8687# Maximum number of lines to put in a shell here document.
    8788ac_max_here_lines=12
     
    367368
    368369  -version | --version | --versio | --versi | --vers)
    369     echo "configure generated by autoconf version 2.12"
     370    echo "configure generated by autoconf version 2.13"
    370371    exit 0 ;;
    371372
     
    537538ac_cpp='$CPP $CPPFLAGS'
    538539ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    539 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     540ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    540541cross_compiling=$ac_cv_prog_cc_cross
    541542
     543ac_exeext=
     544ac_objext=o
    542545if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
    543546  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
     
    557560
    558561echo $ac_n "checking uname for singular""... $ac_c" 1>&6
    559 echo "configure:560: checking uname for singular" >&5
     562echo "configure:563: checking uname for singular" >&5
    560563if eval "test \"`echo '$''{'ac_cv_singuname'+set}'`\" = set"; then
    561564  echo $ac_n "(cached) $ac_c" 1>&6
     
    645648set dummy gcc; ac_word=$2
    646649echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    647 echo "configure:648: checking for $ac_word" >&5
     650echo "configure:651: checking for $ac_word" >&5
    648651if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    649652  echo $ac_n "(cached) $ac_c" 1>&6
     
    652655  ac_cv_prog_CC="$CC" # Let the user override the test.
    653656else
    654   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    655   for ac_dir in $PATH; do
     657  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     658  ac_dummy="$PATH"
     659  for ac_dir in $ac_dummy; do
    656660    test -z "$ac_dir" && ac_dir=.
    657661    if test -f $ac_dir/$ac_word; then
     
    674678set dummy cc; ac_word=$2
    675679echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    676 echo "configure:677: checking for $ac_word" >&5
     680echo "configure:681: checking for $ac_word" >&5
    677681if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    678682  echo $ac_n "(cached) $ac_c" 1>&6
     
    681685  ac_cv_prog_CC="$CC" # Let the user override the test.
    682686else
    683   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
     687  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    684688  ac_prog_rejected=no
    685   for ac_dir in $PATH; do
     689  ac_dummy="$PATH"
     690  for ac_dir in $ac_dummy; do
    686691    test -z "$ac_dir" && ac_dir=.
    687692    if test -f $ac_dir/$ac_word; then
     
    718723fi
    719724
     725  if test -z "$CC"; then
     726    case "`uname -s`" in
     727    *win32* | *WIN32*)
     728      # Extract the first word of "cl", so it can be a program name with args.
     729set dummy cl; ac_word=$2
     730echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     731echo "configure:732: checking for $ac_word" >&5
     732if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
     733  echo $ac_n "(cached) $ac_c" 1>&6
     734else
     735  if test -n "$CC"; then
     736  ac_cv_prog_CC="$CC" # Let the user override the test.
     737else
     738  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     739  ac_dummy="$PATH"
     740  for ac_dir in $ac_dummy; do
     741    test -z "$ac_dir" && ac_dir=.
     742    if test -f $ac_dir/$ac_word; then
     743      ac_cv_prog_CC="cl"
     744      break
     745    fi
     746  done
     747  IFS="$ac_save_ifs"
     748fi
     749fi
     750CC="$ac_cv_prog_CC"
     751if test -n "$CC"; then
     752  echo "$ac_t""$CC" 1>&6
     753else
     754  echo "$ac_t""no" 1>&6
     755fi
     756 ;;
     757    esac
     758  fi
    720759  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
    721760fi
    722761
    723762echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    724 echo "configure:725: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
     763echo "configure:764: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
    725764
    726765ac_ext=c
     
    728767ac_cpp='$CPP $CPPFLAGS'
    729768ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    730 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     769ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    731770cross_compiling=$ac_cv_prog_cc_cross
    732771
    733 cat > conftest.$ac_ext <<EOF
    734 #line 735 "configure"
    735 #include "confdefs.h"
     772cat > conftest.$ac_ext << EOF
     773
     774#line 775 "configure"
     775#include "confdefs.h"
     776
    736777main(){return(0);}
    737778EOF
    738 if { (eval echo configure:739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     779if { (eval echo configure:780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    739780  ac_cv_prog_cc_works=yes
    740781  # If we can't run a trivial program, we are probably using a cross compiler.
     
    750791fi
    751792rm -fr conftest*
     793ac_ext=c
     794# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
     795ac_cpp='$CPP $CPPFLAGS'
     796ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
     797ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     798cross_compiling=$ac_cv_prog_cc_cross
    752799
    753800echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
     
    756803fi
    757804echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    758 echo "configure:759: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
     805echo "configure:806: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
    759806echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
    760807cross_compiling=$ac_cv_prog_cc_cross
    761808
    762809echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
    763 echo "configure:764: checking whether we are using GNU C" >&5
     810echo "configure:811: checking whether we are using GNU C" >&5
    764811if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
    765812  echo $ac_n "(cached) $ac_c" 1>&6
     
    770817#endif
    771818EOF
    772 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:773: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     819if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    773820  ac_cv_prog_gcc=yes
    774821else
     
    781828if test $ac_cv_prog_gcc = yes; then
    782829  GCC=yes
    783   ac_test_CFLAGS="${CFLAGS+set}"
    784   ac_save_CFLAGS="$CFLAGS"
    785   CFLAGS=
    786   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
    787 echo "configure:788: checking whether ${CC-cc} accepts -g" >&5
     830else
     831  GCC=
     832fi
     833
     834ac_test_CFLAGS="${CFLAGS+set}"
     835ac_save_CFLAGS="$CFLAGS"
     836CFLAGS=
     837echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
     838echo "configure:839: checking whether ${CC-cc} accepts -g" >&5
    788839if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
    789840  echo $ac_n "(cached) $ac_c" 1>&6
     
    800851
    801852echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
    802   if test "$ac_test_CFLAGS" = set; then
    803     CFLAGS="$ac_save_CFLAGS"
    804   elif test $ac_cv_prog_cc_g = yes; then
     853if test "$ac_test_CFLAGS" = set; then
     854  CFLAGS="$ac_save_CFLAGS"
     855elif test $ac_cv_prog_cc_g = yes; then
     856  if test "$GCC" = yes; then
    805857    CFLAGS="-g -O2"
    806858  else
     859    CFLAGS="-g"
     860  fi
     861else
     862  if test "$GCC" = yes; then
    807863    CFLAGS="-O2"
     864  else
     865    CFLAGS=
    808866  fi
    809 else
    810   GCC=
    811   test "${CFLAGS+set}" = set || CFLAGS="-g"
    812867fi
    813868
    814869echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
    815 echo "configure:816: checking how to run the C preprocessor" >&5
     870echo "configure:871: checking how to run the C preprocessor" >&5
    816871# On Suns, sometimes $CPP names a directory.
    817872if test -n "$CPP" && test -d "$CPP"; then
     
    828883  # not just through cpp.
    829884  cat > conftest.$ac_ext <<EOF
    830 #line 831 "configure"
     885#line 886 "configure"
    831886#include "confdefs.h"
    832887#include <assert.h>
     
    834889EOF
    835890ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    836 { (eval echo configure:837: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    837 ac_err=`grep -v '^ *+' conftest.out`
     891{ (eval echo configure:892: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     892ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    838893if test -z "$ac_err"; then
    839894  :
     
    845900  CPP="${CC-cc} -E -traditional-cpp"
    846901  cat > conftest.$ac_ext <<EOF
    847 #line 848 "configure"
     902#line 903 "configure"
    848903#include "confdefs.h"
    849904#include <assert.h>
     
    851906EOF
    852907ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    853 { (eval echo configure:854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    854 ac_err=`grep -v '^ *+' conftest.out`
     908{ (eval echo configure:909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     909ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    855910if test -z "$ac_err"; then
    856911  :
     
    860915  cat conftest.$ac_ext >&5
    861916  rm -rf conftest*
     917  CPP="${CC-cc} -nologo -E"
     918  cat > conftest.$ac_ext <<EOF
     919#line 920 "configure"
     920#include "confdefs.h"
     921#include <assert.h>
     922Syntax Error
     923EOF
     924ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
     925{ (eval echo configure:926: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     926ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
     927if test -z "$ac_err"; then
     928  :
     929else
     930  echo "$ac_err" >&5
     931  echo "configure: failed program was:" >&5
     932  cat conftest.$ac_ext >&5
     933  rm -rf conftest*
    862934  CPP=/lib/cpp
    863935fi
     
    865937fi
    866938rm -f conftest*
     939fi
     940rm -f conftest*
    867941  ac_cv_prog_CPP="$CPP"
    868942fi
     
    873947echo "$ac_t""$CPP" 1>&6
    874948
    875 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
     949for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
    876950do
    877951# Extract the first word of "$ac_prog", so it can be a program name with args.
    878952set dummy $ac_prog; ac_word=$2
    879953echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    880 echo "configure:881: checking for $ac_word" >&5
     954echo "configure:955: checking for $ac_word" >&5
    881955if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
    882956  echo $ac_n "(cached) $ac_c" 1>&6
     
    885959  ac_cv_prog_CXX="$CXX" # Let the user override the test.
    886960else
    887   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    888   for ac_dir in $PATH; do
     961  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     962  ac_dummy="$PATH"
     963  for ac_dir in $ac_dummy; do
    889964    test -z "$ac_dir" && ac_dir=.
    890965    if test -f $ac_dir/$ac_word; then
     
    909984
    910985echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    911 echo "configure:912: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
     986echo "configure:987: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
    912987
    913988ac_ext=C
     
    915990ac_cpp='$CXXCPP $CPPFLAGS'
    916991ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    917 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     992ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    918993cross_compiling=$ac_cv_prog_cxx_cross
    919994
    920 cat > conftest.$ac_ext <<EOF
    921 #line 922 "configure"
    922 #include "confdefs.h"
    923 main(){return(0);}
    924 EOF
    925 if { (eval echo configure:926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     995cat > conftest.$ac_ext << EOF
     996
     997#line 998 "configure"
     998#include "confdefs.h"
     999
     1000int main(){return(0);}
     1001EOF
     1002if { (eval echo configure:1003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    9261003  ac_cv_prog_cxx_works=yes
    9271004  # If we can't run a trivial program, we are probably using a cross compiler.
     
    9411018ac_cpp='$CPP $CPPFLAGS'
    9421019ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    943 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     1020ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    9441021cross_compiling=$ac_cv_prog_cc_cross
    9451022
     
    9491026fi
    9501027echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    951 echo "configure:952: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
     1028echo "configure:1029: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
    9521029echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
    9531030cross_compiling=$ac_cv_prog_cxx_cross
    9541031
    9551032echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
    956 echo "configure:957: checking whether we are using GNU C++" >&5
     1033echo "configure:1034: checking whether we are using GNU C++" >&5
    9571034if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
    9581035  echo $ac_n "(cached) $ac_c" 1>&6
     
    9631040#endif
    9641041EOF
    965 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     1042if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1043: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    9661043  ac_cv_prog_gxx=yes
    9671044else
     
    9741051if test $ac_cv_prog_gxx = yes; then
    9751052  GXX=yes
    976   ac_test_CXXFLAGS="${CXXFLAGS+set}"
    977   ac_save_CXXFLAGS="$CXXFLAGS"
    978   CXXFLAGS=
    979   echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
    980 echo "configure:981: checking whether ${CXX-g++} accepts -g" >&5
     1053else
     1054  GXX=
     1055fi
     1056
     1057ac_test_CXXFLAGS="${CXXFLAGS+set}"
     1058ac_save_CXXFLAGS="$CXXFLAGS"
     1059CXXFLAGS=
     1060echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
     1061echo "configure:1062: checking whether ${CXX-g++} accepts -g" >&5
    9811062if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
    9821063  echo $ac_n "(cached) $ac_c" 1>&6
     
    9931074
    9941075echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
    995   if test "$ac_test_CXXFLAGS" = set; then
    996     CXXFLAGS="$ac_save_CXXFLAGS"
    997   elif test $ac_cv_prog_cxx_g = yes; then
     1076if test "$ac_test_CXXFLAGS" = set; then
     1077  CXXFLAGS="$ac_save_CXXFLAGS"
     1078elif test $ac_cv_prog_cxx_g = yes; then
     1079  if test "$GXX" = yes; then
    9981080    CXXFLAGS="-g -O2"
    9991081  else
     1082    CXXFLAGS="-g"
     1083  fi
     1084else
     1085  if test "$GXX" = yes; then
    10001086    CXXFLAGS="-O2"
     1087  else
     1088    CXXFLAGS=
    10011089  fi
    1002 else
    1003   GXX=
    1004   test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
    10051090fi
    10061091
    10071092echo $ac_n "checking for AIX""... $ac_c" 1>&6
    1008 echo "configure:1009: checking for AIX" >&5
     1093echo "configure:1094: checking for AIX" >&5
    10091094cat > conftest.$ac_ext <<EOF
    1010 #line 1011 "configure"
     1095#line 1096 "configure"
    10111096#include "confdefs.h"
    10121097#ifdef _AIX
     
    10381123# check whether the compiler accepts -pipe
    10391124echo $ac_n "checking whether compiler accepts -pipe""... $ac_c" 1>&6
    1040 echo "configure:1041: checking whether compiler accepts -pipe" >&5
     1125echo "configure:1126: checking whether compiler accepts -pipe" >&5
    10411126temp_cflags=${CFLAGS}
    10421127CFLAGS="${CFLAGS} -pipe"
     
    10451130else
    10461131  cat > conftest.$ac_ext <<EOF
    1047 #line 1048 "configure"
     1132#line 1133 "configure"
    10481133#include "confdefs.h"
    10491134
     
    10521137; return 0; }
    10531138EOF
    1054 if { (eval echo configure:1055: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     1139if { (eval echo configure:1140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    10551140  rm -rf conftest*
    10561141  ac_cv_cxx_have_pipe=yes
     
    10761161# Customize CFLAGS
    10771162echo $ac_n "checking whether _AIX is defined""... $ac_c" 1>&6
    1078 echo "configure:1079: checking whether _AIX is defined" >&5
     1163echo "configure:1164: checking whether _AIX is defined" >&5
    10791164if eval "test \"`echo '$''{'ac_cv_is_aix'+set}'`\" = set"; then
    10801165  echo $ac_n "(cached) $ac_c" 1>&6
    10811166else
    10821167  cat > conftest.$ac_ext <<EOF
    1083 #line 1084 "configure"
     1168#line 1169 "configure"
    10841169#include "confdefs.h"
    10851170#ifdef _AIX
     
    11321217
    11331218echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
    1134 echo "configure:1135: checking whether ${MAKE-make} sets \${MAKE}" >&5
     1219echo "configure:1220: checking whether ${MAKE-make} sets \${MAKE}" >&5
    11351220set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
    11361221if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
     
    12111296if test "${with_lex+set}" != set; then
    12121297  echo $ac_n "checking for flex""... $ac_c" 1>&6
    1213 echo "configure:1214: checking for flex" >&5
     1298echo "configure:1299: checking for flex" >&5
    12141299    if eval "test \"`echo '$''{'ac_cv_prog_flex'+set}'`\" = set"; then
    12151300  echo $ac_n "(cached) $ac_c" 1>&6
     
    12421327set dummy $ac_prog; ac_word=$2
    12431328echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1244 echo "configure:1245: checking for $ac_word" >&5
     1329echo "configure:1330: checking for $ac_word" >&5
    12451330if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
    12461331  echo $ac_n "(cached) $ac_c" 1>&6
     
    12491334  ac_cv_prog_LEX="$LEX" # Let the user override the test.
    12501335else
    1251   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    1252   for ac_dir in $PATH; do
     1336  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     1337  ac_dummy="$PATH"
     1338  for ac_dir in $ac_dummy; do
    12531339    test -z "$ac_dir" && ac_dir=.
    12541340    if test -f $ac_dir/$ac_word; then
     
    12811367set dummy $ac_prog; ac_word=$2
    12821368echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1283 echo "configure:1284: checking for $ac_word" >&5
     1369echo "configure:1370: checking for $ac_word" >&5
    12841370if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
    12851371  echo $ac_n "(cached) $ac_c" 1>&6
     
    12881374  ac_cv_prog_BISON="$BISON" # Let the user override the test.
    12891375else
    1290   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    1291   for ac_dir in $PATH; do
     1376  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     1377  ac_dummy="$PATH"
     1378  for ac_dir in $ac_dummy; do
    12921379    test -z "$ac_dir" && ac_dir=.
    12931380    if test -f $ac_dir/$ac_word; then
     
    13151402# ln -s
    13161403echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
    1317 echo "configure:1318: checking whether ln -s works" >&5
     1404echo "configure:1405: checking whether ln -s works" >&5
    13181405if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
    13191406  echo $ac_n "(cached) $ac_c" 1>&6
     
    13381425# lib checks
    13391426echo $ac_n "checking for atof in -lm""... $ac_c" 1>&6
    1340 echo "configure:1341: checking for atof in -lm" >&5
     1427echo "configure:1428: checking for atof in -lm" >&5
    13411428ac_lib_var=`echo m'_'atof | sed 'y%./+-%__p_%'`
    13421429if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    13461433LIBS="-lm  $LIBS"
    13471434cat > conftest.$ac_ext <<EOF
    1348 #line 1349 "configure"
     1435#line 1436 "configure"
    13491436#include "confdefs.h"
    13501437/* Override any gcc2 internal prototype to avoid an error.  */
     
    13571444; return 0; }
    13581445EOF
    1359 if { (eval echo configure:1360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     1446if { (eval echo configure:1447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    13601447  rm -rf conftest*
    13611448  eval "ac_cv_lib_$ac_lib_var=yes"
     
    13851472
    13861473echo $ac_n "checking for socket in -lbsd""... $ac_c" 1>&6
    1387 echo "configure:1388: checking for socket in -lbsd" >&5
     1474echo "configure:1475: checking for socket in -lbsd" >&5
    13881475ac_lib_var=`echo bsd'_'socket | sed 'y%./+-%__p_%'`
    13891476if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    13931480LIBS="-lbsd  $LIBS"
    13941481cat > conftest.$ac_ext <<EOF
    1395 #line 1396 "configure"
     1482#line 1483 "configure"
    13961483#include "confdefs.h"
    13971484/* Override any gcc2 internal prototype to avoid an error.  */
     
    14041491; return 0; }
    14051492EOF
    1406 if { (eval echo configure:1407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     1493if { (eval echo configure:1494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    14071494  rm -rf conftest*
    14081495  eval "ac_cv_lib_$ac_lib_var=yes"
     
    14321519
    14331520echo $ac_n "checking for listen in -lsocket""... $ac_c" 1>&6
    1434 echo "configure:1435: checking for listen in -lsocket" >&5
     1521echo "configure:1522: checking for listen in -lsocket" >&5
    14351522ac_lib_var=`echo socket'_'listen | sed 'y%./+-%__p_%'`
    14361523if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    14401527LIBS="-lsocket  $LIBS"
    14411528cat > conftest.$ac_ext <<EOF
    1442 #line 1443 "configure"
     1529#line 1530 "configure"
    14431530#include "confdefs.h"
    14441531/* Override any gcc2 internal prototype to avoid an error.  */
     
    14511538; return 0; }
    14521539EOF
    1453 if { (eval echo configure:1454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     1540if { (eval echo configure:1541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    14541541  rm -rf conftest*
    14551542  eval "ac_cv_lib_$ac_lib_var=yes"
     
    14791566
    14801567echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
    1481 echo "configure:1482: checking for gethostbyname in -lnsl" >&5
     1568echo "configure:1569: checking for gethostbyname in -lnsl" >&5
    14821569ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
    14831570if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    14871574LIBS="-lnsl  $LIBS"
    14881575cat > conftest.$ac_ext <<EOF
    1489 #line 1490 "configure"
     1576#line 1577 "configure"
    14901577#include "confdefs.h"
    14911578/* Override any gcc2 internal prototype to avoid an error.  */
     
    14981585; return 0; }
    14991586EOF
    1500 if { (eval echo configure:1501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     1587if { (eval echo configure:1588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    15011588  rm -rf conftest*
    15021589  eval "ac_cv_lib_$ac_lib_var=yes"
     
    15261613
    15271614echo $ac_n "checking for index in -lucb""... $ac_c" 1>&6
    1528 echo "configure:1529: checking for index in -lucb" >&5
     1615echo "configure:1616: checking for index in -lucb" >&5
    15291616ac_lib_var=`echo ucb'_'index | sed 'y%./+-%__p_%'`
    15301617if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    15341621LIBS="-lucb  $LIBS"
    15351622cat > conftest.$ac_ext <<EOF
    1536 #line 1537 "configure"
     1623#line 1624 "configure"
    15371624#include "confdefs.h"
    15381625/* Override any gcc2 internal prototype to avoid an error.  */
     
    15451632; return 0; }
    15461633EOF
    1547 if { (eval echo configure:1548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     1634if { (eval echo configure:1635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    15481635  rm -rf conftest*
    15491636  eval "ac_cv_lib_$ac_lib_var=yes"
     
    15751662# heder file checks
    15761663echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
    1577 echo "configure:1578: checking for ANSI C header files" >&5
     1664echo "configure:1665: checking for ANSI C header files" >&5
    15781665if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
    15791666  echo $ac_n "(cached) $ac_c" 1>&6
    15801667else
    15811668  cat > conftest.$ac_ext <<EOF
    1582 #line 1583 "configure"
     1669#line 1670 "configure"
    15831670#include "confdefs.h"
    15841671#include <stdlib.h>
     
    15881675EOF
    15891676ac_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`
     1677{ (eval echo configure:1678: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1678ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    15921679if test -z "$ac_err"; then
    15931680  rm -rf conftest*
     
    16051692  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    16061693cat > conftest.$ac_ext <<EOF
    1607 #line 1608 "configure"
     1694#line 1695 "configure"
    16081695#include "confdefs.h"
    16091696#include <string.h>
     
    16231710  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    16241711cat > conftest.$ac_ext <<EOF
    1625 #line 1626 "configure"
     1712#line 1713 "configure"
    16261713#include "confdefs.h"
    16271714#include <stdlib.h>
     
    16441731else
    16451732  cat > conftest.$ac_ext <<EOF
    1646 #line 1647 "configure"
     1733#line 1734 "configure"
    16471734#include "confdefs.h"
    16481735#include <ctype.h>
     
    16551742
    16561743EOF
    1657 if { (eval echo configure:1658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     1744if { (eval echo configure:1745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    16581745then
    16591746  :
     
    16821769ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    16831770echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    1684 echo "configure:1685: checking for $ac_hdr" >&5
     1771echo "configure:1772: checking for $ac_hdr" >&5
    16851772if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    16861773  echo $ac_n "(cached) $ac_c" 1>&6
    16871774else
    16881775  cat > conftest.$ac_ext <<EOF
    1689 #line 1690 "configure"
     1776#line 1777 "configure"
    16901777#include "confdefs.h"
    16911778#include <$ac_hdr>
    16921779EOF
    16931780ac_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`
     1781{ (eval echo configure:1782: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1782ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    16961783if test -z "$ac_err"; then
    16971784  rm -rf conftest*
     
    17201807
    17211808
    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
     1809for 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
    17231810do
    17241811ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    17251812echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    1726 echo "configure:1727: checking for $ac_hdr" >&5
     1813echo "configure:1814: checking for $ac_hdr" >&5
    17271814if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    17281815  echo $ac_n "(cached) $ac_c" 1>&6
    17291816else
    17301817  cat > conftest.$ac_ext <<EOF
    1731 #line 1732 "configure"
     1818#line 1819 "configure"
    17321819#include "confdefs.h"
    17331820#include <$ac_hdr>
    17341821EOF
    17351822ac_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`
     1823{ (eval echo configure:1824: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1824ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    17381825if test -z "$ac_err"; then
    17391826  rm -rf conftest*
     
    17631850# typedefs, structures
    17641851echo $ac_n "checking for working const""... $ac_c" 1>&6
    1765 echo "configure:1766: checking for working const" >&5
     1852echo "configure:1853: checking for working const" >&5
    17661853if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
    17671854  echo $ac_n "(cached) $ac_c" 1>&6
    17681855else
    17691856  cat > conftest.$ac_ext <<EOF
    1770 #line 1771 "configure"
     1857#line 1858 "configure"
    17711858#include "confdefs.h"
    17721859
     
    18171904; return 0; }
    18181905EOF
    1819 if { (eval echo configure:1820: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     1906if { (eval echo configure:1907: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    18201907  rm -rf conftest*
    18211908  ac_cv_c_const=yes
     
    18381925
    18391926echo $ac_n "checking for inline""... $ac_c" 1>&6
    1840 echo "configure:1841: checking for inline" >&5
     1927echo "configure:1928: checking for inline" >&5
    18411928if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
    18421929  echo $ac_n "(cached) $ac_c" 1>&6
     
    18451932for ac_kw in inline __inline__ __inline; do
    18461933  cat > conftest.$ac_ext <<EOF
    1847 #line 1848 "configure"
     1934#line 1935 "configure"
    18481935#include "confdefs.h"
    18491936
     
    18521939; return 0; }
    18531940EOF
    1854 if { (eval echo configure:1855: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     1941if { (eval echo configure:1942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    18551942  rm -rf conftest*
    18561943  ac_cv_c_inline=$ac_kw; break
     
    18781965
    18791966echo $ac_n "checking for size_t""... $ac_c" 1>&6
    1880 echo "configure:1881: checking for size_t" >&5
     1967echo "configure:1968: checking for size_t" >&5
    18811968if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
    18821969  echo $ac_n "(cached) $ac_c" 1>&6
    18831970else
    18841971  cat > conftest.$ac_ext <<EOF
    1885 #line 1886 "configure"
     1972#line 1973 "configure"
    18861973#include "confdefs.h"
    18871974#include <sys/types.h>
     
    18921979EOF
    18931980if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    1894   egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
     1981  egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
    18951982  rm -rf conftest*
    18961983  ac_cv_type_size_t=yes
     
    19111998
    19121999echo $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
     2000echo "configure:2001: checking whether time.h and sys/time.h may both be included" >&5
    19142001if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
    19152002  echo $ac_n "(cached) $ac_c" 1>&6
    19162003else
    19172004  cat > conftest.$ac_ext <<EOF
    1918 #line 1919 "configure"
     2005#line 2006 "configure"
    19192006#include "confdefs.h"
    19202007#include <sys/types.h>
     
    19252012; return 0; }
    19262013EOF
    1927 if { (eval echo configure:1928: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2014if { (eval echo configure:2015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    19282015  rm -rf conftest*
    19292016  ac_cv_header_time=yes
     
    19462033
    19472034echo $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
     2035echo "configure:2036: checking whether struct tm is in sys/time.h or time.h" >&5
    19492036if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
    19502037  echo $ac_n "(cached) $ac_c" 1>&6
    19512038else
    19522039  cat > conftest.$ac_ext <<EOF
    1953 #line 1954 "configure"
     2040#line 2041 "configure"
    19542041#include "confdefs.h"
    19552042#include <sys/types.h>
     
    19592046; return 0; }
    19602047EOF
    1961 if { (eval echo configure:1962: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2048if { (eval echo configure:2049: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    19622049  rm -rf conftest*
    19632050  ac_cv_struct_tm=time.h
     
    19842071# for constant arguments.  Useless!
    19852072echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
    1986 echo "configure:1987: checking for working alloca.h" >&5
     2073echo "configure:2074: checking for working alloca.h" >&5
    19872074if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
    19882075  echo $ac_n "(cached) $ac_c" 1>&6
    19892076else
    19902077  cat > conftest.$ac_ext <<EOF
    1991 #line 1992 "configure"
     2078#line 2079 "configure"
    19922079#include "confdefs.h"
    19932080#include <alloca.h>
     
    19962083; return 0; }
    19972084EOF
    1998 if { (eval echo configure:1999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     2085if { (eval echo configure:2086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    19992086  rm -rf conftest*
    20002087  ac_cv_header_alloca_h=yes
     
    20172104
    20182105echo $ac_n "checking for alloca""... $ac_c" 1>&6
    2019 echo "configure:2020: checking for alloca" >&5
     2106echo "configure:2107: checking for alloca" >&5
    20202107if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
    20212108  echo $ac_n "(cached) $ac_c" 1>&6
    20222109else
    20232110  cat > conftest.$ac_ext <<EOF
    2024 #line 2025 "configure"
     2111#line 2112 "configure"
    20252112#include "confdefs.h"
    20262113
     
    20282115# define alloca __builtin_alloca
    20292116#else
    2030 # if HAVE_ALLOCA_H
    2031 #  include <alloca.h>
     2117# ifdef _MSC_VER
     2118#  include <malloc.h>
     2119#  define alloca _alloca
    20322120# else
    2033 #  ifdef _AIX
     2121#  if HAVE_ALLOCA_H
     2122#   include <alloca.h>
     2123#  else
     2124#   ifdef _AIX
    20342125 #pragma alloca
    2035 else
    2036 #   ifndef alloca /* predefined by HP cc +Olibcalls */
     2126 else
     2127#    ifndef alloca /* predefined by HP cc +Olibcalls */
    20372128char *alloca ();
     2129#    endif
    20382130#   endif
    20392131#  endif
     
    20452137; return 0; }
    20462138EOF
    2047 if { (eval echo configure:2048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     2139if { (eval echo configure:2140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    20482140  rm -rf conftest*
    20492141  ac_cv_func_alloca_works=yes
     
    20702162  # contain a buggy version.  If you still want to use their alloca,
    20712163  # use ar to extract alloca.o from them instead of compiling alloca.c.
    2072   ALLOCA=alloca.o
     2164  ALLOCA=alloca.${ac_objext}
    20732165  cat >> confdefs.h <<\EOF
    20742166#define C_ALLOCA 1
     
    20772169
    20782170echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
    2079 echo "configure:2080: checking whether alloca needs Cray hooks" >&5
     2171echo "configure:2172: checking whether alloca needs Cray hooks" >&5
    20802172if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
    20812173  echo $ac_n "(cached) $ac_c" 1>&6
    20822174else
    20832175  cat > conftest.$ac_ext <<EOF
    2084 #line 2085 "configure"
     2176#line 2177 "configure"
    20852177#include "confdefs.h"
    20862178#if defined(CRAY) && ! defined(CRAY2)
     
    21072199for ac_func in _getb67 GETB67 getb67; do
    21082200  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2109 echo "configure:2110: checking for $ac_func" >&5
     2201echo "configure:2202: checking for $ac_func" >&5
    21102202if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    21112203  echo $ac_n "(cached) $ac_c" 1>&6
    21122204else
    21132205  cat > conftest.$ac_ext <<EOF
    2114 #line 2115 "configure"
     2206#line 2207 "configure"
    21152207#include "confdefs.h"
    21162208/* System header to define __stub macros and hopefully few prototypes,
     
    21352227; return 0; }
    21362228EOF
    2137 if { (eval echo configure:2138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     2229if { (eval echo configure:2230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    21382230  rm -rf conftest*
    21392231  eval "ac_cv_func_$ac_func=yes"
     
    21622254
    21632255echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
    2164 echo "configure:2165: checking stack direction for C alloca" >&5
     2256echo "configure:2257: checking stack direction for C alloca" >&5
    21652257if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
    21662258  echo $ac_n "(cached) $ac_c" 1>&6
     
    21702262else
    21712263  cat > conftest.$ac_ext <<EOF
    2172 #line 2173 "configure"
     2264#line 2265 "configure"
    21732265#include "confdefs.h"
    21742266find_stack_direction ()
     
    21892281}
    21902282EOF
    2191 if { (eval echo configure:2192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     2283if { (eval echo configure:2284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    21922284then
    21932285  ac_cv_c_stack_direction=1
     
    22122304if test $ac_cv_prog_gcc = yes; then
    22132305    echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
    2214 echo "configure:2215: checking whether ${CC-cc} needs -traditional" >&5
     2306echo "configure:2307: checking whether ${CC-cc} needs -traditional" >&5
    22152307if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
    22162308  echo $ac_n "(cached) $ac_c" 1>&6
     
    22182310    ac_pattern="Autoconf.*'x'"
    22192311  cat > conftest.$ac_ext <<EOF
    2220 #line 2221 "configure"
     2312#line 2313 "configure"
    22212313#include "confdefs.h"
    22222314#include <sgtty.h>
     
    22362328  if test $ac_cv_prog_gcc_traditional = no; then
    22372329    cat > conftest.$ac_ext <<EOF
    2238 #line 2239 "configure"
     2330#line 2331 "configure"
    22392331#include "confdefs.h"
    22402332#include <termio.h>
     
    22612353ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    22622354echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    2263 echo "configure:2264: checking for $ac_hdr" >&5
     2355echo "configure:2356: checking for $ac_hdr" >&5
    22642356if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    22652357  echo $ac_n "(cached) $ac_c" 1>&6
    22662358else
    22672359  cat > conftest.$ac_ext <<EOF
    2268 #line 2269 "configure"
     2360#line 2361 "configure"
    22692361#include "confdefs.h"
    22702362#include <$ac_hdr>
    22712363EOF
    22722364ac_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`
     2365{ (eval echo configure:2366: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2366ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    22752367if test -z "$ac_err"; then
    22762368  rm -rf conftest*
     
    23002392do
    23012393echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2302 echo "configure:2303: checking for $ac_func" >&5
     2394echo "configure:2395: checking for $ac_func" >&5
    23032395if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    23042396  echo $ac_n "(cached) $ac_c" 1>&6
    23052397else
    23062398  cat > conftest.$ac_ext <<EOF
    2307 #line 2308 "configure"
     2399#line 2400 "configure"
    23082400#include "confdefs.h"
    23092401/* System header to define __stub macros and hopefully few prototypes,
     
    23282420; return 0; }
    23292421EOF
    2330 if { (eval echo configure:2331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     2422if { (eval echo configure:2423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    23312423  rm -rf conftest*
    23322424  eval "ac_cv_func_$ac_func=yes"
     
    23532445
    23542446echo $ac_n "checking for working mmap""... $ac_c" 1>&6
    2355 echo "configure:2356: checking for working mmap" >&5
     2447echo "configure:2448: checking for working mmap" >&5
    23562448if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
    23572449  echo $ac_n "(cached) $ac_c" 1>&6
     
    23612453else
    23622454  cat > conftest.$ac_ext <<EOF
    2363 #line 2364 "configure"
     2455#line 2456 "configure"
    23642456#include "confdefs.h"
    23652457
     
    25012593
    25022594EOF
    2503 if { (eval echo configure:2504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     2595if { (eval echo configure:2596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    25042596then
    25052597  ac_cv_func_mmap_fixed_mapped=yes
     
    25242616
    25252617echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
    2526 echo "configure:2527: checking return type of signal handlers" >&5
     2618echo "configure:2619: checking return type of signal handlers" >&5
    25272619if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
    25282620  echo $ac_n "(cached) $ac_c" 1>&6
    25292621else
    25302622  cat > conftest.$ac_ext <<EOF
    2531 #line 2532 "configure"
     2623#line 2624 "configure"
    25322624#include "confdefs.h"
    25332625#include <sys/types.h>
     
    25462638; return 0; }
    25472639EOF
    2548 if { (eval echo configure:2549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2640if { (eval echo configure:2641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    25492641  rm -rf conftest*
    25502642  ac_cv_type_signal=void
     
    25652657
    25662658echo $ac_n "checking for vprintf""... $ac_c" 1>&6
    2567 echo "configure:2568: checking for vprintf" >&5
     2659echo "configure:2660: checking for vprintf" >&5
    25682660if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
    25692661  echo $ac_n "(cached) $ac_c" 1>&6
    25702662else
    25712663  cat > conftest.$ac_ext <<EOF
    2572 #line 2573 "configure"
     2664#line 2665 "configure"
    25732665#include "confdefs.h"
    25742666/* System header to define __stub macros and hopefully few prototypes,
     
    25932685; return 0; }
    25942686EOF
    2595 if { (eval echo configure:2596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     2687if { (eval echo configure:2688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    25962688  rm -rf conftest*
    25972689  eval "ac_cv_func_vprintf=yes"
     
    26172709if test "$ac_cv_func_vprintf" != yes; then
    26182710echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
    2619 echo "configure:2620: checking for _doprnt" >&5
     2711echo "configure:2712: checking for _doprnt" >&5
    26202712if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
    26212713  echo $ac_n "(cached) $ac_c" 1>&6
    26222714else
    26232715  cat > conftest.$ac_ext <<EOF
    2624 #line 2625 "configure"
     2716#line 2717 "configure"
    26252717#include "confdefs.h"
    26262718/* System header to define __stub macros and hopefully few prototypes,
     
    26452737; return 0; }
    26462738EOF
    2647 if { (eval echo configure:2648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     2739if { (eval echo configure:2740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    26482740  rm -rf conftest*
    26492741  eval "ac_cv_func__doprnt=yes"
     
    26722764do
    26732765echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2674 echo "configure:2675: checking for $ac_func" >&5
     2766echo "configure:2767: checking for $ac_func" >&5
    26752767if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    26762768  echo $ac_n "(cached) $ac_c" 1>&6
    26772769else
    26782770  cat > conftest.$ac_ext <<EOF
    2679 #line 2680 "configure"
     2771#line 2772 "configure"
    26802772#include "confdefs.h"
    26812773/* System header to define __stub macros and hopefully few prototypes,
     
    27002792; return 0; }
    27012793EOF
    2702 if { (eval echo configure:2703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     2794if { (eval echo configure:2795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    27032795  rm -rf conftest*
    27042796  eval "ac_cv_func_$ac_func=yes"
     
    27282820# arithmetic shifts
    27292821echo $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
     2822echo "configure:2823: checking whether your machine has correct arithmetic shifts" >&5
    27312823if eval "test \"`echo '$''{'ac_cv_shift'+set}'`\" = set"; then
    27322824  echo $ac_n "(cached) $ac_c" 1>&6
     
    27412833else
    27422834  cat > conftest.$ac_ext <<EOF
    2743 #line 2744 "configure"
     2835#line 2836 "configure"
    27442836#include "confdefs.h"
    27452837 int main() { if (-2 >> 1 == -1) exit(0); else exit(1); }
    27462838EOF
    2747 if { (eval echo configure:2748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     2839if { (eval echo configure:2840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    27482840then
    27492841  ac_cv_shift=yes
     
    27702862# check for a peculiar constructor initialization
    27712863echo $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
     2864echo "configure:2865: checking whether explicit C++ constructor calls are allowed" >&5
    27732865
    27742866ac_ext=C
     
    27762868ac_cpp='$CXXCPP $CPPFLAGS'
    27772869ac_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'
     2870ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    27792871cross_compiling=$ac_cv_prog_cxx_cross
    27802872
     
    27832875else
    27842876  cat > conftest.$ac_ext <<EOF
    2785 #line 2786 "configure"
     2877#line 2878 "configure"
    27862878#include "confdefs.h"
    27872879
     
    28012893; return 0; }
    28022894EOF
    2803 if { (eval echo configure:2804: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2895if { (eval echo configure:2896: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    28042896  rm -rf conftest*
    28052897  ac_cv_explicit_const=yes
     
    28172909ac_cpp='$CPP $CPPFLAGS'
    28182910ac_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'
     2911ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    28202912cross_compiling=$ac_cv_prog_cc_cross
    28212913
     
    28302922# sprintf returns number of printed chars
    28312923echo $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
     2924echo "configure:2925: checking whether vsprintf returns number of printed chars" >&5
    28332925if eval "test \"`echo '$''{'ac_cv_returns_n_of_chars'+set}'`\" = set"; then
    28342926  echo $ac_n "(cached) $ac_c" 1>&6
     
    28382930else
    28392931  cat > conftest.$ac_ext <<EOF
    2840 #line 2841 "configure"
     2932#line 2933 "configure"
    28412933#include "confdefs.h"
    28422934#include <stdio.h>
    28432935 main() { char *str=(char*)malloc(20); if (((int) sprintf(str,"123456789")) == 9) exit(0); else exit(1); }
    28442936EOF
    2845 if { (eval echo configure:2846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     2937if { (eval echo configure:2938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    28462938then
    28472939  ac_cv_returns_n_of_chars=yes
     
    28692961# determine ALIGN_8
    28702962echo $ac_n "checking size of char""... $ac_c" 1>&6
    2871 echo "configure:2872: checking size of char" >&5
     2963echo "configure:2964: checking size of char" >&5
    28722964if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
    28732965  echo $ac_n "(cached) $ac_c" 1>&6
     
    28772969else
    28782970  cat > conftest.$ac_ext <<EOF
    2879 #line 2880 "configure"
     2971#line 2972 "configure"
    28802972#include "confdefs.h"
    28812973#include <stdio.h>
     
    28882980}
    28892981EOF
    2890 if { (eval echo configure:2891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     2982if { (eval echo configure:2983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    28912983then
    28922984  ac_cv_sizeof_char=`cat conftestval`
     
    29083000
    29093001echo $ac_n "checking size of short""... $ac_c" 1>&6
    2910 echo "configure:2911: checking size of short" >&5
     3002echo "configure:3003: checking size of short" >&5
    29113003if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
    29123004  echo $ac_n "(cached) $ac_c" 1>&6
     
    29163008else
    29173009  cat > conftest.$ac_ext <<EOF
    2918 #line 2919 "configure"
     3010#line 3011 "configure"
    29193011#include "confdefs.h"
    29203012#include <stdio.h>
     
    29273019}
    29283020EOF
    2929 if { (eval echo configure:2930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     3021if { (eval echo configure:3022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    29303022then
    29313023  ac_cv_sizeof_short=`cat conftestval`
     
    29473039
    29483040echo $ac_n "checking size of int""... $ac_c" 1>&6
    2949 echo "configure:2950: checking size of int" >&5
     3041echo "configure:3042: checking size of int" >&5
    29503042if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
    29513043  echo $ac_n "(cached) $ac_c" 1>&6
     
    29553047else
    29563048  cat > conftest.$ac_ext <<EOF
    2957 #line 2958 "configure"
     3049#line 3050 "configure"
    29583050#include "confdefs.h"
    29593051#include <stdio.h>
     
    29663058}
    29673059EOF
    2968 if { (eval echo configure:2969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     3060if { (eval echo configure:3061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    29693061then
    29703062  ac_cv_sizeof_int=`cat conftestval`
     
    29863078
    29873079echo $ac_n "checking size of long""... $ac_c" 1>&6
    2988 echo "configure:2989: checking size of long" >&5
     3080echo "configure:3081: checking size of long" >&5
    29893081if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
    29903082  echo $ac_n "(cached) $ac_c" 1>&6
     
    29943086else
    29953087  cat > conftest.$ac_ext <<EOF
    2996 #line 2997 "configure"
     3088#line 3089 "configure"
    29973089#include "confdefs.h"
    29983090#include <stdio.h>
     
    30053097}
    30063098EOF
    3007 if { (eval echo configure:3008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     3099if { (eval echo configure:3100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    30083100then
    30093101  ac_cv_sizeof_long=`cat conftestval`
     
    30253117
    30263118echo $ac_n "checking size of void*""... $ac_c" 1>&6
    3027 echo "configure:3028: checking size of void*" >&5
     3119echo "configure:3120: checking size of void*" >&5
    30283120if eval "test \"`echo '$''{'ac_cv_sizeof_voidp'+set}'`\" = set"; then
    30293121  echo $ac_n "(cached) $ac_c" 1>&6
     
    30333125else
    30343126  cat > conftest.$ac_ext <<EOF
    3035 #line 3036 "configure"
     3127#line 3128 "configure"
    30363128#include "confdefs.h"
    30373129#include <stdio.h>
     
    30443136}
    30453137EOF
    3046 if { (eval echo configure:3047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     3138if { (eval echo configure:3139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    30473139then
    30483140  ac_cv_sizeof_voidp=`cat conftestval`
     
    30643156
    30653157echo $ac_n "checking size of double""... $ac_c" 1>&6
    3066 echo "configure:3067: checking size of double" >&5
     3158echo "configure:3159: checking size of double" >&5
    30673159if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then
    30683160  echo $ac_n "(cached) $ac_c" 1>&6
     
    30723164else
    30733165  cat > conftest.$ac_ext <<EOF
    3074 #line 3075 "configure"
     3166#line 3167 "configure"
    30753167#include "confdefs.h"
    30763168#include <stdio.h>
     
    30833175}
    30843176EOF
    3085 if { (eval echo configure:3086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     3177if { (eval echo configure:3178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    30863178then
    30873179  ac_cv_sizeof_double=`cat conftestval`
     
    31033195
    31043196echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
    3105 echo "configure:3106: checking whether byte ordering is bigendian" >&5
     3197echo "configure:3198: checking whether byte ordering is bigendian" >&5
    31063198if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
    31073199  echo $ac_n "(cached) $ac_c" 1>&6
     
    31103202# See if sys/param.h defines the BYTE_ORDER macro.
    31113203cat > conftest.$ac_ext <<EOF
    3112 #line 3113 "configure"
     3204#line 3205 "configure"
    31133205#include "confdefs.h"
    31143206#include <sys/types.h>
     
    31213213; return 0; }
    31223214EOF
    3123 if { (eval echo configure:3124: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     3215if { (eval echo configure:3216: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    31243216  rm -rf conftest*
    31253217  # It does; now see whether it defined to BIG_ENDIAN or not.
    31263218cat > conftest.$ac_ext <<EOF
    3127 #line 3128 "configure"
     3219#line 3220 "configure"
    31283220#include "confdefs.h"
    31293221#include <sys/types.h>
     
    31363228; return 0; }
    31373229EOF
    3138 if { (eval echo configure:3139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     3230if { (eval echo configure:3231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    31393231  rm -rf conftest*
    31403232  ac_cv_c_bigendian=yes
     
    31563248else
    31573249  cat > conftest.$ac_ext <<EOF
    3158 #line 3159 "configure"
     3250#line 3251 "configure"
    31593251#include "confdefs.h"
    31603252main () {
     
    31693261}
    31703262EOF
    3171 if { (eval echo configure:3172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     3263if { (eval echo configure:3264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    31723264then
    31733265  ac_cv_c_bigendian=no
     
    32063298
    32073299echo $ac_n "checking size of system page""... $ac_c" 1>&6
    3208 echo "configure:3209: checking size of system page" >&5
     3300echo "configure:3301: checking size of system page" >&5
    32093301if eval "test \"`echo '$''{'ac_cv_pagesize'+set}'`\" = set"; then
    32103302  echo $ac_n "(cached) $ac_c" 1>&6
     
    32143306else
    32153307  cat > conftest.$ac_ext <<EOF
    3216 #line 3217 "configure"
     3308#line 3309 "configure"
    32173309#include "confdefs.h"
    32183310#include <stdio.h>
     
    32283320}
    32293321EOF
    3230 if { (eval echo configure:3231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     3322if { (eval echo configure:3323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    32313323then
    32323324  ac_cv_pagesize=`cat conftestval`
     
    32523344
    32533345echo $ac_n "checking for page aligned valloc""... $ac_c" 1>&6
    3254 echo "configure:3255: checking for page aligned valloc" >&5
     3346echo "configure:3347: checking for page aligned valloc" >&5
    32553347if eval "test \"`echo '$''{'ac_cv_have_page_alignment'+set}'`\" = set"; then
    32563348  echo $ac_n "(cached) $ac_c" 1>&6
     
    32983390else
    32993391  cat > conftest.$ac_ext <<EOF
    3300 #line 3301 "configure"
     3392#line 3393 "configure"
    33013393#include "confdefs.h"
    33023394
     
    33053397
    33063398EOF
    3307 if { (eval echo configure:3308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     3399if { (eval echo configure:3400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    33083400then
    33093401  ac_cv_have_page_alignment="ac_cv_usable_pagesize="`cat  conftestval`
     
    33223414else
    33233415  cat > conftest.$ac_ext <<EOF
    3324 #line 3325 "configure"
     3416#line 3417 "configure"
    33253417#include "confdefs.h"
    33263418
     
    33293421
    33303422EOF
    3331 if { (eval echo configure:3332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     3423if { (eval echo configure:3424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    33323424then
    33333425  ac_cv_have_page_alignment="ac_cv_usable_pagesize="`cat  conftestval`
     
    33493441else
    33503442  cat > conftest.$ac_ext <<EOF
    3351 #line 3352 "configure"
     3443#line 3444 "configure"
    33523444#include "confdefs.h"
    33533445
     
    33583450
    33593451EOF
    3360 if { (eval echo configure:3361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     3452if { (eval echo configure:3453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    33613453then
    33623454  ac_cv_have_page_alignment="ac_cv_have_gmalloc=yes; ac_cv_usable_pagesize="`cat  conftestval`
     
    33753467else
    33763468  cat > conftest.$ac_ext <<EOF
    3377 #line 3378 "configure"
     3469#line 3470 "configure"
    33783470#include "confdefs.h"
    33793471
     
    33843476
    33853477EOF
    3386 if { (eval echo configure:3387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     3478if { (eval echo configure:3479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    33873479then
    33883480  ac_cv_have_page_alignment="ac_cv_have_gmalloc=yes; ac_cv_usable_pagesize="`cat  conftestval`
     
    35193611if test "${with_perl5+set}" != set; then
    35203612  echo $ac_n "checking for perl5""... $ac_c" 1>&6
    3521 echo "configure:3522: checking for perl5" >&5
     3613echo "configure:3614: checking for perl5" >&5
    35223614    if eval "test \"`echo '$''{'ac_cv_prog_perl5'+set}'`\" = set"; then
    35233615  echo $ac_n "(cached) $ac_c" 1>&6
     
    35563648set dummy $ac_prog; ac_word=$2
    35573649echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    3558 echo "configure:3559: checking for $ac_word" >&5
     3650echo "configure:3651: checking for $ac_word" >&5
    35593651if eval "test \"`echo '$''{'ac_cv_prog_PERL5'+set}'`\" = set"; then
    35603652  echo $ac_n "(cached) $ac_c" 1>&6
     
    35633655  ac_cv_prog_PERL5="$PERL5" # Let the user override the test.
    35643656else
    3565   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    3566   for ac_dir in $PATH; do
     3657  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     3658  ac_dummy="$PATH"
     3659  for ac_dir in $ac_dummy; do
    35673660    test -z "$ac_dir" && ac_dir=.
    35683661    if test -f $ac_dir/$ac_word; then
     
    35903683
    35913684
    3592 # fereadl - io routines
    3593 for ac_hdr in termcap.h
    3594 do
    3595 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    3596 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    3597 echo "configure:3598: checking for $ac_hdr" >&5
    3598 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    3599   echo $ac_n "(cached) $ac_c" 1>&6
    3600 else
    3601   cat > conftest.$ac_ext <<EOF
    3602 #line 3603 "configure"
    3603 #include "confdefs.h"
    3604 #include <$ac_hdr>
    3605 EOF
    3606 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    3607 { (eval echo configure:3608: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    3608 ac_err=`grep -v '^ *+' conftest.out`
    3609 if test -z "$ac_err"; then
    3610   rm -rf conftest*
    3611   eval "ac_cv_header_$ac_safe=yes"
    3612 else
    3613   echo "$ac_err" >&5
    3614   echo "configure: failed program was:" >&5
    3615   cat conftest.$ac_ext >&5
    3616   rm -rf conftest*
    3617   eval "ac_cv_header_$ac_safe=no"
    3618 fi
    3619 rm -f conftest*
    3620 fi
    3621 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
    3622   echo "$ac_t""yes" 1>&6
    3623     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
    3624   cat >> confdefs.h <<EOF
    3625 #define $ac_tr_hdr 1
    3626 EOF
    3627  
    3628 else
    3629   echo "$ac_t""no" 1>&6
    3630 fi
    3631 done
    3632 
    3633 for ac_hdr in termios.h
    3634 do
    3635 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    3636 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    3637 echo "configure:3638: checking for $ac_hdr" >&5
    3638 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    3639   echo $ac_n "(cached) $ac_c" 1>&6
    3640 else
    3641   cat > conftest.$ac_ext <<EOF
    3642 #line 3643 "configure"
    3643 #include "confdefs.h"
    3644 #include <$ac_hdr>
    3645 EOF
    3646 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    3647 { (eval echo configure:3648: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    3648 ac_err=`grep -v '^ *+' conftest.out`
    3649 if test -z "$ac_err"; then
    3650   rm -rf conftest*
    3651   eval "ac_cv_header_$ac_safe=yes"
    3652 else
    3653   echo "$ac_err" >&5
    3654   echo "configure: failed program was:" >&5
    3655   cat conftest.$ac_ext >&5
    3656   rm -rf conftest*
    3657   eval "ac_cv_header_$ac_safe=no"
    3658 fi
    3659 rm -f conftest*
    3660 fi
    3661 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
    3662   echo "$ac_t""yes" 1>&6
    3663     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
    3664   cat >> confdefs.h <<EOF
    3665 #define $ac_tr_hdr 1
    3666 EOF
    3667  
    3668 else
    3669   echo "$ac_t""no" 1>&6
    3670 fi
    3671 done
    3672 
    3673 for ac_hdr in term.h
    3674 do
    3675 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    3676 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    3677 echo "configure:3678: checking for $ac_hdr" >&5
    3678 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    3679   echo $ac_n "(cached) $ac_c" 1>&6
    3680 else
    3681   cat > conftest.$ac_ext <<EOF
    3682 #line 3683 "configure"
    3683 #include "confdefs.h"
    3684 #include <$ac_hdr>
    3685 EOF
    3686 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    3687 { (eval echo configure:3688: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    3688 ac_err=`grep -v '^ *+' conftest.out`
    3689 if test -z "$ac_err"; then
    3690   rm -rf conftest*
    3691   eval "ac_cv_header_$ac_safe=yes"
    3692 else
    3693   echo "$ac_err" >&5
    3694   echo "configure: failed program was:" >&5
    3695   cat conftest.$ac_ext >&5
    3696   rm -rf conftest*
    3697   eval "ac_cv_header_$ac_safe=no"
    3698 fi
    3699 rm -f conftest*
    3700 fi
    3701 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
    3702   echo "$ac_t""yes" 1>&6
    3703     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
    3704   cat >> confdefs.h <<EOF
    3705 #define $ac_tr_hdr 1
    3706 EOF
    3707  
    3708 else
    3709   echo "$ac_t""no" 1>&6
    3710 fi
    3711 done
    3712 
    3713 
    3714 # readline
    3715 if test "$with_readline" != no; then
    3716   echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
    3717 echo "configure:3718: checking for tgetent in -lncurses" >&5
     3685echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
     3686echo "configure:3687: checking for tgetent in -lncurses" >&5
    37183687ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
    37193688if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    37233692LIBS="-lncurses  $LIBS"
    37243693cat > conftest.$ac_ext <<EOF
    3725 #line 3726 "configure"
     3694#line 3695 "configure"
    37263695#include "confdefs.h"
    37273696/* Override any gcc2 internal prototype to avoid an error.  */
     
    37343703; return 0; }
    37353704EOF
    3736 if { (eval echo configure:3737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     3705if { (eval echo configure:3706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    37373706  rm -rf conftest*
    37383707  eval "ac_cv_lib_$ac_lib_var=yes"
     
    37603729  echo "$ac_t""no" 1>&6
    37613730\
    3762    echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
    3763 echo "configure:3764: checking for tgetent in -lcurses" >&5
     3731 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
     3732echo "configure:3733: checking for tgetent in -lcurses" >&5
    37643733ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
    37653734if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    37693738LIBS="-lcurses  $LIBS"
    37703739cat > conftest.$ac_ext <<EOF
    3771 #line 3772 "configure"
     3740#line 3741 "configure"
    37723741#include "confdefs.h"
    37733742/* Override any gcc2 internal prototype to avoid an error.  */
     
    37803749; return 0; }
    37813750EOF
    3782 if { (eval echo configure:3783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     3751if { (eval echo configure:3752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    37833752  rm -rf conftest*
    37843753  eval "ac_cv_lib_$ac_lib_var=yes"
     
    38063775  echo "$ac_t""no" 1>&6
    38073776\
    3808    echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
    3809 echo "configure:3810: checking for tgetent in -ltermcap" >&5
     3777  echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
     3778echo "configure:3779: checking for tgetent in -ltermcap" >&5
    38103779ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
    38113780if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    38153784LIBS="-ltermcap  $LIBS"
    38163785cat > conftest.$ac_ext <<EOF
    3817 #line 3818 "configure"
     3786#line 3787 "configure"
    38183787#include "confdefs.h"
    38193788/* Override any gcc2 internal prototype to avoid an error.  */
     
    38263795; return 0; }
    38273796EOF
    3828 if { (eval echo configure:3829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     3797if { (eval echo configure:3798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    38293798  rm -rf conftest*
    38303799  eval "ac_cv_lib_$ac_lib_var=yes"
     
    38573826fi
    38583827
     3828
     3829# readline
     3830if test "$with_readline" = yes; then
    38593831   echo $ac_n "checking for rl_abort in -lreadline""... $ac_c" 1>&6
    3860 echo "configure:3861: checking for rl_abort in -lreadline" >&5
     3832echo "configure:3833: checking for rl_abort in -lreadline" >&5
    38613833ac_lib_var=`echo readline'_'rl_abort | sed 'y%./+-%__p_%'`
    38623834if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    38663838LIBS="-lreadline  $LIBS"
    38673839cat > conftest.$ac_ext <<EOF
    3868 #line 3869 "configure"
     3840#line 3841 "configure"
    38693841#include "confdefs.h"
    38703842/* Override any gcc2 internal prototype to avoid an error.  */
     
    38773849; return 0; }
    38783850EOF
    3879 if { (eval echo configure:3880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     3851if { (eval echo configure:3852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    38803852  rm -rf conftest*
    38813853  eval "ac_cv_lib_$ac_lib_var=yes"
     
    39083880ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    39093881echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    3910 echo "configure:3911: checking for $ac_hdr" >&5
     3882echo "configure:3883: checking for $ac_hdr" >&5
    39113883if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    39123884  echo $ac_n "(cached) $ac_c" 1>&6
    39133885else
    39143886  cat > conftest.$ac_ext <<EOF
    3915 #line 3916 "configure"
     3887#line 3888 "configure"
    39163888#include "confdefs.h"
    39173889#include <$ac_hdr>
    39183890EOF
    39193891ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    3920 { (eval echo configure:3921: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    3921 ac_err=`grep -v '^ *+' conftest.out`
     3892{ (eval echo configure:3893: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     3893ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    39223894if test -z "$ac_err"; then
    39233895  rm -rf conftest*
     
    39473919      test "$ac_cv_header_readline_readline_h" = yes; then
    39483920     echo $ac_n "checking whether readline.h is ok""... $ac_c" 1>&6
    3949 echo "configure:3950: checking whether readline.h is ok" >&5
     3921echo "configure:3922: checking whether readline.h is ok" >&5
    39503922     if eval "test \"`echo '$''{'ac_cv_header_readline_readline_h_ok'+set}'`\" = set"; then
    39513923  echo $ac_n "(cached) $ac_c" 1>&6
    39523924else
    39533925  cat > conftest.$ac_ext <<EOF
    3954 #line 3955 "configure"
     3926#line 3927 "configure"
    39553927#include "confdefs.h"
    39563928#include<unistd.h>
     
    39773949; return 0; }
    39783950EOF
    3979 if { (eval echo configure:3980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     3951if { (eval echo configure:3952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    39803952  rm -rf conftest*
    39813953  ac_cv_header_readline_readline_h_ok="yes"
     
    39933965#not ok -- try once more with explicitly declaring everything
    39943966      echo $ac_n "checking whether or not we nevertheless can use readline""... $ac_c" 1>&6
    3995 echo "configure:3996: checking whether or not we nevertheless can use readline" >&5
     3967echo "configure:3968: checking whether or not we nevertheless can use readline" >&5
    39963968      if eval "test \"`echo '$''{'ac_cv_have_readline'+set}'`\" = set"; then
    39973969  echo $ac_n "(cached) $ac_c" 1>&6
    39983970else
    39993971  cat > conftest.$ac_ext <<EOF
    4000 #line 4001 "configure"
     3972#line 3973 "configure"
    40013973#include "confdefs.h"
    40023974#include <stdio.h>
     
    40284000; return 0; }
    40294001EOF
    4030 if { (eval echo configure:4031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     4002if { (eval echo configure:4003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    40314003  rm -rf conftest*
    40324004  ac_cv_have_readline="yes"
     
    40584030  else
    40594031    echo "configure: warning: building without readline: disabling fancy display" 1>&2
    4060     echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
    4061 echo "configure:4062: checking for tgetent in -lncurses" >&5
    4062 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
    4063 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    4064   echo $ac_n "(cached) $ac_c" 1>&6
    4065 else
    4066   ac_save_LIBS="$LIBS"
    4067 LIBS="-lncurses  $LIBS"
    4068 cat > conftest.$ac_ext <<EOF
    4069 #line 4070 "configure"
    4070 #include "confdefs.h"
    4071 /* Override any gcc2 internal prototype to avoid an error.  */
    4072 /* We use char because int might match the return type of a gcc2
    4073     builtin and then its argument prototype would still apply.  */
    4074 char tgetent();
    4075 
    4076 int main() {
    4077 tgetent()
    4078 ; return 0; }
    4079 EOF
    4080 if { (eval echo configure:4081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    4081   rm -rf conftest*
    4082   eval "ac_cv_lib_$ac_lib_var=yes"
    4083 else
    4084   echo "configure: failed program was:" >&5
    4085   cat conftest.$ac_ext >&5
    4086   rm -rf conftest*
    4087   eval "ac_cv_lib_$ac_lib_var=no"
    4088 fi
    4089 rm -f conftest*
    4090 LIBS="$ac_save_LIBS"
    4091 
    4092 fi
    4093 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    4094   echo "$ac_t""yes" 1>&6
    4095     ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    4096     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    4097   cat >> confdefs.h <<EOF
    4098 #define $ac_tr_lib 1
    4099 EOF
    4100 
    4101   LIBS="-lncurses $LIBS"
    4102 
    4103 else
    4104   echo "$ac_t""no" 1>&6
    4105 \
    4106     echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
    4107 echo "configure:4108: checking for tgetent in -lcurses" >&5
    4108 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
    4109 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    4110   echo $ac_n "(cached) $ac_c" 1>&6
    4111 else
    4112   ac_save_LIBS="$LIBS"
    4113 LIBS="-lcurses  $LIBS"
    4114 cat > conftest.$ac_ext <<EOF
    4115 #line 4116 "configure"
    4116 #include "confdefs.h"
    4117 /* Override any gcc2 internal prototype to avoid an error.  */
    4118 /* We use char because int might match the return type of a gcc2
    4119     builtin and then its argument prototype would still apply.  */
    4120 char tgetent();
    4121 
    4122 int main() {
    4123 tgetent()
    4124 ; return 0; }
    4125 EOF
    4126 if { (eval echo configure:4127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    4127   rm -rf conftest*
    4128   eval "ac_cv_lib_$ac_lib_var=yes"
    4129 else
    4130   echo "configure: failed program was:" >&5
    4131   cat conftest.$ac_ext >&5
    4132   rm -rf conftest*
    4133   eval "ac_cv_lib_$ac_lib_var=no"
    4134 fi
    4135 rm -f conftest*
    4136 LIBS="$ac_save_LIBS"
    4137 
    4138 fi
    4139 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    4140   echo "$ac_t""yes" 1>&6
    4141     ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/^a-zA-Z0-9_/_/g' \
    4142     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    4143   cat >> confdefs.h <<EOF
    4144 #define $ac_tr_lib 1
    4145 EOF
    4146 
    4147   LIBS="-lcurses $LIBS"
    4148 
    4149 else
    4150   echo "$ac_t""no" 1>&6
    4151 \
    4152     echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
    4153 echo "configure:4154: checking for tgetent in -ltermcap" >&5
    4154 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
    4155 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    4156   echo $ac_n "(cached) $ac_c" 1>&6
    4157 else
    4158   ac_save_LIBS="$LIBS"
    4159 LIBS="-ltermcap  $LIBS"
    4160 cat > conftest.$ac_ext <<EOF
    4161 #line 4162 "configure"
    4162 #include "confdefs.h"
    4163 /* Override any gcc2 internal prototype to avoid an error.  */
    4164 /* We use char because int might match the return type of a gcc2
    4165     builtin and then its argument prototype would still apply.  */
    4166 char tgetent();
    4167 
    4168 int main() {
    4169 tgetent()
    4170 ; return 0; }
    4171 EOF
    4172 if { (eval echo configure:4173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    4173   rm -rf conftest*
    4174   eval "ac_cv_lib_$ac_lib_var=yes"
    4175 else
    4176   echo "configure: failed program was:" >&5
    4177   cat conftest.$ac_ext >&5
    4178   rm -rf conftest*
    4179   eval "ac_cv_lib_$ac_lib_var=no"
    4180 fi
    4181 rm -f conftest*
    4182 LIBS="$ac_save_LIBS"
    4183 
    4184 fi
    4185 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    4186   echo "$ac_t""yes" 1>&6
    4187     ac_tr_lib=HAVE_LIB`echo termcap | sed -e 's/^a-zA-Z0-9_/_/g' \
    4188     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    4189   cat >> confdefs.h <<EOF
    4190 #define $ac_tr_lib 1
    4191 EOF
    4192 
    4193   LIBS="-ltermcap $LIBS"
    4194 
    4195 else
    4196   echo "$ac_t""no" 1>&6
    4197 \
    4198     cat >> confdefs.h <<\EOF
    4199 #define HAVE_FEREAD 1
    4200 EOF
    4201 
    4202 fi
    4203 
    4204 fi
    4205 
    4206 fi
    4207 
    42084032  fi
    4209 else
    4210     echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
    4211 echo "configure:4212: checking for tgetent in -lncurses" >&5
    4212 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
    4213 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    4214   echo $ac_n "(cached) $ac_c" 1>&6
    4215 else
    4216   ac_save_LIBS="$LIBS"
    4217 LIBS="-lncurses  $LIBS"
    4218 cat > conftest.$ac_ext <<EOF
    4219 #line 4220 "configure"
    4220 #include "confdefs.h"
    4221 /* Override any gcc2 internal prototype to avoid an error.  */
    4222 /* We use char because int might match the return type of a gcc2
    4223     builtin and then its argument prototype would still apply.  */
    4224 char tgetent();
    4225 
    4226 int main() {
    4227 tgetent()
    4228 ; return 0; }
    4229 EOF
    4230 if { (eval echo configure:4231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    4231   rm -rf conftest*
    4232   eval "ac_cv_lib_$ac_lib_var=yes"
    4233 else
    4234   echo "configure: failed program was:" >&5
    4235   cat conftest.$ac_ext >&5
    4236   rm -rf conftest*
    4237   eval "ac_cv_lib_$ac_lib_var=no"
    4238 fi
    4239 rm -f conftest*
    4240 LIBS="$ac_save_LIBS"
    4241 
    4242 fi
    4243 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    4244   echo "$ac_t""yes" 1>&6
    4245     ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    4246     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    4247   cat >> confdefs.h <<EOF
    4248 #define $ac_tr_lib 1
    4249 EOF
    4250 
    4251   LIBS="-lncurses $LIBS"
    4252 
    4253 else
    4254   echo "$ac_t""no" 1>&6
    4255 \
    4256     echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
    4257 echo "configure:4258: checking for tgetent in -lcurses" >&5
    4258 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
    4259 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    4260   echo $ac_n "(cached) $ac_c" 1>&6
    4261 else
    4262   ac_save_LIBS="$LIBS"
    4263 LIBS="-lcurses  $LIBS"
    4264 cat > conftest.$ac_ext <<EOF
    4265 #line 4266 "configure"
    4266 #include "confdefs.h"
    4267 /* Override any gcc2 internal prototype to avoid an error.  */
    4268 /* We use char because int might match the return type of a gcc2
    4269     builtin and then its argument prototype would still apply.  */
    4270 char tgetent();
    4271 
    4272 int main() {
    4273 tgetent()
    4274 ; return 0; }
    4275 EOF
    4276 if { (eval echo configure:4277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    4277   rm -rf conftest*
    4278   eval "ac_cv_lib_$ac_lib_var=yes"
    4279 else
    4280   echo "configure: failed program was:" >&5
    4281   cat conftest.$ac_ext >&5
    4282   rm -rf conftest*
    4283   eval "ac_cv_lib_$ac_lib_var=no"
    4284 fi
    4285 rm -f conftest*
    4286 LIBS="$ac_save_LIBS"
    4287 
    4288 fi
    4289 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    4290   echo "$ac_t""yes" 1>&6
    4291     ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/^a-zA-Z0-9_/_/g' \
    4292     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    4293   cat >> confdefs.h <<EOF
    4294 #define $ac_tr_lib 1
    4295 EOF
    4296 
    4297   LIBS="-lcurses $LIBS"
    4298 
    4299 else
    4300   echo "$ac_t""no" 1>&6
    4301 \
    4302     echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
    4303 echo "configure:4304: checking for tgetent in -ltermcap" >&5
    4304 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
    4305 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    4306   echo $ac_n "(cached) $ac_c" 1>&6
    4307 else
    4308   ac_save_LIBS="$LIBS"
    4309 LIBS="-ltermcap  $LIBS"
    4310 cat > conftest.$ac_ext <<EOF
    4311 #line 4312 "configure"
    4312 #include "confdefs.h"
    4313 /* Override any gcc2 internal prototype to avoid an error.  */
    4314 /* We use char because int might match the return type of a gcc2
    4315     builtin and then its argument prototype would still apply.  */
    4316 char tgetent();
    4317 
    4318 int main() {
    4319 tgetent()
    4320 ; return 0; }
    4321 EOF
    4322 if { (eval echo configure:4323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    4323   rm -rf conftest*
    4324   eval "ac_cv_lib_$ac_lib_var=yes"
    4325 else
    4326   echo "configure: failed program was:" >&5
    4327   cat conftest.$ac_ext >&5
    4328   rm -rf conftest*
    4329   eval "ac_cv_lib_$ac_lib_var=no"
    4330 fi
    4331 rm -f conftest*
    4332 LIBS="$ac_save_LIBS"
    4333 
    4334 fi
    4335 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    4336   echo "$ac_t""yes" 1>&6
    4337     ac_tr_lib=HAVE_LIB`echo termcap | sed -e 's/^a-zA-Z0-9_/_/g' \
    4338     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    4339   cat >> confdefs.h <<EOF
    4340 #define $ac_tr_lib 1
    4341 EOF
    4342 
    4343   LIBS="-ltermcap $LIBS"
    4344 
    4345 else
    4346   echo "$ac_t""no" 1>&6
    4347 \
    4348   cat >> confdefs.h <<\EOF
    4349 #define HAVE_FEREAD 1
    4350 EOF
    4351 
    4352 fi
    4353 
    4354 fi
    4355 
    4356 fi
    4357 
    43584033fi
    43594034
     
    43624037# gmp, smallgmp, MP, MPT, factory, libfac
    43634038echo $ac_n "checking for mpq_init in -lgmp""... $ac_c" 1>&6
    4364 echo "configure:4365: checking for mpq_init in -lgmp" >&5
     4039echo "configure:4040: checking for mpq_init in -lgmp" >&5
    43654040ac_lib_var=`echo gmp'_'mpq_init | sed 'y%./+-%__p_%'`
    43664041if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    43704045LIBS="-lgmp  $LIBS"
    43714046cat > conftest.$ac_ext <<EOF
    4372 #line 4373 "configure"
     4047#line 4048 "configure"
    43734048#include "confdefs.h"
    43744049/* Override any gcc2 internal prototype to avoid an error.  */
     
    43814056; return 0; }
    43824057EOF
    4383 if { (eval echo configure:4384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     4058if { (eval echo configure:4059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    43844059  rm -rf conftest*
    43854060  eval "ac_cv_lib_$ac_lib_var=yes"
     
    44124087fi
    44134088echo $ac_n "checking for mpz_init in -lsmallgmp""... $ac_c" 1>&6
    4414 echo "configure:4415: checking for mpz_init in -lsmallgmp" >&5
     4089echo "configure:4090: checking for mpz_init in -lsmallgmp" >&5
    44154090ac_lib_var=`echo smallgmp'_'mpz_init | sed 'y%./+-%__p_%'`
    44164091if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    44204095LIBS="-lsmallgmp  $LIBS"
    44214096cat > conftest.$ac_ext <<EOF
    4422 #line 4423 "configure"
     4097#line 4098 "configure"
    44234098#include "confdefs.h"
    44244099/* Override any gcc2 internal prototype to avoid an error.  */
     
    44314106; return 0; }
    44324107EOF
    4433 if { (eval echo configure:4434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     4108if { (eval echo configure:4109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    44344109  rm -rf conftest*
    44354110  eval "ac_cv_lib_$ac_lib_var=yes"
     
    44594134
    44604135echo $ac_n "checking for IMP_PutGmpInt in -lMP""... $ac_c" 1>&6
    4461 echo "configure:4462: checking for IMP_PutGmpInt in -lMP" >&5
     4136echo "configure:4137: checking for IMP_PutGmpInt in -lMP" >&5
    44624137ac_lib_var=`echo MP'_'IMP_PutGmpInt | sed 'y%./+-%__p_%'`
    44634138if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    44674142LIBS="-lMP  $LIBS"
    44684143cat > conftest.$ac_ext <<EOF
    4469 #line 4470 "configure"
     4144#line 4145 "configure"
    44704145#include "confdefs.h"
    44714146/* Override any gcc2 internal prototype to avoid an error.  */
     
    44784153; return 0; }
    44794154EOF
    4480 if { (eval echo configure:4481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     4155if { (eval echo configure:4156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    44814156  rm -rf conftest*
    44824157  eval "ac_cv_lib_$ac_lib_var=yes"
     
    45064181
    45074182echo $ac_n "checking for MPT_GetTree in -lMPT""... $ac_c" 1>&6
    4508 echo "configure:4509: checking for MPT_GetTree in -lMPT" >&5
     4183echo "configure:4184: checking for MPT_GetTree in -lMPT" >&5
    45094184ac_lib_var=`echo MPT'_'MPT_GetTree | sed 'y%./+-%__p_%'`
    45104185if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    45144189LIBS="-lMPT  $LIBS"
    45154190cat > conftest.$ac_ext <<EOF
    4516 #line 4517 "configure"
     4191#line 4192 "configure"
    45174192#include "confdefs.h"
    45184193/* Override any gcc2 internal prototype to avoid an error.  */
     
    45254200; return 0; }
    45264201EOF
    4527 if { (eval echo configure:4528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     4202if { (eval echo configure:4203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    45284203  rm -rf conftest*
    45294204  eval "ac_cv_lib_$ac_lib_var=yes"
     
    45534228
    45544229echo $ac_n "checking for atof in -lsingcf""... $ac_c" 1>&6
    4555 echo "configure:4556: checking for atof in -lsingcf" >&5
     4230echo "configure:4231: checking for atof in -lsingcf" >&5
    45564231ac_lib_var=`echo singcf'_'atof | sed 'y%./+-%__p_%'`
    45574232if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    45614236LIBS="-lsingcf  $LIBS"
    45624237cat > conftest.$ac_ext <<EOF
    4563 #line 4564 "configure"
     4238#line 4239 "configure"
    45644239#include "confdefs.h"
    45654240/* Override any gcc2 internal prototype to avoid an error.  */
     
    45724247; return 0; }
    45734248EOF
    4574 if { (eval echo configure:4575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     4249if { (eval echo configure:4250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    45754250  rm -rf conftest*
    45764251  eval "ac_cv_lib_$ac_lib_var=yes"
     
    46004275
    46014276echo $ac_n "checking for atof in -lsingfac""... $ac_c" 1>&6
    4602 echo "configure:4603: checking for atof in -lsingfac" >&5
     4277echo "configure:4278: checking for atof in -lsingfac" >&5
    46034278ac_lib_var=`echo singfac'_'atof | sed 'y%./+-%__p_%'`
    46044279if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    46084283LIBS="-lsingfac  $LIBS"
    46094284cat > conftest.$ac_ext <<EOF
    4610 #line 4611 "configure"
     4285#line 4286 "configure"
    46114286#include "confdefs.h"
    46124287/* Override any gcc2 internal prototype to avoid an error.  */
     
    46194294; return 0; }
    46204295EOF
    4621 if { (eval echo configure:4622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     4296if { (eval echo configure:4297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    46224297  rm -rf conftest*
    46234298  eval "ac_cv_lib_$ac_lib_var=yes"
     
    46514326ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    46524327echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    4653 echo "configure:4654: checking for $ac_hdr" >&5
     4328echo "configure:4329: checking for $ac_hdr" >&5
    46544329if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    46554330  echo $ac_n "(cached) $ac_c" 1>&6
    46564331else
    46574332  cat > conftest.$ac_ext <<EOF
    4658 #line 4659 "configure"
     4333#line 4334 "configure"
    46594334#include "confdefs.h"
    46604335#include <$ac_hdr>
    46614336EOF
    46624337ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    4663 { (eval echo configure:4664: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    4664 ac_err=`grep -v '^ *+' conftest.out`
     4338{ (eval echo configure:4339: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     4339ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    46654340if test -z "$ac_err"; then
    46664341  rm -rf conftest*
     
    47184393# evaluate results
    47194394echo $ac_n "checking which apint package to use""... $ac_c" 1>&6
    4720 echo "configure:4721: checking which apint package to use" >&5
     4395echo "configure:4396: checking which apint package to use" >&5
    47214396if test "${with_apint}" != gmp && test "${with_apint}" != smallgmp; then
    47224397  if test "$ac_gmp_ok" = yes || test "$enable_gmp" = yes; then
     
    47624437if test "$with_dl" != no; then
    47634438  echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
    4764 echo "configure:4765: checking for dlopen in -ldl" >&5
     4439echo "configure:4440: checking for dlopen in -ldl" >&5
    47654440ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
    47664441if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    47704445LIBS="-ldl  $LIBS"
    47714446cat > conftest.$ac_ext <<EOF
    4772 #line 4773 "configure"
     4447#line 4448 "configure"
    47734448#include "confdefs.h"
    47744449/* Override any gcc2 internal prototype to avoid an error.  */
     
    47814456; return 0; }
    47824457EOF
    4783 if { (eval echo configure:4784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     4458if { (eval echo configure:4459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    47844459  rm -rf conftest*
    47854460  eval "ac_cv_lib_$ac_lib_var=yes"
     
    48214496  fi
    48224497  echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
    4823 echo "configure:4824: checking for shl_load in -ldld" >&5
     4498echo "configure:4499: checking for shl_load in -ldld" >&5
    48244499ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
    48254500if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    48294504LIBS="-ldld  $LIBS"
    48304505cat > conftest.$ac_ext <<EOF
    4831 #line 4832 "configure"
     4506#line 4507 "configure"
    48324507#include "confdefs.h"
    48334508/* Override any gcc2 internal prototype to avoid an error.  */
     
    48404515; return 0; }
    48414516EOF
    4842 if { (eval echo configure:4843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     4517if { (eval echo configure:4518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    48434518  rm -rf conftest*
    48444519  eval "ac_cv_lib_$ac_lib_var=yes"
     
    48804555
    48814556echo $ac_n "checking whether to have MP""... $ac_c" 1>&6
    4882 echo "configure:4883: checking whether to have MP" >&5
     4557echo "configure:4558: checking whether to have MP" >&5
    48834558if test "${with_MP}" != yes && test "${with_MP}" != no; then
    48844559  if (test "${will_have_gmp}" = yes) && \
     
    49114586
    49124587echo $ac_n "checking whether to have factory""... $ac_c" 1>&6
    4913 echo "configure:4914: checking whether to have factory" >&5
     4588echo "configure:4589: checking whether to have factory" >&5
    49144589if test "${with_factory}" != yes && test "${with_factory}" != no; then
    49154590  if test "$ac_factory_ok" =  yes || test "$enable_factory" = yes; then
     
    49424617
    49434618echo $ac_n "checking whether to have libfac""... $ac_c" 1>&6
    4944 echo "configure:4945: checking whether to have libfac" >&5
     4619echo "configure:4620: checking whether to have libfac" >&5
    49454620if test "${with_libfac}" != yes && test "${with_libfac}" != no; then
    49464621  if (test "${will_have_factory}" = yes) && \
     
    49744649
    49754650echo $ac_n "checking whether to have dbm links""... $ac_c" 1>&6
    4976 echo "configure:4977: checking whether to have dbm links" >&5
     4651echo "configure:4652: checking whether to have dbm links" >&5
    49774652if test "$with_dbm" != no; then
    49784653  cat >> confdefs.h <<\EOF
     
    49864661
    49874662echo $ac_n "checking whether to have namespaces""... $ac_c" 1>&6
    4988 echo "configure:4989: checking whether to have namespaces" >&5
     4663echo "configure:4664: checking whether to have namespaces" >&5
    49894664if test "$with_namespaces" != yes; then
    49904665  echo "$ac_t""no" 1>&6
     
    49984673
    49994674echo $ac_n "checking whether to have dynamic loading""... $ac_c" 1>&6
    5000 echo "configure:5001: checking whether to have dynamic loading" >&5
     4675echo "configure:4676: checking whether to have dynamic loading" >&5
    50014676if test "$with_dl" != yes; then
    50024677  echo "$ac_t""no" 1>&6
     
    50114686        HPUX-9)
    50124687          echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
    5013 echo "configure:5014: checking for shl_load in -ldld" >&5
     4688echo "configure:4689: checking for shl_load in -ldld" >&5
    50144689ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
    50154690if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    50194694LIBS="-ldld  $LIBS"
    50204695cat > conftest.$ac_ext <<EOF
    5021 #line 5022 "configure"
     4696#line 4697 "configure"
    50224697#include "confdefs.h"
    50234698/* Override any gcc2 internal prototype to avoid an error.  */
     
    50304705; return 0; }
    50314706EOF
    5032 if { (eval echo configure:5033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     4707if { (eval echo configure:4708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    50334708  rm -rf conftest*
    50344709  eval "ac_cv_lib_$ac_lib_var=yes"
     
    50624737        HPUX-10)
    50634738          echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
    5064 echo "configure:5065: checking for shl_load in -ldld" >&5
     4739echo "configure:4740: checking for shl_load in -ldld" >&5
    50654740ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
    50664741if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    50704745LIBS="-ldld  $LIBS"
    50714746cat > conftest.$ac_ext <<EOF
    5072 #line 5073 "configure"
     4747#line 4748 "configure"
    50734748#include "confdefs.h"
    50744749/* Override any gcc2 internal prototype to avoid an error.  */
     
    50814756; return 0; }
    50824757EOF
    5083 if { (eval echo configure:5084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     4758if { (eval echo configure:4759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    50844759  rm -rf conftest*
    50854760  eval "ac_cv_lib_$ac_lib_var=yes"
     
    51204795
    51214796echo $ac_n "checking whether to use mtrack""... $ac_c" 1>&6
    5122 echo "configure:5123: checking whether to use mtrack" >&5
     4797echo "configure:4798: checking whether to use mtrack" >&5
    51234798if test "$with_mtrack" = yes && test "$ac_cv_singuname" = ix86-Linux; then
    51244799  echo "$ac_t""yes" 1>&6
     
    51344809
    51354810echo $ac_n "checking which exponent type to use""... $ac_c" 1>&6
    5136 echo "configure:5137: checking which exponent type to use" >&5
     4811echo "configure:4812: checking which exponent type to use" >&5
    51374812if test "$with_exp_type" = "char"; then
    51384813  echo "$ac_t""char" 1>&6
     
    51904865# and sets the high bit in the cache file unless we assign to the vars.
    51914866(set) 2>&1 |
    5192   case `(ac_space=' '; set) 2>&1` in
     4867  case `(ac_space=' '; set | grep ac_space) 2>&1` in
    51934868  *ac_space=\ *)
    51944869    # `set' does not quote correctly, so add quotes (double-quote substitution
     
    52574932    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
    52584933  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
    5259     echo "$CONFIG_STATUS generated by autoconf version 2.12"
     4934    echo "$CONFIG_STATUS generated by autoconf version 2.13"
    52604935    exit 0 ;;
    52614936  -help | --help | --hel | --he | --h)
     
    52764951$ac_vpsub
    52774952$extrasub
     4953s%@SHELL@%$SHELL%g
    52784954s%@CFLAGS@%$CFLAGS%g
    52794955s%@CPPFLAGS@%$CPPFLAGS%g
    52804956s%@CXXFLAGS@%$CXXFLAGS%g
     4957s%@FFLAGS@%$FFLAGS%g
    52814958s%@DEFS@%$DEFS%g
    52824959s%@LDFLAGS@%$LDFLAGS%g
  • Singular/configure.in

    r002ead raac46c  
    249249  AC_MSG_ERROR(Can not compile without limits.h unistd.h))
    250250
    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)
     251AC_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)
    252252
    253253# typedefs, structures
     
    485485AC_ARG_WITH(
    486486  readline,
    487   [  --without-readline      do not use readline for fancy display])
     487  [  --with-readline          do use static readline for fancy display])
    488488AC_ARG_WITH(
    489489  MP,
     
    567567dnl
    568568
    569 # fereadl - io routines
    570 AC_CHECK_HEADERS(termcap.h)
    571 AC_CHECK_HEADERS(termios.h)
    572 AC_CHECK_HEADERS(term.h)
     569AC_CHECK_LIB(ncurses,tgetent,,\
     570 AC_CHECK_LIB(curses,tgetent,,\
     571  AC_CHECK_LIB(termcap,tgetent)))
    573572
    574573# readline
    575 if test "$with_readline" != no; then
    576   AC_CHECK_LIB(ncurses,tgetent,,\
    577    AC_CHECK_LIB(curses,tgetent,,\
    578    AC_CHECK_LIB(termcap,tgetent)))
     574if test "$with_readline" = yes; then
    579575   AC_CHECK_LIB(readline, rl_abort)
    580576   AC_CHECK_HEADERS(readline/readline.h readline/history.h)
     
    652648  else
    653649    AC_MSG_WARN(building without readline: disabling fancy display)
    654     AC_CHECK_LIB(ncurses,tgetent,,\
    655     AC_CHECK_LIB(curses,tgetent,,\
    656     AC_CHECK_LIB(termcap,tgetent,,\
    657     AC_DEFINE(HAVE_FEREAD))))
    658   fi
    659 else
    660     AC_CHECK_LIB(ncurses,tgetent,,\
    661     AC_CHECK_LIB(curses,tgetent,,\
    662     AC_CHECK_LIB(termcap,tgetent,,\
    663   AC_DEFINE(HAVE_FEREAD))))
     650  fi
    664651fi
    665652
  • Singular/mod2.h.in

    r002ead raac46c  
    55 *          DO NOT EDIT!
    66 *
    7  *  Version: $Id: mod2.h.in,v 1.78 1999-11-29 13:01:28 obachman Exp $
     7 *  Version: $Id: mod2.h.in,v 1.79 1999-12-14 15:53:13 obachman Exp $
    88 *******************************************************************/
    99#ifndef MOD2_H
     
    1717/* Define to use readline lib for fancy display */
    1818#undef HAVE_READLINE
    19 /* Define to use built-in command line parser */
    20 #undef HAVE_FEREAD
    2119/* Define if you want to use dld's */
    2220#undef HAVE_DLD
  • configure

    r002ead raac46c  
    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#
     
    2020ac_help="$ac_help
    2121\
    22   --enable-PACKAGE        configure and build PACKAGE
    23   --disable-PACKAGE       do not configure and build PACKAGE
     22  --enable-PACKAGE        configure and/or build PACKAGE
     23  --disable-PACKAGE       do not configure and/or build PACKAGE
    2424   where PACKAGE can be:
    2525     smallgmp             minimal version of gmp written in C only"
     
    4141ac_help="$ac_help
    4242\
     43     mtrack               utility to track unused memory"
     44ac_help="$ac_help
     45\
    4346     Singular             CAS for Polynomial Computations"
    4447ac_help="$ac_help
    4548\
    4649     Texinfo              Texinfo for info, texi2dvi, makeinfo"
     50ac_help="$ac_help
     51\
     52     Texi2html            Texinfo to HTML converter"
     53ac_help="$ac_help
     54\
     55     doc                  Singular documentation"
     56ac_help="$ac_help
     57\
     58     emacs                emacs completion files"
    4759ac_help="$ac_help
    4860\
     
    5769\
    5870     libfac               char set and modp poly factorization library"
     71ac_help="$ac_help
     72\
     73     mtrack               utility to track unused memory"
    5974ac_help="$ac_help
    6075\
     
    102117subdirs=
    103118MFLAGS= MAKEFLAGS=
     119SHELL=${CONFIG_SHELL-/bin/sh}
    104120# Maximum number of lines to put in a shell here document.
    105121ac_max_here_lines=12
     
    385401
    386402  -version | --version | --versio | --versi | --vers)
    387     echo "configure generated by autoconf version 2.12"
     403    echo "configure generated by autoconf version 2.13"
    388404    exit 0 ;;
    389405
     
    555571ac_cpp='$CPP $CPPFLAGS'
    556572ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    557 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     573ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    558574cross_compiling=$ac_cv_prog_cc_cross
    559575
     576ac_exeext=
     577ac_objext=o
    560578if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
    561579  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
     
    572590
    573591
    574 OUTPUT_MAKEFILES="Makefile doc/Makefile doc/version.texi doc/uname.texi"
     592OUTPUT_MAKEFILES="Makefile"
     593if test -d "doc"; then
     594   OUTPUT_MAKEFILES="$OUTPUT_MAKEFILES doc/Makefile doc/version.texi doc/uname.texi"
     595fi
    575596if test -d "rpm"; then
    576597   OUTPUT_MAKEFILES=$OUTPUT_MAKEFILES" rpm/Makefile"
     
    590611
    591612echo $ac_n "checking uname for singular""... $ac_c" 1>&6
    592 echo "configure:593: checking uname for singular" >&5
     613echo "configure:614: checking uname for singular" >&5
    593614if eval "test \"`echo '$''{'ac_cv_singuname'+set}'`\" = set"; then
    594615  echo $ac_n "(cached) $ac_c" 1>&6
     
    635656set dummy gcc; ac_word=$2
    636657echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    637 echo "configure:638: checking for $ac_word" >&5
     658echo "configure:659: checking for $ac_word" >&5
    638659if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    639660  echo $ac_n "(cached) $ac_c" 1>&6
     
    642663  ac_cv_prog_CC="$CC" # Let the user override the test.
    643664else
    644   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    645   for ac_dir in $PATH; do
     665  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     666  ac_dummy="$PATH"
     667  for ac_dir in $ac_dummy; do
    646668    test -z "$ac_dir" && ac_dir=.
    647669    if test -f $ac_dir/$ac_word; then
     
    664686set dummy cc; ac_word=$2
    665687echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    666 echo "configure:667: checking for $ac_word" >&5
     688echo "configure:689: checking for $ac_word" >&5
    667689if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    668690  echo $ac_n "(cached) $ac_c" 1>&6
     
    671693  ac_cv_prog_CC="$CC" # Let the user override the test.
    672694else
    673   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
     695  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    674696  ac_prog_rejected=no
    675   for ac_dir in $PATH; do
     697  ac_dummy="$PATH"
     698  for ac_dir in $ac_dummy; do
    676699    test -z "$ac_dir" && ac_dir=.
    677700    if test -f $ac_dir/$ac_word; then
     
    708731fi
    709732
     733  if test -z "$CC"; then
     734    case "`uname -s`" in
     735    *win32* | *WIN32*)
     736      # Extract the first word of "cl", so it can be a program name with args.
     737set dummy cl; ac_word=$2
     738echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     739echo "configure:740: checking for $ac_word" >&5
     740if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
     741  echo $ac_n "(cached) $ac_c" 1>&6
     742else
     743  if test -n "$CC"; then
     744  ac_cv_prog_CC="$CC" # Let the user override the test.
     745else
     746  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     747  ac_dummy="$PATH"
     748  for ac_dir in $ac_dummy; do
     749    test -z "$ac_dir" && ac_dir=.
     750    if test -f $ac_dir/$ac_word; then
     751      ac_cv_prog_CC="cl"
     752      break
     753    fi
     754  done
     755  IFS="$ac_save_ifs"
     756fi
     757fi
     758CC="$ac_cv_prog_CC"
     759if test -n "$CC"; then
     760  echo "$ac_t""$CC" 1>&6
     761else
     762  echo "$ac_t""no" 1>&6
     763fi
     764 ;;
     765    esac
     766  fi
    710767  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
    711768fi
    712769
    713770echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    714 echo "configure:715: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
     771echo "configure:772: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
    715772
    716773ac_ext=c
     
    718775ac_cpp='$CPP $CPPFLAGS'
    719776ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    720 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     777ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    721778cross_compiling=$ac_cv_prog_cc_cross
    722779
    723 cat > conftest.$ac_ext <<EOF
    724 #line 725 "configure"
     780cat > conftest.$ac_ext << EOF
     781
     782#line 783 "configure"
    725783#include "confdefs.h"
     784
    726785main(){return(0);}
    727786EOF
    728 if { (eval echo configure:729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     787if { (eval echo configure:788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    729788  ac_cv_prog_cc_works=yes
    730789  # If we can't run a trivial program, we are probably using a cross compiler.
     
    740799fi
    741800rm -fr conftest*
     801ac_ext=c
     802# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
     803ac_cpp='$CPP $CPPFLAGS'
     804ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
     805ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     806cross_compiling=$ac_cv_prog_cc_cross
    742807
    743808echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
     
    746811fi
    747812echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    748 echo "configure:749: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
     813echo "configure:814: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
    749814echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
    750815cross_compiling=$ac_cv_prog_cc_cross
    751816
    752817echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
    753 echo "configure:754: checking whether we are using GNU C" >&5
     818echo "configure:819: checking whether we are using GNU C" >&5
    754819if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
    755820  echo $ac_n "(cached) $ac_c" 1>&6
     
    760825#endif
    761826EOF
    762 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:763: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     827if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    763828  ac_cv_prog_gcc=yes
    764829else
     
    771836if test $ac_cv_prog_gcc = yes; then
    772837  GCC=yes
    773   ac_test_CFLAGS="${CFLAGS+set}"
    774   ac_save_CFLAGS="$CFLAGS"
    775   CFLAGS=
    776   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
    777 echo "configure:778: checking whether ${CC-cc} accepts -g" >&5
     838else
     839  GCC=
     840fi
     841
     842ac_test_CFLAGS="${CFLAGS+set}"
     843ac_save_CFLAGS="$CFLAGS"
     844CFLAGS=
     845echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
     846echo "configure:847: checking whether ${CC-cc} accepts -g" >&5
    778847if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
    779848  echo $ac_n "(cached) $ac_c" 1>&6
     
    790859
    791860echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
    792   if test "$ac_test_CFLAGS" = set; then
    793     CFLAGS="$ac_save_CFLAGS"
    794   elif test $ac_cv_prog_cc_g = yes; then
     861if test "$ac_test_CFLAGS" = set; then
     862  CFLAGS="$ac_save_CFLAGS"
     863elif test $ac_cv_prog_cc_g = yes; then
     864  if test "$GCC" = yes; then
    795865    CFLAGS="-g -O2"
    796866  else
     867    CFLAGS="-g"
     868  fi
     869else
     870  if test "$GCC" = yes; then
    797871    CFLAGS="-O2"
    798   fi
    799 else
    800   GCC=
    801   test "${CFLAGS+set}" = set || CFLAGS="-g"
     872  else
     873    CFLAGS=
     874  fi
    802875fi
    803876
    804877echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
    805 echo "configure:806: checking how to run the C preprocessor" >&5
     878echo "configure:879: checking how to run the C preprocessor" >&5
    806879# On Suns, sometimes $CPP names a directory.
    807880if test -n "$CPP" && test -d "$CPP"; then
     
    818891  # not just through cpp.
    819892  cat > conftest.$ac_ext <<EOF
    820 #line 821 "configure"
     893#line 894 "configure"
    821894#include "confdefs.h"
    822895#include <assert.h>
     
    824897EOF
    825898ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    826 { (eval echo configure:827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    827 ac_err=`grep -v '^ *+' conftest.out`
     899{ (eval echo configure:900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     900ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    828901if test -z "$ac_err"; then
    829902  :
     
    835908  CPP="${CC-cc} -E -traditional-cpp"
    836909  cat > conftest.$ac_ext <<EOF
    837 #line 838 "configure"
     910#line 911 "configure"
    838911#include "confdefs.h"
    839912#include <assert.h>
     
    841914EOF
    842915ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    843 { (eval echo configure:844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    844 ac_err=`grep -v '^ *+' conftest.out`
     916{ (eval echo configure:917: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     917ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
     918if test -z "$ac_err"; then
     919  :
     920else
     921  echo "$ac_err" >&5
     922  echo "configure: failed program was:" >&5
     923  cat conftest.$ac_ext >&5
     924  rm -rf conftest*
     925  CPP="${CC-cc} -nologo -E"
     926  cat > conftest.$ac_ext <<EOF
     927#line 928 "configure"
     928#include "confdefs.h"
     929#include <assert.h>
     930Syntax Error
     931EOF
     932ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
     933{ (eval echo configure:934: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     934ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    845935if test -z "$ac_err"; then
    846936  :
     
    851941  rm -rf conftest*
    852942  CPP=/lib/cpp
     943fi
     944rm -f conftest*
    853945fi
    854946rm -f conftest*
     
    889981# IRIX /sbin/install
    890982# AIX /bin/install
     983# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
    891984# AFS /usr/afsws/bin/install, which mishandles nonexistent args
    892985# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
    893986# ./install, which can be erroneously created by make from ./install.sh.
    894987echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
    895 echo "configure:896: checking for a BSD compatible install" >&5
     988echo "configure:989: checking for a BSD compatible install" >&5
    896989if test -z "$INSTALL"; then
    897990if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
    898991  echo $ac_n "(cached) $ac_c" 1>&6
    899992else
    900     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
     993    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
    901994  for ac_dir in $PATH; do
    902995    # Account for people who put trailing slashes in PATH elements.
     
    905998    *)
    906999      # OSF1 and SCO ODT 3.0 have their own names for install.
    907       for ac_prog in ginstall installbsd scoinst install; do
     1000      # Don't use installbsd from OSF since it installs stuff as root
     1001      # by default.
     1002      for ac_prog in ginstall scoinst install; do
    9081003        if test -f $ac_dir/$ac_prog; then
    9091004          if test $ac_prog = install &&
    9101005            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
    9111006            # AIX install.  It has an incompatible calling convention.
    912             # OSF/1 installbsd also uses dspmsg, but is usable.
    9131007            :
    9141008          else
     
    9401034test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
    9411035
     1036test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
     1037
    9421038test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
    9431039
    9441040echo $ac_n "checking for AIX""... $ac_c" 1>&6
    945 echo "configure:946: checking for AIX" >&5
     1041echo "configure:1042: checking for AIX" >&5
    9461042cat > conftest.$ac_ext <<EOF
    947 #line 948 "configure"
     1043#line 1044 "configure"
    9481044#include "confdefs.h"
    9491045#ifdef _AIX
     
    9721068set dummy $ac_prog; ac_word=$2
    9731069echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    974 echo "configure:975: checking for $ac_word" >&5
     1070echo "configure:1071: checking for $ac_word" >&5
    9751071if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
    9761072  echo $ac_n "(cached) $ac_c" 1>&6
     
    9791075  ac_cv_prog_PERL="$PERL" # Let the user override the test.
    9801076else
    981   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    982   for ac_dir in $PATH; do
     1077  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     1078  ac_dummy="$PATH"
     1079  for ac_dir in $ac_dummy; do
    9831080    test -z "$ac_dir" && ac_dir=.
    9841081    if test -f $ac_dir/$ac_word; then
     
    10051102set dummy $ac_prog; ac_word=$2
    10061103echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1007 echo "configure:1008: checking for $ac_word" >&5
     1104echo "configure:1105: checking for $ac_word" >&5
    10081105if eval "test \"`echo '$''{'ac_cv_prog_GUNZIP'+set}'`\" = set"; then
    10091106  echo $ac_n "(cached) $ac_c" 1>&6
     
    10121109  ac_cv_prog_GUNZIP="$GUNZIP" # Let the user override the test.
    10131110else
    1014   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    1015   for ac_dir in $PATH; do
     1111  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     1112  ac_dummy="$PATH"
     1113  for ac_dir in $ac_dummy; do
    10161114    test -z "$ac_dir" && ac_dir=.
    10171115    if test -f $ac_dir/$ac_word; then
     
    10401138set dummy $ac_prog; ac_word=$2
    10411139echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1042 echo "configure:1043: checking for $ac_word" >&5
     1140echo "configure:1141: checking for $ac_word" >&5
    10431141if eval "test \"`echo '$''{'ac_cv_prog_MYGZIP'+set}'`\" = set"; then
    10441142  echo $ac_n "(cached) $ac_c" 1>&6
     
    10471145  ac_cv_prog_MYGZIP="$MYGZIP" # Let the user override the test.
    10481146else
    1049   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    1050   for ac_dir in $PATH; do
     1147  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     1148  ac_dummy="$PATH"
     1149  for ac_dir in $ac_dummy; do
    10511150    test -z "$ac_dir" && ac_dir=.
    10521151    if test -f $ac_dir/$ac_word; then
     
    10721171set dummy latex2html; ac_word=$2
    10731172echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1074 echo "configure:1075: checking for $ac_word" >&5
     1173echo "configure:1174: checking for $ac_word" >&5
    10751174if eval "test \"`echo '$''{'ac_cv_prog_LATEX2HTML'+set}'`\" = set"; then
    10761175  echo $ac_n "(cached) $ac_c" 1>&6
     
    10791178  ac_cv_prog_LATEX2HTML="$LATEX2HTML" # Let the user override the test.
    10801179else
    1081   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    1082   for ac_dir in $PATH; do
     1180  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     1181  ac_dummy="$PATH"
     1182  for ac_dir in $ac_dummy; do
    10831183    test -z "$ac_dir" && ac_dir=.
    10841184    if test -f $ac_dir/$ac_word; then
     
    10981198
    10991199echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
    1100 echo "configure:1101: checking whether ln -s works" >&5
     1200echo "configure:1201: checking whether ln -s works" >&5
    11011201if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
    11021202  echo $ac_n "(cached) $ac_c" 1>&6
     
    11301230set dummy texi2html; ac_word=$2
    11311231echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1132 echo "configure:1133: checking for $ac_word" >&5
     1232echo "configure:1233: checking for $ac_word" >&5
    11331233if eval "test \"`echo '$''{'ac_cv_prog_TEXI2HTML'+set}'`\" = set"; then
    11341234  echo $ac_n "(cached) $ac_c" 1>&6
     
    11371237  ac_cv_prog_TEXI2HTML="$TEXI2HTML" # Let the user override the test.
    11381238else
    1139   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    1140   for ac_dir in $PATH; do
     1239  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     1240  ac_dummy="$PATH"
     1241  for ac_dir in $ac_dummy; do
    11411242    test -z "$ac_dir" && ac_dir=.
    11421243    if test -f $ac_dir/$ac_word; then
     
    12031304# check for AIX
    12041305echo $ac_n "checking whether _AIX is defined""... $ac_c" 1>&6
    1205 echo "configure:1206: checking whether _AIX is defined" >&5
     1306echo "configure:1307: checking whether _AIX is defined" >&5
    12061307if eval "test \"`echo '$''{'ac_cv_is_aix'+set}'`\" = set"; then
    12071308  echo $ac_n "(cached) $ac_c" 1>&6
    12081309else
    12091310  cat > conftest.$ac_ext <<EOF
    1210 #line 1211 "configure"
     1311#line 1312 "configure"
    12111312#include "confdefs.h"
    12121313#ifdef _AIX
     
    12341335
    12351336echo $ac_n "checking for atof in -lm""... $ac_c" 1>&6
    1236 echo "configure:1237: checking for atof in -lm" >&5
     1337echo "configure:1338: checking for atof in -lm" >&5
    12371338ac_lib_var=`echo m'_'atof | sed 'y%./+-%__p_%'`
    12381339if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    12421343LIBS="-lm  $LIBS"
    12431344cat > conftest.$ac_ext <<EOF
    1244 #line 1245 "configure"
     1345#line 1346 "configure"
    12451346#include "confdefs.h"
    12461347/* Override any gcc2 internal prototype to avoid an error.  */
     
    12531354; return 0; }
    12541355EOF
    1255 if { (eval echo configure:1256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     1356if { (eval echo configure:1357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    12561357  rm -rf conftest*
    12571358  eval "ac_cv_lib_$ac_lib_var=yes"
     
    12811382
    12821383echo $ac_n "checking for socket in -lbsd""... $ac_c" 1>&6
    1283 echo "configure:1284: checking for socket in -lbsd" >&5
     1384echo "configure:1385: checking for socket in -lbsd" >&5
    12841385ac_lib_var=`echo bsd'_'socket | sed 'y%./+-%__p_%'`
    12851386if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    12891390LIBS="-lbsd  $LIBS"
    12901391cat > conftest.$ac_ext <<EOF
    1291 #line 1292 "configure"
     1392#line 1393 "configure"
    12921393#include "confdefs.h"
    12931394/* Override any gcc2 internal prototype to avoid an error.  */
     
    13001401; return 0; }
    13011402EOF
    1302 if { (eval echo configure:1303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     1403if { (eval echo configure:1404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    13031404  rm -rf conftest*
    13041405  eval "ac_cv_lib_$ac_lib_var=yes"
     
    13281429
    13291430echo $ac_n "checking for listen in -lsocket""... $ac_c" 1>&6
    1330 echo "configure:1331: checking for listen in -lsocket" >&5
     1431echo "configure:1432: checking for listen in -lsocket" >&5
    13311432ac_lib_var=`echo socket'_'listen | sed 'y%./+-%__p_%'`
    13321433if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    13361437LIBS="-lsocket  $LIBS"
    13371438cat > conftest.$ac_ext <<EOF
    1338 #line 1339 "configure"
     1439#line 1440 "configure"
    13391440#include "confdefs.h"
    13401441/* Override any gcc2 internal prototype to avoid an error.  */
     
    13471448; return 0; }
    13481449EOF
    1349 if { (eval echo configure:1350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     1450if { (eval echo configure:1451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    13501451  rm -rf conftest*
    13511452  eval "ac_cv_lib_$ac_lib_var=yes"
     
    13751476
    13761477echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
    1377 echo "configure:1378: checking for gethostbyname in -lnsl" >&5
     1478echo "configure:1479: checking for gethostbyname in -lnsl" >&5
    13781479ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
    13791480if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    13831484LIBS="-lnsl  $LIBS"
    13841485cat > conftest.$ac_ext <<EOF
    1385 #line 1386 "configure"
     1486#line 1487 "configure"
    13861487#include "confdefs.h"
    13871488/* Override any gcc2 internal prototype to avoid an error.  */
     
    13941495; return 0; }
    13951496EOF
    1396 if { (eval echo configure:1397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     1497if { (eval echo configure:1498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    13971498  rm -rf conftest*
    13981499  eval "ac_cv_lib_$ac_lib_var=yes"
     
    14221523
    14231524echo $ac_n "checking for mpq_init in -lgmp""... $ac_c" 1>&6
    1424 echo "configure:1425: checking for mpq_init in -lgmp" >&5
     1525echo "configure:1526: checking for mpq_init in -lgmp" >&5
    14251526ac_lib_var=`echo gmp'_'mpq_init | sed 'y%./+-%__p_%'`
    14261527if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    14301531LIBS="-lgmp  $LIBS"
    14311532cat > conftest.$ac_ext <<EOF
    1432 #line 1433 "configure"
     1533#line 1534 "configure"
    14331534#include "confdefs.h"
    14341535/* Override any gcc2 internal prototype to avoid an error.  */
     
    14411542; return 0; }
    14421543EOF
    1443 if { (eval echo configure:1444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     1544if { (eval echo configure:1545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    14441545  rm -rf conftest*
    14451546  eval "ac_cv_lib_$ac_lib_var=yes"
     
    14691570
    14701571echo $ac_n "checking for mpz_init in -lsmallgmp""... $ac_c" 1>&6
    1471 echo "configure:1472: checking for mpz_init in -lsmallgmp" >&5
     1572echo "configure:1573: checking for mpz_init in -lsmallgmp" >&5
    14721573ac_lib_var=`echo smallgmp'_'mpz_init | sed 'y%./+-%__p_%'`
    14731574if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    14771578LIBS="-lsmallgmp  $LIBS"
    14781579cat > conftest.$ac_ext <<EOF
    1479 #line 1480 "configure"
     1580#line 1581 "configure"
    14801581#include "confdefs.h"
    14811582/* Override any gcc2 internal prototype to avoid an error.  */
     
    14881589; return 0; }
    14891590EOF
    1490 if { (eval echo configure:1491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     1591if { (eval echo configure:1592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    14911592  rm -rf conftest*
    14921593  eval "ac_cv_lib_$ac_lib_var=yes"
     
    15161617
    15171618echo $ac_n "checking for IMP_PutGmpInt in -lMP""... $ac_c" 1>&6
    1518 echo "configure:1519: checking for IMP_PutGmpInt in -lMP" >&5
     1619echo "configure:1620: checking for IMP_PutGmpInt in -lMP" >&5
    15191620ac_lib_var=`echo MP'_'IMP_PutGmpInt | sed 'y%./+-%__p_%'`
    15201621if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    15241625LIBS="-lMP  $LIBS"
    15251626cat > conftest.$ac_ext <<EOF
    1526 #line 1527 "configure"
     1627#line 1628 "configure"
    15271628#include "confdefs.h"
    15281629/* Override any gcc2 internal prototype to avoid an error.  */
     
    15351636; return 0; }
    15361637EOF
    1537 if { (eval echo configure:1538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     1638if { (eval echo configure:1639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    15381639  rm -rf conftest*
    15391640  eval "ac_cv_lib_$ac_lib_var=yes"
     
    15631664
    15641665echo $ac_n "checking for MPT_GetTree in -lMPT""... $ac_c" 1>&6
    1565 echo "configure:1566: checking for MPT_GetTree in -lMPT" >&5
     1666echo "configure:1667: checking for MPT_GetTree in -lMPT" >&5
    15661667ac_lib_var=`echo MPT'_'MPT_GetTree | sed 'y%./+-%__p_%'`
    15671668if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    15711672LIBS="-lMPT  $LIBS"
    15721673cat > conftest.$ac_ext <<EOF
    1573 #line 1574 "configure"
     1674#line 1675 "configure"
    15741675#include "confdefs.h"
    15751676/* Override any gcc2 internal prototype to avoid an error.  */
     
    15821683; return 0; }
    15831684EOF
    1584 if { (eval echo configure:1585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     1685if { (eval echo configure:1686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    15851686  rm -rf conftest*
    15861687  eval "ac_cv_lib_$ac_lib_var=yes"
     
    16101711
    16111712echo $ac_n "checking for atof in -lsingcf""... $ac_c" 1>&6
    1612 echo "configure:1613: checking for atof in -lsingcf" >&5
     1713echo "configure:1714: checking for atof in -lsingcf" >&5
    16131714ac_lib_var=`echo singcf'_'atof | sed 'y%./+-%__p_%'`
    16141715if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    16181719LIBS="-lsingcf  $LIBS"
    16191720cat > conftest.$ac_ext <<EOF
    1620 #line 1621 "configure"
     1721#line 1722 "configure"
    16211722#include "confdefs.h"
    16221723/* Override any gcc2 internal prototype to avoid an error.  */
     
    16291730; return 0; }
    16301731EOF
    1631 if { (eval echo configure:1632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     1732if { (eval echo configure:1733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    16321733  rm -rf conftest*
    16331734  eval "ac_cv_lib_$ac_lib_var=yes"
     
    16571758
    16581759echo $ac_n "checking for atof in -lsingfac""... $ac_c" 1>&6
    1659 echo "configure:1660: checking for atof in -lsingfac" >&5
     1760echo "configure:1761: checking for atof in -lsingfac" >&5
    16601761ac_lib_var=`echo singfac'_'atof | sed 'y%./+-%__p_%'`
    16611762if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    16651766LIBS="-lsingfac  $LIBS"
    16661767cat > conftest.$ac_ext <<EOF
    1667 #line 1668 "configure"
     1768#line 1769 "configure"
    16681769#include "confdefs.h"
    16691770/* Override any gcc2 internal prototype to avoid an error.  */
     
    16761777; return 0; }
    16771778EOF
    1678 if { (eval echo configure:1679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     1779if { (eval echo configure:1780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    16791780  rm -rf conftest*
    16801781  eval "ac_cv_lib_$ac_lib_var=yes"
     
    17081809ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    17091810echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    1710 echo "configure:1711: checking for $ac_hdr" >&5
     1811echo "configure:1812: checking for $ac_hdr" >&5
    17111812if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    17121813  echo $ac_n "(cached) $ac_c" 1>&6
    17131814else
    17141815  cat > conftest.$ac_ext <<EOF
    1715 #line 1716 "configure"
     1816#line 1817 "configure"
    17161817#include "confdefs.h"
    17171818#include <$ac_hdr>
    17181819EOF
    17191820ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1720 { (eval echo configure:1721: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1721 ac_err=`grep -v '^ *+' conftest.out`
     1821{ (eval echo configure:1822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1822ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    17221823if test -z "$ac_err"; then
    17231824  rm -rf conftest*
     
    18221923fi
    18231924
     1925# Check whether --enable-mtrack or --disable-mtrack was given.
     1926if test "${enable_mtrack+set}" = set; then
     1927  enableval="$enable_mtrack"
     1928  :
     1929fi
     1930
    18241931# Check whether --enable-Singular or --disable-Singular was given.
    18251932if test "${enable_Singular+set}" = set; then
     
    18341941fi
    18351942
     1943# Check whether --enable-Texi2html or --disable-Texi2html was given.
     1944if test "${enable_Texi2html+set}" = set; then
     1945  enableval="$enable_Texi2html"
     1946  :
     1947fi
     1948
     1949# Check whether --enable-doc or --disable-doc was given.
     1950if test "${enable_doc+set}" = set; then
     1951  enableval="$enable_doc"
     1952  :
     1953fi
     1954
     1955# Check whether --enable-emacs or --disable-emacs was given.
     1956if test "${enable_emacs+set}" = set; then
     1957  enableval="$enable_emacs"
     1958  :
     1959fi
     1960
    18361961# Check whether --with-MP or --without-MP was given.
    18371962if test "${with_MP+set}" = set; then
     
    18521977fi
    18531978
     1979# Check whether --with-mtrack or --without-mtrack was given.
     1980if test "${with_mtrack+set}" = set; then
     1981  withval="$with_mtrack"
     1982  :
     1983fi
     1984
    18541985# Check whether --with-gmp or --without-gmp was given.
    18551986if test "${with_gmp+set}" = set; then
     
    18601991
    18611992echo $ac_n "checking which tmp dir to use""... $ac_c" 1>&6
    1862 echo "configure:1863: checking which tmp dir to use" >&5
     1993echo "configure:1994: checking which tmp dir to use" >&5
    18631994if test "${with_tmpdir+set}" = set && test -d ${with_tmpdir}; then
    18641995  if (echo "${with_tmpdir}" | egrep "\." >/dev/null 2>&1)
     
    18772008if test "${with_perl5+set}" != set; then
    18782009  echo $ac_n "checking for perl5""... $ac_c" 1>&6
    1879 echo "configure:1880: checking for perl5" >&5
     2010echo "configure:2011: checking for perl5" >&5
    18802011    if eval "test \"`echo '$''{'ac_cv_prog_perl5'+set}'`\" = set"; then
    18812012  echo $ac_n "(cached) $ac_c" 1>&6
     
    19142045set dummy $ac_prog; ac_word=$2
    19152046echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1916 echo "configure:1917: checking for $ac_word" >&5
     2047echo "configure:2048: checking for $ac_word" >&5
    19172048if eval "test \"`echo '$''{'ac_cv_prog_PERL5'+set}'`\" = set"; then
    19182049  echo $ac_n "(cached) $ac_c" 1>&6
     
    19212052  ac_cv_prog_PERL5="$PERL5" # Let the user override the test.
    19222053else
    1923   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    1924   for ac_dir in $PATH; do
     2054  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     2055  ac_dummy="$PATH"
     2056  for ac_dir in $ac_dummy; do
    19252057    test -z "$ac_dir" && ac_dir=.
    19262058    if test -f $ac_dir/$ac_word; then
     
    19482080
    19492081
    1950 echo $ac_n "checking whether to configure and build texinfo""... $ac_c" 1>&6
    1951 echo "configure:1952: checking whether to configure and build texinfo" >&5
    1952 if test "$enable_texinfo" != no && test -d Texinfo; then
     2082
     2083echo $ac_n "checking whether to configure and build gmp lib""... $ac_c" 1>&6
     2084echo "configure:2085: checking whether to configure and build gmp lib" >&5
     2085if test "$enable_gmp" != yes && test "$enable_gmp" != no; then
     2086  if test "$ac_gmp_ok" != yes && test -d gmp; then
     2087    echo "$ac_t""yes" 1>&6
     2088    enable_gmp=yes
     2089    CONFIG_SUBDIRS="$CONFIG_SUBDIRS gmp"
     2090    ac_configure_args="$ac_configure_args --enable-gmp"
     2091    OUTPUT_MAKEFILES="$OUTPUT_MAKEFILES gmp/Makefile.in"
     2092  else
     2093    echo "$ac_t""no" 1>&6
     2094    enable_gmp=no
     2095  fi
     2096elif test "$enable_gmp" = yes; then
     2097  if test ! -d gmp; then
     2098    echo "$ac_t""no" 1>&6
     2099    { echo "configure: error: Can not find gmp subdir" 1>&2; exit 1; }
     2100  else
     2101    echo "$ac_t""yes" 1>&6
     2102    CONFIG_SUBDIRS="$CONFIG_SUBDIRS gmp"
     2103    OUTPUT_MAKEFILES="$OUTPUT_MAKEFILES gmp/Makefile.in"
     2104  fi
     2105else
     2106  echo "$ac_t""no" 1>&6
     2107fi
     2108
     2109echo $ac_n "checking whether to configure and build smallgmp lib""... $ac_c" 1>&6
     2110echo "configure:2111: checking whether to configure and build smallgmp lib" >&5
     2111if test "$enable_smallgmp" != yes && test "$enable_smallgmp" != no; then
     2112  if test "$ac_smallgmp_ok" != yes && test "$ac_gmp_ok" != yes && \
     2113     test "$enable_gmp" != yes && test -d smallgmp; then
     2114    echo "$ac_t""yes" 1>&6
     2115    enable_smallgmp=yes
     2116    CONFIG_SUBDIRS="$CONFIG_SUBDIRS smallgmp"
     2117    ac_configure_args="$ac_configure_args --enable-smallgmp --enable-gmp"
     2118  else
     2119    echo "$ac_t""no" 1>&6
     2120    enable_smallgmp=no
     2121  fi
     2122elif test "$enable_smallgmp" = yes; then
     2123  if test ! -d smallgmp; then
     2124    echo "$ac_t""no" 1>&6
     2125    { echo "configure: error: Can not find smallgmp subdir" 1>&2; exit 1; }
     2126  else
     2127    echo "$ac_t""yes" 1>&6
     2128    CONFIG_SUBDIRS="$CONFIG_SUBDIRS smallgmp"
     2129    if test "$ac_gmp_ok" != yes && test "$enable_gmp" != yes; then
     2130      ac_configure_args="$ac_configure_args --enable-gmp"
     2131    fi
     2132  fi
     2133else
     2134  echo "$ac_t""${enable_smallgmp}" 1>&6
     2135fi
     2136
     2137# Check whether we have at least one of smallgmp or gmp
     2138if test "$ac_smallgmp_ok" != yes && test "$ac_gmp_ok" != yes && \
     2139   test "$enable_smallgmp" != yes && test "$enable_gmp" != yes; then
     2140  { echo "configure: error: can neither find nor built gmp or smallgmp" 1>&2; exit 1; }
     2141fi
     2142
     2143# Check whether we need to cheat subsequent configures with --enable-gmp
     2144if test "$ac_smallgmp_ok" != yes && test "$ac_gmp_ok" != yes; then
     2145  ac_configure_args="$ac_configure_args --enable-gmp"
     2146fi
     2147
     2148echo $ac_n "checking whether to configure and build MP lib""... $ac_c" 1>&6
     2149echo "configure:2150: checking whether to configure and build MP lib" >&5
     2150if test "$enable_MP" != yes && test "$enable_MP" != no; then
     2151  if test "$with_MP" != no && test "$ac_MP_ok" != yes && test -d MP && \
     2152     (test "$enable_gmp" = yes || test "$ac_gmp_ok" = yes); then
     2153    echo "$ac_t""yes" 1>&6
     2154    enable_MP=yes
     2155    CONFIG_SUBDIRS="$CONFIG_SUBDIRS MP"
     2156    ac_configure_args="$ac_configure_args --enable-MP"
     2157  else
     2158    echo "$ac_t""no" 1>&6
     2159    enable_MP=no
     2160  fi
     2161elif test "$enable_MP" = yes; then
     2162  if test ! -d MP; then
     2163    echo "$ac_t""no" 1>&6
     2164    { echo "configure: error: can not build MP without MP directory" 1>&2; exit 1; }
     2165  fi
     2166  if test "$enable_gmp" = yes || test "$ac_gmp_ok" = yes; then
     2167    echo "$ac_t""yes" 1>&6
     2168    CONFIG_SUBDIRS="$CONFIG_SUBDIRS MP"
     2169  else
     2170    echo "$ac_t""no" 1>&6
     2171    { echo "configure: error: can not build MP without gmp" 1>&2; exit 1; }
     2172  fi
     2173else
     2174  echo "$ac_t""no" 1>&6
     2175fi
     2176 
     2177echo $ac_n "checking whether to configure and build factory lib""... $ac_c" 1>&6
     2178echo "configure:2179: checking whether to configure and build factory lib" >&5
     2179if test "$enable_factory" != yes && test "$enable_factory" != no; then
     2180  if test "$with_factory" != no && test "$ac_factory_ok" != yes && \
     2181     test -d factory; then
     2182    enable_factory=yes
     2183    echo "$ac_t""yes" 1>&6
     2184    CONFIG_SUBDIRS="$CONFIG_SUBDIRS factory"
     2185    ac_configure_args="$ac_configure_args --enable-factory"
     2186  else
     2187    enable_factory=no
     2188    echo "$ac_t""no" 1>&6
     2189  fi
     2190elif test "$enable_factory" = yes; then
     2191  if test -d factory; then
     2192    echo "$ac_t""yes" 1>&6
     2193    CONFIG_SUBDIRS="$CONFIG_SUBDIRS factory"
     2194  else
     2195    echo "$ac_t""no" 1>&6
     2196    { echo "configure: error: can not build factory without factory directory" 1>&2; exit 1; }
     2197  fi
     2198else
     2199  echo "$ac_t""no" 1>&6
     2200fi
     2201
     2202echo $ac_n "checking whether to configure and build libfac lib""... $ac_c" 1>&6
     2203echo "configure:2204: checking whether to configure and build libfac lib" >&5
     2204if test "$enable_libfac" != yes && test "$enable_libfac" != no; then
     2205  if test "$with_libfac" != no && test "$ac_libfac_ok" != yes && \
     2206     test -d libfac && \
     2207     (test "$ac_factory_ok" = yes || test "$enable_factory" = yes); then
     2208    enable_libfac=yes
     2209    echo "$ac_t""yes" 1>&6
     2210    CONFIG_SUBDIRS="$CONFIG_SUBDIRS libfac"
     2211    ac_configure_args="$ac_configure_args --enable-libfac"
     2212  else
     2213    enable_libfac=no
     2214    echo "$ac_t""no" 1>&6
     2215  fi
     2216elif  test "$enable_libfac" = yes; then
     2217  if test ! -d libfac; then
     2218    echo "$ac_t""no" 1>&6
     2219    { echo "configure: error: can not build libfac without libfac directory" 1>&2; exit 1; }
     2220  fi
     2221  if test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then
     2222    echo "$ac_t""yes" 1>&6
     2223    CONFIG_SUBDIRS="$CONFIG_SUBDIRS libfac"
     2224  else
     2225    echo "$ac_t""no" 1>&6
     2226    { echo "configure: error: Can not build libfac without factory" 1>&2; exit 1; }
     2227  fi
     2228else
     2229  echo "$ac_t""no" 1>&6
     2230fi
     2231
     2232echo $ac_n "checking whether to configure and build sgroup lib""... $ac_c" 1>&6
     2233echo "configure:2234: checking whether to configure and build sgroup lib" >&5
     2234if test "$enable_sgroup" != yes && test "$enable_sgroup" != no; then
     2235  if test "$with_sgroup" != no && test "$ac_sgroup_ok" != yes && \
     2236     test -d sgroup && \
     2237     (test "$ac_MP_ok" = yes || test "$enable_MP" = yes); then
     2238    enable_sgroup=yes
     2239    echo "$ac_t""yes" 1>&6
     2240    CONFIG_SUBDIRS="$CONFIG_SUBDIRS sgroup"
     2241    ac_configure_args="$ac_configure_args --enable-sgroup"
     2242  else
     2243    enable_sgroup=no
     2244    echo "$ac_t""no" 1>&6
     2245  fi
     2246elif  test "$enable_sgroup" = yes; then
     2247  if test ! -d sgroup; then
     2248    echo "$ac_t""no" 1>&6
     2249    { echo "configure: error: can not build sgroup without sgroup directory" 1>&2; exit 1; }
     2250  fi
     2251  if test "$ac_MP_ok" = yes || test "$enable_MP" = yes; then
     2252    echo "$ac_t""yes" 1>&6
     2253    CONFIG_SUBDIRS="$CONFIG_SUBDIRS sgroup"
     2254  else
     2255    echo "$ac_t""no" 1>&6
     2256    { echo "configure: error: Can not build sgroup without MP" 1>&2; exit 1; }
     2257  fi
     2258else
     2259  echo "$ac_t""no" 1>&6
     2260fi
     2261
     2262BUILD_SUBDIRS="$CONFIG_SUBDIRS"
     2263
     2264echo $ac_n "checking whether to build mpr and use mtrack""... $ac_c" 1>&6
     2265echo "configure:2266: checking whether to build mpr and use mtrack" >&5
     2266if test -d mpr && test "$ac_cv_singuname" = ix86-Linux && test "$enable_mtrack" != no; then
     2267  echo "$ac_t""yes" 1>&6
     2268  if test "$enable_mtrack" != yes; then
     2269     ac_configure_args="$ac_configure_args --enable-mtrack"
     2270  fi
     2271  enable_mtrack=yes
     2272  OUTPUT_MAKEFILES=$OUTPUT_MAKEFILES" mpr/Makefile"
     2273  BUILD_SUBDIRS="$BUILD_SUBDIRS mpr"
     2274else
     2275  echo "$ac_t""no" 1>&6
     2276  enable_mtrack=no
     2277fi
     2278
     2279echo $ac_n "checking whether to configure and build Singular""... $ac_c" 1>&6
     2280echo "configure:2281: checking whether to configure and build Singular" >&5
     2281if test "$enable_Singular" != yes && test "$enable_Singular" != no; then
     2282  if test "$with_Singular" != no && test -d Singular; then
     2283    enable_Singular=yes
     2284    echo "$ac_t""yes" 1>&6
     2285    CONFIG_SUBDIRS="$CONFIG_SUBDIRS Singular"
     2286    BUILD_SUBDIRS="$BUILD_SUBDIRS Singular"     
     2287    ac_configure_args="$ac_configure_args --enable-Singular"
     2288  else
     2289    enable_Singular=no
     2290    echo "$ac_t""no" 1>&6
     2291  fi
     2292elif test "$enable_Singular" = yes; then
     2293  if test -d Singular; then
     2294    echo "$ac_t""yes" 1>&6
     2295    CONFIG_SUBDIRS="$CONFIG_SUBDIRS Singular"
     2296    BUILD_SUBDIRS="$BUILD_SUBDIRS Singular"     
     2297  else
     2298    echo "$ac_t""no" 1>&6
     2299    { echo "configure: error: can not build Singular without Singular directory" 1>&2; exit 1; }
     2300  fi
     2301else
     2302  echo "$ac_t""no" 1>&6
     2303fi
     2304
     2305echo $ac_n "checking whether to configure and build Texinfo""... $ac_c" 1>&6
     2306echo "configure:2307: checking whether to configure and build Texinfo" >&5
     2307if test "$enable_Texinfo" != no && test -d Texinfo; then
    19532308  echo "$ac_t""yes" 1>&6
    19542309  enable_texinfo=yes
    19552310  CONFIG_SUBDIRS="$CONFIG_SUBDIRS Texinfo"
     2311  BUILD_SUBDIRS="$BUILD_SUBDIRS Texinfo"       
    19562312  TEXI2DVI=${bindir}/texi2dvi
    19572313  MAKEINFO="${bindir}/makeinfo --force"
     
    19602316 
    19612317 
     2318  if test "$enable_Texinfo" != yes; then
     2319    ac_configure_args="$ac_configure_args --enable-Texinfo"
     2320  fi
    19622321else
    19632322  echo "$ac_t""no" 1>&6
     
    19672326set dummy makeinfo; ac_word=$2
    19682327echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1969 echo "configure:1970: checking for $ac_word" >&5
     2328echo "configure:2329: checking for $ac_word" >&5
    19702329if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
    19712330  echo $ac_n "(cached) $ac_c" 1>&6
     
    19742333  ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
    19752334else
    1976   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    1977   for ac_dir in $PATH; do
     2335  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     2336  ac_dummy="$PATH"
     2337  for ac_dir in $ac_dummy; do
    19782338    test -z "$ac_dir" && ac_dir=.
    19792339    if test -f $ac_dir/$ac_word; then
     
    19962356set dummy texi2dvi; ac_word=$2
    19972357echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1998 echo "configure:1999: checking for $ac_word" >&5
     2358echo "configure:2359: checking for $ac_word" >&5
    19992359if eval "test \"`echo '$''{'ac_cv_prog_TEXI2DVI'+set}'`\" = set"; then
    20002360  echo $ac_n "(cached) $ac_c" 1>&6
     
    20032363  ac_cv_prog_TEXI2DVI="$TEXI2DVI" # Let the user override the test.
    20042364else
    2005   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    2006   for ac_dir in $PATH; do
     2365  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     2366  ac_dummy="$PATH"
     2367  for ac_dir in $ac_dummy; do
    20072368    test -z "$ac_dir" && ac_dir=.
    20082369    if test -f $ac_dir/$ac_word; then
     
    20252386set dummy texindex; ac_word=$2
    20262387echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2027 echo "configure:2028: checking for $ac_word" >&5
     2388echo "configure:2389: checking for $ac_word" >&5
    20282389if eval "test \"`echo '$''{'ac_cv_prog_TEXINDEX'+set}'`\" = set"; then
    20292390  echo $ac_n "(cached) $ac_c" 1>&6
     
    20322393  ac_cv_prog_TEXINDEX="$TEXINDEX" # Let the user override the test.
    20332394else
    2034   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    2035   for ac_dir in $PATH; do
     2395  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     2396  ac_dummy="$PATH"
     2397  for ac_dir in $ac_dummy; do
    20362398    test -z "$ac_dir" && ac_dir=.
    20372399    if test -f $ac_dir/$ac_word; then
     
    20542416
    20552417
    2056 echo $ac_n "checking whether to configure and build gmp lib""... $ac_c" 1>&6
    2057 echo "configure:2058: checking whether to configure and build gmp lib" >&5
    2058 if test "$enable_gmp" != yes && test "$enable_gmp" != no; then
    2059   if test "$ac_gmp_ok" != yes && test -d gmp; then
    2060     echo "$ac_t""yes" 1>&6
    2061     enable_gmp=yes
    2062     CONFIG_SUBDIRS="$CONFIG_SUBDIRS gmp"
    2063     ac_configure_args="$ac_configure_args --enable-gmp"
    2064     OUTPUT_MAKEFILES="$OUTPUT_MAKEFILES gmp/Makefile.in"
    2065   else
    2066     echo "$ac_t""no" 1>&6
    2067     enable_gmp=no
    2068   fi
    2069 elif test "$enable_gmp" = yes; then
    2070   if test ! -d gmp; then
    2071     echo "$ac_t""no" 1>&6
    2072     { echo "configure: error: Can not find gmp subdir" 1>&2; exit 1; }
    2073   else
    2074     echo "$ac_t""yes" 1>&6
    2075     CONFIG_SUBDIRS="$CONFIG_SUBDIRS gmp"
    2076     OUTPUT_MAKEFILES="$OUTPUT_MAKEFILES gmp/Makefile.in"
    2077   fi
    2078 else
    2079   echo "$ac_t""no" 1>&6
    2080 fi
    2081 
    2082 echo $ac_n "checking whether to configure and build smallgmp lib""... $ac_c" 1>&6
    2083 echo "configure:2084: checking whether to configure and build smallgmp lib" >&5
    2084 if test "$enable_smallgmp" != yes && test "$enable_smallgmp" != no; then
    2085   if test "$ac_smallgmp_ok" != yes && test "$ac_gmp_ok" != yes && \
    2086      test "$enable_gmp" != yes && test -d smallgmp; then
    2087     echo "$ac_t""yes" 1>&6
    2088     enable_smallgmp=yes
    2089     CONFIG_SUBDIRS="$CONFIG_SUBDIRS smallgmp"
    2090     ac_configure_args="$ac_configure_args --enable-smallgmp --enable-gmp"
    2091   else
    2092     echo "$ac_t""no" 1>&6
    2093     enable_smallgmp=no
    2094   fi
    2095 elif test "$enable_smallgmp" = yes; then
    2096   if test ! -d smallgmp; then
    2097     echo "$ac_t""no" 1>&6
    2098     { echo "configure: error: Can not find smallgmp subdir" 1>&2; exit 1; }
    2099   else
    2100     echo "$ac_t""yes" 1>&6
    2101     CONFIG_SUBDIRS="$CONFIG_SUBDIRS smallgmp"
    2102     if test "$ac_gmp_ok" != yes && test "$enable_gmp" != yes; then
    2103       ac_configure_args="$ac_configure_args --enable-gmp"
    2104     fi
    2105   fi
    2106 else
    2107   echo "$ac_t""${enable_smallgmp}" 1>&6
    2108 fi
    2109 
    2110 # Check whether we have at least one of smallgmp or gmp
    2111 if test "$ac_smallgmp_ok" != yes && test "$ac_gmp_ok" != yes && \
    2112    test "$enable_smallgmp" != yes && test "$enable_gmp" != yes; then
    2113   { echo "configure: error: can neither find nor built gmp or smallgmp" 1>&2; exit 1; }
    2114 fi
    2115 
    2116 # Check whether we need to cheat subsequent configures with --enable-gmp
    2117 if test "$ac_smallgmp_ok" != yes && test "$ac_gmp_ok" != yes; then
    2118   ac_configure_args="$ac_configure_args --enable-gmp"
    2119 fi
    2120 
    2121 echo $ac_n "checking whether to configure and build MP lib""... $ac_c" 1>&6
    2122 echo "configure:2123: checking whether to configure and build MP lib" >&5
    2123 if test "$enable_MP" != yes && test "$enable_MP" != no; then
    2124   if test "$with_MP" != no && test "$ac_MP_ok" != yes && test -d MP && \
    2125      (test "$enable_gmp" = yes || test "$ac_gmp_ok" = yes); then
    2126     echo "$ac_t""yes" 1>&6
    2127     enable_MP=yes
    2128     CONFIG_SUBDIRS="$CONFIG_SUBDIRS MP"
    2129     ac_configure_args="$ac_configure_args --enable-MP"
    2130   else
    2131     echo "$ac_t""no" 1>&6
    2132     enable_MP=no
    2133   fi
    2134 elif test "$enable_MP" = yes; then
    2135   if test ! -d MP; then
    2136     echo "$ac_t""no" 1>&6
    2137     { echo "configure: error: can not build MP without MP directory" 1>&2; exit 1; }
    2138   fi
    2139   if test "$enable_gmp" = yes || test "$ac_gmp_ok" = yes; then
    2140     echo "$ac_t""yes" 1>&6
    2141     CONFIG_SUBDIRS="$CONFIG_SUBDIRS MP"
    2142   else
    2143     echo "$ac_t""no" 1>&6
    2144     { echo "configure: error: can not build MP without gmp" 1>&2; exit 1; }
    2145   fi
    2146 else
    2147   echo "$ac_t""no" 1>&6
    2148 fi
    2149  
    2150 echo $ac_n "checking whether to configure and build factory lib""... $ac_c" 1>&6
    2151 echo "configure:2152: checking whether to configure and build factory lib" >&5
    2152 if test "$enable_factory" != yes && test "$enable_factory" != no; then
    2153   if test "$with_factory" != no && test "$ac_factory_ok" != yes && \
    2154      test -d factory; then
    2155     enable_factory=yes
    2156     echo "$ac_t""yes" 1>&6
    2157     CONFIG_SUBDIRS="$CONFIG_SUBDIRS factory"
    2158     ac_configure_args="$ac_configure_args --enable-factory"
    2159   else
    2160     enable_factory=no
    2161     echo "$ac_t""no" 1>&6
    2162   fi
    2163 elif test "$enable_factory" = yes; then
    2164   if test -d factory; then
    2165     echo "$ac_t""yes" 1>&6
    2166     CONFIG_SUBDIRS="$CONFIG_SUBDIRS factory"
    2167   else
    2168     echo "$ac_t""no" 1>&6
    2169     { echo "configure: error: can not build factory without factory directory" 1>&2; exit 1; }
    2170   fi
    2171 else
    2172   echo "$ac_t""no" 1>&6
    2173 fi
    2174 
    2175 echo $ac_n "checking whether to configure and build libfac lib""... $ac_c" 1>&6
    2176 echo "configure:2177: checking whether to configure and build libfac lib" >&5
    2177 if test "$enable_libfac" != yes && test "$enable_libfac" != no; then
    2178   if test "$with_libfac" != no && test "$ac_libfac_ok" != yes && \
    2179      test -d libfac && \
    2180      (test "$ac_factory_ok" = yes || test "$enable_factory" = yes); then
    2181     enable_libfac=yes
    2182     echo "$ac_t""yes" 1>&6
    2183     CONFIG_SUBDIRS="$CONFIG_SUBDIRS libfac"
    2184     ac_configure_args="$ac_configure_args --enable-libfac"
    2185   else
    2186     enable_libfac=no
    2187     echo "$ac_t""no" 1>&6
    2188   fi
    2189 elif  test "$enable_libfac" = yes; then
    2190   if test ! -d libfac; then
    2191     echo "$ac_t""no" 1>&6
    2192     { echo "configure: error: can not build libfac without libfac directory" 1>&2; exit 1; }
    2193   fi
    2194   if test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then
    2195     echo "$ac_t""yes" 1>&6
    2196     CONFIG_SUBDIRS="$CONFIG_SUBDIRS libfac"
    2197   else
    2198     echo "$ac_t""no" 1>&6
    2199     { echo "configure: error: Can not build libfac without factory" 1>&2; exit 1; }
    2200   fi
    2201 else
    2202   echo "$ac_t""no" 1>&6
    2203 fi
    2204 
    2205 echo $ac_n "checking whether to configure and build sgroup lib""... $ac_c" 1>&6
    2206 echo "configure:2207: checking whether to configure and build sgroup lib" >&5
    2207 if test "$enable_sgroup" != yes && test "$enable_sgroup" != no; then
    2208   if test "$with_sgroup" != no && test "$ac_sgroup_ok" != yes && \
    2209      test -d sgroup && \
    2210      (test "$ac_MP_ok" = yes || test "$enable_MP" = yes); then
    2211     enable_sgroup=yes
    2212     echo "$ac_t""yes" 1>&6
    2213     CONFIG_SUBDIRS="$CONFIG_SUBDIRS sgroup"
    2214     ac_configure_args="$ac_configure_args --enable-sgroup"
    2215   else
    2216     enable_sgroup=no
    2217     echo "$ac_t""no" 1>&6
    2218   fi
    2219 elif  test "$enable_sgroup" = yes; then
    2220   if test ! -d sgroup; then
    2221     echo "$ac_t""no" 1>&6
    2222     { echo "configure: error: can not build sgroup without sgroup directory" 1>&2; exit 1; }
    2223   fi
    2224   if test "$ac_MP_ok" = yes || test "$enable_MP" = yes; then
    2225     echo "$ac_t""yes" 1>&6
    2226     CONFIG_SUBDIRS="$CONFIG_SUBDIRS sgroup"
    2227   else
    2228     echo "$ac_t""no" 1>&6
    2229     { echo "configure: error: Can not build sgroup without MP" 1>&2; exit 1; }
    2230   fi
    2231 else
    2232   echo "$ac_t""no" 1>&6
    2233 fi
    2234 
    2235 echo $ac_n "checking whether to configure and build Singular""... $ac_c" 1>&6
    2236 echo "configure:2237: checking whether to configure and build Singular" >&5
    2237 if test "$enable_Singular" != yes && test "$enable_Singular" != no; then
    2238   if test "$with_Singular" != no && test -d Singular; then
    2239     enable_Singular=yes
    2240     echo "$ac_t""yes" 1>&6
    2241     CONFIG_SUBDIRS="$CONFIG_SUBDIRS Singular"
    2242     ac_configure_args="$ac_configure_args --enable-Singular"
    2243   else
    2244     enable_Singular=no
    2245     echo "$ac_t""no" 1>&6
    2246   fi
    2247 elif test "$enable_Singular" = yes; then
    2248   if test -d Singular; then
    2249     echo "$ac_t""yes" 1>&6
    2250     CONFIG_SUBDIRS="$CONFIG_SUBDIRS Singular"
    2251   else
    2252     echo "$ac_t""no" 1>&6
    2253     { echo "configure: error: can not build Singular without Singular directory" 1>&2; exit 1; }
    2254   fi
    2255 else
    2256   echo "$ac_t""no" 1>&6
    2257 fi
    2258 
     2418echo $ac_n "checking whether to build Texi2html""... $ac_c" 1>&6
     2419echo "configure:2420: checking whether to build Texi2html" >&5
     2420if test "$enable_Texi2html" != no && test -d Texi2html; then
     2421 echo "$ac_t""yes" 1>&6
     2422 BUILD_SUBDIRS="$BUILD_SUBDIRS Texi2html"
     2423 if test "$enable_Texi2html" != yes; then
     2424   ac_configure_args="$ac_configure_args --enable-Texi2html"
     2425 fi
     2426else
     2427 echo "$ac_t""no" 1>&6
     2428fi
     2429
     2430echo $ac_n "checking whether to build doc""... $ac_c" 1>&6
     2431echo "configure:2432: checking whether to build doc" >&5
     2432if test "$enable_doc" != no && test -d doc; then
     2433 echo "$ac_t""yes" 1>&6
     2434 BUILD_SUBDIRS="$BUILD_SUBDIRS doc"
     2435 if test "$enable_doc" != yes; then
     2436   enable_doc=yes
     2437   ac_configure_args="$ac_configure_args --enable-doc"
     2438 fi
     2439else
     2440 enable_doc=no
     2441 echo "$ac_t""no" 1>&6
     2442fi
     2443
     2444echo $ac_n "checking whether to build emacs""... $ac_c" 1>&6
     2445echo "configure:2446: checking whether to build emacs" >&5
     2446if test "$enable_doc" = yes && test "$enable_emacs" != no && test -d emacs; then
     2447 echo "$ac_t""yes" 1>&6
     2448 BUILD_SUBDIRS="$BUILD_SUBDIRS emacs"
     2449 if test "$enable_emacs" != yes; then
     2450   ac_configure_args="$ac_configure_args --enable-emacs"
     2451 fi
     2452else
     2453 echo "$ac_t""no" 1>&6
     2454fi
    22592455
    22602456echo $ac_n "checking which apint package to use""... $ac_c" 1>&6
    2261 echo "configure:2262: checking which apint package to use" >&5
     2457echo "configure:2458: checking which apint package to use" >&5
    22622458if test "$with_apint" = gmp; then
    22632459  if test "$ac_gmp_ok" = yes || test "$enable_gmp" = yes; then
     
    22832479
    22842480echo $ac_n "checking whether to use with MP""... $ac_c" 1>&6
    2285 echo "configure:2286: checking whether to use with MP" >&5
     2481echo "configure:2482: checking whether to use with MP" >&5
    22862482if test "$with_MP" = yes; then
    22872483  if test "$ac_MP_ok" = yes || test "$enable_MP" = yes; then
     
    23022498
    23032499echo $ac_n "checking whether to use with factory""... $ac_c" 1>&6
    2304 echo "configure:2305: checking whether to use with factory" >&5
     2500echo "configure:2501: checking whether to use with factory" >&5
    23052501if test "$with_factory" = yes; then
    23062502  if test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then
     
    23212517 
    23222518echo $ac_n "checking whether to use with libfac""... $ac_c" 1>&6
    2323 echo "configure:2324: checking whether to use with libfac" >&5
     2519echo "configure:2520: checking whether to use with libfac" >&5
    23242520if test "$with_libfac" = yes; then
    23252521  if test "$ac_libfac_ok" = yes || test "$enable_libfac" = yes; then
     
    23392535fi
    23402536
    2341 echo $ac_n "checking whether to use mtrack""... $ac_c" 1>&6
    2342 echo "configure:2343: checking whether to use mtrack" >&5
    2343 if test -d mpr && test "$ac_cv_singuname" = ix86-Linux; then
    2344    echo "$ac_t""yes" 1>&6
    2345    ac_configure_args="$ac_configure_args --with-mtrack"
    2346    OUTPUT_MAKEFILES=$OUTPUT_MAKEFILES" mpr/Makefile"
    2347    BUILD_SUBDIRS="$BUILD_SUBDIRS mpr"
    2348 fi
     2537
     2538echo $ac_n "checking whether to use with mtrack""... $ac_c" 1>&6
     2539echo "configure:2540: checking whether to use with mtrack" >&5
     2540if test "$with_mtrack" != no && test "$with_mtrack" != yes; then
     2541  if test "$enable_mtrack" = yes; then
     2542    with_mtrack=yes
     2543  else
     2544    with_mtrack=no
     2545  fi
     2546  ac_configure_args="$ac_configure_args --with-mtrack=$with_mtrack"
     2547elif test "$with_mtrack" = yes && test "$enable_mtrack" != yes; then
     2548  with_mtrack=no
     2549  ac_configure_args="$ac_configure_args --with-mtrack=no"
     2550fi
     2551if test "$with_mtrack" != yes; then
     2552  echo "$ac_t""no" 1>&6
     2553else
     2554  echo "$ac_t""yes" 1>&6
     2555fi
     2556
    23492557
    23502558echo $ac_n "checking whether to use with Singular""... $ac_c" 1>&6
    2351 echo "configure:2352: checking whether to use with Singular" >&5
     2559echo "configure:2560: checking whether to use with Singular" >&5
    23522560if test "$with_Singular" != no && test "$with_Singular" != yes; then
    23532561  if test "$enable_Singular" = yes; then
     
    23672575
    23682576SUBDIRS=""
     2577if test -d smallgmp; then
     2578  SUBDIRS="$SUBDIRS smallgmp"
     2579fi
     2580if test -d gmp; then
     2581  SUBDIRS="$SUBDIRS gmp"
     2582fi
     2583if test -d MP; then
     2584  SUBDIRS="$SUBDIRS MP"
     2585fi
     2586if test -d factory; then
     2587  SUBDIRS="$SUBDIRS factory"
     2588fi
     2589if test -d libfac; then
     2590  SUBDIRS="$SUBDIRS libfac"
     2591fi
     2592if test -d mpr; then
     2593  SUBDIRS="$SUBDIRS mpr"
     2594fi
     2595if test -d sgroup; then
     2596  SUBDIRS="$SUBDIRS sgroup"
     2597fi
     2598if test -d Singular; then
     2599  SUBDIRS="$SUBDIRS Singular"
     2600fi
     2601if test -d Texinfo; then
     2602  SUBDIRS="$SUBDIRS Texinfo"
     2603fi
     2604if test -d Texi2html; then
     2605  SUBDIRS="$SUBDIRS Texi2html"
     2606fi
    23692607if test -d doc; then
    23702608  SUBDIRS="$SUBDIRS doc"
    23712609fi
    2372 if test -d smallgmp; then
    2373   SUBDIRS="$SUBDIRS smallgmp"
    2374 fi
    2375 if test -d gmp; then
    2376   SUBDIRS="$SUBDIRS gmp"
    2377 fi
    2378 if test -d MP; then
    2379   SUBDIRS="$SUBDIRS MP"
    2380 fi
    2381 if test -d factory; then
    2382   SUBDIRS="$SUBDIRS factory"
    2383 fi
    2384 if test -d libfac; then
    2385   SUBDIRS="$SUBDIRS libfac"
     2610if test -d emacs; then
     2611  SUBDIRS="$SUBDIRS emacs"
    23862612fi
    23872613if test -d rpm; then
    23882614  SUBDIRS="$SUBDIRS rpm"
    23892615fi
    2390 if test -d mpr; then
    2391   SUBDIRS="$SUBDIRS mpr"
    2392 fi
    2393 if test -d Singular; then
    2394   SUBDIRS="$SUBDIRS Singular"
    2395 fi
    2396 if test -d emacs; then
    2397   SUBDIRS="$SUBDIRS emacs"
    2398   BUILD_SUBDIRS="$BUILD_SUBDIRS emacs"
    2399 fi
    2400 if test -d Texi2html; then
    2401   SUBDIRS="$SUBDIRS Texi2html"
    2402   BUILD_SUBDIRS="$BUILD_SUBDIRS Texi2html"
    2403 fi
    2404 if test -d sgroup; then
    2405   SUBDIRS="$SUBDIRS sgroup"
    2406 fi
    24072616 
    24082617
    24092618echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
    2410 echo "configure:2411: checking whether ${MAKE-make} sets \${MAKE}" >&5
     2619echo "configure:2620: checking whether ${MAKE-make} sets \${MAKE}" >&5
    24112620set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
    24122621if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
     
    24632672# and sets the high bit in the cache file unless we assign to the vars.
    24642673(set) 2>&1 |
    2465   case `(ac_space=' '; set) 2>&1` in
     2674  case `(ac_space=' '; set | grep ac_space) 2>&1` in
    24662675  *ac_space=\ *)
    24672676    # `set' does not quote correctly, so add quotes (double-quote substitution
     
    25422751    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
    25432752  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
    2544     echo "$CONFIG_STATUS generated by autoconf version 2.12"
     2753    echo "$CONFIG_STATUS generated by autoconf version 2.13"
    25452754    exit 0 ;;
    25462755  -help | --help | --hel | --he | --h)
     
    25622771$ac_vpsub
    25632772$extrasub
     2773s%@SHELL@%$SHELL%g
    25642774s%@CFLAGS@%$CFLAGS%g
    25652775s%@CPPFLAGS@%$CPPFLAGS%g
    25662776s%@CXXFLAGS@%$CXXFLAGS%g
     2777s%@FFLAGS@%$FFLAGS%g
    25672778s%@DEFS@%$DEFS%g
    25682779s%@LDFLAGS@%$LDFLAGS%g
     
    25902801s%@CPP@%$CPP%g
    25912802s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
     2803s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
    25922804s%@INSTALL_DATA@%$INSTALL_DATA%g
    25932805s%@PERL@%$PERL%g
  • configure.in

    r002ead raac46c  
    22AC_INIT(Singular/matpol.h)
    33AC_PREFIX_DEFAULT(`pwd`)
    4 OUTPUT_MAKEFILES="Makefile doc/Makefile doc/version.texi doc/uname.texi"
     4OUTPUT_MAKEFILES="Makefile"
     5if test -d "doc"; then
     6   OUTPUT_MAKEFILES="$OUTPUT_MAKEFILES doc/Makefile doc/version.texi doc/uname.texi"
     7fi
    58if test -d "rpm"; then
    69   OUTPUT_MAKEFILES=$OUTPUT_MAKEFILES" rpm/Makefile"
     
    209212  [  --with-perl5=[PERL5,no] uses PERL5 as perl5 program, default is perl5])
    210213AC_ARG_ENABLE(smallgmp, \
    211  [ --enable-PACKAGE        configure and build PACKAGE
    212   --disable-PACKAGE       do not configure and build PACKAGE
     214 [ --enable-PACKAGE        configure and/or build PACKAGE
     215  --disable-PACKAGE       do not configure and/or build PACKAGE
    213216   where PACKAGE can be:
    214217     smallgmp             minimal version of gmp written in C only])
     
    223226AC_ARG_ENABLE(sgroup, \
    224227 [    sgroup               numerical semigroup computations])
     228AC_ARG_ENABLE(mtrack, \
     229 [    mtrack               utility to track unused memory])
    225230AC_ARG_ENABLE(Singular, \
    226231 [    Singular             CAS for Polynomial Computations])
    227232AC_ARG_ENABLE(Texinfo, \
    228233 [    Texinfo              Texinfo for info, texi2dvi, makeinfo])
     234AC_ARG_ENABLE(Texi2html, \
     235 [    Texi2html            Texinfo to HTML converter])
     236AC_ARG_ENABLE(doc, \
     237 [    doc                  Singular documentation])
     238AC_ARG_ENABLE(emacs, \
     239 [    emacs                emacs completion files])
    229240AC_ARG_WITH(MP,\
    230241 [ --with-PACKAGE          use PACKAGE, provide dependent functionality
     
    236247AC_ARG_WITH(libfac, \
    237248 [    libfac               char set and modp poly factorization library])
     249AC_ARG_WITH(mtrack, \
     250 [    mtrack               utility to track unused memory])
    238251AC_ARG_WITH(gmp, \
    239252 [ --with-apint=PACKAGE    use PACKAGE for arbitary integer arithmetic
     
    305318dnl Check whether or not to configure and build various packages
    306319dnl
    307 AC_MSG_CHECKING(whether to configure and build texinfo)
    308 if test "$enable_texinfo" != no && test -d Texinfo; then
     320
     321AC_MSG_CHECKING(whether to configure and build gmp lib)
     322if test "$enable_gmp" != yes && test "$enable_gmp" != no; then
     323  if test "$ac_gmp_ok" != yes && test -d gmp; then
     324    AC_MSG_RESULT(yes)
     325    enable_gmp=yes
     326    CONFIG_SUBDIRS="$CONFIG_SUBDIRS gmp"
     327    ac_configure_args="$ac_configure_args --enable-gmp"
     328    OUTPUT_MAKEFILES="$OUTPUT_MAKEFILES gmp/Makefile.in"
     329  else
     330    AC_MSG_RESULT(no)
     331    enable_gmp=no
     332  fi
     333elif test "$enable_gmp" = yes; then
     334  if test ! -d gmp; then
     335    AC_MSG_RESULT(no)
     336    AC_MSG_ERROR(Can not find gmp subdir)
     337  else
     338    AC_MSG_RESULT(yes)
     339    CONFIG_SUBDIRS="$CONFIG_SUBDIRS gmp"
     340    OUTPUT_MAKEFILES="$OUTPUT_MAKEFILES gmp/Makefile.in"
     341  fi
     342else
     343  AC_MSG_RESULT(no)
     344fi
     345
     346AC_MSG_CHECKING(whether to configure and build smallgmp lib)
     347if test "$enable_smallgmp" != yes && test "$enable_smallgmp" != no; then
     348  if test "$ac_smallgmp_ok" != yes && test "$ac_gmp_ok" != yes && \
     349     test "$enable_gmp" != yes && test -d smallgmp; then
     350    AC_MSG_RESULT(yes)
     351    enable_smallgmp=yes
     352    CONFIG_SUBDIRS="$CONFIG_SUBDIRS smallgmp"
     353    ac_configure_args="$ac_configure_args --enable-smallgmp --enable-gmp"
     354  else
     355    AC_MSG_RESULT(no)
     356    enable_smallgmp=no
     357  fi
     358elif test "$enable_smallgmp" = yes; then
     359  if test ! -d smallgmp; then
     360    AC_MSG_RESULT(no)
     361    AC_MSG_ERROR(Can not find smallgmp subdir)
     362  else
     363    AC_MSG_RESULT(yes)
     364    CONFIG_SUBDIRS="$CONFIG_SUBDIRS smallgmp"
     365    if test "$ac_gmp_ok" != yes && test "$enable_gmp" != yes; then
     366      ac_configure_args="$ac_configure_args --enable-gmp"
     367    fi
     368  fi
     369else
     370  AC_MSG_RESULT(${enable_smallgmp})
     371fi
     372
     373# Check whether we have at least one of smallgmp or gmp
     374if test "$ac_smallgmp_ok" != yes && test "$ac_gmp_ok" != yes && \
     375   test "$enable_smallgmp" != yes && test "$enable_gmp" != yes; then
     376  AC_MSG_ERROR(can neither find nor built gmp or smallgmp)
     377fi
     378
     379# Check whether we need to cheat subsequent configures with --enable-gmp
     380if test "$ac_smallgmp_ok" != yes && test "$ac_gmp_ok" != yes; then
     381  ac_configure_args="$ac_configure_args --enable-gmp"
     382fi
     383
     384AC_MSG_CHECKING(whether to configure and build MP lib)
     385if test "$enable_MP" != yes && test "$enable_MP" != no; then
     386  if test "$with_MP" != no && test "$ac_MP_ok" != yes && test -d MP && \
     387     (test "$enable_gmp" = yes || test "$ac_gmp_ok" = yes); then
     388    AC_MSG_RESULT(yes)
     389    enable_MP=yes
     390    CONFIG_SUBDIRS="$CONFIG_SUBDIRS MP"
     391    ac_configure_args="$ac_configure_args --enable-MP"
     392  else
     393    AC_MSG_RESULT(no)
     394    enable_MP=no
     395  fi
     396elif test "$enable_MP" = yes; then
     397  if test ! -d MP; then
     398    AC_MSG_RESULT(no)
     399    AC_MSG_ERROR(can not build MP without MP directory)
     400  fi
     401  if test "$enable_gmp" = yes || test "$ac_gmp_ok" = yes; then
     402    AC_MSG_RESULT(yes)
     403    CONFIG_SUBDIRS="$CONFIG_SUBDIRS MP"
     404  else
     405    AC_MSG_RESULT(no)
     406    AC_MSG_ERROR(can not build MP without gmp)
     407  fi
     408else
     409  AC_MSG_RESULT(no)
     410fi
     411 
     412AC_MSG_CHECKING(whether to configure and build factory lib)
     413if test "$enable_factory" != yes && test "$enable_factory" != no; then
     414  if test "$with_factory" != no && test "$ac_factory_ok" != yes && \
     415     test -d factory; then
     416    enable_factory=yes
     417    AC_MSG_RESULT(yes)
     418    CONFIG_SUBDIRS="$CONFIG_SUBDIRS factory"
     419    ac_configure_args="$ac_configure_args --enable-factory"
     420  else
     421    enable_factory=no
     422    AC_MSG_RESULT(no)
     423  fi
     424elif test "$enable_factory" = yes; then
     425  if test -d factory; then
     426    AC_MSG_RESULT(yes)
     427    CONFIG_SUBDIRS="$CONFIG_SUBDIRS factory"
     428  else
     429    AC_MSG_RESULT(no)
     430    AC_MSG_ERROR(can not build factory without factory directory)
     431  fi
     432else
     433  AC_MSG_RESULT(no)
     434fi
     435
     436AC_MSG_CHECKING(whether to configure and build libfac lib)
     437if test "$enable_libfac" != yes && test "$enable_libfac" != no; then
     438  if test "$with_libfac" != no && test "$ac_libfac_ok" != yes && \
     439     test -d libfac && \
     440     (test "$ac_factory_ok" = yes || test "$enable_factory" = yes); then
     441    enable_libfac=yes
     442    AC_MSG_RESULT(yes)
     443    CONFIG_SUBDIRS="$CONFIG_SUBDIRS libfac"
     444    ac_configure_args="$ac_configure_args --enable-libfac"
     445  else
     446    enable_libfac=no
     447    AC_MSG_RESULT(no)
     448  fi
     449elif  test "$enable_libfac" = yes; then
     450  if test ! -d libfac; then
     451    AC_MSG_RESULT(no)
     452    AC_MSG_ERROR(can not build libfac without libfac directory)
     453  fi
     454  if test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then
     455    AC_MSG_RESULT(yes)
     456    CONFIG_SUBDIRS="$CONFIG_SUBDIRS libfac"
     457  else
     458    AC_MSG_RESULT(no)
     459    AC_MSG_ERROR(Can not build libfac without factory)
     460  fi
     461else
     462  AC_MSG_RESULT(no)
     463fi
     464
     465AC_MSG_CHECKING(whether to configure and build sgroup lib)
     466if test "$enable_sgroup" != yes && test "$enable_sgroup" != no; then
     467  if test "$with_sgroup" != no && test "$ac_sgroup_ok" != yes && \
     468     test -d sgroup && \
     469     (test "$ac_MP_ok" = yes || test "$enable_MP" = yes); then
     470    enable_sgroup=yes
     471    AC_MSG_RESULT(yes)
     472    CONFIG_SUBDIRS="$CONFIG_SUBDIRS sgroup"
     473    ac_configure_args="$ac_configure_args --enable-sgroup"
     474  else
     475    enable_sgroup=no
     476    AC_MSG_RESULT(no)
     477  fi
     478elif  test "$enable_sgroup" = yes; then
     479  if test ! -d sgroup; then
     480    AC_MSG_RESULT(no)
     481    AC_MSG_ERROR(can not build sgroup without sgroup directory)
     482  fi
     483  if test "$ac_MP_ok" = yes || test "$enable_MP" = yes; then
     484    AC_MSG_RESULT(yes)
     485    CONFIG_SUBDIRS="$CONFIG_SUBDIRS sgroup"
     486  else
     487    AC_MSG_RESULT(no)
     488    AC_MSG_ERROR(Can not build sgroup without MP)
     489  fi
     490else
     491  AC_MSG_RESULT(no)
     492fi
     493
     494BUILD_SUBDIRS="$CONFIG_SUBDIRS"
     495
     496AC_MSG_CHECKING(whether to build mpr and use mtrack)
     497if test -d mpr && test "$ac_cv_singuname" = ix86-Linux && test "$enable_mtrack" != no; then
     498  AC_MSG_RESULT(yes)
     499  if test "$enable_mtrack" != yes; then
     500     ac_configure_args="$ac_configure_args --enable-mtrack"
     501  fi
     502  enable_mtrack=yes
     503  OUTPUT_MAKEFILES=$OUTPUT_MAKEFILES" mpr/Makefile"
     504  BUILD_SUBDIRS="$BUILD_SUBDIRS mpr"
     505else
     506  AC_MSG_RESULT(no)
     507  enable_mtrack=no
     508fi
     509
     510AC_MSG_CHECKING(whether to configure and build Singular)
     511if test "$enable_Singular" != yes && test "$enable_Singular" != no; then
     512  if test "$with_Singular" != no && test -d Singular; then
     513    enable_Singular=yes
     514    AC_MSG_RESULT(yes)
     515    CONFIG_SUBDIRS="$CONFIG_SUBDIRS Singular"
     516    BUILD_SUBDIRS="$BUILD_SUBDIRS Singular"     
     517    ac_configure_args="$ac_configure_args --enable-Singular"
     518  else
     519    enable_Singular=no
     520    AC_MSG_RESULT(no)
     521  fi
     522elif test "$enable_Singular" = yes; then
     523  if test -d Singular; then
     524    AC_MSG_RESULT(yes)
     525    CONFIG_SUBDIRS="$CONFIG_SUBDIRS Singular"
     526    BUILD_SUBDIRS="$BUILD_SUBDIRS Singular"     
     527  else
     528    AC_MSG_RESULT(no)
     529    AC_MSG_ERROR(can not build Singular without Singular directory)
     530  fi
     531else
     532  AC_MSG_RESULT(no)
     533fi
     534
     535AC_MSG_CHECKING(whether to configure and build Texinfo)
     536if test "$enable_Texinfo" != no && test -d Texinfo; then
    309537  AC_MSG_RESULT(yes)
    310538  enable_texinfo=yes
    311539  CONFIG_SUBDIRS="$CONFIG_SUBDIRS Texinfo"
     540  BUILD_SUBDIRS="$BUILD_SUBDIRS Texinfo"       
    312541  TEXI2DVI=${bindir}/texi2dvi
    313542  MAKEINFO="${bindir}/makeinfo --force"
     
    316545  AC_SUBST(MAKEINFO)
    317546  AC_SUBST(TEXINDEX)
     547  if test "$enable_Texinfo" != yes; then
     548    ac_configure_args="$ac_configure_args --enable-Texinfo"
     549  fi
    318550else
    319551  AC_MSG_RESULT(no)
     
    326558
    327559
    328 AC_MSG_CHECKING(whether to configure and build gmp lib)
    329 if test "$enable_gmp" != yes && test "$enable_gmp" != no; then
    330   if test "$ac_gmp_ok" != yes && test -d gmp; then
    331     AC_MSG_RESULT(yes)
    332     enable_gmp=yes
    333     CONFIG_SUBDIRS="$CONFIG_SUBDIRS gmp"
    334     ac_configure_args="$ac_configure_args --enable-gmp"
    335     OUTPUT_MAKEFILES="$OUTPUT_MAKEFILES gmp/Makefile.in"
    336   else
    337     AC_MSG_RESULT(no)
    338     enable_gmp=no
    339   fi
    340 elif test "$enable_gmp" = yes; then
    341   if test ! -d gmp; then
    342     AC_MSG_RESULT(no)
    343     AC_MSG_ERROR(Can not find gmp subdir)
    344   else
    345     AC_MSG_RESULT(yes)
    346     CONFIG_SUBDIRS="$CONFIG_SUBDIRS gmp"
    347     OUTPUT_MAKEFILES="$OUTPUT_MAKEFILES gmp/Makefile.in"
    348   fi
    349 else
    350   AC_MSG_RESULT(no)
    351 fi
    352 
    353 AC_MSG_CHECKING(whether to configure and build smallgmp lib)
    354 if test "$enable_smallgmp" != yes && test "$enable_smallgmp" != no; then
    355   if test "$ac_smallgmp_ok" != yes && test "$ac_gmp_ok" != yes && \
    356      test "$enable_gmp" != yes && test -d smallgmp; then
    357     AC_MSG_RESULT(yes)
    358     enable_smallgmp=yes
    359     CONFIG_SUBDIRS="$CONFIG_SUBDIRS smallgmp"
    360     ac_configure_args="$ac_configure_args --enable-smallgmp --enable-gmp"
    361   else
    362     AC_MSG_RESULT(no)
    363     enable_smallgmp=no
    364   fi
    365 elif test "$enable_smallgmp" = yes; then
    366   if test ! -d smallgmp; then
    367     AC_MSG_RESULT(no)
    368     AC_MSG_ERROR(Can not find smallgmp subdir)
    369   else
    370     AC_MSG_RESULT(yes)
    371     CONFIG_SUBDIRS="$CONFIG_SUBDIRS smallgmp"
    372     if test "$ac_gmp_ok" != yes && test "$enable_gmp" != yes; then
    373       ac_configure_args="$ac_configure_args --enable-gmp"
    374     fi
    375   fi
    376 else
    377   AC_MSG_RESULT(${enable_smallgmp})
    378 fi
    379 
    380 # Check whether we have at least one of smallgmp or gmp
    381 if test "$ac_smallgmp_ok" != yes && test "$ac_gmp_ok" != yes && \
    382    test "$enable_smallgmp" != yes && test "$enable_gmp" != yes; then
    383   AC_MSG_ERROR(can neither find nor built gmp or smallgmp)
    384 fi
    385 
    386 # Check whether we need to cheat subsequent configures with --enable-gmp
    387 if test "$ac_smallgmp_ok" != yes && test "$ac_gmp_ok" != yes; then
    388   ac_configure_args="$ac_configure_args --enable-gmp"
    389 fi
    390 
    391 AC_MSG_CHECKING(whether to configure and build MP lib)
    392 if test "$enable_MP" != yes && test "$enable_MP" != no; then
    393   if test "$with_MP" != no && test "$ac_MP_ok" != yes && test -d MP && \
    394      (test "$enable_gmp" = yes || test "$ac_gmp_ok" = yes); then
    395     AC_MSG_RESULT(yes)
    396     enable_MP=yes
    397     CONFIG_SUBDIRS="$CONFIG_SUBDIRS MP"
    398     ac_configure_args="$ac_configure_args --enable-MP"
    399   else
    400     AC_MSG_RESULT(no)
    401     enable_MP=no
    402   fi
    403 elif test "$enable_MP" = yes; then
    404   if test ! -d MP; then
    405     AC_MSG_RESULT(no)
    406     AC_MSG_ERROR(can not build MP without MP directory)
    407   fi
    408   if test "$enable_gmp" = yes || test "$ac_gmp_ok" = yes; then
    409     AC_MSG_RESULT(yes)
    410     CONFIG_SUBDIRS="$CONFIG_SUBDIRS MP"
    411   else
    412     AC_MSG_RESULT(no)
    413     AC_MSG_ERROR(can not build MP without gmp)
    414   fi
    415 else
    416   AC_MSG_RESULT(no)
    417 fi
    418  
    419 AC_MSG_CHECKING(whether to configure and build factory lib)
    420 if test "$enable_factory" != yes && test "$enable_factory" != no; then
    421   if test "$with_factory" != no && test "$ac_factory_ok" != yes && \
    422      test -d factory; then
    423     enable_factory=yes
    424     AC_MSG_RESULT(yes)
    425     CONFIG_SUBDIRS="$CONFIG_SUBDIRS factory"
    426     ac_configure_args="$ac_configure_args --enable-factory"
    427   else
    428     enable_factory=no
    429     AC_MSG_RESULT(no)
    430   fi
    431 elif test "$enable_factory" = yes; then
    432   if test -d factory; then
    433     AC_MSG_RESULT(yes)
    434     CONFIG_SUBDIRS="$CONFIG_SUBDIRS factory"
    435   else
    436     AC_MSG_RESULT(no)
    437     AC_MSG_ERROR(can not build factory without factory directory)
    438   fi
    439 else
    440   AC_MSG_RESULT(no)
    441 fi
    442 
    443 AC_MSG_CHECKING(whether to configure and build libfac lib)
    444 if test "$enable_libfac" != yes && test "$enable_libfac" != no; then
    445   if test "$with_libfac" != no && test "$ac_libfac_ok" != yes && \
    446      test -d libfac && \
    447      (test "$ac_factory_ok" = yes || test "$enable_factory" = yes); then
    448     enable_libfac=yes
    449     AC_MSG_RESULT(yes)
    450     CONFIG_SUBDIRS="$CONFIG_SUBDIRS libfac"
    451     ac_configure_args="$ac_configure_args --enable-libfac"
    452   else
    453     enable_libfac=no
    454     AC_MSG_RESULT(no)
    455   fi
    456 elif  test "$enable_libfac" = yes; then
    457   if test ! -d libfac; then
    458     AC_MSG_RESULT(no)
    459     AC_MSG_ERROR(can not build libfac without libfac directory)
    460   fi
    461   if test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then
    462     AC_MSG_RESULT(yes)
    463     CONFIG_SUBDIRS="$CONFIG_SUBDIRS libfac"
    464   else
    465     AC_MSG_RESULT(no)
    466     AC_MSG_ERROR(Can not build libfac without factory)
    467   fi
    468 else
    469   AC_MSG_RESULT(no)
    470 fi
    471 
    472 AC_MSG_CHECKING(whether to configure and build sgroup lib)
    473 if test "$enable_sgroup" != yes && test "$enable_sgroup" != no; then
    474   if test "$with_sgroup" != no && test "$ac_sgroup_ok" != yes && \
    475      test -d sgroup && \
    476      (test "$ac_MP_ok" = yes || test "$enable_MP" = yes); then
    477     enable_sgroup=yes
    478     AC_MSG_RESULT(yes)
    479     CONFIG_SUBDIRS="$CONFIG_SUBDIRS sgroup"
    480     ac_configure_args="$ac_configure_args --enable-sgroup"
    481   else
    482     enable_sgroup=no
    483     AC_MSG_RESULT(no)
    484   fi
    485 elif  test "$enable_sgroup" = yes; then
    486   if test ! -d sgroup; then
    487     AC_MSG_RESULT(no)
    488     AC_MSG_ERROR(can not build sgroup without sgroup directory)
    489   fi
    490   if test "$ac_MP_ok" = yes || test "$enable_MP" = yes; then
    491     AC_MSG_RESULT(yes)
    492     CONFIG_SUBDIRS="$CONFIG_SUBDIRS sgroup"
    493   else
    494     AC_MSG_RESULT(no)
    495     AC_MSG_ERROR(Can not build sgroup without MP)
    496   fi
    497 else
    498   AC_MSG_RESULT(no)
    499 fi
    500 
    501 AC_MSG_CHECKING(whether to configure and build Singular)
    502 if test "$enable_Singular" != yes && test "$enable_Singular" != no; then
    503   if test "$with_Singular" != no && test -d Singular; then
    504     enable_Singular=yes
    505     AC_MSG_RESULT(yes)
    506     CONFIG_SUBDIRS="$CONFIG_SUBDIRS Singular"
    507     ac_configure_args="$ac_configure_args --enable-Singular"
    508   else
    509     enable_Singular=no
    510     AC_MSG_RESULT(no)
    511   fi
    512 elif test "$enable_Singular" = yes; then
    513   if test -d Singular; then
    514     AC_MSG_RESULT(yes)
    515     CONFIG_SUBDIRS="$CONFIG_SUBDIRS Singular"
    516   else
    517     AC_MSG_RESULT(no)
    518     AC_MSG_ERROR(can not build Singular without Singular directory)
    519   fi
    520 else
    521   AC_MSG_RESULT(no)
    522 fi
    523 
     560AC_MSG_CHECKING(whether to build Texi2html)
     561if test "$enable_Texi2html" != no && test -d Texi2html; then
     562 AC_MSG_RESULT(yes)
     563 BUILD_SUBDIRS="$BUILD_SUBDIRS Texi2html"
     564 if test "$enable_Texi2html" != yes; then
     565   ac_configure_args="$ac_configure_args --enable-Texi2html"
     566 fi
     567else
     568 AC_MSG_RESULT(no)
     569fi
     570
     571AC_MSG_CHECKING(whether to build doc)
     572if test "$enable_doc" != no && test -d doc; then
     573 AC_MSG_RESULT(yes)
     574 BUILD_SUBDIRS="$BUILD_SUBDIRS doc"
     575 if test "$enable_doc" != yes; then
     576   enable_doc=yes
     577   ac_configure_args="$ac_configure_args --enable-doc"
     578 fi
     579else
     580 enable_doc=no
     581 AC_MSG_RESULT(no)
     582fi
     583
     584AC_MSG_CHECKING(whether to build emacs)
     585if test "$enable_doc" = yes && test "$enable_emacs" != no && test -d emacs; then
     586 AC_MSG_RESULT(yes)
     587 BUILD_SUBDIRS="$BUILD_SUBDIRS emacs"
     588 if test "$enable_emacs" != yes; then
     589   ac_configure_args="$ac_configure_args --enable-emacs"
     590 fi
     591else
     592 AC_MSG_RESULT(no)
     593fi
    524594
    525595dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
     
    605675fi
    606676
    607 AC_MSG_CHECKING(whether to use mtrack)
    608 if test -d mpr && test "$ac_cv_singuname" = ix86-Linux; then
    609    AC_MSG_RESULT(yes)
    610    ac_configure_args="$ac_configure_args --with-mtrack"
    611    OUTPUT_MAKEFILES=$OUTPUT_MAKEFILES" mpr/Makefile"
    612    BUILD_SUBDIRS="$BUILD_SUBDIRS mpr"
    613 fi
     677
     678AC_MSG_CHECKING(whether to use with mtrack)
     679if test "$with_mtrack" != no && test "$with_mtrack" != yes; then
     680  if test "$enable_mtrack" = yes; then
     681    with_mtrack=yes
     682  else
     683    with_mtrack=no
     684  fi
     685  ac_configure_args="$ac_configure_args --with-mtrack=$with_mtrack"
     686elif test "$with_mtrack" = yes && test "$enable_mtrack" != yes; then
     687  with_mtrack=no
     688  ac_configure_args="$ac_configure_args --with-mtrack=no"
     689fi
     690if test "$with_mtrack" != yes; then
     691  AC_MSG_RESULT(no)
     692else
     693  AC_MSG_RESULT(yes)
     694fi
     695
    614696
    615697AC_MSG_CHECKING(whether to use with Singular)
     
    634716dnl
    635717SUBDIRS=""
     718if test -d smallgmp; then
     719  SUBDIRS="$SUBDIRS smallgmp"
     720fi
     721if test -d gmp; then
     722  SUBDIRS="$SUBDIRS gmp"
     723fi
     724if test -d MP; then
     725  SUBDIRS="$SUBDIRS MP"
     726fi
     727if test -d factory; then
     728  SUBDIRS="$SUBDIRS factory"
     729fi
     730if test -d libfac; then
     731  SUBDIRS="$SUBDIRS libfac"
     732fi
     733if test -d mpr; then
     734  SUBDIRS="$SUBDIRS mpr"
     735fi
     736if test -d sgroup; then
     737  SUBDIRS="$SUBDIRS sgroup"
     738fi
     739if test -d Singular; then
     740  SUBDIRS="$SUBDIRS Singular"
     741fi
     742if test -d Texinfo; then
     743  SUBDIRS="$SUBDIRS Texinfo"
     744fi
     745if test -d Texi2html; then
     746  SUBDIRS="$SUBDIRS Texi2html"
     747fi
    636748if test -d doc; then
    637749  SUBDIRS="$SUBDIRS doc"
    638750fi
    639 if test -d smallgmp; then
    640   SUBDIRS="$SUBDIRS smallgmp"
    641 fi
    642 if test -d gmp; then
    643   SUBDIRS="$SUBDIRS gmp"
    644 fi
    645 if test -d MP; then
    646   SUBDIRS="$SUBDIRS MP"
    647 fi
    648 if test -d factory; then
    649   SUBDIRS="$SUBDIRS factory"
    650 fi
    651 if test -d libfac; then
    652   SUBDIRS="$SUBDIRS libfac"
     751if test -d emacs; then
     752  SUBDIRS="$SUBDIRS emacs"
    653753fi
    654754if test -d rpm; then
    655755  SUBDIRS="$SUBDIRS rpm"
    656 fi
    657 if test -d mpr; then
    658   SUBDIRS="$SUBDIRS mpr"
    659 fi
    660 if test -d Singular; then
    661   SUBDIRS="$SUBDIRS Singular"
    662 fi
    663 if test -d emacs; then
    664   SUBDIRS="$SUBDIRS emacs"
    665   BUILD_SUBDIRS="$BUILD_SUBDIRS emacs"
    666 fi
    667 if test -d Texi2html; then
    668   SUBDIRS="$SUBDIRS Texi2html"
    669   BUILD_SUBDIRS="$BUILD_SUBDIRS Texi2html"
    670 fi
    671 if test -d sgroup; then
    672   SUBDIRS="$SUBDIRS sgroup"
    673756fi
    674757 
  • doc/texinfo.tex

    r002ead raac46c  
    44\expandafter\ifx\csname fmtname\endcsname\relax\input plain\fi
    55%
    6 \def\texinfoversion{1999-02-21.16}%
     6\def\texinfoversion{1999-09-25.10}
    77%
    88% Copyright (C) 1985, 86, 88, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99
     
    3030% Please try the latest version of texinfo.tex before submitting bug
    3131% reports; you can get the latest version from:
    32 %   ftp://ftp.gnu.org/pub/gnu/texinfo.tex
     32%   ftp://ftp.gnu.org/gnu/texinfo.tex
    3333%   (and all GNU mirrors, see http://www.gnu.org/order/ftp.html)
    34 %   ftp://tug.org/tex/texinfo.tex
    35 %   ftp://ctan.org/macros/texinfo/texinfo.tex
    36 %   (and all CTAN mirrors, finger ctan@ctan.org for a list).
     34%   ftp://texinfo.org/tex/texinfo.tex
     35%   ftp://us.ctan.org/macros/texinfo/texinfo.tex
     36%   (and all CTAN mirrors, finger ctan@us.ctan.org for a list).
    3737%   /home/gd/gnu/doc/texinfo.tex on the GNU machines.
    3838% The texinfo.tex in any given Texinfo distribution could well be out
    3939% of date, so if that's what you're using, please check.
    40 % There is a small home page for Texinfo at http://texinfo.org/.
     40% Texinfo has a small home page at http://texinfo.org/.
    4141%
    4242% Send bug reports to bug-texinfo@gnu.org.  Please include including a
     
    6868
    6969% Save some parts of plain tex whose names we will redefine.
    70 
    7170\let\ptexb=\b
    7271\let\ptexbullet=\bullet
     
    8887\let\+ = \relax
    8988
    90 
    9189\message{Basics,}
    9290\chardef\other=12
     
    10098\ifx\putwordChapter\undefined   \gdef\putwordChapter{Chapter}\fi
    10199\ifx\putwordfile\undefined      \gdef\putwordfile{file}\fi
     100\ifx\putwordin\undefined        \gdef\putwordin{in}\fi
    102101\ifx\putwordIndexIsEmpty\undefined     \gdef\putwordIndexIsEmpty{(Index is empty)}\fi
    103102\ifx\putwordIndexNonexistent\undefined \gdef\putwordIndexNonexistent{(Index is nonexistent)}\fi
    104103\ifx\putwordInfo\undefined      \gdef\putwordInfo{Info}\fi
     104\ifx\putwordInstanceVariableof\undefined \gdef\putwordInstanceVariableof{Instance Variable of}\fi
    105105\ifx\putwordMethodon\undefined  \gdef\putwordMethodon{Method on}\fi
    106106\ifx\putwordNoTitle\undefined   \gdef\putwordNoTitle{No Title}\fi
     
    130130\ifx\putwordDefmac\undefined    \gdef\putwordDefmac{Macro}\fi
    131131\ifx\putwordDefspec\undefined   \gdef\putwordDefspec{Special Form}\fi
    132 \ifx\putwordDefivar\undefined   \gdef\putwordDefivar{Instance Variable}\fi
    133132\ifx\putwordDefvar\undefined    \gdef\putwordDefvar{Variable}\fi
    134133\ifx\putwordDefopt\undefined    \gdef\putwordDefopt{User Option}\fi
     
    245244      \fi
    246245      %
     246      \ifpdfmakepagedest \pdfmkdest{\the\pageno} \fi
     247      %
    247248      \ifcropmarks
    248249          \egroup % end of \vbox\bgroup
     
    599600
    600601\def\needx#1{%
    601   % Go into vertical mode, so we don't make a big box in the middle of a
     602  % Ensure vertical mode, so we don't make a big box in the middle of a
    602603  % paragraph.
    603604  \par
    604605  %
    605   % Don't add any leading before our big empty box, but allow a page
    606   % break, since the best break might be right here.
    607   \allowbreak
    608   \nointerlineskip
    609   \vtop to #1\mil{\vfil}%
    610   %
    611   % TeX does not even consider page breaks if a penalty added to the
    612   % main vertical list is 10000 or more.  But in order to see if the
    613   % empty box we just added fits on the page, we must make it consider
    614   % page breaks.  On the other hand, we don't want to actually break the
    615   % page after the empty box.  So we use a penalty of 9999.
    616   %
    617   % There is an extremely small chance that TeX will actually break the
    618   % page at this \penalty, if there are no other feasible breakpoints in
    619   % sight.  (If the user is using lots of big @group commands, which
    620   % almost-but-not-quite fill up a page, TeX will have a hard time doing
    621   % good page breaking, for example.)  However, I could not construct an
    622   % example where a page broke at this \penalty; if it happens in a real
    623   % document, then we can reconsider our strategy.
    624   \penalty9999
    625   %
    626   % Back up by the size of the box, whether we did a page break or not.
    627   \kern -#1\mil
    628   %
    629   % Do not allow a page break right after this kern.
    630   \nobreak
     606  % If the @need value is less than one line space, it's useless.
     607  \dimen0 = #1\mil
     608  \dimen2 = \ht\strutbox
     609  \advance\dimen2 by \dp\strutbox
     610  \ifdim\dimen0 > \dimen2
     611    %
     612    % Do a \strut just to make the height of this box be normal, so the
     613    % normal leading is inserted relative to the preceding line.
     614    % And a page break here is fine.
     615    \vtop to #1\mil{\strut\vfil}%
     616    %
     617    % TeX does not even consider page breaks if a penalty added to the
     618    % main vertical list is 10000 or more.  But in order to see if the
     619    % empty box we just added fits on the page, we must make it consider
     620    % page breaks.  On the other hand, we don't want to actually break the
     621    % page after the empty box.  So we use a penalty of 9999.
     622    %
     623    % There is an extremely small chance that TeX will actually break the
     624    % page at this \penalty, if there are no other feasible breakpoints in
     625    % sight.  (If the user is using lots of big @group commands, which
     626    % almost-but-not-quite fill up a page, TeX will have a hard time doing
     627    % good page breaking, for example.)  However, I could not construct an
     628    % example where a page broke at this \penalty; if it happens in a real
     629    % document, then we can reconsider our strategy.
     630    \penalty9999
     631    %
     632    % Back up by the size of the box, whether we did a page break or not.
     633    \kern -#1\mil
     634    %
     635    % Do not allow a page break right after this kern.
     636    \nobreak
     637  \fi
    631638}
    632639
     
    755762  \fi
    756763  \parindent = \defaultparindent
     764}
     765
     766% @exampleindent NCHARS
     767% We'll use ems for NCHARS like @paragraphindent.
     768% It seems @exampleindent asis isn't necessary, but
     769% I preserve it to make it similar to @paragraphindent.
     770\def\exampleindent{\parsearg\doexampleindent}
     771\def\doexampleindent#1{%
     772  \def\temp{#1}%
     773  \ifx\temp\asisword
     774  \else
     775    \ifx\temp\noneword
     776      \lispnarrowing = 0pt
     777    \else
     778      \lispnarrowing = #1em
     779    \fi
     780  \fi
    757781}
    758782
     
    823847% @bye.
    824848\outer\def\bye{\pagealignmacro\tracingstats=1\ptexend}
     849
     850
     851\message{pdf,}
     852% adobe `portable' document format
     853\newcount\tempnum
     854\newcount\lnkcount
     855\newtoks\filename
     856\newcount\filenamelength
     857\newcount\pgn
     858\newtoks\toksA
     859\newtoks\toksB
     860\newtoks\toksC
     861\newtoks\toksD
     862\newbox\boxA
     863\newcount\countA
     864\newif\ifpdf
     865\newif\ifpdfmakepagedest
     866
     867\ifx\pdfoutput\undefined
     868  \pdffalse
     869  \let\pdfmkdest = \gobble
     870  \let\pdfurl = \gobble
     871  \let\endlink = \relax
     872  \let\linkcolor = \relax
     873  \let\pdfmakeoutlines = \relax
     874\else
     875  \pdftrue
     876  \pdfoutput = 1
     877  \input pdfcolor
     878  \def\dopdfimage#1#2#3{%
     879    \def\imagewidth{#2}%
     880    \def\imageheight{#3}%
     881    \ifnum\pdftexversion < 14
     882      \pdfimage
     883    \else
     884      \pdfximage
     885    \fi
     886      \ifx\empty\imagewidth\else width \imagewidth \fi
     887      \ifx\empty\imageheight\else height \imageheight \fi
     888      {#1.pdf}%
     889    \ifnum\pdftexversion < 14 \else
     890      \pdfrefximage \pdflastximage
     891    \fi}
     892  \def\pdfmkdest#1{\pdfdest name{#1@} xyz}
     893  \def\pdfmkpgn#1{#1@}
     894  \let\linkcolor = \Cyan
     895  \def\endlink{\Black\pdfendlink}
     896  % Adding outlines to PDF; macros for calculating structure of outlines
     897  % come from Petr Olsak
     898  \def\expnumber#1{\expandafter\ifx\csname#1\endcsname\relax 0%
     899    \else \csname#1\endcsname \fi}
     900  \def\advancenumber#1{\tempnum=\expnumber{#1}\relax
     901    \advance\tempnum by1
     902    \expandafter\xdef\csname#1\endcsname{\the\tempnum}}
     903  \def\pdfmakeoutlines{{%
     904    \openin 1 \jobname.toc
     905    \ifeof 1\else\bgroup
     906      \closein 1
     907      \indexnofonts
     908      \def\tt{}
     909      % thanh's hack / proper braces in bookmarks 
     910      \edef\mylbrace{\iftrue \string{\else}\fi}\let\{=\mylbrace
     911      \edef\myrbrace{\iffalse{\else\string}\fi}\let\}=\myrbrace
     912      %
     913      \def\chapentry ##1##2##3{}
     914      \def\unnumbchapentry ##1##2{}
     915      \def\secentry ##1##2##3##4{\advancenumber{chap##2}}
     916      \def\unnumbsecentry ##1##2{}
     917      \def\subsecentry ##1##2##3##4##5{\advancenumber{sec##2.##3}}
     918      \def\unnumbsubsecentry ##1##2{}
     919      \def\subsubsecentry ##1##2##3##4##5##6{\advancenumber{subsec##2.##3.##4}}
     920      \def\unnumbsubsubsecentry ##1##2{}
     921      \input \jobname.toc
     922      \def\chapentry ##1##2##3{%
     923        \pdfoutline goto name{\pdfmkpgn{##3}}count-\expnumber{chap##2}{##1}}
     924      \def\unnumbchapentry ##1##2{%
     925        \pdfoutline goto name{\pdfmkpgn{##2}}{##1}}
     926      \def\secentry ##1##2##3##4{%
     927        \pdfoutline goto name{\pdfmkpgn{##4}}count-\expnumber{sec##2.##3}{##1}}
     928      \def\unnumbsecentry ##1##2{%
     929        \pdfoutline goto name{\pdfmkpgn{##2}}{##1}}
     930      \def\subsecentry ##1##2##3##4##5{%
     931        \pdfoutline goto name{\pdfmkpgn{##5}}count-\expnumber{subsec##2.##3.##4}{##1}}
     932      \def\unnumbsubsecentry ##1##2{%
     933        \pdfoutline goto name{\pdfmkpgn{##2}}{##1}}
     934      \def\subsubsecentry ##1##2##3##4##5##6{%
     935        \pdfoutline goto name{\pdfmkpgn{##6}}{##1}}
     936      \def\unnumbsubsubsecentry ##1##2{%
     937        \pdfoutline goto name{\pdfmkpgn{##2}}{##1}}
     938      \input \jobname.toc
     939    \egroup\fi
     940  }}
     941  \def\makelinks #1,{%
     942    \def\params{#1}\def\E{END}%
     943    \ifx\params\E
     944      \let\nextmakelinks=\relax
     945    \else
     946      \let\nextmakelinks=\makelinks
     947      \ifnum\lnkcount>0,\fi
     948      \picknum{#1}%
     949      \startlink attr{/Border [0 0 0]}
     950        goto name{\pdfmkpgn{\the\pgn}}%
     951      \linkcolor #1%
     952      \advance\lnkcount by 1%
     953      \endlink
     954    \fi
     955    \nextmakelinks
     956  }
     957  \def\picknum#1{\expandafter\pn#1}
     958  \def\pn#1{%
     959    \def\p{#1}%
     960    \ifx\p\lbrace
     961      \let\nextpn=\ppn
     962    \else
     963      \let\nextpn=\ppnn
     964      \def\first{#1}
     965    \fi
     966    \nextpn
     967  }
     968  \def\ppn#1{\pgn=#1\gobble}
     969  \def\ppnn{\pgn=\first}
     970  \def\pdfmklnk#1{\lnkcount=0\makelinks #1,END,}
     971  \def\addtokens#1#2{\edef\addtoks{\noexpand#1={\the#1#2}}\addtoks}
     972  \def\skipspaces#1{\def\PP{#1}\def\D{|}%
     973    \ifx\PP\D\let\nextsp\relax
     974    \else\let\nextsp\skipspaces
     975      \ifx\p\space\else\addtokens{\filename}{\PP}%
     976        \advance\filenamelength by 1
     977      \fi
     978    \fi
     979    \nextsp}
     980  \def\getfilename#1{\filenamelength=0\expandafter\skipspaces#1|\relax}
     981  \ifnum\pdftexversion < 14
     982    \let \startlink \pdfannotlink
     983  \else
     984    \let \startlink \pdfstartlink
     985  \fi
     986  \def\pdfurl#1{%
     987    \begingroup
     988      \normalturnoffactive\def\@{@}%
     989      \leavevmode\Red
     990      \startlink attr{/Border [0 0 0]}%
     991        user{/Subtype /Link /A << /S /URI /URI (#1) >>}%
     992        % #1
     993    \endgroup}
     994  \def\pdfgettoks#1.{\setbox\boxA=\hbox{\toksA={#1.}\toksB={}\maketoks}}
     995  \def\addtokens#1#2{\edef\addtoks{\noexpand#1={\the#1#2}}\addtoks}
     996  \def\adn#1{\addtokens{\toksC}{#1}\global\countA=1\let\next=\maketoks}
     997  \def\poptoks#1#2|ENDTOKS|{\let\first=#1\toksD={#1}\toksA={#2}}
     998  \def\maketoks{%
     999    \expandafter\poptoks\the\toksA|ENDTOKS|
     1000    \ifx\first0\adn0
     1001    \else\ifx\first1\adn1 \else\ifx\first2\adn2 \else\ifx\first3\adn3
     1002    \else\ifx\first4\adn4 \else\ifx\first5\adn5 \else\ifx\first6\adn6
     1003    \else\ifx\first7\adn7 \else\ifx\first8\adn8 \else\ifx\first9\adn9
     1004    \else
     1005      \ifnum0=\countA\else\makelink\fi
     1006      \ifx\first.\let\next=\done\else
     1007        \let\next=\maketoks
     1008        \addtokens{\toksB}{\the\toksD}
     1009        \ifx\first,\addtokens{\toksB}{\space}\fi
     1010      \fi
     1011    \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi
     1012    \next}
     1013  \def\makelink{\addtokens{\toksB}%
     1014    {\noexpand\pdflink{\the\toksC}}\toksC={}\global\countA=0}
     1015  \def\pdflink#1{%
     1016    \startlink attr{/Border [0 0 0]} goto name{\mkpgn{#1}}
     1017    \linkcolor #1\endlink}
     1018  \def\mkpgn#1{#1@}
     1019  \def\done{\edef\st{\global\noexpand\toksA={\the\toksB}}\st}
     1020\fi % \ifx\pdfoutput
    8251021
    8261022
     
    8941090\def\df{\let\tentt=\deftt \let\tenbf = \defbf \bf}
    8951091
    896 % Fonts for indices and small examples (9pt).
    897 % We actually use the slanted font rather than the italic,
    898 % because texinfo normally uses the slanted fonts for that.
    899 % Do not make many font distinctions in general in the index, since they
    900 % aren't very useful.
    901 \setfont\ninett\ttshape{9}{1000}
    902 \setfont\ninettsl\ttslshape{10}{900}
    903 \setfont\indrm\rmshape{9}{1000}
    904 \setfont\indit\itshape{9}{1000}
    905 \setfont\indsl\slshape{9}{1000}
    906 \let\indtt=\ninett
    907 \let\indttsl=\ninettsl
    908 \let\indsf=\indrm
    909 \let\indbf=\indrm
    910 \setfont\indsc\scshape{10}{900}
    911 \font\indi=cmmi9
    912 \font\indsy=cmsy9
     1092% Fonts for indices, footnotes, small examples (9pt).
     1093\setfont\smallrm\rmshape{9}{1000}
     1094\setfont\smalltt\ttshape{9}{1000}
     1095\setfont\smallbf\bfshape{10}{900}
     1096\setfont\smallit\itshape{9}{1000}
     1097\setfont\smallsl\slshape{9}{1000}
     1098\setfont\smallsf\sfshape{9}{1000}
     1099\setfont\smallsc\scshape{10}{900}
     1100\setfont\smallttsl\ttslshape{10}{900}
     1101\font\smalli=cmmi9
     1102\font\smallsy=cmsy9
    9131103
    9141104% Fonts for title page:
     
    10241214  \resetmathfonts \setleading{15pt}}
    10251215\let\subsubsecfonts = \subsecfonts % Maybe make sssec fonts scaled magstephalf?
    1026 \def\indexfonts{%
    1027   \let\tenrm=\indrm \let\tenit=\indit \let\tensl=\indsl
    1028   \let\tenbf=\indbf \let\tentt=\indtt \let\smallcaps=\indsc
    1029   \let\tensf=\indsf \let\teni=\indi \let\tensy=\indsy \let\tenttsl=\indttsl
    1030   \resetmathfonts \setleading{12pt}}
     1216\def\smallfonts{%
     1217  \let\tenrm=\smallrm \let\tenit=\smallit \let\tensl=\smallsl
     1218  \let\tenbf=\smallbf \let\tentt=\smalltt \let\smallcaps=\smallsc
     1219  \let\tensf=\smallsf \let\teni=\smalli \let\tensy=\smallsy
     1220  \let\tenttsl=\smallttsl
     1221  \resetmathfonts \setleading{11pt}}
    10311222
    10321223% Set up the default fonts, so we can use them for creating boxes.
     
    10771268\let\ttfont=\t
    10781269\def\samp#1{`\tclose{#1}'\null}
    1079 \setfont\smallrm\rmshape{8}{1000}
    1080 \font\smallsy=cmsy9
    1081 \def\key#1{{\smallrm\textfont2=\smallsy \leavevmode\hbox{%
     1270\setfont\keyrm\rmshape{8}{1000}
     1271\font\keysy=cmsy9
     1272\def\key#1{{\keyrm\textfont2=\keysy \leavevmode\hbox{%
    10821273  \raise0.4pt\hbox{\angleleft}\kern-.08em\vtop{%
    10831274    \vbox{\hrule\kern-0.4pt
     
    11901381%
    11911382\def\uref#1{\douref #1,,,\finish}
    1192 \def\douref#1,#2,#3,#4\finish{%
     1383\def\douref#1,#2,#3,#4\finish{\begingroup
     1384  \unsepspaces
     1385  \pdfurl{#1}%
    11931386  \setbox0 = \hbox{\ignorespaces #3}%
    11941387  \ifdim\wd0 > 0pt
     
    11971390    \setbox0 = \hbox{\ignorespaces #2}%
    11981391    \ifdim\wd0 > 0pt
    1199       \unhbox0\ (\code{#1})% second arg given, show both it and url
     1392      \ifpdf
     1393        \unhbox0             % PDF: 2nd arg given, show only it
     1394      \else
     1395        \unhbox0\ (\code{#1})% DVI: 2nd arg given, show both it and url
     1396      \fi
    12001397    \else
    12011398      \code{#1}% only url given, so show it
    12021399    \fi
    12031400  \fi
    1204 }
    1205 
    1206 % rms does not like the angle brackets --karl, 17may97.
    1207 % So now @email is just like @uref.
     1401  \endlink
     1402\endgroup}
     1403
     1404% rms does not like angle brackets --karl, 17may97.
     1405% So now @email is just like @uref, unless we are pdf.
     1406%
    12081407%\def\email#1{\angleleft{\tt #1}\angleright}
    1209 \let\email=\uref
     1408\ifpdf
     1409  \def\email#1{\doemail#1,,\finish}
     1410  \def\doemail#1,#2,#3\finish{\begingroup
     1411    \unsepspaces
     1412    \pdfurl{mailto:#1}%
     1413    \setbox0 = \hbox{\ignorespaces #2}%
     1414    \ifdim\wd0>0pt\unhbox0\else\code{#1}\fi
     1415    \endlink
     1416  \endgroup}
     1417\else
     1418  \let\email=\uref
     1419\fi
    12101420
    12111421% Check if we are currently using a typewriter font.  Since all the
     
    13251535     \global\let\shortcontents = \relax
    13261536   \fi
     1537   %
     1538   \ifpdf \pdfmakepagedesttrue \fi
    13271539   %
    13281540   \HEADINGSon
     
    18912103}
    18922104
    1893 % multitable syntax
    1894 \def\tab{&\hskip1sp\relax} % 2/2/96
    1895                            % tiny skip here makes sure this column space is
    1896                            % maintained, even if it is never used.
     2105% This used to have \hskip1sp.  But then the space in a template line is
     2106% not enough.  That is bad.  So let's go back to just & until we
     2107% encounter the problem it was intended to solve again.
     2108% --karl, nathan@acm.org, 20apr99.
     2109\def\tab{&}
    18972110
    18982111% @multitable ... @end multitable definitions:
     
    19752188% current baselineskip.
    19762189\ifdim\multitablelinespace=0pt
     2190\setbox0=\vbox{X}\global\multitablelinespace=\the\baselineskip
     2191\global\advance\multitablelinespace by-\ht0
    19772192%% strut to put in table in case some entry doesn't have descenders,
    19782193%% to keep lines equally spaced
    19792194\let\multistrut = \strut
     2195\else
     2196%% FIXME: what is \box0 supposed to be?
     2197\gdef\multistrut{\vrule height\multitablelinespace depth\dp0
     2198width0pt\relax} \fi
    19802199%% Test to see if parskip is larger than space between lines of
    19812200%% table. If not, do nothing.
    19822201%%        If so, set to same dimension as multitablelinespace.
    1983 \else
    1984 \gdef\multistrut{\vrule height\multitablelinespace depth\dp0
    1985 width0pt\relax} \fi
    19862202\ifdim\multitableparskip>\multitablelinespace
    19872203\global\multitableparskip=\multitablelinespace
     
    20452261  \let\deftypefn = \relax
    20462262  \let\deftypefun = \relax
     2263  \let\deftypeivar = \relax
     2264  \let\deftypeop = \relax
    20472265  \let\deftypevar = \relax
    20482266  \let\deftypevr = \relax
     
    21882406    %
    21892407    \nullfont
    2190     \let\tenrm = \nullfont  \let\tenit = \nullfont  \let\tensl = \nullfont
    2191     \let\tenbf = \nullfont  \let\tentt = \nullfont  \let\smallcaps = \nullfont
    2192     \let\tensf = \nullfont
    2193     % Similarly for index fonts (mostly for their use in
    2194     % smallexample)
    2195     \let\indrm = \nullfont  \let\indit = \nullfont  \let\indsl = \nullfont
    2196     \let\indbf = \nullfont  \let\indtt = \nullfont  \let\indsc = \nullfont
    2197     \let\indsf = \nullfont
     2408    \let\tenrm=\nullfont \let\tenit=\nullfont \let\tensl=\nullfont
     2409    \let\tenbf=\nullfont \let\tentt=\nullfont \let\smallcaps=\nullfont
     2410    \let\tensf=\nullfont
     2411    % Similarly for index fonts (mostly for their use in smallexample).
     2412    \let\smallrm=\nullfont \let\smallit=\nullfont \let\smallsl=\nullfont
     2413    \let\smallbf=\nullfont \let\smalltt=\nullfont \let\smallsc=\nullfont
     2414    \let\smallsf=\nullfont
    21982415    %
    21992416    % Don't complain when characters are missing from the fonts.
     
    24592676% Need these in case \tex is in effect and \{ is a \delimiter again.
    24602677% But can't use \lbracecmd and \rbracecmd because texindex assumes
    2461 % braces and backslashes are used only as delimiters.
     2678% braces and backslashes are used only as delimiters. 
    24622679\let\{ = \mylbrace
    24632680\let\} = \myrbrace
     
    25722789\let\uref=\indexdummyfont
    25732790\let\env=\indexdummyfont
     2791\let\acronym=\indexdummyfont
    25742792\let\command=\indexdummyfont
    25752793\let\option=\indexdummyfont
     
    27252943  \dobreak \chapheadingskip{10000}%
    27262944  %
    2727   \indexfonts \rm
     2945  \smallfonts \rm
    27282946  \tolerance = 9500
    27292947  \indexbreaks
     
    28523070    % part of (the primitive) \par.  Without it, a spurious underfull
    28533071    % \hbox ensues.
    2854     \ #2% The page number ends the paragraph.
     3072    \ifpdf
     3073      \pdfgettoks#2.\ \the\toksA % The page number ends the paragraph.
     3074    \else
     3075      \ #2% The page number ends the paragraph.
     3076    \fi
    28553077  \fi%
    28563078  \par
     
    30113233
    30123234\message{sectioning,}
    3013 % Define chapters, sections, etc.
     3235% Chapters, sections, etc.
    30143236
    30153237\newcount\chapno
     
    30203242% This counter is funny since it counts through charcodes of letters A, B, ...
    30213243\newcount\appendixno  \appendixno = `\@
    3022 \def\appendixletter{\char\the\appendixno}
     3244% \def\appendixletter{\char\the\appendixno}
     3245% We do the following for the sake of pdftex, which needs the actual
     3246% letter in the expansion, not just typeset.
     3247\def\appendixletter{%
     3248  \ifnum\appendixno=`A A%
     3249  \else\ifnum\appendixno=`B B%
     3250  \else\ifnum\appendixno=`C C%
     3251  \else\ifnum\appendixno=`D D%
     3252  \else\ifnum\appendixno=`E E%
     3253  \else\ifnum\appendixno=`F F%
     3254  \else\ifnum\appendixno=`G G%
     3255  \else\ifnum\appendixno=`H H%
     3256  \else\ifnum\appendixno=`I I%
     3257  \else\ifnum\appendixno=`J J%
     3258  \else\ifnum\appendixno=`K K%
     3259  \else\ifnum\appendixno=`L L%
     3260  \else\ifnum\appendixno=`M M%
     3261  \else\ifnum\appendixno=`N N%
     3262  \else\ifnum\appendixno=`O O%
     3263  \else\ifnum\appendixno=`P P%
     3264  \else\ifnum\appendixno=`Q Q%
     3265  \else\ifnum\appendixno=`R R%
     3266  \else\ifnum\appendixno=`S S%
     3267  \else\ifnum\appendixno=`T T%
     3268  \else\ifnum\appendixno=`U U%
     3269  \else\ifnum\appendixno=`V V%
     3270  \else\ifnum\appendixno=`W W%
     3271  \else\ifnum\appendixno=`X X%
     3272  \else\ifnum\appendixno=`Y Y%
     3273  \else\ifnum\appendixno=`Z Z%
     3274  % The \the is necessary, despite appearances, because \appendixletter is
     3275  % expanded while writing the .toc file.  \char\appendixno is not
     3276  % expandable, thus it is written literally, thus all appendixes come out
     3277  % with the same letter (or @) in the toc without it.
     3278  \else\char\the\appendixno
     3279  \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi
     3280  \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi}
    30233281
    30243282% Each @chapter defines this as the name of the chapter.
     
    34933751
    34943752\message{toc,}
     3753% Table of contents.
    34953754\newwrite\tocfile
    34963755
     
    35533812     \vfill \eject
    35543813     \contentsalignmacro % in case @setchapternewpage odd is in effect
     3814     \pdfmakeoutlines
    35553815   \endgroup
    35563816   \lastnegativepageno = \pageno
     
    35893849\let\shortcontents = \summarycontents
    35903850
     3851\ifpdf
     3852  \pdfcatalog{/PageMode /UseOutlines}%
     3853\fi
     3854
    35913855% These macros generate individual entries in the table of contents.
    35923856% The first argument is the chapter or section name.
     
    35993863% See comments in \dochapentry re vbox and related settings
    36003864\def\shortchapentry#1#2#3{%
    3601   \tocentry{\shortchaplabel{#2}\labelspace #1}{\doshortpageno{#3}}%
     3865  \tocentry{\shortchaplabel{#2}\labelspace #1}{\doshortpageno\bgroup#3\egroup}%
    36023866}
    36033867
     
    36073871% command in the toc file for appendices, instead of using \chapentry
    36083872% for both, but it doesn't seem worth it.
    3609 \setbox0 = \hbox{\shortcontrm \putwordAppendix }
    3610 \newdimen\shortappendixwidth \shortappendixwidth = \wd0
    3611 
     3873%
     3874\newdimen\shortappendixwidth
     3875%
    36123876\def\shortchaplabel#1{%
     3877  % Compute width of word "Appendix", may change with language.
     3878  \setbox0 = \hbox{\shortcontrm \putwordAppendix}%
     3879  \shortappendixwidth = \wd0
     3880  %
    36133881  % We typeset #1 in a box of constant width, regardless of the text of
    36143882  % #1, so the chapter titles will come out aligned.
     
    36253893
    36263894\def\unnumbchapentry#1#2{\dochapentry{#1}{#2}}
    3627 \def\shortunnumberedentry#1#2{\tocentry{#1}{\doshortpageno{#2}}}
     3895\def\shortunnumberedentry#1#2{\tocentry{#1}{\doshortpageno\bgroup#2\egroup}}
    36283896
    36293897% Sections.
     
    36523920   \begingroup
    36533921     \chapentryfonts
    3654      \tocentry{#1}{\dopageno{#2}}%
     3922     \tocentry{#1}{\dopageno\bgroup#2\egroup}%
    36553923   \endgroup
    36563924   \nobreak\vskip .25\baselineskip plus.1\baselineskip
     
    36593927\def\dosecentry#1#2{\begingroup
    36603928  \secentryfonts \leftskip=\tocindent
    3661   \tocentry{#1}{\dopageno{#2}}%
     3929  \tocentry{#1}{\dopageno\bgroup#2\egroup}%
    36623930\endgroup}
    36633931
    36643932\def\dosubsecentry#1#2{\begingroup
    36653933  \subsecentryfonts \leftskip=2\tocindent
    3666   \tocentry{#1}{\dopageno{#2}}%
     3934  \tocentry{#1}{\dopageno\bgroup#2\egroup}%
    36673935\endgroup}
    36683936
    36693937\def\dosubsubsecentry#1#2{\begingroup
    36703938  \subsubsecentryfonts \leftskip=3\tocindent
    3671   \tocentry{#1}{\dopageno{#2}}%
     3939  \tocentry{#1}{\dopageno\bgroup#2\egroup}%
    36723940\endgroup}
    36733941
     
    36973965
    36983966\message{environments,}
     3967% @foo ... @end foo.
    36993968
    37003969% Since these characters are used in examples, it should be an even number of
     
    39464215  \def\Esmalllisp{\nonfillfinish\endgroup}%
    39474216  \def\Esmallexample{\nonfillfinish\endgroup}%
    3948   \indexfonts
     4217  \smallfonts
    39494218  \lisp
    39504219}
     
    39624231\def\smalldisplayx{\begingroup
    39634232  \def\Esmalldisplay{\nonfillfinish\endgroup}%
    3964   \indexfonts \rm
     4233  \smallfonts \rm
    39654234  \display
    39664235}
     
    39794248\def\smallformatx{\begingroup
    39804249  \def\Esmallformat{\nonfillfinish\endgroup}%
    3981   \indexfonts \rm
     4250  \smallfonts \rm
    39824251  \format
    39834252}
     
    40204289
    40214290\message{defuns,}
    4022 % Define formatter for defuns
    4023 % First, allow user to change definition object font (\df) internally
     4291% @defun etc.
     4292
     4293% Allow user to change definition object font (\df) internally
    40244294\def\setdeffont #1 {\csname DEF#1\endcsname}
    40254295
     
    40754345\def\opnr{{\sf\char`\(}\global\advance\parencount by 1 }
    40764346\def\clnr{{\sf\char`\)}\global\advance\parencount by -1 }
    4077 \def\ampnr{\&}
     4347\let\ampnr = \&
    40784348\def\lbrb{{\bf\char`\[}}
    40794349\def\rbrb{{\bf\char`\]}}
     4350
     4351% Active &'s sneak into the index arguments, so make sure it's defined.
     4352{
     4353  \catcode`& = 13
     4354  \global\let& = \ampnr
     4355}
    40804356
    40814357% First, defname, which formats the header line itself.
     
    41424418\begingroup\obeylines\activeparens\spacesplit{#3{#4}}}
    41434419
    4144 % @deftypemethod has an extra argument that nothing else does.  Sigh.
     4420% Used for @deftypemethod and @deftypeivar.
    41454421% #1 is the \E... control sequence to end the definition (which we define).
    41464422% #2 is the \...x control sequence for consecutive fns (which we define).
    41474423% #3 is the control sequence to call to resume processing.
    4148 % #4, delimited by the space, is the class name.
     4424% #4, delimited by a space, is the class name.
    41494425% #5 is the method's return type.
    41504426%
    4151 \def\deftypemethparsebody#1#2#3#4 #5 {\begingroup\inENV %
    4152 \medbreak %
    4153 % Define the end token that this defining construct specifies
    4154 % so that it will exit this group.
    4155 \def#1{\endgraf\endgroup\medbreak}%
    4156 \def#2##1 ##2 {\begingroup\obeylines\activeparens\spacesplit{#3{##1}{##2}}}%
    4157 \parindent=0in
    4158 \advance\leftskip by \defbodyindent
    4159 \exdentamount=\defbodyindent
    4160 \begingroup\obeylines\activeparens\spacesplit{#3{#4}{#5}}}
     4427\def\deftypemethparsebody#1#2#3#4 #5 {\begingroup\inENV
     4428  \medbreak
     4429  \def#1{\endgraf\endgroup\medbreak}%
     4430  \def#2##1 ##2 {\begingroup\obeylines\activeparens\spacesplit{#3{##1}{##2}}}%
     4431  \parindent=0in
     4432  \advance\leftskip by \defbodyindent
     4433  \exdentamount=\defbodyindent
     4434  \begingroup\obeylines\activeparens\spacesplit{#3{#4}{#5}}}
     4435
     4436% Used for @deftypeop.  The change from \deftypemethparsebody is an
     4437% extra argument at the beginning which is the `category', instead of it
     4438% being the hardwired string `Method' or `Instance Variable'.  We have
     4439% to account for this both in the \...x definition and in parsing the
     4440% input at hand.  Thus also need a control sequence (passed as #5) for
     4441% the \E... definition to assign the category name to.
     4442%
     4443\def\deftypeopparsebody#1#2#3#4#5 #6 {\begingroup\inENV
     4444  \medbreak
     4445  \def#1{\endgraf\endgroup\medbreak}%
     4446  \def#2##1 ##2 ##3 {%
     4447    \def#4{##1}%
     4448    \begingroup\obeylines\activeparens\spacesplit{#3{##2}{##3}}}%
     4449  \parindent=0in
     4450  \advance\leftskip by \defbodyindent
     4451  \exdentamount=\defbodyindent
     4452  \begingroup\obeylines\activeparens\spacesplit{#3{#5}{#6}}}
    41614453
    41624454\def\defopparsebody #1#2#3#4#5 {\begingroup\inENV %
     
    42694561% Use this to expand the args and terminate the paragraph they make up
    42704562
    4271 \def\defunargs #1{\functionparens \sl
     4563\def\defunargs#1{\functionparens \sl
    42724564% Expand, preventing hyphenation at `-' chars.
    42734565% Note that groups don't affect changes in \hyphenchar.
    4274 \hyphenchar\tensl=0
     4566% Set the font temporarily and use \font in case \setfont made \tensl a macro.
     4567{\tensl\hyphenchar\font=0}%
    42754568#1%
    4276 \hyphenchar\tensl=45
     4569{\tensl\hyphenchar\font=45}%
    42774570\ifnum\parencount=0 \else \errmessage{Unbalanced parentheses in @def}\fi%
    42784571\interlinepenalty=10000
     
    43684661}
    43694662
    4370 % This definition is run if you use @defunx
    4371 % anywhere other than immediately after a @defun or @defunx.
    4372 
    4373 \def\deffnx #1 {\errmessage{@deffnx in invalid context}}
    4374 \def\defunx #1 {\errmessage{@defunx in invalid context}}
    4375 \def\defmacx #1 {\errmessage{@defmacx in invalid context}}
    4376 \def\defspecx #1 {\errmessage{@defspecx in invalid context}}
    4377 \def\deftypefnx #1 {\errmessage{@deftypefnx in invalid context}}
    4378 \def\deftypemethodx #1 {\errmessage{@deftypemethodx in invalid context}}
    4379 \def\deftypefunx #1 {\errmessage{@deftypefunx in invalid context}}
    4380 
    4381 % @defmethod, and so on
    4382 
    43834663% @defop CATEGORY CLASS OPERATION ARG...
    4384 
     4664%
    43854665\def\defop #1 {\def\defoptype{#1}%
    43864666\defopparsebody\Edefop\defopx\defopheader\defoptype}
    4387 
    4388 \def\defopheader #1#2#3{%
     4667%
     4668\def\defopheader#1#2#3{%
    43894669\dosubind {fn}{\code{#2}}{\putwordon\ #1}% Make entry in function index
    4390 \begingroup\defname {#2}{\defoptype{}\putwordon\ #1}%
     4670\begingroup\defname {#2}{\defoptype\ \putwordon\ #1}%
    43914671\defunargs {#3}\endgroup %
    43924672}
    43934673
    4394 % @deftypemethod CLASS RETURN-TYPE METHOD ARG...
     4674% @deftypeop CATEGORY CLASS TYPE OPERATION ARG...
     4675%
     4676\def\deftypeop #1 {\def\deftypeopcategory{#1}%
     4677  \deftypeopparsebody\Edeftypeop\deftypeopx\deftypeopheader
     4678                       \deftypeopcategory}
     4679%
     4680% #1 is the class name, #2 the data type, #3 the operation name, #4 the args.
     4681\def\deftypeopheader#1#2#3#4{%
     4682  \dosubind{fn}{\code{#3}}{\putwordon\ \code{#1}}% entry in function index
     4683  \begingroup
     4684    \defname{\defheaderxcond#2\relax$$$#3}
     4685            {\deftypeopcategory\ \putwordon\ \code{#1}}%
     4686    \deftypefunargs{#4}%
     4687  \endgroup
     4688}
     4689
     4690% @deftypemethod CLASS TYPE METHOD ARG...
    43954691%
    43964692\def\deftypemethod{%
     
    44064702}
    44074703
     4704% @deftypeivar CLASS TYPE VARNAME
     4705%
     4706\def\deftypeivar{%
     4707  \deftypemethparsebody\Edeftypeivar\deftypeivarx\deftypeivarheader}
     4708%
     4709% #1 is the class name, #2 the data type, #3 the variable name.
     4710\def\deftypeivarheader#1#2#3{%
     4711  \dosubind{vr}{\code{#3}}{\putwordof\ \code{#1}}% entry in variable index
     4712  \begingroup
     4713    \defname{#3}{\putwordInstanceVariableof\ \code{#1}}%
     4714    \defvarargs{#3}%
     4715  \endgroup
     4716}
     4717
    44084718% @defmethod == @defop Method
    44094719%
     
    44304740}
    44314741
    4432 % @defivar == @defcv {Instance Variable}
    4433 
     4742% @defivar CLASS VARNAME == @defcv {Instance Variable} CLASS VARNAME
     4743%
    44344744\def\defivar{\defvrparsebody\Edefivar\defivarx\defivarheader}
    4435 
    4436 \def\defivarheader #1#2#3{%
    4437 \dosubind {vr}{\code{#2}}{\putwordof\ #1}% Make entry in var index
    4438 \begingroup\defname {#2}{\putwordDefivar\ \putwordof\ #1}%
    4439 \defvarargs {#3}\endgroup %
    4440 }
    4441 
    4442 % These definitions are run if you use @defmethodx, etc.,
    4443 % anywhere other than immediately after a @defmethod, etc.
    4444 
    4445 \def\defopx #1 {\errmessage{@defopx in invalid context}}
    4446 \def\defmethodx #1 {\errmessage{@defmethodx in invalid context}}
    4447 \def\defcvx #1 {\errmessage{@defcvx in invalid context}}
    4448 \def\defivarx #1 {\errmessage{@defivarx in invalid context}}
    4449 
    4450 % Now @defvar
    4451 
     4745%
     4746\def\defivarheader#1#2#3{%
     4747  \dosubind {vr}{\code{#2}}{\putwordof\ #1}% entry in var index
     4748  \begingroup
     4749    \defname{#2}{\putwordInstanceVariableof\ #1}%
     4750    \defvarargs{#3}%
     4751  \endgroup
     4752}
     4753
     4754% @defvar
    44524755% First, define the processing that is wanted for arguments of @defvar.
    44534756% This is actually simple: just print them in roman.