summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorjcid <devnull@localhost>2008-01-31 23:30:06 +0100
committerjcid <devnull@localhost>2008-01-31 23:30:06 +0100
commit9fb546676e562a7eca8dc3ad73230b3be3daf5e8 (patch)
tree0cbb89d10593b77b6ad5439f45c767b60ae09482 /configure.in
parent91c76683a57274cc22ebebf50b7242350f6a1ced (diff)
- another tweak to iconv detection for OpenBSD.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 36e4285c..4ca4549f 100644
--- a/configure.in
+++ b/configure.in
@@ -310,8 +310,14 @@ if test "x$iconv_ok" = "xyes"; then
fi
if test "x$iconv_ok" = "xno"; then
dnl Test for OpenBSD
+ old_libs="$LIBS"
+ LIBS="$old_libs -liconv"
AC_TRY_COMPILE([#include <iconv.h>],[iconv_open("","");],
iconv_ok=yes, iconv_ok=no)
+ LIBS="$old_libs"
+ if test "x$iconv_ok" = "xyes"; then
+ LIBICONV_LIBS="-liconv"
+ fi
fi
if test "x$iconv_ok" = "xno"; then