Changeset a492d2 in git


Ignore:
Timestamp:
May 3, 1997, 12:09:29 AM (27 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'spielwiese', '82fc009ea2b0098c1a4896c841bb70860976bdfc')
Children:
1eed4ee3e5d96c4420bb542d28e2fe2f8facab45
Parents:
1a80b406d1ca4dff5c2ee1821cf2797ce0b6ec82
Message:
Sat May  3 00:07:55 1997  Olaf Bachmann
<obachman@ratchwum.mathematik.uni-kl.de (Olaf Bachmann)>

	* small mpsr Changes to reflect some name changes of MP Dicts

	* configure.in Makefile.in: new schem for updating Makefile mod2.h
	  based on time-stamps


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

Legend:

Unmodified
Added
Removed
  • Singular/ChangeLog

    r1a80b4 ra492d2  
     1Sat May  3 00:07:55 1997  Olaf Bachmann  <obachman@ratchwum.mathematik.uni-kl.de (Olaf Bachmann)>
     2
     3        * small mpsr Changes to reflect some name changes of MP Dicts
     4
     5        * configure.in Makefile.in: new schem for updating Makefile mod2.h
     6          based on time-stamps
     7
     8Fri May  2 17:29:32 1997  Olaf Bachmann  <obachman@ratchwum.mathematik.uni-kl.de (Olaf Bachmann)>
     9
     10        * mpsr.h: reflected changes of MP version 1.1.2 (Dicts in MP.h)
     11
     12        * Fixed small bug in configure.in
     13
    114Mon Apr 28 21:00:07 1997  Olaf Bachmann  <obachman@ratchwum.mathematik.uni-kl.de (Olaf Bachmann)>
    215
  • Singular/Makefile.in

    r1a80b4 ra492d2  
    1313SINGULAR_MINOR_VERSION  = @SINGULAR_MINOR_VERSION@
    1414DIST_NAME       = Singular-${SINGULAR_MAJOR_VERSION}.${SINGULAR_MINOR_VERSION}
    15 CONFIGURE_INPUT = @ac_configure_args@
    1615
    1716##
     
    148147all:    Singular
    149148
    150 Singular: mod2.h version.h scanner.cc ${OBJS} iparith.o mpsr_Tok.o tesths.cc
     149Singular: mod2.h Makefile version.h scanner.cc ${OBJS} iparith.o \
     150                                                mpsr_Tok.o tesths.cc
    151151        ${CXX} ${CXXFLAGS} ${CPPFLAGS} ${DEFS} -o Singular \
    152152        tesths.cc iparith.o mpsr_Tok.o ${OBJS} ${LDFLAGS} ${LIBS}
     
    166166        echo "#define SINGULAR_VERSION_ID " `date '+%y%m%d%H'` >version.h
    167167
    168 mod2.h: config.status config.cache mod2.h.in Makefile.in
    169         ./config.status
    170         touch -r mod2.h  config.status config.cache configure \
    171                  configure.in Makefile.in
    172 
    173 config.status config.cache : configure
    174         ./configure ${CONFIGURE_INPUT} --no-create
    175         touch -r configure config.status config.cache
     168mod2.h: stamp-h
     169
     170stamp-h : config.status mod2.h.in
     171        CONFIG_FILES= CONFIG_HEADERS=mod2.h ./config.status
     172
     173Makefile: Makefile.in config.status
     174        CONFIG_FILES="Makefile" CONFIG_HEADERS= ./config.status
     175
     176doc/Makefile: doc/Makefile.in config.status
     177        CONFIG_FILES="doc/Makefile" CONFIG_HEADERS= ./config.status
     178
     179config.status: configure
     180        ./config.status --recheck
    176181
    177182configure: configure.in
    178         autoconf configure.in > configure
    179         chmod a+x configure
     183        autoconf
    180184
    181185##
     
    224228
    225229distclean: clean
    226         -rm -rf depend *.inc ${DIST_NAME} ${testdir}/out
     230        -rm -rf depend *.inc ${DIST_NAME} ${testdir}/out stamp-h
    227231        -rm mod2.h Makefile TAGS* config.status config.cache config.log
    228232        cd ${docdir}; ${MAKE} clean
     
    233237        @echo "bison and autoconf"
    234238        -rm configure scanner.cc grammar.h grammar.cc
    235         cd ${docdir}; ${MAKE} distclean
    236239
    237240info dvi ps html:
  • Singular/configure

    r1a80b4 ra492d2  
    704704fi
    705705
     706echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
     707# On Suns, sometimes $CPP names a directory.
     708if test -n "$CPP" && test -d "$CPP"; then
     709  CPP=
     710fi
     711if test -z "$CPP"; then
     712if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
     713  echo $ac_n "(cached) $ac_c" 1>&6
     714else
     715    # This must be in double quotes, not single quotes, because CPP may get
     716  # substituted into the Makefile and "${CC-cc}" will confuse make.
     717  CPP="${CC-cc} -E"
     718  # On the NeXT, cc -E runs the code through the compiler's parser,
     719  # not just through cpp.
     720  cat > conftest.$ac_ext <<EOF
     721#line 722 "configure"
     722#include "confdefs.h"
     723#include <assert.h>
     724Syntax Error
     725EOF
     726ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
     727{ (eval echo configure:728: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     728ac_err=`grep -v '^ *+' conftest.out`
     729if test -z "$ac_err"; then
     730  :
     731else
     732  echo "$ac_err" >&5
     733  rm -rf conftest*
     734  CPP="${CC-cc} -E -traditional-cpp"
     735  cat > conftest.$ac_ext <<EOF
     736#line 737 "configure"
     737#include "confdefs.h"
     738#include <assert.h>
     739Syntax Error
     740EOF
     741ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
     742{ (eval echo configure:743: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     743ac_err=`grep -v '^ *+' conftest.out`
     744if test -z "$ac_err"; then
     745  :
     746else
     747  echo "$ac_err" >&5
     748  rm -rf conftest*
     749  CPP=/lib/cpp
     750fi
     751rm -f conftest*
     752fi
     753rm -f conftest*
     754  ac_cv_prog_CPP="$CPP"
     755fi
     756  CPP="$ac_cv_prog_CPP"
     757else
     758  ac_cv_prog_CPP="$CPP"
     759fi
     760echo "$ac_t""$CPP" 1>&6
     761
    706762for ac_prog in $CCC c++ g++ gcc CC cxx
    707763do
     
    747803#endif
    748804EOF
    749 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     805if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    750806  ac_cv_prog_gxx=yes
    751807else
     
    10471103LIBS="-lm  $LIBS"
    10481104cat > conftest.$ac_ext <<EOF
    1049 #line 1050 "configure"
     1105#line 1106 "configure"
    10501106#include "confdefs.h"
    10511107/* Override any gcc2 internal prototype to avoid an error.  */
     
    10571113; return 0; }
    10581114EOF
    1059 if { (eval echo configure:1060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1115if { (eval echo configure:1116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    10601116  rm -rf conftest*
    10611117  eval "ac_cv_lib_$ac_lib_var=yes"
     
    10891145LIBS="-lbsd  $LIBS"
    10901146cat > conftest.$ac_ext <<EOF
    1091 #line 1092 "configure"
     1147#line 1148 "configure"
    10921148#include "confdefs.h"
    10931149/* Override any gcc2 internal prototype to avoid an error.  */
     
    10991155; return 0; }
    11001156EOF
    1101 if { (eval echo configure:1102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1157if { (eval echo configure:1158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    11021158  rm -rf conftest*
    11031159  eval "ac_cv_lib_$ac_lib_var=yes"
     
    11331189LIBS="-lncurses  $LIBS"
    11341190cat > conftest.$ac_ext <<EOF
    1135 #line 1136 "configure"
     1191#line 1192 "configure"
    11361192#include "confdefs.h"
    11371193/* Override any gcc2 internal prototype to avoid an error.  */
     
    11431199; return 0; }
    11441200EOF
    1145 if { (eval echo configure:1146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1201if { (eval echo configure:1202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    11461202  rm -rf conftest*
    11471203  eval "ac_cv_lib_$ac_lib_var=yes"
     
    11741230LIBS="-lcurses  $LIBS"
    11751231cat > conftest.$ac_ext <<EOF
    1176 #line 1177 "configure"
     1232#line 1233 "configure"
    11771233#include "confdefs.h"
    11781234/* Override any gcc2 internal prototype to avoid an error.  */
     
    11841240; return 0; }
    11851241EOF
    1186 if { (eval echo configure:1187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1242if { (eval echo configure:1243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    11871243  rm -rf conftest*
    11881244  eval "ac_cv_lib_$ac_lib_var=yes"
     
    12151271LIBS="-ltermcap  $LIBS"
    12161272cat > conftest.$ac_ext <<EOF
    1217 #line 1218 "configure"
     1273#line 1274 "configure"
    12181274#include "confdefs.h"
    12191275/* Override any gcc2 internal prototype to avoid an error.  */
     
    12251281; return 0; }
    12261282EOF
    1227 if { (eval echo configure:1228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1283if { (eval echo configure:1284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    12281284  rm -rf conftest*
    12291285  eval "ac_cv_lib_$ac_lib_var=yes"
     
    12531309fi
    12541310
    1255    echo $ac_n "checking for -lreadline""... $ac_c" 1>&6
     1311  echo $ac_n "checking for -lreadline""... $ac_c" 1>&6
    12561312ac_lib_var=`echo readline_rl_abort | tr '.-/+' '___p'`
    12571313if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    12611317LIBS="-lreadline  $LIBS"
    12621318cat > conftest.$ac_ext <<EOF
    1263 #line 1264 "configure"
     1319#line 1320 "configure"
    12641320#include "confdefs.h"
    12651321/* Override any gcc2 internal prototype to avoid an error.  */
     
    12711327; return 0; }
    12721328EOF
    1273 if { (eval echo configure:1274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1329if { (eval echo configure:1330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    12741330  rm -rf conftest*
    12751331  eval "ac_cv_lib_$ac_lib_var=yes"
     
    12951351fi
    12961352
    1297    if test "$ac_cv_lib_readline_rl_abort" = yes; then
    1298      echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
    1299 # On Suns, sometimes $CPP names a directory.
    1300 if test -n "$CPP" && test -d "$CPP"; then
    1301   CPP=
    1302 fi
    1303 if test -z "$CPP"; then
    1304 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
    1305   echo $ac_n "(cached) $ac_c" 1>&6
    1306 else
    1307     # This must be in double quotes, not single quotes, because CPP may get
    1308   # substituted into the Makefile and "${CC-cc}" will confuse make.
    1309   CPP="${CC-cc} -E"
    1310   # On the NeXT, cc -E runs the code through the compiler's parser,
    1311   # not just through cpp.
    1312   cat > conftest.$ac_ext <<EOF
    1313 #line 1314 "configure"
    1314 #include "confdefs.h"
    1315 #include <assert.h>
    1316 Syntax Error
    1317 EOF
    1318 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1319 { (eval echo configure:1320: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1320 ac_err=`grep -v '^ *+' conftest.out`
    1321 if test -z "$ac_err"; then
    1322   :
    1323 else
    1324   echo "$ac_err" >&5
    1325   rm -rf conftest*
    1326   CPP="${CC-cc} -E -traditional-cpp"
    1327   cat > conftest.$ac_ext <<EOF
    1328 #line 1329 "configure"
    1329 #include "confdefs.h"
    1330 #include <assert.h>
    1331 Syntax Error
    1332 EOF
    1333 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1334 { (eval echo configure:1335: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1335 ac_err=`grep -v '^ *+' conftest.out`
    1336 if test -z "$ac_err"; then
    1337   :
    1338 else
    1339   echo "$ac_err" >&5
    1340   rm -rf conftest*
    1341   CPP=/lib/cpp
    1342 fi
    1343 rm -f conftest*
    1344 fi
    1345 rm -f conftest*
    1346   ac_cv_prog_CPP="$CPP"
    1347 fi
    1348   CPP="$ac_cv_prog_CPP"
    1349 else
    1350   ac_cv_prog_CPP="$CPP"
    1351 fi
    1352 echo "$ac_t""$CPP" 1>&6
    1353 
    1354 for ac_hdr in readline/readline.h readline/history.h sys/file.h
     1353  if test "$ac_cv_lib_readline_rl_abort" = yes; then
     1354     for ac_hdr in readline/readline.h readline/history.h sys/file.h
    13551355do
    13561356ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
     
    15771577fi
    15781578
    1579   for ac_hdr in gmp.h
    1580 do
    1581 ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
    1582 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
     1579  ac_safe=`echo "gmp.h" | tr './\055' '___'`
     1580echo $ac_n "checking for gmp.h""... $ac_c" 1>&6
    15831581if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    15841582  echo $ac_n "(cached) $ac_c" 1>&6
    15851583else
    15861584  cat > conftest.$ac_ext <<EOF
    1587 #line 1588 "configure"
    1588 #include "confdefs.h"
    1589 #include <$ac_hdr>
     1585#line 1586 "configure"
     1586#include "confdefs.h"
     1587#include <gmp.h>
    15901588EOF
    15911589ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1592 { (eval echo configure:1593: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1590{ (eval echo configure:1591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    15931591ac_err=`grep -v '^ *+' conftest.out`
    15941592if test -z "$ac_err"; then
     
    16041602if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
    16051603  echo "$ac_t""yes" 1>&6
    1606     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
    1607   cat >> confdefs.h <<EOF
    1608 #define $ac_tr_hdr 1
    1609 EOF
    1610  
    1611 else
    1612   echo "$ac_t""no" 1>&6
    1613 fi
    1614 done
     1604  :
     1605else
     1606  echo "$ac_t""no" 1>&6
     1607fi
    16151608
    16161609  if test "$ac_cv_lib_gmp_mpz_init" = yes && \
     
    16401633  else
    16411634    if test "$ac_cv_lib_gmp_mpz_init"=yes; then
     1635      echo $ac_n "checking for -lMP""... $ac_c" 1>&6
     1636ac_lib_var=`echo MP_MP_OpenLink | tr '.-/+' '___p'`
     1637if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     1638  echo $ac_n "(cached) $ac_c" 1>&6
     1639else
     1640  ac_save_LIBS="$LIBS"
     1641LIBS="-lMP  $LIBS"
     1642cat > conftest.$ac_ext <<EOF
     1643#line 1644 "configure"
     1644#include "confdefs.h"
     1645/* Override any gcc2 internal prototype to avoid an error.  */
     1646char MP_OpenLink();
     1647
     1648int main() { return 0; }
     1649int t() {
     1650MP_OpenLink()
     1651; return 0; }
     1652EOF
     1653if { (eval echo configure:1654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1654  rm -rf conftest*
     1655  eval "ac_cv_lib_$ac_lib_var=yes"
     1656else
     1657  rm -rf conftest*
     1658  eval "ac_cv_lib_$ac_lib_var=no"
     1659fi
     1660rm -f conftest*
     1661LIBS="$ac_save_LIBS"
     1662
     1663fi
     1664if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
     1665  echo "$ac_t""yes" 1>&6
     1666    ac_tr_lib=HAVE_LIB`echo MP | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
     1667  cat >> confdefs.h <<EOF
     1668#define $ac_tr_lib 1
     1669EOF
     1670
     1671  LIBS="-lMP $LIBS"
     1672
     1673else
     1674  echo "$ac_t""no" 1>&6
     1675fi
     1676
    16421677      echo $ac_n "checking for -lMPT""... $ac_c" 1>&6
    16431678ac_lib_var=`echo MPT_MPT_GetTree | tr '.-/+' '___p'`
     
    16461681else
    16471682  ac_save_LIBS="$LIBS"
    1648 LIBS="-lMPT -lMP $LIBS"
     1683LIBS="-lMPT $LIBS"
    16491684cat > conftest.$ac_ext <<EOF
    1650 #line 1651 "configure"
     1685#line 1686 "configure"
    16511686#include "confdefs.h"
    16521687/* Override any gcc2 internal prototype to avoid an error.  */
     
    16581693; return 0; }
    16591694EOF
    1660 if { (eval echo configure:1661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1695if { (eval echo configure:1696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    16611696  rm -rf conftest*
    16621697  eval "ac_cv_lib_$ac_lib_var=yes"
     
    16831718
    16841719    fi
    1685     for ac_hdr in MP.h
     1720    for ac_hdr in MP.h MPT.h
    16861721do
    16871722ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
     
    16911726else
    16921727  cat > conftest.$ac_ext <<EOF
    1693 #line 1694 "configure"
     1728#line 1729 "configure"
    16941729#include "confdefs.h"
    16951730#include <$ac_hdr>
    16961731EOF
    16971732ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1698 { (eval echo configure:1699: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1733{ (eval echo configure:1734: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    16991734ac_err=`grep -v '^ *+' conftest.out`
    17001735if test -z "$ac_err"; then
     
    17211756
    17221757    if test "$ac_cv_lib_MPT_MPT_GetTree" = yes && \
    1723      test "$ac_cv_header_MP_h"=yes; then
     1758     test "$ac_cv_header_MP_h" = yes && \
     1759     test "$ac_cv_lib_MP_MP_OpenLink" = yes && \
     1760     test "$ac_cv_header_MPT_h" = yes; then
    17241761      cat >> confdefs.h <<\EOF
    17251762#define HAVE_MPSR 1
     
    17531790LIBS="-lsingcf  $LIBS"
    17541791cat > conftest.$ac_ext <<EOF
    1755 #line 1756 "configure"
     1792#line 1793 "configure"
    17561793#include "confdefs.h"
    17571794/* Override any gcc2 internal prototype to avoid an error.  */
     
    17631800; return 0; }
    17641801EOF
    1765 if { (eval echo configure:1766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1802if { (eval echo configure:1803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    17661803  rm -rf conftest*
    17671804  eval "ac_cv_lib_$ac_lib_var=yes"
     
    17961833else
    17971834  cat > conftest.$ac_ext <<EOF
    1798 #line 1799 "configure"
     1835#line 1836 "configure"
    17991836#include "confdefs.h"
    18001837#include <$ac_hdr>
    18011838EOF
    18021839ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1803 { (eval echo configure:1804: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1840{ (eval echo configure:1841: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    18041841ac_err=`grep -v '^ *+' conftest.out`
    18051842if test -z "$ac_err"; then
     
    18601897LIBS="-lsinglibfac  $LIBS"
    18611898cat > conftest.$ac_ext <<EOF
    1862 #line 1863 "configure"
     1899#line 1900 "configure"
    18631900#include "confdefs.h"
    18641901/* Override any gcc2 internal prototype to avoid an error.  */
     
    18701907; return 0; }
    18711908EOF
    1872 if { (eval echo configure:1873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1909if { (eval echo configure:1910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    18731910  rm -rf conftest*
    18741911  eval "ac_cv_lib_$ac_lib_var=yes"
     
    19031940else
    19041941  cat > conftest.$ac_ext <<EOF
    1905 #line 1906 "configure"
     1942#line 1943 "configure"
    19061943#include "confdefs.h"
    19071944#include <$ac_hdr>
    19081945EOF
    19091946ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1910 { (eval echo configure:1911: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1947{ (eval echo configure:1948: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    19111948ac_err=`grep -v '^ *+' conftest.out`
    19121949if test -z "$ac_err"; then
     
    19642001else
    19652002cat > conftest.$ac_ext <<EOF
    1966 #line 1967 "configure"
     2003#line 2004 "configure"
    19672004#include "confdefs.h"
    19682005main(){return(0);}
    19692006EOF
    1970 { (eval echo configure:1971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
     2007{ (eval echo configure:2008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
    19712008if test -s conftest && (./conftest; exit) 2>/dev/null; then
    19722009  ac_cv_c_cross=no
     
    19862023else
    19872024  cat > conftest.$ac_ext <<EOF
    1988 #line 1989 "configure"
     2025#line 2026 "configure"
    19892026#include "confdefs.h"
    19902027#include <stdlib.h>
     
    19942031EOF
    19952032ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1996 { (eval echo configure:1997: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2033{ (eval echo configure:2034: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    19972034ac_err=`grep -v '^ *+' conftest.out`
    19982035if test -z "$ac_err"; then
     
    20092046  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    20102047cat > conftest.$ac_ext <<EOF
    2011 #line 2012 "configure"
     2048#line 2049 "configure"
    20122049#include "confdefs.h"
    20132050#include <string.h>
     
    20272064  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    20282065cat > conftest.$ac_ext <<EOF
    2029 #line 2030 "configure"
     2066#line 2067 "configure"
    20302067#include "confdefs.h"
    20312068#include <stdlib.h>
     
    20482085else
    20492086cat > conftest.$ac_ext <<EOF
    2050 #line 2051 "configure"
     2087#line 2088 "configure"
    20512088#include "confdefs.h"
    20522089#include <ctype.h>
     
    20592096
    20602097EOF
    2061 { (eval echo configure:2062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
     2098{ (eval echo configure:2099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
    20622099if test -s conftest && (./conftest; exit) 2>/dev/null; then
    20632100  :
     
    20872124else
    20882125  cat > conftest.$ac_ext <<EOF
    2089 #line 2090 "configure"
     2126#line 2127 "configure"
    20902127#include "confdefs.h"
    20912128#include <$ac_hdr>
    20922129EOF
    20932130ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2094 { (eval echo configure:2095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2131{ (eval echo configure:2132: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    20952132ac_err=`grep -v '^ *+' conftest.out`
    20962133if test -z "$ac_err"; then
     
    21262163else
    21272164  cat > conftest.$ac_ext <<EOF
    2128 #line 2129 "configure"
     2165#line 2166 "configure"
    21292166#include "confdefs.h"
    21302167#include <$ac_hdr>
    21312168EOF
    21322169ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2133 { (eval echo configure:2134: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2170{ (eval echo configure:2171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    21342171ac_err=`grep -v '^ *+' conftest.out`
    21352172if test -z "$ac_err"; then
     
    21612198else
    21622199  cat > conftest.$ac_ext <<EOF
    2163 #line 2164 "configure"
     2200#line 2201 "configure"
    21642201#include "confdefs.h"
    21652202
     
    22112248; return 0; }
    22122249EOF
    2213 if { (eval echo configure:2214: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2250if { (eval echo configure:2251: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    22142251  rm -rf conftest*
    22152252  ac_cv_c_const=yes
     
    22372274for ac_kw in inline __inline__ __inline; do
    22382275  cat > conftest.$ac_ext <<EOF
    2239 #line 2240 "configure"
     2276#line 2277 "configure"
    22402277#include "confdefs.h"
    22412278
     
    22452282; return 0; }
    22462283EOF
    2247 if { (eval echo configure:2248: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2284if { (eval echo configure:2285: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    22482285  rm -rf conftest*
    22492286  ac_cv_c_inline=$ac_kw; break
     
    22732310else
    22742311  cat > conftest.$ac_ext <<EOF
    2275 #line 2276 "configure"
     2312#line 2313 "configure"
    22762313#include "confdefs.h"
    22772314#include <sys/types.h>
     
    23042341else
    23052342  cat > conftest.$ac_ext <<EOF
    2306 #line 2307 "configure"
     2343#line 2344 "configure"
    23072344#include "confdefs.h"
    23082345#include <sys/types.h>
     
    23142351; return 0; }
    23152352EOF
    2316 if { (eval echo configure:2317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2353if { (eval echo configure:2354: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    23172354  rm -rf conftest*
    23182355  ac_cv_header_time=yes
     
    23382375else
    23392376  cat > conftest.$ac_ext <<EOF
    2340 #line 2341 "configure"
     2377#line 2378 "configure"
    23412378#include "confdefs.h"
    23422379#include <sys/types.h>
     
    23472384; return 0; }
    23482385EOF
    2349 if { (eval echo configure:2350: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2386if { (eval echo configure:2387: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    23502387  rm -rf conftest*
    23512388  ac_cv_struct_tm=time.h
     
    23742411else
    23752412  cat > conftest.$ac_ext <<EOF
    2376 #line 2377 "configure"
     2413#line 2414 "configure"
    23772414#include "confdefs.h"
    23782415#include <alloca.h>
     
    23822419; return 0; }
    23832420EOF
    2384 if { (eval echo configure:2385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     2421if { (eval echo configure:2422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    23852422  rm -rf conftest*
    23862423  ac_cv_header_alloca_h=yes
     
    24062443else
    24072444  cat > conftest.$ac_ext <<EOF
    2408 #line 2409 "configure"
     2445#line 2446 "configure"
    24092446#include "confdefs.h"
    24102447
     
    24302467; return 0; }
    24312468EOF
    2432 if { (eval echo configure:2433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     2469if { (eval echo configure:2470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    24332470  rm -rf conftest*
    24342471  ac_cv_func_alloca=yes
     
    24652502else
    24662503  cat > conftest.$ac_ext <<EOF
    2467 #line 2468 "configure"
     2504#line 2505 "configure"
    24682505#include "confdefs.h"
    24692506#if defined(CRAY) && ! defined(CRAY2)
     
    24942531else
    24952532  cat > conftest.$ac_ext <<EOF
    2496 #line 2497 "configure"
     2533#line 2534 "configure"
    24972534#include "confdefs.h"
    24982535/* System header to define __stub macros and hopefully few prototypes,
     
    25162553; return 0; }
    25172554EOF
    2518 if { (eval echo configure:2519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     2555if { (eval echo configure:2556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    25192556  rm -rf conftest*
    25202557  eval "ac_cv_func_$ac_func=yes"
     
    25482585else
    25492586cat > conftest.$ac_ext <<EOF
    2550 #line 2551 "configure"
     2587#line 2588 "configure"
    25512588#include "confdefs.h"
    25522589find_stack_direction ()
     
    25672604}
    25682605EOF
    2569 { (eval echo configure:2570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
     2606{ (eval echo configure:2607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
    25702607if test -s conftest && (./conftest; exit) 2>/dev/null; then
    25712608  ac_cv_c_stack_direction=1
     
    25912628    ac_pattern="Autoconf.*'x'"
    25922629  cat > conftest.$ac_ext <<EOF
    2593 #line 2594 "configure"
     2630#line 2631 "configure"
    25942631#include "confdefs.h"
    25952632#include <sgtty.h>
     
    26092646  if test $ac_cv_prog_gcc_traditional = no; then
    26102647    cat > conftest.$ac_ext <<EOF
    2611 #line 2612 "configure"
     2648#line 2649 "configure"
    26122649#include "confdefs.h"
    26132650#include <termio.h>
     
    26372674else
    26382675  cat > conftest.$ac_ext <<EOF
    2639 #line 2640 "configure"
     2676#line 2677 "configure"
    26402677#include "confdefs.h"
    26412678/* System header to define __stub macros and hopefully few prototypes,
     
    26592696; return 0; }
    26602697EOF
    2661 if { (eval echo configure:2662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     2698if { (eval echo configure:2699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    26622699  rm -rf conftest*
    26632700  eval "ac_cv_func_$ac_func=yes"
     
    26892726else
    26902727cat > conftest.$ac_ext <<EOF
    2691 #line 2692 "configure"
     2728#line 2729 "configure"
    26922729#include "confdefs.h"
    26932730
     
    27582795
    27592796EOF
    2760 { (eval echo configure:2761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
     2797{ (eval echo configure:2798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
    27612798if test -s conftest && (./conftest; exit) 2>/dev/null; then
    27622799  ac_cv_func_mmap=yes
     
    27812818else
    27822819  cat > conftest.$ac_ext <<EOF
    2783 #line 2784 "configure"
     2820#line 2821 "configure"
    27842821#include "confdefs.h"
    27852822#include <sys/types.h>
     
    27992836; return 0; }
    28002837EOF
    2801 if { (eval echo configure:2802: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2838if { (eval echo configure:2839: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    28022839  rm -rf conftest*
    28032840  ac_cv_type_signal=void
     
    28212858else
    28222859  cat > conftest.$ac_ext <<EOF
    2823 #line 2824 "configure"
     2860#line 2861 "configure"
    28242861#include "confdefs.h"
    28252862/* System header to define __stub macros and hopefully few prototypes,
     
    28432880; return 0; }
    28442881EOF
    2845 if { (eval echo configure:2846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     2882if { (eval echo configure:2883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    28462883  rm -rf conftest*
    28472884  eval "ac_cv_func_vprintf=yes"
     
    28692906else
    28702907  cat > conftest.$ac_ext <<EOF
    2871 #line 2872 "configure"
     2908#line 2909 "configure"
    28722909#include "confdefs.h"
    28732910/* System header to define __stub macros and hopefully few prototypes,
     
    28912928; return 0; }
    28922929EOF
    2893 if { (eval echo configure:2894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     2930if { (eval echo configure:2931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    28942931  rm -rf conftest*
    28952932  eval "ac_cv_func__doprnt=yes"
     
    29202957else
    29212958  cat > conftest.$ac_ext <<EOF
    2922 #line 2923 "configure"
     2959#line 2960 "configure"
    29232960#include "confdefs.h"
    29242961/* System header to define __stub macros and hopefully few prototypes,
     
    29422979; return 0; }
    29432980EOF
    2944 if { (eval echo configure:2945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     2981if { (eval echo configure:2982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    29452982  rm -rf conftest*
    29462983  eval "ac_cv_func_$ac_func=yes"
     
    29743011else
    29753012cat > conftest.$ac_ext <<EOF
    2976 #line 2977 "configure"
     3013#line 3014 "configure"
    29773014#include "confdefs.h"
    29783015 int main() { if (-2 >> 1 == -1) exit(0); else exit(1); }
    29793016EOF
    2980 { (eval echo configure:2981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
     3017{ (eval echo configure:3018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
    29813018if test -s conftest && (./conftest; exit) 2>/dev/null; then
    29823019  ac_cv_shift=yes
     
    30043041else
    30053042cat > conftest.$ac_ext <<EOF
    3006 #line 3007 "configure"
     3043#line 3044 "configure"
    30073044#include "confdefs.h"
    30083045 int main() {if (sizeof(int) == 4)  exit(0); else exit(1); }
    30093046EOF
    3010 { (eval echo configure:3011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
     3047{ (eval echo configure:3048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
    30113048if test -s conftest && (./conftest; exit) 2>/dev/null; then
    30123049  ac_cv_sizeof_int_equals_four=yes
     
    30343071else
    30353072cat > conftest.$ac_ext <<EOF
    3036 #line 3037 "configure"
     3073#line 3074 "configure"
    30373074#include "confdefs.h"
    30383075 int main() {if (sizeof(long) == sizeof(void*))  exit(0); else exit(1); }
    30393076EOF
    3040 { (eval echo configure:3041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
     3077{ (eval echo configure:3078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
    30413078if test -s conftest && (./conftest; exit) 2>/dev/null; then
    30423079  ac_cv_sizeof_long_equals_voidp=yes
     
    30633100else
    30643101cat > conftest.$ac_ext <<EOF
    3065 #line 3066 "configure"
     3102#line 3103 "configure"
    30663103#include "confdefs.h"
    30673104#include <stdio.h>
    30683105 main() { char *str=(char*)malloc(20); if (((int) sprintf(str,"123456789")) == 9) exit(0); else exit(1); }
    30693106EOF
    3070 { (eval echo configure:3071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
     3107{ (eval echo configure:3108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
    30713108if test -s conftest && (./conftest; exit) 2>/dev/null; then
    30723109  ac_cv_returns_n_of_chars=yes
     
    30963133else
    30973134cat > conftest.$ac_ext <<EOF
    3098 #line 3099 "configure"
     3135#line 3136 "configure"
    30993136#include "confdefs.h"
    31003137#include <stdio.h>
     
    31073144}
    31083145EOF
    3109 { (eval echo configure:3110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
     3146{ (eval echo configure:3147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
    31103147if test -s conftest && (./conftest; exit) 2>/dev/null; then
    31113148  ac_cv_sizeof_voidp=`cat conftestval`
     
    31353172  CFLAGS="-O3 -w -fomit-frame-pointer"
    31363173fi
    3137 
    3138 
    31393174
    31403175trap '' 1 2 15
     
    32603295s%@singulardatadir@%$singulardatadir%g
    32613296s%@CC@%$CC%g
     3297s%@CPP@%$CPP%g
    32623298s%@CXX@%$CXX%g
    32633299s%@SET_MAKE@%$SET_MAKE%g
     
    32663302s%@INSTALL_DATA@%$INSTALL_DATA%g
    32673303s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
    3268 s%@CPP@%$CPP%g
    32693304s%@NEED_LIBS@%$NEED_LIBS%g
    32703305s%@ALLOCA@%$ALLOCA%g
    32713306s%@CXXTEMPLFLAGS@%$CXXTEMPLFLAGS%g
    3272 s%@ac_configure_args@%$ac_configure_args%g
    32733307
    32743308CEOF
     
    34293463
    34303464
    3431 
     3465\
     3466 if test "$CONFIG_HEADERS"; then echo timestamp > stamp-h; fi
    34323467exit 0
    34333468EOF
  • Singular/configure.in

    r1a80b4 ra492d2  
    5252
    5353AC_PROG_CC
     54AC_PROG_CPP
    5455AC_PROG_CXX
    5556AC_SET_MAKE
     
    149150   AC_CHECK_LIB(curses,tgetent,,\
    150151   AC_CHECK_LIB(termcap,tgetent)))
    151    AC_CHECK_LIB(readline, rl_abort)
    152    if test "$ac_cv_lib_readline_rl_abort" = yes; then
     152  AC_CHECK_LIB(readline, rl_abort)
     153  if test "$ac_cv_lib_readline_rl_abort" = yes; then
    153154     AC_CHECK_HEADERS(readline/readline.h readline/history.h sys/file.h,ac_readline_ok=yes,ac_readline_ok=no; break)
    154155   fi
     
    187188if test "$with_gmp" != no; then
    188189  AC_CHECK_LIB(gmp, mpz_init)
    189   AC_CHECK_HEADERS(gmp.h)
     190  AC_CHECK_HEADER(gmp.h)
    190191  if test "$ac_cv_lib_gmp_mpz_init" = yes && \
    191192   test "$ac_cv_header_gmp_h" = yes; then
     
    209210  else
    210211    if test "$ac_cv_lib_gmp_mpz_init"=yes; then
    211       AC_CHECK_LIB(MPT, MPT_GetTree,,,-lMP)
    212     fi
    213     AC_CHECK_HEADERS(MP.h)
     212      AC_CHECK_LIB(MP, MP_OpenLink)
     213      AC_CHECK_LIB(MPT, MPT_GetTree)
     214    fi
     215    AC_CHECK_HEADERS(MP.h MPT.h)
    214216    if test "$ac_cv_lib_MPT_MPT_GetTree" = yes && \
    215      test "$ac_cv_header_MP_h"=yes; then
     217     test "$ac_cv_header_MP_h" = yes && \
     218     test "$ac_cv_lib_MP_MP_OpenLink" = yes && \
     219     test "$ac_cv_header_MPT_h" = yes; then
    216220      AC_DEFINE(HAVE_MPSR)
    217221      NEED_LIBS="-lMPT -lMP ${NEED_LIBS}"
     
    388392fi
    389393
    390 AC_SUBST(ac_configure_args)
    391 
    392 AC_OUTPUT(Makefile doc/Makefile)
     394AC_OUTPUT(Makefile doc/Makefile, \
     395 if test "$CONFIG_HEADERS"; then echo timestamp > stamp-h; fi)
  • Singular/mpsr_Get.cc

    r1a80b4 ra492d2  
    33****************************************/
    44
    5 /* $Id: mpsr_Get.cc,v 1.9 1997-04-18 11:24:58 obachman Exp $ */
     5/* $Id: mpsr_Get.cc,v 1.10 1997-05-02 22:09:27 obachman Exp $ */
    66/***************************************************************
    77 *
     
    3030#include "lists.h"
    3131#include "sing_mp.h"
    32 
    33 #include "MP_MatrixDict.h"
    34 #include "MP_PolyDict.h"
    35 #include "MP_BasicDict.h"
    36 #include "MP_ProtoDict.h"
    37 #include "MP_MpDict.h"
    3832
    3933#include <limits.h>
  • Singular/mpsr_GetPoly.cc

    r1a80b4 ra492d2  
    33****************************************/
    44
    5 /* $Id: mpsr_GetPoly.cc,v 1.5 1997-04-10 13:08:37 obachman Exp $ */
     5/* $Id: mpsr_GetPoly.cc,v 1.6 1997-05-02 22:09:27 obachman Exp $ */
    66
    77/***************************************************************
     
    3333
    3434#include "mpsr_Tok.h"
    35 #include "MP_BasicDict.h"
    36 #include "MP_PolyDict.h"
    37 #include "MP_MatrixDict.h"
    38 #include "MP_NumberDict.h"
    39 #include "MP_ProtoDict.h"
    40 
    4135
    4236#ifdef PARI_BIGINT_TEST
     
    639633  {
    640634    // char 0
    641     if (MP_COMMON_T(node->nvalue) == MP_CmtNumberMP_Rational &&
     635    if (MP_COMMON_T(node->nvalue) == MP_CmtNumberRational &&
    642636        node->dict == MP_NumberDict)
    643637    {
  • Singular/mpsr_Put.h

    r1a80b4 ra492d2  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: mpsr_Put.h,v 1.3 1997-04-10 13:08:38 obachman Exp $ */
     4/* $Id: mpsr_Put.h,v 1.4 1997-05-02 22:09:28 obachman Exp $ */
    55/***************************************************************
    66 *
     
    2626#include"tok.h"
    2727#include"ipid.h"
    28 
    29 #include"MP_BasicDict.h"
    30 #include"MP_MatrixDict.h"
    31 #include"MP_PolyDict.h"
    32 #include"MP_NumberDict.h"
    33 #include"MP_ProtoDict.h"
    34 #include"MP_MpDict.h"
    35 
    3628
    3729/***************************************************************
  • Singular/mpsr_PutPoly.cc

    r1a80b4 ra492d2  
    33****************************************/
    44
    5 /* $Id: mpsr_PutPoly.cc,v 1.5 1997-04-10 13:08:39 obachman Exp $ */
     5/* $Id: mpsr_PutPoly.cc,v 1.6 1997-05-02 22:09:29 obachman Exp $ */
    66
    77/***************************************************************
     
    374374    mp_failr(MP_PutCommonMetaTypePacket(link,
    375375                                        MP_NumberDict,
    376                                         MP_CmtNumberMP_Rational,
     376                                        MP_CmtNumberRational,
    377377                                        1));
    378378    // are always normalized (and made that way, if necessary)
  • Singular/mpsr_Tok.cc

    r1a80b4 ra492d2  
    33****************************************/
    44
    5 /* $Id: mpsr_Tok.cc,v 1.7 1997-04-08 08:43:26 obachman Exp $ */
     5/* $Id: mpsr_Tok.cc,v 1.8 1997-05-02 22:09:29 obachman Exp $ */
    66
    77/***************************************************************
     
    2626#include "mpsr.h"
    2727#include "mpsr_Tok.h"
    28 
    29 #include"MP_BasicDict.h"
    30 #include"MP_MatrixDict.h"
    31 #include"MP_PolyDict.h"
    32 #include"MP_NumberDict.h"
    3328
    3429
Note: See TracChangeset for help on using the changeset viewer.