beta-0.89.2
[luatex.git] / source / m4 / kpse-libpng-flags.m4
bloba832e96a62120901d80a4cc443c8c065dfaa09e5
1 # Public macros for the TeX Live (TL) tree.
2 # Copyright (C) 2009-2015 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 # serial 0
10 # KPSE_LIBPNG_FLAGS
11 # -----------------
12 # Provide the configure options '--with-system-libpng' (if in the TL tree).
14 # Set the make variables LIBPNG_INCLUDES and LIBPNG_LIBS to the CPPFLAGS and
15 # LIBS required for the `-lpng' library in libs/libpng/ of the TL tree.
16 AC_DEFUN([KPSE_LIBPNG_FLAGS], [dnl
17 AC_REQUIRE([KPSE_ZLIB_FLAGS])[]dnl
18 _KPSE_LIB_FLAGS([libpng], [png], [],
19                 [-IBLD/libs/libpng/include], [BLD/libs/libpng/libpng.a], [],
20                 [], [${top_builddir}/../../libs/libpng/include/png.h])[]dnl
21 ]) # KPSE_LIBPNG_FLAGS
23 # KPSE_LIBPNG_OPTIONS([WITH-SYSTEM])
24 # ----------------------------------
25 AC_DEFUN([KPSE_LIBPNG_OPTIONS], [_KPSE_LIB_OPTIONS([libpng], [$1], [pkg-config])])
27 # KPSE_LIBPNG_SYSTEM_FLAGS
28 # ------------------------
29 AC_DEFUN([KPSE_LIBPNG_SYSTEM_FLAGS], [dnl
30 _KPSE_PKG_CONFIG_FLAGS([libpng], [libpng])])