diff options
author | Yishen Miao <mys721tx@gmail.com> | 2022-06-13 02:47:42 -0700 |
---|---|---|
committer | Yishen Miao <mys721tx@gmail.com> | 2022-06-13 09:56:15 -0700 |
commit | 0afda601167fb1ec3166c14ead1d4ce3c34b1812 (patch) | |
tree | fd9a3f98470eb58ef3b5da8518bc2b6af2edc8fe | |
parent | 7915e7c6c76ebbf5146805279a4d387d0bd1fdd3 (diff) | |
download | libtiff-git-0afda601167fb1ec3166c14ead1d4ce3c34b1812.tar.gz |
Adding Requires.private generation
Adds Requires.private generation so that pkg-config can correctly find
the dependencies of libtiff.
-rw-r--r-- | configure.ac | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 278cfcb8..9a039228 100644 --- a/configure.ac +++ b/configure.ac @@ -470,6 +470,7 @@ if test "$HAVE_ZLIB" = "yes" ; then AC_DEFINE(ZIP_SUPPORT,1,[Support Deflate compression]) LIBS="-lz $LIBS" tiff_libs_private="-lz ${tiff_libs_private}" + tiff_requires_private="zlib ${tiff_requires_private}" if test "$HAVE_RPATH" = "yes" -a "x$with_zlib_lib_dir" != "x" ; then LIBDIR="-R $with_zlib_lib_dir $LIBDIR" @@ -527,6 +528,7 @@ if test "$HAVE_LIBDEFLATE" = "yes" ; then AC_DEFINE(LIBDEFLATE_SUPPORT,1,[Support libdeflate enhanced compression]) LIBS="-ldeflate $LIBS" tiff_libs_private="-ldeflate ${tiff_libs_private}" + tiff_requires_private="libdeflate ${tiff_requires_private}" if test "$HAVE_RPATH" = "yes" -a "x$with_libdeflate_lib_dir" != "x" ; then LIBDIR="-R $with_libdeflate_lib_dir $LIBDIR" @@ -596,6 +598,7 @@ if test "$HAVE_JPEG" = "yes" ; then AC_DEFINE(JPEG_SUPPORT,1,[Support JPEG compression (requires IJG JPEG library)]) LIBS="-ljpeg $LIBS" tiff_libs_private="-ljpeg ${tiff_libs_private}" + tiff_requires_private="libjpeg ${tiff_requires_private}" if test "$HAVE_RPATH" = "yes" -a "x$with_jpeg_lib_dir" != "x" ; then LIBDIR="-R $with_jpeg_lib_dir $LIBDIR" @@ -791,6 +794,7 @@ if test "$HAVE_LZMA" = "yes" ; then AC_DEFINE(LZMA_SUPPORT,1,[Support LZMA2 compression]) LIBS="-llzma $LIBS" tiff_libs_private="-llzma ${tiff_libs_private}" + tiff_requires_private="liblzma ${tiff_requires_private}" if test "$HAVE_RPATH" = "yes" -a "x$with_lzma_lib_dir" != "x" ; then LIBDIR="-R $with_lzma_lib_dir $LIBDIR" @@ -845,6 +849,7 @@ if test "$HAVE_ZSTD" = "yes" ; then AC_DEFINE(ZSTD_SUPPORT,1,[Support zstd compression]) LIBS="-lzstd $LIBS" tiff_libs_private="-lzstd ${tiff_libs_private}" + tiff_requires_private="libzstd ${tiff_requires_private}" if test "$HAVE_RPATH" = "yes" -a "x$with_zstd_lib_dir" != "x" ; then LIBDIR="-R $with_zstd_lib_dir $LIBDIR" @@ -899,6 +904,7 @@ if test "$HAVE_WEBP" = "yes" ; then AC_DEFINE(WEBP_SUPPORT,1,[Support webp compression]) LIBS="-lwebp $LIBS" tiff_libs_private="-lwebp ${tiff_libs_private}" + tiff_requires_private="libwebp ${tiff_requires_private}" if test "$HAVE_RPATH" = "yes" -a "x$with_webp_lib_dir" != "x" ; then LIBDIR="-R $with_webp_lib_dir $LIBDIR" |