* fix configure.ac
authorcaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 2 Feb 2010 06:18:59 +0000 (06:18 +0000)
committercaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 2 Feb 2010 06:18:59 +0000 (06:18 +0000)
 * remove debug

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@45793 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

configure.ac
src/lib/eina_str.c

index 9fca9f6..98cf863 100644 (file)
@@ -397,12 +397,12 @@ else
    AC_MSG_RESULT([$iconv_libs])
 fi
 
-AM_ICONV
+if test "x${have_iconv}" = "xno" ; then
+   AC_CHECK_HEADERS([iconv.h], [have_iconv="yes"])
 
-if test "x${have_iconv}" = "xno" && test "x${am_cv_func_iconv}" = "xyes" ; then
-   iconv_cflags=${LIBICONV}
-   iconv_libs=${LTLIBICONV}
-   have_iconv="yes"
+   if test "x${have_iconv}" = "xyes" ; then
+      AC_SEARCH_LIBS([iconv], [iconv iconv_plug], [], [have_iconv="no"])
+   fi
 fi
 
 AC_SUBST(iconv_cflags)
@@ -419,9 +419,6 @@ else
    enable_pass_through="no"
 fi
 
-AC_MSG_WARN([cp : $enable_chained_pool])
-AC_MSG_WARN([pt : $enable_pass_through])
-
 EINA_CHECK_MODULE([chained-pool],   [${enable_chained_pool}], [chained pool])
 EINA_CHECK_MODULE([ememoa-fixed],   [${enable_ememoa}],       [ememoa fixed])
 EINA_CHECK_MODULE([ememoa-unknown], [${enable_ememoa}],       [ememoa unknown])
index 020357a..e3d360e 100644 (file)
@@ -32,7 +32,7 @@
 #include <string.h>
 #include <limits.h>
 
-#ifdef HAVE_ICONV
+#ifdef HAVE_ICONV_H
 # include <errno.h>
 # include <iconv.h>
 #endif
@@ -356,7 +356,7 @@ eina_str_join_len(char *dst, size_t size, char sep, const char *a, size_t a_len,
 EAPI char *
 eina_str_convert(const char *enc_from, const char *enc_to, const char *text)
 {
-#ifdef HAVE_ICONV
+#ifdef HAVE_ICONV_H
    iconv_t ic;
    char *new_txt, *inp, *outp;
    size_t inb, outb, outlen, tob, outalloc;