Changeset 75f460 in git for m4/flint-check.m4


Ignore:
Timestamp:
Dec 16, 2014, 3:43:21 PM (9 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '98550b669234b32be762076c32b3be2c35188ac4')
Children:
fce947c9e6c3e8c6d5a622c7f6b0d724580993cc
Parents:
a2e4470c6e9a666de8ab7b706370c15e13092f76
Message:
format
File:
1 edited

Legend:

Unmodified
Added
Removed
  • m4/flint-check.m4

    ra2e447 r75f460  
    2020AC_ARG_WITH(flint,
    2121[  --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.
    2727             ],
    2828             [if test "$withval" = yes ; then
     
    4646AC_LANG_PUSH([C])
    4747
    48 for FLINT_HOME in ${FLINT_HOME_PATH} 
    49  do     
     48for FLINT_HOME in ${FLINT_HOME_PATH}
     49 do
    5050## if test -r "$FLINT_HOME/include/flint/fmpz.h"; then
    5151
     
    5555        else
    5656                FLINT_CFLAGS=""
    57                 FLINT_LIBS=""           
     57                FLINT_LIBS=""
    5858        fi
    59        
     59
    6060        # we suppose that mpfr and mpir to be in the same place or available by default
    6161        FLINT_LIBS="$FLINT_LIBS -lflint -lmpfr"
    62        
    63         CFLAGS="${BACKUP_CFLAGS} ${FLINT_CFLAGS} ${GMP_CFLAGS}" 
     62
     63        CFLAGS="${BACKUP_CFLAGS} ${FLINT_CFLAGS} ${GMP_CFLAGS}"
    6464        LIBS="${BACKUP_LIBS} ${FLINT_LIBS} ${GMP_LIBS}"
    6565
     
    7070        AC_TRY_RUN(
    7171        [#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; }
    8073        ],[
    8174        flint_found="yes"
    82         flint_cross="yes"       
    8375        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        ])
    8585        ],
    8686        [
     
    8888        flint_checked="$checked $FLINT_HOME"
    8989        unset FLINT_CFLAGS
    90         unset FLINT_LIBS       
     90        unset FLINT_LIBS
    9191        ])
    9292#else
     
    101101
    102102
    103 if test "x$flint_found" = "xyes" ; then         
     103if test "x$flint_found" = "xyes" ; then
    104104        AC_SUBST(FLINT_CFLAGS)
    105105        AC_SUBST(FLINT_LIBS)
     
    121121elif test   "x$flint_found" = "xno";  then
    122122        AC_MSG_RESULT(not found)
    123         ifelse([$3], , :, [$3]) 
    124 fi     
     123        ifelse([$3], , :, [$3])
     124fi
    125125
    126126AM_CONDITIONAL(SING_HAVE_FLINT, test "x$HAVE_FLINT" = "xyes")
Note: See TracChangeset for help on using the changeset viewer.