+2001-05-23 Bruno Haible <haible@clisp.cons.org>
+
+ * iconv.m4 (AM_ICONV): Accept --with-libiconv-prefix option.
+
2001-05-17 Bruno Haible <haible@clisp.cons.org>
* gettext.m4 (AM_WITH_NLS): Fix dcgettext test. Always add $LIBICONV
-#serial AM1
+#serial AM2
dnl From Bruno Haible.
[
dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and
dnl those with the standalone portable GNU libiconv installed).
+
+ AC_ARG_WITH([libiconv-prefix],
+[ --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib], [
+ for dir in `echo "$withval" | tr : ' '`; do
+ if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
+ if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
+ done
+ ])
+
AC_CACHE_CHECK(for iconv, am_cv_func_iconv, [
am_cv_func_iconv="no, consider installing GNU libiconv"
am_cv_lib_iconv=no