mirror of
https://github.com/Llewellynvdm/conky.git
synced 2025-01-27 00:58:36 +00:00
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
This commit is contained in:
parent
204886795a
commit
d5e94d1f9a
@ -223,21 +223,21 @@ AC_ARG_ENABLE([portmon],
|
|||||||
[disable if you do not want tcp (ip4) port monitoring @<:@default=yes@:>@]),
|
[disable if you do not want tcp (ip4) port monitoring @<:@default=yes@:>@]),
|
||||||
[want_portmon="$enableval"], [want_portmon=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$want_portmon = xyes; then
|
if test x"$uname" != xLinux; then
|
||||||
if test "x$uname" != xLinux; then
|
|
||||||
AC_MSG_NOTICE([port monitors not supported on $uname... disabling])
|
AC_MSG_NOTICE([port monitors not supported on $uname... disabling])
|
||||||
want_portmon=no
|
want_portmon=no
|
||||||
else
|
else
|
||||||
AC_CHECK_HEADERS([netdb.h netinet/in.h netinet/tcp.h sys/socket.h arpa/inet.h], [],
|
AC_CHECK_HEADERS([netdb.h netinet/in.h netinet/tcp.h sys/socket.h arpa/inet.h], [],
|
||||||
[PORT_MONITORS_MISSING=yes])
|
[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])
|
AC_MSG_ERROR([missing a needed network header for port monitoring])
|
||||||
fi
|
fi
|
||||||
WANT_GLIB=yes
|
WANT_GLIB=yes
|
||||||
AC_DEFINE(TCP_PORT_MONITOR, 1, [Define if you want tcp port monitoring support])
|
AC_DEFINE(TCP_PORT_MONITOR, 1, [Define if you want tcp port monitoring support])
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
AM_CONDITIONAL(BUILD_PORT_MONITORS, test x"$want_portmon" = xyes)
|
||||||
|
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
|
Loading…
x
Reference in New Issue
Block a user