m4_define([conky_version_major], [1])
m4_define([conky_version_minor], [4])
m4_define([conky_version_micro], [6])
-m4_define([conky_version_tag], [svn]) dnl [] for releases
+m4_define([conky_version_tag], []) dnl [] for releases
m4_define([conky_version_revision],[r@REVISION@])
m4_define([conky_version],
[conky_version_major().conky_version_minor().conky_version_micro()ifelse(
dnl
AC_ARG_ENABLE([rss],
- AC_HELP_STRING([--enable-rss], [enable if you want rss support (requires libmrss) @<:@default=no@:>@]),
+ AC_HELP_STRING([--enable-rss], [enable if you want rss support @<:@default=no@:>@]),
[want_rss="$enableval"], [want_rss=no])
#
AM_CONDITIONAL(BUILD_RSS, test x$want_rss = xyes)
if test x$want_rss = xyes; then
WANT_GLIB=yes
- CFLAGS="$CFLAGS `xml2-config --cflags`"
- LIBS="$LIBS `xml2-config --libs`"
+ PKG_CHECK_MODULES(RSS, libxml-2.0 libcurl,,exit)
+ CFLAGS="$CFLAGS $RSS_CFLAGS"
+ LIBS="$LIBS $RSS_LIBS"
AC_DEFINE(RSS, 1, [Define if you want rss support])
fi
dnl
+dnl Wireless extensions
+dnl
+
+AC_ARG_ENABLE([wlan],
+ AC_HELP_STRING([--enable-wlan], [enable if you want wireless support @<:@default=no@:>@]),
+ [want_wlan="$enableval"], [want_wlan=no])
+#
+AM_CONDITIONAL(BUILD_RSS, test x$want_wlan = xyes)
+if test x$want_wlan = xyes; then
+ LIBS="$LIBS -liw"
+ AC_DEFINE(HAVE_IWLIB, 1, [Define if you want wireless support])
+fi
+
+dnl
dnl IMLIB2
dnl
[disable if you do not want tcp (ip4) port monitoring @<:@default=yes@:>@]),
[want_portmon="$enableval"], [want_portmon=yes])
-AM_CONDITIONAL(BUILD_PORT_MONITORS, test x$want_portmon = xyes)
-if test x$want_portmon = xyes; then
- if test "x$uname" != xLinux; then
+if test x"$want_portmon" = xyes; then
+ if test x"$uname" != xLinux; then
AC_MSG_NOTICE([port monitors not supported on $uname... disabling])
want_portmon=no
else
AC_CHECK_HEADERS([netdb.h netinet/in.h netinet/tcp.h sys/socket.h arpa/inet.h], [],
[PORT_MONITORS_MISSING=yes])
- if test "x$PORT_MONITORS_MISSING" = xyes; then
+ if test x"$PORT_MONITORS_MISSING" = xyes; then
AC_MSG_ERROR([missing a needed network header for port monitoring])
fi
WANT_GLIB=yes
AC_DEFINE(TCP_PORT_MONITOR, 1, [Define if you want tcp port monitoring support])
fi
fi
+AM_CONDITIONAL(BUILD_PORT_MONITORS, test x"$want_portmon" = xyes)
dnl
hddtemp: $want_hddtemp
portmon: $want_portmon
RSS: $want_rss
+ wireless: $want_wlan
EOF