[Box Backup-dev] RC 3 testing: NetBSD 3.0 fails
Martin Ebourne
boxbackup-dev at fluffy.co.uk
Tue Feb 21 16:19:14 GMT 2006
This message is in MIME format.
--=_4dnjxrjboyv6
Content-Type: text/plain;
charset=ISO-8859-1;
format="flowed"
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
[resend]
On Mon, 2006-02-20 at 12:01 -0800, Per Thomsen wrote:
> When running configure on NetBSD, I get the following error:
>
> configure: error: cannot work out how to discover mount points on your
> platform
>
> I've narrowed it down to the fact that NetBSD doesn't use the 'statfs'
> struct, but rather 'statvfs'. I am not an autoconf hacker, so I don't
> know how to make that addition, but if I hack the configure script to
> use the 'statvfs' struct in its test program, the configure completes
> (of course it doesn't work beyond completing the script; I can't make
> anything).
The autoconf magic should be as below. You'll need to ./bootstrap.
You'll then need to change the code to make use of the extra defines and
do the right thing. I don't have any way of testing this, and need
sleep, so that's left as an exercise.
Cheers,
Martin.
--=_4dnjxrjboyv6
Content-Type: text/x-patch;
charset=ISO-8859-1;
name="box-statvfs-conf.patch"
Content-Disposition: inline;
filename="box-statvfs-conf.patch"
Content-Transfer-Encoding: 7bit
Index: infrastructure/m4/ax_check_mount_point.m4
===================================================================
--- infrastructure/m4/ax_check_mount_point.m4 (revision 474)
+++ infrastructure/m4/ax_check_mount_point.m4 (working copy)
@@ -7,9 +7,11 @@
dnl HAVE_MNTENT_H
dnl HAVE_SYS_MNTTAB_H
dnl HAVE_SYS_MOUNT_H
+dnl HAVE_SYS_STATVFS_H
dnl HAVE_STRUCT_MNTENT_MNT_DIR
dnl HAVE_STRUCT_MNTTAB_MNT_MOUNTP
dnl HAVE_STRUCT_STATFS_F_MNTONNAME
+dnl HAVE_STRUCT_STATVFS_F_MNTONNAME
dnl Also ACTION-IF-TRUE and ACTION-IF-FALSE are run as appropriate
dnl
dnl @category C
@@ -18,21 +20,25 @@
dnl @license AllPermissive
AC_DEFUN([AX_CHECK_MOUNT_POINT], [
- AC_CHECK_FUNCS([getmntent statfs])
- AC_CHECK_HEADERS([sys/param.h])
+ AC_CHECK_FUNCS([getmntent statfs statvfs])
+ AC_CHECK_HEADERS([sys/param.h sys/statvfs.h])
AC_CHECK_HEADERS([mntent.h sys/mnttab.h sys/mount.h],,, [[
#include <stdio.h>
#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif
]])
- # BSD
+ # OpenBSD/FreeBSD
AC_CHECK_MEMBERS([struct statfs.f_mntonname],,, [[
#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif
#include <sys/mount.h>
]])
+ # NetBSD
+ AC_CHECK_MEMBERS([struct statvfs.f_mntonname],,, [[
+ #include <sys/statvfs.h>
+ ]])
# Linux
AC_CHECK_MEMBERS([struct mntent.mnt_dir],,, [[#include <mntent.h>]])
# Solaris
@@ -41,6 +47,7 @@
#include <sys/mnttab.h>
]])
if test "x$ac_cv_member_struct_statfs_f_mntonname" = "xyes" || \
+ test "x$ac_cv_member_struct_statvfs_f_mntonname" = "xyes" || \
test "x$ac_cv_member_struct_mntent_mnt_dir" = "xyes" || \
test "x$ac_cv_member_struct_mnttab_mnt_mountp" = "xyes"
then
--=_4dnjxrjboyv6--
More information about the Boxbackup-dev
mailing list