summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean McGovern <gseanmcg@gmail.com>2016-03-09 19:48:40 -0500
committerSean McGovern <gseanmcg@gmail.com>2016-03-09 19:48:40 -0500
commit5ab9950816ffcac46afec4ad327640ab28a49109 (patch)
tree273e4fc8bcdd192f4e2680820d5076fe85e887a8
parent62dba758ea64d9819d0021f1d6c9cbb9369d63b1 (diff)
downloadlibass-5ab9950816ffcac46afec4ad327640ab28a49109.tar.bz2
libass-5ab9950816ffcac46afec4ad327640ab28a49109.tar.xz
configure: add libiconv only when it is both present and required
-rw-r--r--configure.ac4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 0861d2b..0e61cdf 100644
--- a/configure.ac
+++ b/configure.ac
@@ -227,6 +227,10 @@ AM_CONDITIONAL([ENABLE_PROFILE], [test x$enable_profile = xyes])
# add packages to pkg-config for static linking
if test "$use_libiconv" = true; then
AC_DEFINE(CONFIG_ICONV, 1, [use iconv])
+ if test x$ac_cv_search_libiconv_open != x'none required' &&
+ test x$ac_cv_search_iconv_open != x'none required'; then
+ pkg_libs="${pkg_libs} -liconv"
+ fi
fi
pkg_requires="freetype2 >= 9.10.3"
pkg_requires="fribidi >= 0.19.0, ${pkg_requires}"