- Timestamp:
- Jan 21, 2020, 11:44:38 AM (4 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 1c9d9824e066f96f9c671ab35777b37f9ba9124f
- Parents:
- 9abd6ac1002e12503f4242662b375dddf81dcff00d7b0d730875bbec6a77aef58999ff69444ca348
- Location:
- m4
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
m4/flint-check.m4
r0d7b0d rc3239f9 9 9 # Shamelessly stolen from Owen Taylor 10 10 11 dnl LB_CHECK_FLINT ([MINIMUM-VERSION [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])12 dnl13 11 dnl Test for FLINT and define 14 12 dnl FLINT_CFLAGS and FLINT_LIBS … … 26 24 <path> to the directory which contain the library. 27 25 ], 28 [if test " $withval" =yes ; then26 [if test "x$withval" = xyes ; then 29 27 FLINT_HOME_PATH="${DEFAULT_CHECKING_PATH}" 30 elif test " $withval" !=no ; then28 elif test "x$withval" != xno ; then 31 29 FLINT_HOME_PATH="$withval" 32 30 fi], 33 31 [FLINT_HOME_PATH="${DEFAULT_CHECKING_PATH}"]) 34 35 min_flint_version=ifelse([$1], ,2.3,$1)36 37 32 38 33 dnl Check for existence … … 55 50 # we suppose that mpfr and mpir to be in the same place or available by default 56 51 CFLAGS="${BACKUP_CFLAGS} ${FLINT_CFLAGS} ${GMP_CPPFLAGS}" 57 LIBS="${ BACKUP_LIBS} ${FLINT_LIBS} ${GMP_LIBS}"52 LIBS="${FLINT_LIBS} ${GMP_LIBS} ${BACKUPLIBS}" 58 53 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 ) 85 59 else 86 60 flint_found="no" … … 100 74 AC_DEFINE(HAVE_FLINT,1,[Define if FLINT is installed]) 101 75 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) 77 else 115 78 AC_MSG_RESULT(not found) 116 ifelse([$3], , :, [$3])117 79 fi 118 119 AM_CONDITIONAL(SING_HAVE_FLINT, test "x$HAVE_FLINT" = "xyes")120 80 ]) 121 81 -
m4/gfanlib-check.m4
r0d7b0d rc3239f9 25 25 BACKUP_LIBS=$LIBS 26 26 27 LIBS=" $LIBS -lcddgmp $GMP_LIBS"27 LIBS="-lcddgmp -lgmp $GMP_LIBS $LIBS" 28 28 29 29 AC_LANG_PUSH(C++) -
m4/mathic-check.m4
r0d7b0d rc3239f9 22 22 AC_CHECK_LIB(mathic, libmathicIsPresent, [], 23 23 [AC_MSG_ERROR([Cannot find libmathic, which is required for MathicGB.])]) 24 AC_CHECK_LIB(tbb, libtbbIsPresent, [], 25 []) 24 26 AC_CHECK_LIB(mathicgb, libmathicgbIsPresent, [], 25 27 [AC_MSG_ERROR([Cannot find the MathicGB library.])]) -
m4/ntl-check.m4
r0d7b0d rc3239f9 61 61 ### CFLAGS="${BACKUP_CFLAGS} ${NTL_CPPFLAGS} ${GMP_CPPFLAGS}" 62 62 CXXFLAGS="${BACKUP_CXXFLAGS} ${NTL_CPPFLAGS} ${GMP_CPPFLAGS}" 63 LIBS="${ BACKUP_LIBS} ${NTL_LIBS} ${GMP_LIBS}"63 LIBS="${NTL_LIBS} ${GMP_LIBS} ${BACKUP_LIBS}" 64 64 65 65 AC_TRY_LINK( -
m4/options.m4
r9abd6a rc3239f9 418 418 AM_CONDITIONAL([SI_BUILTIN_SYSTHREADS], [test x$bi_systhreads = xtrue]) 419 419 AM_CONDITIONAL([SI_BUILTIN_LOCTRIV], [test x$bi_loctriv = xtrue]) 420 AM_CONDITIONAL([SI_BUILTIN_MACHINELEARNING], [test x$bi_machinelearning = xtrue]) 420 421 421 422 AC_MSG_CHECKING([BUILTIN_LIBS...])
Note: See TracChangeset
for help on using the changeset viewer.