Changeset 75f460 in git for m4/gmp-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', '38dfc5131670d387a89455159ed1e071997eec94')
Children:
fce947c9e6c3e8c6d5a622c7f6b0d724580993cc
Parents:
a2e4470c6e9a666de8ab7b706370c15e13092f76
Message:
format
File:
1 edited

Legend:

Unmodified
Added
Removed
  • m4/gmp-check.m4

    ra2e447 r75f460  
    1212AC_ARG_WITH(gmp,
    1313[  --with-gmp= <path>|yes Use GMP library. This library is mandatory for Singular
    14                          compilation. If argument is yes or <empty> that means 
     14                         compilation. If argument is yes or <empty> that means
    1515                         the library is reachable with the standard search path
    1616                         "/usr" or "/usr/local" (set as default). Otherwise you
    17                          give the <path> to the directory which contain the 
     17                         give the <path> to the directory which contain the
    1818                         library.
    1919],
     
    3535AC_LANG_PUSH([C])
    3636
    37 for GMP_HOME in ${GMP_HOME_PATH} 
    38   do   
     37for GMP_HOME in ${GMP_HOME_PATH}
     38  do
    3939#       if test -r "$GMP_HOME/include/gmp.h"; then
    4040
     
    4646                        GMP_LIBS="-lgmp"
    4747                fi
    48        
     48
    4949                CFLAGS="${BACKUP_CFLAGS} ${GMP_CFLAGS}"
    5050                LIBS="${BACKUP_LIBS} ${GMP_LIBS}"
     
    8686                                ifelse([$2], , :, [$2])
    8787                                break
    88                         ],[                     
     88                        ],[
    8989                                gmp_problem="$gmp_problem $GMP_HOME"
    9090                                unset GMP_CFLAGS
    91                                 unset GMP_LIBS 
     91                                unset GMP_LIBS
    9292                        ],[
    9393                                AC_MSG_RESULT(unknown)
     
    9898                                AC_SUBST(GMP_HOME)
    9999                                HAVE_GMP=yes
    100                                 AC_DEFINE(HAVE_GMP,1,[Define if GMP is installed])     
     100                                AC_DEFINE(HAVE_GMP,1,[Define if GMP is installed])
    101101                                ifelse([$2], , :, [$2])
    102102                                break
    103                         ])     
     103                        ])
    104104                ],[
    105                 gmp_found="no" 
     105                gmp_found="no"
    106106                unset GMP_CFLAGS
    107                 unset GMP_LIBS 
     107                unset GMP_LIBS
    108108                ])
    109109
    110110#       else
    111 #               gmp_found="no" 
     111#               gmp_found="no"
    112112#       fi
    113113done
Note: See TracChangeset for help on using the changeset viewer.