AC_ARG_WITH([fplll],
[AS_HELP_STRING([--with-fplll=<location>],
[Location at which the FPLLL library was installed. If the argument is omitted, the library is assumed to be reachable
under the standard search path (/usr, /usr/local,...). Otherwise
you must give the <path> to the directory which contains the
library.])],
[if test "$withval" = no; then
FPLLL=no elif test "$withval" = yes; then
FPLLL=yes else
FPLLL=yes
FPLLL_CPPFLAGS="-I$withval/include"
FPLLL_LDFLAGS="-L$withval/lib" fi],
[AS_IF([command -v brew >/dev/null 2>&1],[
withval=$(brew --prefix)
FPLLL_CPPFLAGS="-I$withval/include"
FPLLL_LDFLAGS="-L$withval/lib"
])]
)
AC_ARG_WITH([fplll-include],
[AS_HELP_STRING([--with-fplll-include=<location>],
[Location at which the fplll include files were installed.])],
[FPLLL=yes
FPLLL_CPPFLAGS="-I$withval"]
)
AC_ARG_WITH([fplll-lib],
[AS_HELP_STRING([--with-fplll-lib=<location>],
[Location at which the fplll library files were installed.])],
[FPLLL=yes
FPLLL_LDFLAGS="-L$withval"]
)
if test "$FPLLL" != no; then
if test "$MPFR" = no; then
AC_MSG_ERROR([Cannot have FPLLL without having MPFR too.]) fi
FPLLL_LIBS="-lfplll"
AC_LANG_PUSH([C++])
CPPFLAGS="$CPPFLAGS $FPLLL_CPPFLAGS $MPFR_CPPFLAGS"
AC_CHECK_HEADER(fplll.h,[found_fplll=true],[found_fplll=false],[#include <mpfr.h>])
LDFLAGS="$LDFLAGS $FPLLL_LDFLAGS $MPFR_LDFLAGS"
LIBS="$LIBS -lfplll -lgmp" if test "$found_fplll" = true; then
AC_MSG_CHECKING([for lllReduction in -fplll (version 4.x)])
AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <fplll.h>],[ZZ_mat<mpz_t> M(3,3);lllReduction(M, 0.99, 0.51, LM_WRAPPER);])],[AC_MSG_RESULT([yes]);found_fplll=4],[AC_MSG_RESULT([no]);found_fplll=false]) fi if test "$found_fplll" = false; then
$as_unset ac_cv_header_fplll_h
AX_CXX_COMPILE_STDCXX([11],[noext],[mandatory])
AC_CHECK_HEADER(fplll.h,[found_fplll=true],[found_fplll=false],[#include <mpfr.h>])
AC_MSG_CHECKING([for lllReduction in -fplll (version 5.x)])
AC_LINK_IFELSE([AC_LANG_PROGRAM([[ #include <fplll.h>
using namespace fplll;
]],[ZZ_mat<mpz_t> M(3,3);lll_reduction(M, 0.99, 0.51, LM_WRAPPER);])],[AC_MSG_RESULT([yes]);found_fplll=5],[AC_MSG_RESULT([no]);found_fplll=false]) fi
AC_LANG_POP([C++])
if test "$found_fplll" = false; then if test "$FPLLL" = yes; then
AC_MSG_ERROR([library fplll not found. Using --with-fplll, specify its location, or "no" to disable it.]) else
FPLLL=no
found_fplll=4 fi else
FPLLL=yes fi
if test "$FPLLL" != no; then
AC_DEFINE([USE_FPLLL],1,[use FPLLL library]) fi
AC_SUBST(FPLLL_CPPFLAGS)
AC_SUBST(FPLLL_LDFLAGS)
AC_SUBST(FPLLL_LIBS)
AM_CONDITIONAL([WITH_FPLLL_IS_YES],[test x"$FPLLL" != xno])
])
¤ Dauer der Verarbeitung: 0.10 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.