-AC_INIT([Conky],[1.4.1],[brenden1@users.sourceforge.net])
+AC_INIT([Conky],[1.4.2],[brenden1@users.sourceforge.net])
-AM_INIT_AUTOMAKE(conky, 1.4.1)
+AM_INIT_AUTOMAKE(conky, 1.4.2)
AM_CONFIG_HEADER(src/config.h)
AC_PROG_LIBTOOL
PKG_PROG_PKG_CONFIG([0.17.2])
dnl ICONV
dnl
-want_iconv=yes
-AC_ARG_ENABLE(iconv,
-[ --enable-iconv enable if you want iconv support [[default=yes]]],
- [want_iconv="$enableval"])
-
-AM_CONDITIONAL(BUILD_ICONV, test x$want_iconv = xyes)
-if test x$want_iconv = xyes; then
- AM_ICONV
- if test "$am_cv_func_iconv" != yes; then
- AC_MSG_ERROR([Could not find libiconv (required for uim)])
- else
- AC_DEFINE(ICONV, 1, [Define if you want iconv support])
- fi
+AM_ICONV
+if test "$am_cv_func_iconv" != yes; then
+ AC_MSG_WARN([Could not find libiconv])
fi
#include <netdb.h>
-#ifdef ICONV
+#ifdef HAVE_ICONV
#include <iconv.h>
#endif
-#ifdef ICONV
+#ifdef HAVE_ICONV
#define CODEPAGE_LENGTH 20
long iconv_selected;
long iconv_count;
OBJ_tcp_portmon,
#endif
-#ifdef ICONV
+#ifdef HAVE_ICONV
OBJ_iconv_start,
OBJ_iconv_stop,
#endif
case OBJ_execigraph:
free(objs[i].data.s);
break;*/
-#ifdef ICONV
+#ifdef HAVE_ICONV
case OBJ_iconv_start:
free_iconv();
break;
obj->data.i2c.devtype);
END OBJ(time, 0) obj->data.s = strdup(arg ? arg : "%F %T");
END OBJ(utime, 0) obj->data.s = strdup(arg ? arg : "%F %T");
-#ifdef ICONV
+#ifdef HAVE_ICONV
END OBJ(iconv_start, 0)
if (iconv_converting) {
CRIT_ERR("You must stop your last iconv conversion before starting another");
{
unsigned int i;
-#ifdef ICONV
+#ifdef HAVE_ICONV
char buff_in[P_MAX_SIZE] = {0};
iconv_converting = 0;
#endif
}
#endif
-#ifdef ICONV
+#ifdef HAVE_ICONV
OBJ(iconv_start)
{
iconv_converting = 1;
{
unsigned int a = strlen(p);
-#ifdef ICONV
+#ifdef HAVE_ICONV
if (a > 0 && iconv_converting && iconv_selected > 0 && (iconv_cd[iconv_selected - 1] != (iconv_t)(-1))) {
int bytes;
size_t dummy1, dummy2;