diff options
author | Noam Postavsky <npostavs@gmail.com> | 2018-02-04 20:43:26 -0500 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2019-04-21 14:16:16 +0300 |
commit | bacdaa5b25f9946290d81325e8f7b94c1705c0a2 (patch) | |
tree | 71e4b65a34d0b76b067b2d5349cc3d28c47ad9a4 /configure.ac | |
parent | f90a3360d8c724d61ff89a2e788542a4ff6cb352 (diff) | |
download | emacs-bacdaa5b25f9946290d81325e8f7b94c1705c0a2.tar.gz |
Use pkg-config to find lcms2 CFLAGS and LIBS (Bug#30346)
* configure.ac: Use EMACS_CHECK_MODULES fors LCMS2 rather than
AC_SEARCH_LIBS.
* src/Makefile.in: Get LCMS2_LIBS and LCMS2_CFLAGS from configure,
instead of just LIBLCMS2.
(cherry picked from commit cb3863370cbe574810f796726faa39ba0de0a429)
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/configure.ac b/configure.ac index b712a43eea2..5ad3cda6e9d 100644 --- a/configure.ac +++ b/configure.ac @@ -3471,23 +3471,20 @@ fi AC_SUBST(LIBJPEG) HAVE_LCMS2=no -LIBLCMS2= +LCMS2_CFLAGS= +LCMS2_LIBS= if test "${with_lcms2}" != "no"; then - OLIBS=$LIBS - AC_SEARCH_LIBS([cmsCreateTransform], [lcms2], [HAVE_LCMS2=yes]) - LIBS=$OLIBS - case $ac_cv_search_cmsCreateTransform in - -*) LIBLCMS2=$ac_cv_search_cmsCreateTransform ;; - esac + EMACS_CHECK_MODULES([LCMS2], [lcms2]) fi if test "${HAVE_LCMS2}" = "yes"; then AC_DEFINE([HAVE_LCMS2], 1, [Define to 1 if you have the lcms2 library (-llcms2).]) ### mingw32 doesn't use -llcms2, since it loads the library dynamically. if test "${opsys}" = "mingw32"; then - LIBLCMS2= + LCMS2_LIBS= fi fi -AC_SUBST(LIBLCMS2) +AC_SUBST(LCMS2_CFLAGS) +AC_SUBST(LCMS2_LIBS) HAVE_ZLIB=no LIBZ= |