diff options
author | Noam Postavsky <npostavs@gmail.com> | 2018-02-04 20:43:26 -0500 |
---|---|---|
committer | Noam Postavsky <npostavs@gmail.com> | 2018-02-17 08:49:18 -0500 |
commit | cb3863370cbe574810f796726faa39ba0de0a429 (patch) | |
tree | 45e110fe5a067031ca4a0c5d3d586ab56ba56f02 /configure.ac | |
parent | 0f5cc9a085565c4f6d6d7e124a8b2965d8800ae5 (diff) | |
download | emacs-cb3863370cbe574810f796726faa39ba0de0a429.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.
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 cf0347a61e2..7c1f4ca8e67 100644 --- a/configure.ac +++ b/configure.ac @@ -3514,23 +3514,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= |