From 38e77edd7c3cf9a3f8895e92e46debd0467ecc68 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Fri, 18 May 2007 13:57:15 -0700 Subject: Make use of iconv() conditional on configure.ac finding it in libc or libiconv --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 3ab38fb..6f8a7d0 100644 --- a/configure.ac +++ b/configure.ac @@ -33,6 +33,9 @@ AC_PROG_INSTALL AC_CHECK_FUNCS([strlcpy]) +AC_SEARCH_LIBS([iconv], [iconv], + [AC_DEFINE(HAVE_ICONV, 1, [Define to 1 if iconv() is available.])]) + dnl Required dependencies PKG_CHECK_MODULES(XCLOCK_X11, x11) XAW_CHECK_XPRINT_SUPPORT(XAW) -- cgit v1.2.3