From d5e94d1f9aef45f92dffbcabbac0234e9dd63514 Mon Sep 17 00:00:00 2001 From: Philip Kovacs Date: Wed, 13 Jun 2007 20:06:59 +0000 Subject: [PATCH] fix non-linux configure problem for portmon git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@880 7f574dfc-610e-0410-a909-a81674777703 --- configure.ac.in | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/configure.ac.in b/configure.ac.in index 4af1df18..d8ce8b68 100644 --- a/configure.ac.in +++ b/configure.ac.in @@ -223,21 +223,21 @@ AC_ARG_ENABLE([portmon], [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