From 7b0e8c5c95b3edd752a283f59d7a89688eaca276 Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Fri, 12 Jun 2009 23:13:07 +0000 Subject: [PATCH] Add iconv as an extra library on platform that need to link with it For example, we need -liconv on OS X. --- base.buildinfo.in | 1 + configure.ac | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 base.buildinfo.in diff --git a/base.buildinfo.in b/base.buildinfo.in new file mode 100644 index 0000000..9fe31ef --- /dev/null +++ b/base.buildinfo.in @@ -0,0 +1 @@ +extra-libraries: @EXTRA_LIBS@ diff --git a/configure.ac b/configure.ac index b66966e..c261c05 100644 --- a/configure.ac +++ b/configure.ac @@ -102,4 +102,10 @@ FP_CHECK_CONST([O_BINARY], [#include ], [0]) # Check for idiosyncracies in some mingw impls of directory handling. FP_READDIR_EOF_ERRNO +AC_CHECK_LIB(iconv, iconv_open, + [EXTRA_LIBS="$EXTRA_LIBS iconv"]) + +AC_SUBST(EXTRA_LIBS) +AC_CONFIG_FILES([base.buildinfo]) + AC_OUTPUT -- 1.7.10.4