Changeset c6b4e50 in git
- Timestamp:
- Feb 20, 2020, 12:06:32 PM (4 years ago)
- Branches:
- (u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
- Children:
- 286859c2190d45687e4046b3c8bbcd22ec9fd860
- Parents:
- cce62fd4f828ad04b6f9fe5a21640b663ff10d926b44a806d602e8ec6446a900742a49e24adb1277
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
m4/flint-check.m4
rcce62fd rc6b4e50 14 14 AC_DEFUN([LB_CHECK_FLINT], 15 15 [ 16 DEFAULT_CHECKING_PATH="/ usr /usr/local /sw /opt/local"16 DEFAULT_CHECKING_PATH="/sw /opt/local" 17 17 18 18 AC_ARG_WITH(flint, … … 35 35 BACKUP_LIBS=${LIBS} 36 36 37 if test -n "$FLINT_HOME_PATH"; then 38 AC_MSG_CHECKING(for FLINT >= $min_flint_version) 37 AC_LANG_PUSH([C]) 38 39 flint_found="no" 40 dnl check for system installed libraries if FLINT_HOME_PATH is the default 41 if test "$FLINT_HOME_PATH" = "$DEFAULT_CHECKING_PATH" ; then 42 FLINT_CFLAGS="" 43 FLINT_LIBS="-lflint -lmpfr" 44 45 # we suppose that mpfr and mpir to be in the same place or available by default 46 CFLAGS="${BACKUP_CFLAGS} ${GMP_CPPFLAGS}" 47 LIBS="${FLINT_LIBS} ${GMP_LIBS} ${BACKUPLIBS}" 48 49 AC_CHECK_HEADER([flint/fmpz.h], 50 [AC_CHECK_LIB(flint,fmpz_init, 51 [flint_found="yes"], 52 [], 53 [])], 54 [], 55 []) 39 56 fi 40 57 41 AC_LANG_PUSH([C]) 58 dnl if flint was not previously found, search FLINT_HOME_PATH 59 if test "x$flint_found" = "xno" ; then 60 for FLINT_HOME in ${FLINT_HOME_PATH} 61 do 62 if test -r "$FLINT_HOME/include/flint/fmpz.h"; then 42 63 43 for FLINT_HOME in ${FLINT_HOME_PATH} 44 do 45 if test -r "$FLINT_HOME/include/flint/fmpz.h"; then 46 47 FLINT_CFLAGS="-I${FLINT_HOME}/include/" 48 FLINT_LIBS="-L${FLINT_HOME}/lib -lflint -lmpfr" 64 FLINT_CFLAGS="-I${FLINT_HOME}/include/" 65 FLINT_LIBS="-L${FLINT_HOME}/lib -lflint -lmpfr" 49 66 50 67 # we suppose that mpfr and mpir to be in the same place or available by default 51 CFLAGS="${BACKUP_CFLAGS} ${FLINT_CFLAGS} ${GMP_CPPFLAGS}"52 LIBS="${FLINT_LIBS} ${GMP_LIBS} ${BACKUPLIBS}"68 CFLAGS="${BACKUP_CFLAGS} ${FLINT_CFLAGS} ${GMP_CPPFLAGS}" 69 LIBS="${FLINT_LIBS} ${GMP_LIBS} ${BACKUPLIBS}" 53 70 54 AC_CHECK_LIB(flint,fmpz_init,55 [flint_found="yes"],56 [flint_found="mo"],57 []58 )59 else 60 flint_found="no"71 AC_CHECK_LIB(flint,fmpz_init, 72 [flint_found="yes"], 73 [], 74 [] 75 ) 76 fi 77 done 61 78 fi 62 done 79 63 80 AC_LANG_POP([C]) 64 81 … … 67 84 #unset LD_LIBRARY_PATH 68 85 86 AC_MSG_CHECKING(for FLINT) 69 87 70 88 if test "x$flint_found" = "xyes" ; then
Note: See TracChangeset
for help on using the changeset viewer.