beta-0.89.2
[luatex.git] / source / m4 / kpse-mpfr-flags.m4
blob364d5fa553718efebf6b311ac02fc4423bb8033b
1 # Public macros for the TeX Live (TL) tree.
2 # Copyright (C) 2014 Peter Breitenlohner <tex-live@tug.org>
4 # This file is free software; the copyright holder
5 # gives unlimited permission to copy and/or distribute it,
6 # with or without modifications, as long as this notice is preserved.
8 # KPSE_MPFR_FLAGS
9 # ---------------
10 # Provide the configure options '--with-system-mpfr' (if in the TL tree),
11 # '--with-mpfr-includes', and '--with-mpfr-libdir'.
13 # Set the make variables MPFR_INCLUDES and MPFR_LIBS to the CPPFLAGS and
14 # LIBS required for the `-lmpfr' library in libs/mpfr/ of the TL tree.
15 AC_DEFUN([KPSE_MPFR_FLAGS], [dnl
16 AC_REQUIRE([KPSE_GMP_FLAGS])[]dnl
17 _KPSE_LIB_FLAGS([mpfr], [mpfr], [],
18                 [-IBLD/libs/mpfr/include], [BLD/libs/mpfr/libmpfr.a], [],
19                 [], [${top_builddir}/../../libs/mpfr/include/mpfr.h])[]dnl
20 ]) # KPSE_MPFR_FLAGS
22 # KPSE_MPFR_OPTIONS([WITH-SYSTEM])
23 # --------------------------------
24 AC_DEFUN([KPSE_MPFR_OPTIONS], [_KPSE_LIB_OPTIONS([mpfr], [$1])])
26 # KPSE_MPFR_SYSTEM_FLAGS
27 # ----------------------
28 AC_DEFUN([KPSE_MPFR_SYSTEM_FLAGS], [_KPSE_LIB_FLAGS_SYSTEM([mpfr], [mpfr])])