--- projects/libstatgrab/configure.in 2003/10/19 02:03:02 1.38 +++ projects/libstatgrab/configure.in 2003/10/24 13:17:08 1.42 @@ -2,15 +2,15 @@ # Process this file with autoconf to produce a configure script. # # configure.in for libstatgrab -# $Id: configure.in,v 1.38 2003/10/19 02:03:02 ats Exp $ +# $Id: configure.in,v 1.42 2003/10/24 13:17:08 tdb Exp $ # # Change these to change the package name and version -AC_INIT(libstatgrab, 0.6.1, bugs@i-scream.org) -AM_INIT_AUTOMAKE(libstatgrab, 0.6.1) +AC_INIT(libstatgrab, 0.7.1, bugs@i-scream.org) +AM_INIT_AUTOMAKE(libstatgrab, 0.7.1) # Revision number (automatically updated) -AC_REVISION($Revision: 1.38 $) +AC_REVISION($Revision: 1.42 $) # Might work with older autoconfs... but tested on 2.57 AC_PREREQ(2.57) @@ -34,6 +34,12 @@ AC_FUNC_MALLOC AC_FUNC_REALLOC AC_CHECK_FUNCS(atoll) +# Disk IO read and write statistics are only present on recent NetBSD. +AC_CHECK_MEMBER(struct disk_sysctl.dk_rbytes, + [AC_DEFINE(HAVE_DK_RBYTES, , [New-style NetBSD stats])], + [], + [#include ]) + # Default needing setgid to false AM_CONDITIONAL(SETGIDBINS, false) @@ -65,7 +71,7 @@ freebsd5.*) AM_CONDITIONAL(SETGIDBINS, true) LINKFLAGS="-lkvm -ldevstat" ;; -netbsdelf1.*) +netbsdelf*) AC_DEFINE(ALLBSD, , [Building on a BSD-derived system]) AC_DEFINE(NETBSD, , [Building on NetBSD]) AM_CONDITIONAL(SETGIDBINS, true)