]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Catch up with autoconf changes: 1519/head
authorChristos Zoulas <christos@zoulas.com>
Sat, 8 May 2021 20:07:51 +0000 (16:07 -0400)
committerChristos Zoulas <christos@zoulas.com>
Sat, 8 May 2021 20:07:51 +0000 (16:07 -0400)
    HAVE_STRUCT_STATFS
    HAVE_STRUCT_STATFS_F_IOSIZE

CMakeLists.txt

index 9d8fc3c46dc0adda0da6ffb6f515fb06ea2e8cff..95537fe87fe6eca6038f2d4d9588fa86a360626a 100644 (file)
@@ -1421,6 +1421,10 @@ CHECK_C_SOURCE_COMPILES(
   "#include <sys/types.h>\n#include <sys/mount.h>\nint main(void) { struct xvfsconf v; return sizeof(v);}"
   HAVE_STRUCT_XVFSCONF)
 
+CHECK_C_SOURCE_COMPILES(
+  "#include <sys/types.h>\n#include <sys/mount.h>\nint main(void) { struct statfs s; return sizeof(s);}"
+  HAVE_STRUCT_STATFS)
+
 # Make sure we have the POSIX version of readdir_r, not the
 # older 2-argument version.
 CHECK_C_SOURCE_COMPILES(
@@ -1496,9 +1500,14 @@ CHECK_STRUCT_HAS_MEMBER("struct tm" tm_gmtoff
 CHECK_STRUCT_HAS_MEMBER("struct tm" __tm_gmtoff
     "time.h" HAVE_STRUCT_TM___TM_GMTOFF)
 
+IF(HAVE_STRUCT_STATFS)
 # Check for f_namemax in struct statfs
 CHECK_STRUCT_HAS_MEMBER("struct statfs" f_namemax
     "sys/param.h;sys/mount.h" HAVE_STRUCT_STATFS_F_NAMEMAX)
+# Check for f_iosize in struct statfs
+CHECK_STRUCT_HAS_MEMBER("struct statfs" f_iosize
+    "sys/param.h;sys/mount.h" HAVE_STRUCT_STATFS_F_IOSIZE)
+ENDIF(HAVE_STRUCT_STATFS)
 
 # Check for birthtime in struct stat
 CHECK_STRUCT_HAS_MEMBER("struct stat" st_birthtime