source: git/m4/mathic-check.m4 @ c65e07

spielwiese
Last change on this file since c65e07 was 416af8, checked in by Hans Schoenemann <hannes@…>, 4 years ago
configure: check for (static) libs, check for flint
  • Property mode set to 100644
File size: 1.0 KB
Line 
1AC_DEFUN([LB_CHECK_MATHICGB],
2[
3#
4 AC_ARG_WITH(mathicgb,
5   [AS_HELP_STRING(
6     [--with-mathicgb=yes|no],
7     [Use the MathicGB library. Default is no.]
8   )],
9   [],
10   [with_mathicgb="no"]
11 )
12 #
13 # MathicGB
14 dnl Checking these pre-requisites and adding them to libs is necessary
15 dnl for some reason, at least on Cygwin.
16 BACKUP_LIBS=${LIBS}
17 AS_IF( [test "x$with_mathicgb" = xyes],
18 [
19  AC_LANG_PUSH([C++])
20  AC_CHECK_LIB(memtailor, libmemtailorIsPresent, [],
21    [AC_MSG_ERROR([Cannot find libmemtailor, which is required for MathicGB.])])
22  AC_CHECK_LIB(mathic, libmathicIsPresent, [],
23    [AC_MSG_ERROR([Cannot find libmathic, which is required for MathicGB.])])
24  AC_CHECK_LIB(tbb, libtbbIsPresent, [],
25    [])
26  AC_CHECK_LIB(mathicgb, libmathicgbIsPresent, [],
27    [AC_MSG_ERROR([Cannot find the MathicGB library.])])
28  AC_CHECK_HEADER([mathicgb.h])
29  AC_LANG_POP([C++])
30  MATHIC_LIBS=${LIBS}
31  LIBS=${BACKUP_LIBS}
32  AC_SUBST(MATHIC_LIBS)
33  AC_DEFINE(HAVE_MATHICGB,1,[Define if mathicgb is to be used])
34#  AC_SUBST(HAVE_MATHICGB_VALUE, 1)
35 ])
36 #
37])
Note: See TracBrowser for help on using the repository browser.