* Jorge Arellano Cid (jcid@dillo.org):
On Sun, Jan 13, 2008 at 05:07:04PM +0100, Thomas-Martin Seck wrote:
1) detect_libiconv.diff
src/decode.c uses iconv_open but - at least on FreeBSD - libiconv is not in the default linker path, making the build abort. Add a simple test to configure.in to check for libiconv's presence and usability and a substitution for ICONV_LIBS to src/Makefile.am.
OK with the idea but the patch "as is" breaks it for Linux. Please send a new one.
Sorry, I had hoped that the autotools could deal with this somehow and since I only use FreeBSD I could only get to the "works for me" state. What does break on Linux? The intent is to check for libiconv.h in the default include path and for iconv_open in libiconv, assuming that libiconv can be located without adding -L/path/to/libiconv to LDFLAGS explicitly.