summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Baulig <martin@home-of-linux.org>1998-07-06 23:00:48 +0000
committerMartin Baulig <martin@src.gnome.org>1998-07-06 23:00:48 +0000
commit2aa20e2060232a1a3a060f63c04c85616ce2eeaa (patch)
tree123ba4f7654973fbdc921055888a57093c0e2e5c
parent7d8ff8f72ed5dbbe39c7b5bb1ec6525a9ecfc350 (diff)
downloadlibgtop-2aa20e2060232a1a3a060f63c04c85616ce2eeaa.tar.gz
New macros.
1998-07-06 Martin Baulig <martin@home-of-linux.org> * acconfig.h (AFS, MOUNTED_FREAD, MOUNTED_FREAD_FSTYP, MOUNTED_GETFSSTAT, MOUNTED_GETMNT, MOUNTED_GETMNTENT1, MOUNTED_GETMNTENT2, MOUNTED_GETMNTINFO, MOUNTED_LISTMNTENT, MOUNTED_VMOUNT, STAT_STATFS3_OSF1, STAT_READ_FILSYS, STAT_STATFS2_BSIZE, STAT_STATFS2_FSIZE, STAT_STATFS2_FS_DATA, STAT_STATFS4, STAT_STATVFS, STATFS_TRUNCATES_BLOCK_COUNTS): New macros. * configure.in: added GNOME_FILEUTILS_CHECKS.
-rw-r--r--acconfig.h79
-rw-r--r--configure.in2
2 files changed, 81 insertions, 0 deletions
diff --git a/acconfig.h b/acconfig.h
index 17419302..cb99bfe2 100644
--- a/acconfig.h
+++ b/acconfig.h
@@ -12,6 +12,85 @@
/* Do not remove this comments and the empty lines; they are needed */
#undef HAVE_PROGRAM_INVOCATION_SHORT_NAME
+/* Define if you have the Andrew File System. */
+#undef AFS
+
+/* Define one of the following to indicate how a program can
+ get a list of mounted filesystems. */
+
+/* Define if there is no specific function for reading the list of
+ mounted filesystems. fread will be used to read /etc/mnttab. [SVR2] */
+#undef MOUNTED_FREAD
+
+/* Define if (like SVR2) there is no specific function for reading the
+ list of mounted filesystems, and your system has these header files:
+ <sys/fstyp.h> and <sys/statfs.h>. [SVR3] */
+#undef MOUNTED_FREAD_FSTYP
+
+/* Define if there is a function named getfsstat for reading the list
+ of mounted filesystems. [DEC Alpha running OSF/1] */
+#undef MOUNTED_GETFSSTAT
+
+/* Define if there is a function named getmnt for reading the list of
+ mounted filesystems. [Ultrix] */
+#undef MOUNTED_GETMNT
+
+/* Define if there is a function named getmntent for reading the list
+ of mounted filesystems, and that function takes a single argument.
+ [4.3BSD, SunOS, HP-UX, Dynix, Irix] */
+#undef MOUNTED_GETMNTENT1
+
+/* Define if there is a function named getmntent for reading the list of
+ mounted filesystems, and that function takes two arguments. [SVR4] */
+#undef MOUNTED_GETMNTENT2
+
+/* Define if there is a function named getmntinfo for reading the list
+ of mounted filesystems. [4.4BSD] */
+#undef MOUNTED_GETMNTINFO
+
+/* Define if there is a function named listmntent that can be used to
+ list all mounted filesystems. [UNICOS] */
+#undef MOUNTED_LISTMNTENT
+
+/* Define if there is a function named mntctl that can be used to read
+ the list of mounted filesystems, and there is a system header file
+ that declares `struct vmount.' [AIX] */
+#undef MOUNTED_VMOUNT
+
+/* Define one of the following to indicate how a program can obtain
+ filesystems usage information. */
+
+/* Define if statfs takes 3 args. [DEC Alpha running OSF/1] */
+#undef STAT_STATFS3_OSF1
+
+/* Define if there is no specific function for reading filesystems usage
+ information and you have the <sys/filsys.h> header file. [SVR2] */
+#undef STAT_READ_FILSYS
+
+/* Define if statfs takes 2 args and struct statfs has a field named f_bsize.
+ [4.3BSD, SunOS 4, HP-UX, AIX PS/2] */
+#undef STAT_STATFS2_BSIZE
+
+/* Define if statfs takes 2 args and struct statfs has a field named f_fsize.
+ [4.4BSD, NetBSD] */
+#undef STAT_STATFS2_FSIZE
+
+/* Define if statfs takes 2 args and the second argument has
+ type struct fs_data. [Ultrix] */
+#undef STAT_STATFS2_FS_DATA
+
+/* Define if statfs takes 4 args. [SVR3, Dynix, Irix, Dolphin] */
+#undef STAT_STATFS4
+
+/* Define if there is a function named statvfs. [SVR4] */
+#undef STAT_STATVFS
+
+/* Define if the block counts reported by statfs may be truncated to 2GB
+ and the correct values may be stored in the f_spare array.
+ [SunOS 4.1.2, 4.1.3, and 4.1.3_U1 are reported to have this problem.
+ SunOS 4.1.1 seems not to be affected.] */
+#undef STATFS_TRUNCATES_BLOCK_COUNTS
+
/* to fix a bug in autoheader on DEC OSF1. */
#undef HAVE_PROGRAM_INVOCATION_NAME
diff --git a/configure.in b/configure.in
index ce320244..6d26d22c 100644
--- a/configure.in
+++ b/configure.in
@@ -125,6 +125,8 @@ if test "$with_xauth" = "yes"; then
fi
AC_SUBST(libs_xauth)
+dnl For diskusage stuff
+GNOME_FILEUTILS_CHECKS
CFLAGS="$CFLAGS -D_IN_LIBGTOP"