--- projects/libstatgrab/configure.in 2003/10/19 02:03:02 1.38 +++ projects/libstatgrab/configure.in 2003/10/19 12:04:05 1.39 @@ -2,7 +2,7 @@ # 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.39 2003/10/19 12:04:05 ats Exp $ # # Change these to change the package name and version @@ -10,7 +10,7 @@ AC_INIT(libstatgrab, 0.6.1, bugs@i-scream.org) AM_INIT_AUTOMAKE(libstatgrab, 0.6.1) # Revision number (automatically updated) -AC_REVISION($Revision: 1.38 $) +AC_REVISION($Revision: 1.39 $) # Might work with older autoconfs... but tested on 2.57 AC_PREREQ(2.57) @@ -33,6 +33,12 @@ AC_C_CONST 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)