Changeset c3239f9 in git for m4


Ignore:
Timestamp:
Jan 21, 2020, 11:44:38 AM (4 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
1c9d9824e066f96f9c671ab35777b37f9ba9124f
Parents:
9abd6ac1002e12503f4242662b375dddf81dcff00d7b0d730875bbec6a77aef58999ff69444ca348
Message:
Merge branch 'machine_learning' of https://github.com/MHeymann/Sources into MHeymann-machine_learning
Location:
m4
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • m4/flint-check.m4

    r0d7b0d rc3239f9  
    99# Shamelessly stolen from Owen Taylor
    1010
    11 dnl LB_CHECK_FLINT ([MINIMUM-VERSION [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
    12 dnl
    1311dnl Test for FLINT and define
    1412dnl FLINT_CFLAGS and FLINT_LIBS
     
    2624                            <path> to the directory which contain the library.
    2725             ],
    28              [if test "$withval" = yes ; then
     26             [if test "x$withval" = xyes ; then
    2927                        FLINT_HOME_PATH="${DEFAULT_CHECKING_PATH}"
    30               elif test "$withval" != no ; then
     28              elif test "x$withval" != xno ; then
    3129                        FLINT_HOME_PATH="$withval"
    3230             fi],
    3331             [FLINT_HOME_PATH="${DEFAULT_CHECKING_PATH}"])
    34 
    35 min_flint_version=ifelse([$1], ,2.3,$1)
    36 
    3732
    3833dnl Check for existence
     
    5550        # we suppose that mpfr and mpir to be in the same place or available by default
    5651        CFLAGS="${BACKUP_CFLAGS} ${FLINT_CFLAGS} ${GMP_CPPFLAGS}"
    57         LIBS="${BACKUP_LIBS} ${FLINT_LIBS} ${GMP_LIBS}"
     52        LIBS="${FLINT_LIBS} ${GMP_LIBS} ${BACKUPLIBS}"
    5853
    59         AC_TRY_LINK(
    60         [#include <flint/fmpz.h>],
    61         [fmpz_t a; fmpz_init (a);],
    62         [
    63         AC_TRY_RUN(
    64         [#include <flint/flint.h>
    65         int main () { if ((int) version[0] < 2) return -1; else return 0; }
    66         ],[
    67         flint_found="yes"
    68         break
    69         ],[
    70         flint_problem="$problem $FLINT_HOME"
    71         unset FLINT_CFLAGS
    72         unset FLINT_LIBS
    73         ],[
    74         flint_found="yes"
    75         flint_cross="yes"
    76         break
    77         ])
    78         ],
    79         [
    80         flint_found="no"
    81         flint_checked="$checked $FLINT_HOME"
    82         unset FLINT_CFLAGS
    83         unset FLINT_LIBS
    84         ])
     54        AC_CHECK_LIB(flint,fmpz_init,
     55        [flint_found="yes"],
     56        [flint_found="mo"],
     57        []
     58        )
    8559else
    8660        flint_found="no"
     
    10074        AC_DEFINE(HAVE_FLINT,1,[Define if FLINT is installed])
    10175        HAVE_FLINT=yes
    102         if test "x$flint_cross" != "xyes"; then
    103                 AC_MSG_RESULT(found)
    104         else
    105                 AC_MSG_RESULT(unknown)
    106                 echo "WARNING: You appear to be cross compiling, so there is no way to determine"
    107                 echo "whether your FLINT version is new enough. I am assuming it is."
    108         fi
    109         ifelse([$2], , :, [$2])
    110 elif test -n "$flint_problem"; then
    111         AC_MSG_RESULT(problem)
    112         echo "Sorry, your FLINT version is too old. Disabling."
    113         ifelse([$3], , :, [$3])
    114 elif test   "x$flint_found" = "xno";  then
     76        AC_MSG_RESULT(found)
     77else
    11578        AC_MSG_RESULT(not found)
    116         ifelse([$3], , :, [$3])
    11779fi
    118 
    119 AM_CONDITIONAL(SING_HAVE_FLINT, test "x$HAVE_FLINT" = "xyes")
    12080])
    12181
  • m4/gfanlib-check.m4

    r0d7b0d rc3239f9  
    2525 BACKUP_LIBS=$LIBS
    2626
    27  LIBS="$LIBS -lcddgmp $GMP_LIBS "
     27 LIBS="-lcddgmp -lgmp $GMP_LIBS $LIBS"
    2828
    2929 AC_LANG_PUSH(C++)
  • m4/mathic-check.m4

    r0d7b0d rc3239f9  
    2222  AC_CHECK_LIB(mathic, libmathicIsPresent, [],
    2323    [AC_MSG_ERROR([Cannot find libmathic, which is required for MathicGB.])])
     24  AC_CHECK_LIB(tbb, libtbbIsPresent, [],
     25    [])
    2426  AC_CHECK_LIB(mathicgb, libmathicgbIsPresent, [],
    2527    [AC_MSG_ERROR([Cannot find the MathicGB library.])])
  • m4/ntl-check.m4

    r0d7b0d rc3239f9  
    6161###     CFLAGS="${BACKUP_CFLAGS} ${NTL_CPPFLAGS} ${GMP_CPPFLAGS}"
    6262        CXXFLAGS="${BACKUP_CXXFLAGS} ${NTL_CPPFLAGS} ${GMP_CPPFLAGS}"
    63         LIBS="${BACKUP_LIBS} ${NTL_LIBS} ${GMP_LIBS}"
     63        LIBS="${NTL_LIBS} ${GMP_LIBS} ${BACKUP_LIBS}"
    6464
    6565        AC_TRY_LINK(
  • m4/options.m4

    r9abd6a rc3239f9  
    418418 AM_CONDITIONAL([SI_BUILTIN_SYSTHREADS], [test x$bi_systhreads = xtrue])
    419419 AM_CONDITIONAL([SI_BUILTIN_LOCTRIV], [test x$bi_loctriv = xtrue])
     420 AM_CONDITIONAL([SI_BUILTIN_MACHINELEARNING], [test x$bi_machinelearning = xtrue])
    420421
    421422 AC_MSG_CHECKING([BUILTIN_LIBS...])
Note: See TracChangeset for help on using the changeset viewer.