diff options
-rw-r--r-- | infrastructure/m4/ax_check_mount_point.m4 | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/infrastructure/m4/ax_check_mount_point.m4 b/infrastructure/m4/ax_check_mount_point.m4 index 3ed3f85d..8c843379 100644 --- a/infrastructure/m4/ax_check_mount_point.m4 +++ b/infrastructure/m4/ax_check_mount_point.m4 @@ -19,10 +19,18 @@ dnl @license AllPermissive AC_DEFUN([AX_CHECK_MOUNT_POINT], [ AC_CHECK_FUNCS([getmntent statfs]) - AC_CHECK_HEADERS([mntent.h sys/mnttab.h sys/mount.h],,, [[#include <stdio.h>]]) + AC_CHECK_HEADERS([sys/param.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 AC_CHECK_MEMBERS([struct statfs.f_mntonname],,, [[ - #include <sys/param.h> + #ifdef HAVE_SYS_PARAM_H + #include <sys/param.h> + #endif #include <sys/mount.h> ]]) # Linux |