hughperman / pure-lang

Automatically exported from code.google.com/p/pure-lang
0 stars 0 forks source link

./configure --with-libiconv-prefix is not enough to find iconv #17

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. install libiconv in /usr/local
2. ./configure --with-libiconv-prefix=/usr/local
3. gmake

What is the expected output? What do you see instead?
expected:
checking for iconv... yes
checking for iconv declaration... 
         extern size_t iconv (iconv_t cd, const char * *inbuf, size_t
*inbytesleft, char * *outbuf, size_t *outbytesleft);

see:

checking for iconv... no, consider installing GNU libiconv

What version of the product are you using? On what operating system?

r2155

Please provide any additional information below.

Original issue reported on code.google.com by neuhau...@sigpipe.cz on 30 Aug 2009 at 8:32

GoogleCodeExporter commented 8 years ago
it was just a silly typo in config/aclocal.m4, see attached patch:

Index: aclocal.m4
===================================================================
--- aclocal.m4  (revision 2155)
+++ aclocal.m4  (working copy)
@@ -25,7 +25,7 @@
       am_cv_func_iconv=yes)
     if test "$am_cv_func_iconv" != yes; then
       am_save_LIBS="$LIBS"
-      LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
+      LIBS="$LIBS $am_cv_lib_iconv_ldpath -liconv"
       AC_TRY_LINK([#include <stdlib.h>
 #include <iconv.h>],
         [iconv_t cd = iconv_open("","");

Original comment by neuhau...@sigpipe.cz on 30 Aug 2009 at 10:56

Attachments:

GoogleCodeExporter commented 8 years ago
Applied, thanks!

Original comment by aggraef@gmail.com on 30 Aug 2009 at 7:34