Changeset d88aa0 in git


Ignore:
Timestamp:
Dec 11, 2019, 3:37:17 PM (4 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'd08f5f0bb3329b8ca19f23b74cb1473686415c3a')
Children:
bdc8243c2799931f514a94231892eb1bcb332d0e
Parents:
9d9c8d81baed1983130f6363b5957b5b2688f287
Message:
simplified: libpolys/configure gfanlib/confihure (-gmp,ntl)
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • gfanlib/configure.ac

    r9d9c8d rd88aa0  
    3838AC_C_INLINE
    3939
    40 # Check whether --with-gmp was given.
    41 if test "${with_gmp+set}" = set; then :
    42   if test "$with_gmp" = yes ; then
    43         GMP_HOME_PATH="${DEFAULT_CHECKING_PATH}"
    44    elif test "$with_gmp" != no ; then
    45         GMP_HOME_PATH="$with_gmp ${DEFAULT_CHECKING_PATH}"
    46     fi
    47 else
    48   GMP_HOME_PATH="${DEFAULT_CHECKING_PATH}"
    49 fi
    50 
    51 BACKUP_CFLAGS=${CFLAGS}
    52 BACKUP_LIBS=${LIBS}
    53 
    54 for GMP_HOME in ${GMP_HOME_PATH}
    55 do
    56   if test "x$GMP_HOME" != "x/usr"; then
    57     GMP_CPPFLAGS="-I${GMP_HOME}/include"
    58     GMP_LIBS="-L${GMP_HOME}/lib -Wl,-rpath -Wl,${GMP_HOME}/lib -lgmp"
    59   else
    60     GMP_CPPFLAGS=""
    61     GMP_LIBS="-lgmp"
    62   fi
    63   CFLAGS="${BACKUP_CFLAGS} ${GMP_CPPFLAGS}"
    64   LIBS="${BACKUP_LIBS} ${GMP_LIBS}"
    65 done
    66 AC_SUBST(GMP_CPPFLAGS)
    67 AC_SUBST(GMP_LIBS)
    68 
    69 AC_CHECK_LIB(gmp, __gmpz_init, , [AC_MSG_ERROR([GNU MP not found])])
    70 
    7140SING_CHECK_GFANLIB
    7241
  • libpolys/configure.ac

    r9d9c8d rd88aa0  
    5656fi
    5757
    58 BACKUP_CFLAGS=${CFLAGS}
    59 BACKUP_LIBS=${LIBS}
    60 
    61 for GMP_HOME in ${GMP_HOME_PATH}
    62 do
    63   if test "x$GMP_HOME" != "x/usr"; then
    64     GMP_CPPFLAGS="-I${GMP_HOME}/include"
    65     GMP_LIBS="-L${GMP_HOME}/lib -Wl,-rpath -Wl,${GMP_HOME}/lib -lgmp"
    66   else
    67     GMP_CPPFLAGS=""
    68     GMP_LIBS="-lgmp"
    69   fi
    70   CFLAGS="${BACKUP_CFLAGS} ${GMP_CPPFLAGS}"
    71   LIBS="${BACKUP_LIBS} ${GMP_LIBS}"
    72 done
    73 AC_SUBST(GMP_CPPFLAGS)
    74 AC_SUBST(GMP_LIBS)
    75 
    76 AC_CHECK_HEADERS([gmp.h], ,[AC_MSG_ERROR([GNU MP not found])])
    77 AC_CHECK_LIB(gmp, __gmpz_init, , [AC_MSG_ERROR([GNU MP not found])])
    78 
    79 LB_CHECK_NTL(5.0,,AC_MSG_WARN([Unable to find NTL (which is strongly recommended) on your machine: please use --with-ntl=PATH_TO_DIR_CONTAINING_LIB_AND_INCLUDE (see also ./configure --help if you do not understand what we are talking about)]))
     58dnl gmp, ntl check in factory
    8059LB_CHECK_FLINT(2.4,,AC_MSG_WARN([Unable to find FLINT (which is strongly recommended) on your machine: please use --with-flint=PATH_TO_DIR_CONTAINING_LIB_AND_INCLUDE (see also ./configure --help if you do not understand what we are talking about)]))
    8160
Note: See TracChangeset for help on using the changeset viewer.