diff options
author | Martin Baulig <martin@src.gnome.org> | 1998-10-26 01:06:53 +0800 |
---|---|---|
committer | Martin Baulig <martin@src.gnome.org> | 1998-10-26 01:06:53 +0800 |
commit | 7d44d543de96d173147145451250edc6713669e5 (patch) | |
tree | 65f95e58c54bbe0aa3706c402ff7f20ca7bc01f7 | |
parent | ca3be9e5c8b44e0c1d246c567e8a64730c7d3202 (diff) | |
download | gsoc2013-evolution-7d44d543de96d173147145451250edc6713669e5.tar gsoc2013-evolution-7d44d543de96d173147145451250edc6713669e5.tar.gz gsoc2013-evolution-7d44d543de96d173147145451250edc6713669e5.tar.bz2 gsoc2013-evolution-7d44d543de96d173147145451250edc6713669e5.tar.lz gsoc2013-evolution-7d44d543de96d173147145451250edc6713669e5.tar.xz gsoc2013-evolution-7d44d543de96d173147145451250edc6713669e5.tar.zst gsoc2013-evolution-7d44d543de96d173147145451250edc6713669e5.zip |
Added new feature to get PPP/ISDN support:
enum {
GLIBTOP_PPP_STATE_UNKNOWN = 0,
GLIBTOP_PPP_STATE_HANGUP,
GLIBTOP_PPP_STATE_ONLINE
};
struct _glibtop_ppp
{
u_int64_t flags,
state, /* GLIBTOP_PPP_STATE */
bytes_in, /* GLIBTOP_PPP_BYTES_IN */
bytes_out; /* GLIBTOP_PPP_BYTES_OUT */
};
Currently only implemented in the FreeBSD port with ISDN via I4B. - Martin
svn path=/trunk/; revision=456
-rw-r--r-- | macros/gnome-libgtop-sysdeps.m4 | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/macros/gnome-libgtop-sysdeps.m4 b/macros/gnome-libgtop-sysdeps.m4 index d5ffb7b971..f2ff2d9f73 100644 --- a/macros/gnome-libgtop-sysdeps.m4 +++ b/macros/gnome-libgtop-sysdeps.m4 @@ -140,6 +140,62 @@ main (void) AC_SUBST(libgtop_postinstall) AC_SUBST(libgtop_have_sysinfo) + case "$host_os" in + *bsd*) + AC_MSG_CHECKING([for I4B]) + AC_TRY_COMPILE([ +#include <sys/types.h> +#include <sys/socket.h> + +#include <net/if.h> +#include <net/if_types.h> +#include <net/netisr.h> +#include <net/route.h> + +#ifdef __FreeBSD__ +#include <net/if_sppp.h> +#else +#include <i4b/sppp/if_sppp.h> +#endif +],[ + size_t size = sizeof (struct sppp); +], have_i4b=yes, have_i4b=no) + AC_MSG_RESULT($have_i4b) + if test x$have_i4b = xyes; then + AC_DEFINE(HAVE_I4B) + AC_MSG_CHECKING([for I4B accounting]) + AC_TRY_COMPILE([ +#include <sys/types.h> +#include <sys/socket.h> + +#include <net/if.h> +#include <net/if_types.h> +#include <net/netisr.h> +#include <net/route.h> + +#ifdef __FreeBSD__ +#include <net/if_sppp.h> +#else +#include <i4b/sppp/if_sppp.h> +#endif + +#include <machine/i4b_acct.h> +],[ + size_t size = sizeof (struct i4bisppp_softc); +], have_i4b_acct=yes, have_i4b_acct=no) + AC_MSG_RESULT($have_i4b_acct) + if test x$have_i4b_acct = xyes ; then + AC_DEFINE(HAVE_I4B_ACCT) + else + AC_WARN([ +*** I4B accounting disabled - you won't get any PPP statistics. +*** Read "misc/i4b_acct.txt" in the LibGTop source directory +*** to see how to enable it.]) + fi + fi + ;; + esac + AC_MSG_CHECKING(for machine.h in libgtop sysdeps dir) AC_MSG_RESULT($libgtop_use_machine_h) |