Fossil SCM

auto.def: check for fuse.h as well as the library.

danshearer 2026-08-17 10:47 UTC autodef-build-fixes
Commit 37713fc1280bb92768ea60a229a6513a579e44b2a6478ead11422eb8f3c91ed7
1 file changed +4
+4
--- auto.def
+++ auto.def
@@ -829,10 +829,14 @@
829829
830830
# Check for the FuseFS library
831831
if {[opt-bool fusefs]} {
832832
if {[opt-bool static]} {
833833
msg-result "FuseFS support disabled due to -static"
834
+ } elseif {![cc-with {-cflags {-DFUSE_USE_VERSION=26 -D_FILE_OFFSET_BITS=64}} {
835
+ cc-check-includes fuse.h
836
+ }]} {
837
+ msg-result "FuseFS support disabled: <fuse.h> not found"
834838
} elseif {[cc-check-function-in-lib fuse_mount fuse]} {
835839
define-append EXTRA_CFLAGS -DFOSSIL_HAVE_FUSEFS
836840
define FOSSIL_HAVE_FUSEFS 1
837841
msg-result "FuseFS support enabled"
838842
}
839843
--- auto.def
+++ auto.def
@@ -829,10 +829,14 @@
829
830 # Check for the FuseFS library
831 if {[opt-bool fusefs]} {
832 if {[opt-bool static]} {
833 msg-result "FuseFS support disabled due to -static"
 
 
 
 
834 } elseif {[cc-check-function-in-lib fuse_mount fuse]} {
835 define-append EXTRA_CFLAGS -DFOSSIL_HAVE_FUSEFS
836 define FOSSIL_HAVE_FUSEFS 1
837 msg-result "FuseFS support enabled"
838 }
839
--- auto.def
+++ auto.def
@@ -829,10 +829,14 @@
829
830 # Check for the FuseFS library
831 if {[opt-bool fusefs]} {
832 if {[opt-bool static]} {
833 msg-result "FuseFS support disabled due to -static"
834 } elseif {![cc-with {-cflags {-DFUSE_USE_VERSION=26 -D_FILE_OFFSET_BITS=64}} {
835 cc-check-includes fuse.h
836 }]} {
837 msg-result "FuseFS support disabled: <fuse.h> not found"
838 } elseif {[cc-check-function-in-lib fuse_mount fuse]} {
839 define-append EXTRA_CFLAGS -DFOSSIL_HAVE_FUSEFS
840 define FOSSIL_HAVE_FUSEFS 1
841 msg-result "FuseFS support enabled"
842 }
843

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button