--- projects/libstatgrab/configure.in 2004/05/19 15:12:44 1.68 +++ projects/libstatgrab/configure.in 2004/06/20 20:32:24 1.70 @@ -2,7 +2,7 @@ # Process this file with autoconf to produce a configure script. # # configure.in for libstatgrab -# $Id: configure.in,v 1.68 2004/05/19 15:12:44 tdb Exp $ +# $Id: configure.in,v 1.70 2004/06/20 20:32:24 tdb Exp $ # # Change these to change the package name and version @@ -10,7 +10,7 @@ AC_INIT(libstatgrab, 0.10.1, bugs@i-scream.org) AM_INIT_AUTOMAKE(libstatgrab, 0.10.1) # Revision number (automatically updated) -AC_REVISION($Revision: 1.68 $) +AC_REVISION($Revision: 1.70 $) # Might work with older autoconfs... but tested on 2.57 AC_PREREQ(2.57) @@ -36,9 +36,21 @@ 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])], + [AC_DEFINE(HAVE_DK_RBYTES, , [New-style NetBSD disk stats])], [], [#include ]) + +# Disk IO read and write statistics are only present on recent OpenBSD. +AC_CHECK_MEMBER(struct diskstats.ds_rbytes, + [AC_DEFINE(HAVE_DS_RBYTES, , [New-style OpenBSD disk stats])], + [], + [#include ]) + +# NetBSD 2.0 uses statvfs rather than statfs +AC_CHECK_MEMBER(struct statvfs.f_fstypename, + [AC_DEFINE(HAVE_STATVFS, , [NetBSD 2.0 statvfs])], + [], + [#include ]) # Check for sys/loadavg.h AC_CHECK_HEADERS([sys/loadavg.h])