Debian Codegraph @

m4/kpse-mpfi-flags.m4

raw
1 # $Id: kpse-mpfi-flags.m4 69664 2024-02-01 22:56:12Z karl $
2 # Public macros for the TeX Live (TL) tree.
3 # Copyright (C) 2022-2024 Luigi Scarso <[email protected]>
4 #
5 # This file is free software; the copyright holder
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # KPSE_MPFI_FLAGS
10 # ---------------
11 # Provide the configure options '--with-system-mpfi' (if in the TL tree),
12 # '--with-mpfi-includes', and '--with-mpfi-libdir'.
13 #
14 # Set the make variables MPFI_INCLUDES and MPFI_LIBS to the CPPFLAGS and
15 # LIBS required for the `-lmpfi' library in libs/mpfi/ of the TL tree.
16 AC_DEFUN([KPSE_MPFI_FLAGS], [dnl
17 AC_REQUIRE([KPSE_MPFR_FLAGS])[]dnl
18 AC_REQUIRE([KPSE_GMP_FLAGS])[]dnl
19 _KPSE_LIB_FLAGS([mpfi], [mpfi], [],
20 [-IBLD/libs/mpfi/include], [BLD/libs/mpfi/libmpfi.a], [],
21 [], [${top_builddir}/../../libs/mpfi/include/mpfi.h])[]dnl
22 ]) # KPSE_MPFI_FLAGS
23
24 # KPSE_MPFI_OPTIONS([WITH-SYSTEM])
25 # --------------------------------
26 AC_DEFUN([KPSE_MPFI_OPTIONS], [_KPSE_LIB_OPTIONS([mpfi], [$1])])
27
28 # KPSE_MPFI_SYSTEM_FLAGS
29 # ----------------------
30 AC_DEFUN([KPSE_MPFI_SYSTEM_FLAGS], [_KPSE_LIB_FLAGS_SYSTEM([mpfi], [mpfi])])