[dovecot-cvs] dovecot configure.in,1.309,1.310

tss at dovecot.org tss at dovecot.org
Fri Nov 3 14:05:23 UTC 2006


Update of /var/lib/cvs/dovecot
In directory talvi:/tmp/cvs-serv23111

Modified Files:
	configure.in 
Log Message:
Added support for statvfs(), which is what the newer BSDs use.



Index: configure.in
===================================================================
RCS file: /var/lib/cvs/dovecot/configure.in,v
retrieving revision 1.309
retrieving revision 1.310
diff -u -d -r1.309 -r1.310
--- configure.in	9 Oct 2006 00:02:00 -0000	1.309
+++ configure.in	3 Nov 2006 14:05:21 -0000	1.310
@@ -1144,6 +1144,40 @@
   AC_MSG_RESULT(no)
 ])
 
+dnl * Check if statvfs() can be used to find out block device for files
+AC_MSG_CHECKING([if statvfs.f_mntfromname exists])
+AC_TRY_COMPILE([
+  #include <sys/types.h>
+  #include <sys/statvfs.h>
+], [
+  struct statvfs buf;
+  char *p = buf.f_mntfromname;
+
+  statvfs(".", &buf);
+], [
+  AC_DEFINE(HAVE_STATVFS_MNTFROMNAME,, Define if you have statvfs.f_mntfromname)
+  AC_MSG_RESULT(yes)
+], [
+  AC_MSG_RESULT(no)
+])
+
+dnl * Check if statvfs() can be used to find out block device for files
+AC_MSG_CHECKING([if statvfs.f_mntfromname exists])
+AC_TRY_COMPILE([
+  #include <sys/types.h>
+  #include <sys/statvfs.h>
+], [
+  struct statvfs buf;
+  char *p = buf.f_mntfromname;
+
+  statvfs(".", &buf);
+], [
+  AC_DEFINE(HAVE_STATVFS_MNTFROMNAME,, Define if you have statvfs.f_mntfromname)
+  AC_MSG_RESULT(yes)
+], [
+  AC_MSG_RESULT(no)
+])
+
 dnl * Check if statfs() can be used to find out block device for files
 AC_MSG_CHECKING([if statfs.f_mntfromname exists])
 AC_TRY_COMPILE([



More information about the dovecot-cvs mailing list