Changeset 8c28d07 in git for factory/configure


Ignore:
Timestamp:
Nov 5, 1997, 4:48:20 PM (27 years ago)
Author:
Jens Schmidt <schmidt@…>
Branches:
(u'spielwiese', '2a584933abf2a2d3082034c7586d38bb6de1a30a')
Children:
07cdd8f309308c2b275bf563eb4ba9ac82ea1fa2
Parents:
18e1f6d6bee67452a19651f1135080a8e1feda25
Message:
	* configure: configure.in changed


git-svn-id: file:///usr/local/Singular/svn/trunk@878 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • factory/configure

    r18e1f6 r8c28d07  
    561561# Do not change version here!!!
    562562#
    563 factory_version="1.3a"
     563factory_version="1.3b"
    564564factory_configuration="'$ac_configure_args' in `pwd`"
    565565
     
    996996echo "$ac_t""$CXXCPP" 1>&6
    997997
     998echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
     999if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
     1000  echo $ac_n "(cached) $ac_c" 1>&6
     1001else
     1002  rm -f conftestdata
     1003if ln -s X conftestdata 2>/dev/null
     1004then
     1005  rm -f conftestdata
     1006  ac_cv_prog_LN_S="ln -s"
     1007else
     1008  ac_cv_prog_LN_S=ln
     1009fi
     1010fi
     1011LN_S="$ac_cv_prog_LN_S"
     1012if test "$ac_cv_prog_LN_S" = "ln -s"; then
     1013  echo "$ac_t""yes" 1>&6
     1014else
     1015  echo "$ac_t""no" 1>&6
     1016fi
     1017
    9981018# Find a good install program.  We prefer a C program (faster),
    9991019# so one script is as good as another.  But avoid the broken or
     
    11371157fi
    11381158
     1159# Extract the first word of "m4", so it can be a program name with args.
     1160set dummy m4; ac_word=$2
     1161echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     1162if eval "test \"`echo '$''{'ac_cv_prog_M4'+set}'`\" = set"; then
     1163  echo $ac_n "(cached) $ac_c" 1>&6
     1164else
     1165  if test -n "$M4"; then
     1166  ac_cv_prog_M4="$M4" # Let the user override the test.
     1167else
     1168  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
     1169  for ac_dir in $PATH; do
     1170    test -z "$ac_dir" && ac_dir=.
     1171    if test -f $ac_dir/$ac_word; then
     1172      ac_cv_prog_M4="m4"
     1173      break
     1174    fi
     1175  done
     1176  IFS="$ac_save_ifs"
     1177  test -z "$ac_cv_prog_M4" && ac_cv_prog_M4="where-is-your-m4"
     1178fi
     1179fi
     1180M4="$ac_cv_prog_M4"
     1181if test -n "$M4"; then
     1182  echo "$ac_t""$M4" 1>&6
     1183else
     1184  echo "$ac_t""no" 1>&6
     1185fi
     1186
    11391187# Extract the first word of "bison", so it can be a program name with args.
    11401188set dummy bison; ac_word=$2
     
    12471295LIBS="-lgmp  $LIBS"
    12481296cat > conftest.$ac_ext <<EOF
    1249 #line 1250 "configure"
     1297#line 1298 "configure"
    12501298#include "confdefs.h"
    12511299/* Override any gcc2 internal prototype to avoid an error.  */
     
    12591307; return 0; }
    12601308EOF
    1261 if { (eval echo configure:1262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1309if { (eval echo configure:1310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    12621310  rm -rf conftest*
    12631311  eval "ac_cv_lib_$ac_lib_var=yes"
     
    12811329else
    12821330  echo "$ac_t""no" 1>&6
     1331 { echo "configure: error: libgmp.a not found.  Use option --with-gmp to specify path" 1>&2; exit 1; }
    12831332fi
    12841333
     
    12921341LIBS="-lm  $LIBS"
    12931342cat > conftest.$ac_ext <<EOF
    1294 #line 1295 "configure"
     1343#line 1344 "configure"
    12951344#include "confdefs.h"
    12961345/* Override any gcc2 internal prototype to avoid an error.  */
     
    13041353; return 0; }
    13051354EOF
    1306 if { (eval echo configure:1307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1355if { (eval echo configure:1356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    13071356  rm -rf conftest*
    13081357  eval "ac_cv_lib_$ac_lib_var=yes"
     
    13261375else
    13271376  echo "$ac_t""no" 1>&6
     1377 { echo "configure: error: libm.a not found" 1>&2; exit 1; }
     1378fi
     1379
     1380echo $ac_n "checking for -lg++""... $ac_c" 1>&6
     1381ac_lib_var=`echo g++'_'strsignal | tr './+\055' '__p_'`
     1382if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     1383  echo $ac_n "(cached) $ac_c" 1>&6
     1384else
     1385  ac_save_LIBS="$LIBS"
     1386LIBS="-lg++  $LIBS"
     1387cat > conftest.$ac_ext <<EOF
     1388#line 1389 "configure"
     1389#include "confdefs.h"
     1390/* Override any gcc2 internal prototype to avoid an error.  */
     1391/* We use char because int might match the return type of a gcc2
     1392    builtin and then its argument prototype would still apply.  */
     1393char strsignal();
     1394
     1395int main() { return 0; }
     1396int t() {
     1397strsignal()
     1398; return 0; }
     1399EOF
     1400if { (eval echo configure:1401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1401  rm -rf conftest*
     1402  eval "ac_cv_lib_$ac_lib_var=yes"
     1403else
     1404  rm -rf conftest*
     1405  eval "ac_cv_lib_$ac_lib_var=no"
     1406fi
     1407rm -f conftest*
     1408LIBS="$ac_save_LIBS"
     1409
     1410fi
     1411if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
     1412  echo "$ac_t""yes" 1>&6
     1413    ac_tr_lib=HAVE_LIB`echo g++ | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
     1414  cat >> confdefs.h <<EOF
     1415#define $ac_tr_lib 1
     1416EOF
     1417
     1418  LIBS="-lg++ $LIBS"
     1419
     1420else
     1421  echo "$ac_t""no" 1>&6
     1422 echo "configure: warning: libg++ not found.
     1423                    You will not be able to build the Factory Test Environment
     1424                    (though Factory itself should compile)" 1>&2
    13281425fi
    13291426
     
    13481445else
    13491446  cat > conftest.$ac_ext <<EOF
    1350 #line 1351 "configure"
     1447#line 1448 "configure"
    13511448#include "confdefs.h"
    13521449#include <$ac_hdr>
    13531450EOF
    13541451ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1355 { (eval echo configure:1356: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1452{ (eval echo configure:1453: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    13561453ac_err=`grep -v '^ *+' conftest.out`
    13571454if test -z "$ac_err"; then
     
    13881485else
    13891486  cat > conftest.$ac_ext <<EOF
    1390 #line 1391 "configure"
     1487#line 1488 "configure"
    13911488#include "confdefs.h"
    13921489#include <$ac_hdr>
    13931490EOF
    13941491ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1395 { (eval echo configure:1396: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1492{ (eval echo configure:1493: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    13961493ac_err=`grep -v '^ *+' conftest.out`
    13971494if test -z "$ac_err"; then
     
    14141511else
    14151512  echo "$ac_t""no" 1>&6
    1416 { echo "configure: error: standard C header files not found" 1>&2; exit 1; }
     1513{ echo "configure: error: C header files not found" 1>&2; exit 1; }
    14171514fi
    14181515done
     
    14281525else
    14291526  cat > conftest.$ac_ext <<EOF
    1430 #line 1431 "configure"
     1527#line 1528 "configure"
    14311528#include "confdefs.h"
    14321529#include <$ac_hdr>
    14331530EOF
    14341531ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1435 { (eval echo configure:1436: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1532{ (eval echo configure:1533: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    14361533ac_err=`grep -v '^ *+' conftest.out`
    14371534if test -z "$ac_err"; then
     
    14661563else
    14671564  cat > conftest.$ac_ext <<EOF
    1468 #line 1469 "configure"
     1565#line 1566 "configure"
    14691566#include "confdefs.h"
    14701567#include <$ac_hdr>
    14711568EOF
    14721569ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1473 { (eval echo configure:1474: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1570{ (eval echo configure:1571: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    14741571ac_err=`grep -v '^ *+' conftest.out`
    14751572if test -z "$ac_err"; then
     
    14931590  echo "$ac_t""no" 1>&6
    14941591{ echo "configure: error: standard C header files not found" 1>&2; exit 1; }
     1592fi
     1593done
     1594
     1595
     1596  # since the FTE will compile only with stream IO enabled we will not
     1597  # check for the necessary header files if stream IO is disabled
     1598  for ac_hdr in stdarg.h signal.h errno.h unistd.h GetOpt.h
     1599do
     1600ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
     1601echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
     1602if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
     1603  echo $ac_n "(cached) $ac_c" 1>&6
     1604else
     1605  cat > conftest.$ac_ext <<EOF
     1606#line 1607 "configure"
     1607#include "confdefs.h"
     1608#include <$ac_hdr>
     1609EOF
     1610ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
     1611{ (eval echo configure:1612: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1612ac_err=`grep -v '^ *+' conftest.out`
     1613if test -z "$ac_err"; then
     1614  rm -rf conftest*
     1615  eval "ac_cv_header_$ac_safe=yes"
     1616else
     1617  echo "$ac_err" >&5
     1618  rm -rf conftest*
     1619  eval "ac_cv_header_$ac_safe=no"
     1620fi
     1621rm -f conftest*
     1622fi
     1623if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
     1624  echo "$ac_t""yes" 1>&6
     1625    ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
     1626  cat >> confdefs.h <<EOF
     1627#define $ac_tr_hdr 1
     1628EOF
     1629 
     1630else
     1631  echo "$ac_t""no" 1>&6
     1632echo "configure: warning: C/C++ header files not found.
     1633                    You will not be able to build the Factory Test Environment
     1634                    (though Factory itself should compile)" 1>&2
    14951635fi
    14961636done
     
    15071647else
    15081648  cat > conftest.$ac_ext <<EOF
    1509 #line 1510 "configure"
     1649#line 1650 "configure"
    15101650#include "confdefs.h"
    15111651#include <$ac_hdr>
    15121652EOF
    15131653ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1514 { (eval echo configure:1515: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1654{ (eval echo configure:1655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    15151655ac_err=`grep -v '^ *+' conftest.out`
    15161656if test -z "$ac_err"; then
     
    15651705else
    15661706cat > conftest.$ac_ext <<EOF
    1567 #line 1568 "configure"
     1707#line 1708 "configure"
    15681708#include "confdefs.h"
    15691709main(){return(0);}
    15701710EOF
    1571 { (eval echo configure:1572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
     1711{ (eval echo configure:1712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
    15721712if test -s conftest && (./conftest; exit) 2>/dev/null; then
    15731713  ac_cv_c_cross=no
     
    15971737else
    15981738  cat > conftest.$ac_ext <<EOF
    1599 #line 1600 "configure"
     1739#line 1740 "configure"
    16001740#include "confdefs.h"
    16011741
     
    16471787; return 0; }
    16481788EOF
    1649 if { (eval echo configure:1650: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     1789if { (eval echo configure:1790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    16501790  rm -rf conftest*
    16511791  ac_cv_c_const=yes
     
    16731813for ac_kw in inline __inline__ __inline; do
    16741814  cat > conftest.$ac_ext <<EOF
    1675 #line 1676 "configure"
     1815#line 1816 "configure"
    16761816#include "confdefs.h"
    16771817
     
    16811821; return 0; }
    16821822EOF
    1683 if { (eval echo configure:1684: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     1823if { (eval echo configure:1824: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    16841824  rm -rf conftest*
    16851825  ac_cv_c_inline=$ac_kw; break
     
    17141854else
    17151855cat > conftest.$ac_ext <<EOF
    1716 #line 1717 "configure"
     1856#line 1857 "configure"
    17171857#include "confdefs.h"
    17181858 int main() { if (-2 >> 1 == -1) exit(0); else exit(1); }
    17191859EOF
    1720 { (eval echo configure:1721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
     1860{ (eval echo configure:1861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
    17211861if test -s conftest && (./conftest; exit) 2>/dev/null; then
    17221862  ac_cv_shift=yes
     
    18011941# ARFLAGS
    18021942test "${ARFLAGS+set}" = set || ARFLAGS=cr
     1943
     1944# M4FLAGS
     1945test "${M4FLAGS+set}" = set || M4FLAGS=
    18031946
    18041947# Singular
     
    19762119
    19772120
     2121
    19782122cat >> confdefs.h <<EOF
    19792123#define FACTORYVERSION "$factory_version"
     
    20762220ac_given_INSTALL="$INSTALL"
    20772221
    2078 trap 'rm -fr `echo "GNUmakefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
     2222trap 'rm -fr `echo "GNUmakefile ftest/GNUmakefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
    20792223EOF
    20802224cat >> $CONFIG_STATUS <<EOF
     
    21102254s%@CPP@%$CPP%g
    21112255s%@CXXCPP@%$CXXCPP%g
     2256s%@LN_S@%$LN_S%g
    21122257s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
    21132258s%@INSTALL_DATA@%$INSTALL_DATA%g
     
    21152260s%@SET_MAKE@%$SET_MAKE%g
    21162261s%@AR@%$AR%g
     2262s%@M4@%$M4%g
    21172263s%@BISON@%$BISON%g
    21182264s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
     
    21232269s%@libfactory@%$libfactory%g
    21242270s%@ARFLAGS@%$ARFLAGS%g
     2271s%@M4FLAGS@%$M4FLAGS%g
    21252272s%@MAKEHEADERFLAGS@%$MAKEHEADERFLAGS%g
    21262273s%@factorysrc@%$factorysrc%g
     
    21422289cat >> $CONFIG_STATUS <<EOF
    21432290
    2144 CONFIG_FILES=\${CONFIG_FILES-"GNUmakefile"}
     2291CONFIG_FILES=\${CONFIG_FILES-"GNUmakefile ftest/GNUmakefile"}
    21452292EOF
    21462293cat >> $CONFIG_STATUS <<\EOF
Note: See TracChangeset for help on using the changeset viewer.