Changeset a04715 in git


Ignore:
Timestamp:
Aug 10, 1997, 7:11:35 PM (27 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'spielwiese', '5b153614cbc72bfa198d75b1e9e33dab2645d9fe')
Children:
b1525cd139f88d1e1009cf0f480a9bdb6b987f9e
Parents:
f0bce78e775b9a9ba0ee7be9e12371b24b3fdeec
Message:
Sun Aug 10 19:10:54 1997  Olaf Bachmann
<obachman@mathematik.uni-kl.de>

	* configure.in: incoporated sgroup


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

Legend:

Unmodified
Added
Removed
  • configure

    rf0bce7 ra04715  
    2828\
    2929     libfac               char set and modp poly factorization library"
     30ac_help="$ac_help
     31\
     32     sgroup               numerical semigroup computations"
    3033ac_help="$ac_help
    3134\
     
    692695#endif
    693696EOF
    694 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     697if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:698: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    695698  ac_cv_prog_gcc=yes
    696699else
     
    744747  # not just through cpp.
    745748  cat > conftest.$ac_ext <<EOF
    746 #line 747 "configure"
     749#line 750 "configure"
    747750#include "confdefs.h"
    748751#include <assert.h>
     
    750753EOF
    751754ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    752 { (eval echo configure:753: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     755{ (eval echo configure:756: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    753756ac_err=`grep -v '^ *+' conftest.out`
    754757if test -z "$ac_err"; then
     
    759762  CPP="${CC-cc} -E -traditional-cpp"
    760763  cat > conftest.$ac_ext <<EOF
    761 #line 762 "configure"
     764#line 765 "configure"
    762765#include "confdefs.h"
    763766#include <assert.h>
     
    765768EOF
    766769ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    767 { (eval echo configure:768: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     770{ (eval echo configure:771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    768771ac_err=`grep -v '^ *+' conftest.out`
    769772if test -z "$ac_err"; then
     
    787790echo $ac_n "checking for AIX""... $ac_c" 1>&6
    788791cat > conftest.$ac_ext <<EOF
    789 #line 790 "configure"
     792#line 793 "configure"
    790793#include "confdefs.h"
    791794#ifdef _AIX
     
    847850else
    848851  cat > conftest.$ac_ext <<EOF
    849 #line 850 "configure"
     852#line 853 "configure"
    850853#include "confdefs.h"
    851854#ifdef _AIX
     
    881884LIBS="-lm  $LIBS"
    882885cat > conftest.$ac_ext <<EOF
    883 #line 884 "configure"
     886#line 887 "configure"
    884887#include "confdefs.h"
    885888/* Override any gcc2 internal prototype to avoid an error.  */
     
    891894; return 0; }
    892895EOF
    893 if { (eval echo configure:894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     896if { (eval echo configure:897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    894897  rm -rf conftest*
    895898  eval "ac_cv_lib_$ac_lib_var=yes"
     
    923926LIBS="-lgmp  $LIBS"
    924927cat > conftest.$ac_ext <<EOF
    925 #line 926 "configure"
     928#line 929 "configure"
    926929#include "confdefs.h"
    927930/* Override any gcc2 internal prototype to avoid an error.  */
     
    933936; return 0; }
    934937EOF
    935 if { (eval echo configure:936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     938if { (eval echo configure:939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    936939  rm -rf conftest*
    937940  eval "ac_cv_lib_$ac_lib_var=yes"
     
    965968LIBS="-lsmallgmp  $LIBS"
    966969cat > conftest.$ac_ext <<EOF
    967 #line 968 "configure"
     970#line 971 "configure"
    968971#include "confdefs.h"
    969972/* Override any gcc2 internal prototype to avoid an error.  */
     
    975978; return 0; }
    976979EOF
    977 if { (eval echo configure:978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     980if { (eval echo configure:981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    978981  rm -rf conftest*
    979982  eval "ac_cv_lib_$ac_lib_var=yes"
     
    10071010LIBS="-lMP  $LIBS"
    10081011cat > conftest.$ac_ext <<EOF
    1009 #line 1010 "configure"
     1012#line 1013 "configure"
    10101013#include "confdefs.h"
    10111014/* Override any gcc2 internal prototype to avoid an error.  */
     
    10171020; return 0; }
    10181021EOF
    1019 if { (eval echo configure:1020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1022if { (eval echo configure:1023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    10201023  rm -rf conftest*
    10211024  eval "ac_cv_lib_$ac_lib_var=yes"
     
    10491052LIBS="-lMPT  $LIBS"
    10501053cat > conftest.$ac_ext <<EOF
    1051 #line 1052 "configure"
     1054#line 1055 "configure"
    10521055#include "confdefs.h"
    10531056/* Override any gcc2 internal prototype to avoid an error.  */
     
    10591062; return 0; }
    10601063EOF
    1061 if { (eval echo configure:1062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1064if { (eval echo configure:1065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    10621065  rm -rf conftest*
    10631066  eval "ac_cv_lib_$ac_lib_var=yes"
     
    10911094LIBS="-lsingcf  $LIBS"
    10921095cat > conftest.$ac_ext <<EOF
    1093 #line 1094 "configure"
     1096#line 1097 "configure"
    10941097#include "confdefs.h"
    10951098/* Override any gcc2 internal prototype to avoid an error.  */
     
    11011104; return 0; }
    11021105EOF
    1103 if { (eval echo configure:1104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1106if { (eval echo configure:1107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    11041107  rm -rf conftest*
    11051108  eval "ac_cv_lib_$ac_lib_var=yes"
     
    11331136LIBS="-lsingfac  $LIBS"
    11341137cat > conftest.$ac_ext <<EOF
    1135 #line 1136 "configure"
     1138#line 1139 "configure"
    11361139#include "confdefs.h"
    11371140/* Override any gcc2 internal prototype to avoid an error.  */
     
    11431146; return 0; }
    11441147EOF
    1145 if { (eval echo configure:1146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1148if { (eval echo configure:1149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    11461149  rm -rf conftest*
    11471150  eval "ac_cv_lib_$ac_lib_var=yes"
     
    11761179else
    11771180  cat > conftest.$ac_ext <<EOF
    1178 #line 1179 "configure"
     1181#line 1182 "configure"
    11791182#include "confdefs.h"
    11801183#include <$ac_hdr>
    11811184EOF
    11821185ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1183 { (eval echo configure:1184: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1186{ (eval echo configure:1187: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    11841187ac_err=`grep -v '^ *+' conftest.out`
    11851188if test -z "$ac_err"; then
     
    12571260if test "${enable_libfac+set}" = set; then
    12581261  enableval="$enable_libfac"
     1262  :
     1263fi
     1264
     1265# Check whether --enable-sgroup or --disable-sgroup was given.
     1266if test "${enable_sgroup+set}" = set; then
     1267  enableval="$enable_sgroup"
    12591268  :
    12601269fi
     
    14051414  enable_libfac=no
    14061415  ac_configure_args="$ac_configure_args --disable-libfac"
     1416fi
     1417
     1418echo $ac_n "checking whether to configure and build sgroup""... $ac_c" 1>&6
     1419if test "$enable_sgroup" != no; then
     1420    enable_sgroup=yes
     1421fi
     1422
     1423if test "$enable_sgroup" = yes && test -d sgroup; then
     1424  if test "$ac_will_have_gmp" = yes  || test "$ac_gmp_ok" = yes; then
     1425    if test "$enable_MP" != no || test "$ac_MP_ok" = yes; then
     1426      echo "$ac_t""yes" 1>&6
     1427      CONFIG_SUBDIRS="$CONFIG_SUBDIRS sgroup"
     1428      ac_configure_args="$ac_configure_args --enable-sgroup"
     1429    else
     1430      echo "$ac_t""no" 1>&6
     1431      echo "configure: warning: Can not build sgroup without having MP" 1>&2
     1432      enable_sgroup=no
     1433      ac_configure_args="$ac_configure_args --disable-sgroup"
     1434    fi
     1435  else
     1436    echo "$ac_t""no" 1>&6
     1437    echo "configure: warning: Can not build sgroup without having gmp" 1>&2
     1438    enable_sgroup=no
     1439    ac_configure_args="$ac_configure_args --disable-sgroup"
     1440  fi
     1441else
     1442  echo "$ac_t""no" 1>&6
     1443  if  test "$enable_sgroup" = yes && test ! -d sgroup; then
     1444    echo "configure: warning: Did not find sgroup subdirectory" 1>&2
     1445  fi
     1446  enable_sgroup=no
     1447  ac_configure_args="$ac_configure_args --disable-sgroup"
    14071448fi
    14081449
  • configure.in

    rf0bce7 ra04715  
    131131AC_ARG_ENABLE(libfac, \
    132132 [    libfac               char set and modp poly factorization library])
     133AC_ARG_ENABLE(sgroup, \
     134 [    sgroup               numerical semigroup computations])
    133135AC_ARG_ENABLE(Singular, \
    134136 [    Singular             CAS for commutative algebra])
     
    262264fi
    263265
     266AC_MSG_CHECKING(whether to configure and build sgroup)
     267if test "$enable_sgroup" != no; then
     268    enable_sgroup=yes
     269fi
     270
     271if test "$enable_sgroup" = yes && test -d sgroup; then
     272  if test "$ac_will_have_gmp" = yes  || test "$ac_gmp_ok" = yes; then
     273    if test "$enable_MP" != no || test "$ac_MP_ok" = yes; then
     274      AC_MSG_RESULT(yes)
     275      CONFIG_SUBDIRS="$CONFIG_SUBDIRS sgroup"
     276      ac_configure_args="$ac_configure_args --enable-sgroup"
     277    else
     278      AC_MSG_RESULT(no)
     279      AC_MSG_WARN(Can not build sgroup without having MP)
     280      enable_sgroup=no
     281      ac_configure_args="$ac_configure_args --disable-sgroup"
     282    fi
     283  else
     284    AC_MSG_RESULT(no)
     285    AC_MSG_WARN(Can not build sgroup without having gmp)
     286    enable_sgroup=no
     287    ac_configure_args="$ac_configure_args --disable-sgroup"
     288  fi
     289else
     290  AC_MSG_RESULT(no)
     291  if  test "$enable_sgroup" = yes && test ! -d sgroup; then
     292    AC_MSG_WARN(Did not find sgroup subdirectory)
     293  fi
     294  enable_sgroup=no
     295  ac_configure_args="$ac_configure_args --disable-sgroup"
     296fi
     297
    264298AC_MSG_CHECKING(whether to configure and build Singular)
    265299if test "$enable_Singular" != yes && test "$enable_Singular" != no; then
Note: See TracChangeset for help on using the changeset viewer.