Changeset 75f460 in git for m4/flint-check.m4
- Timestamp:
- Dec 16, 2014, 3:43:21 PM (9 years ago)
- Branches:
- (u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '98550b669234b32be762076c32b3be2c35188ac4')
- Children:
- fce947c9e6c3e8c6d5a622c7f6b0d724580993cc
- Parents:
- a2e4470c6e9a666de8ab7b706370c15e13092f76
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
m4/flint-check.m4
ra2e447 r75f460 20 20 AC_ARG_WITH(flint, 21 21 [ --with-flint=<path>|yes|no Use FLINT library. If argument is no, you do not have 22 the library installed on your machine (set as 23 default). If argument is yes or <empty> that means 24 the library is reachable with the standard search 25 path (/usr or /usr/local). Otherwise you give the 26 <path> to the directory which contain the library. 22 the library installed on your machine (set as 23 default). If argument is yes or <empty> that means 24 the library is reachable with the standard search 25 path (/usr or /usr/local). Otherwise you give the 26 <path> to the directory which contain the library. 27 27 ], 28 28 [if test "$withval" = yes ; then … … 46 46 AC_LANG_PUSH([C]) 47 47 48 for FLINT_HOME in ${FLINT_HOME_PATH} 49 do 48 for FLINT_HOME in ${FLINT_HOME_PATH} 49 do 50 50 ## if test -r "$FLINT_HOME/include/flint/fmpz.h"; then 51 51 … … 55 55 else 56 56 FLINT_CFLAGS="" 57 FLINT_LIBS="" 57 FLINT_LIBS="" 58 58 fi 59 59 60 60 # we suppose that mpfr and mpir to be in the same place or available by default 61 61 FLINT_LIBS="$FLINT_LIBS -lflint -lmpfr" 62 63 CFLAGS="${BACKUP_CFLAGS} ${FLINT_CFLAGS} ${GMP_CFLAGS}" 62 63 CFLAGS="${BACKUP_CFLAGS} ${FLINT_CFLAGS} ${GMP_CFLAGS}" 64 64 LIBS="${BACKUP_LIBS} ${FLINT_LIBS} ${GMP_LIBS}" 65 65 … … 70 70 AC_TRY_RUN( 71 71 [#include <flint/flint.h> 72 int main () { if ((int) version[0] < 2) return -1; else return 0; } 73 ],[ 74 flint_found="yes" 75 break 76 ],[ 77 flint_problem="$problem $FLINT_HOME" 78 unset FLINT_CFLAGS 79 unset FLINT_LIBS 72 int main () { if ((int) version[0] < 2) return -1; else return 0; } 80 73 ],[ 81 74 flint_found="yes" 82 flint_cross="yes"83 75 break 84 ]) 76 ],[ 77 flint_problem="$problem $FLINT_HOME" 78 unset FLINT_CFLAGS 79 unset FLINT_LIBS 80 ],[ 81 flint_found="yes" 82 flint_cross="yes" 83 break 84 ]) 85 85 ], 86 86 [ … … 88 88 flint_checked="$checked $FLINT_HOME" 89 89 unset FLINT_CFLAGS 90 unset FLINT_LIBS 90 unset FLINT_LIBS 91 91 ]) 92 92 #else … … 101 101 102 102 103 if test "x$flint_found" = "xyes" ; then 103 if test "x$flint_found" = "xyes" ; then 104 104 AC_SUBST(FLINT_CFLAGS) 105 105 AC_SUBST(FLINT_LIBS) … … 121 121 elif test "x$flint_found" = "xno"; then 122 122 AC_MSG_RESULT(not found) 123 ifelse([$3], , :, [$3]) 124 fi 123 ifelse([$3], , :, [$3]) 124 fi 125 125 126 126 AM_CONDITIONAL(SING_HAVE_FLINT, test "x$HAVE_FLINT" = "xyes")
Note: See TracChangeset
for help on using the changeset viewer.