Fossil SCM
auto.def: check for fuse.h as well as the library.
Commit
37713fc1280bb92768ea60a229a6513a579e44b2a6478ead11422eb8f3c91ed7
Parent
f78e530b62a4337…
1 file changed
+4
M
auto.def
+4
| --- auto.def | ||
| +++ auto.def | ||
| @@ -829,10 +829,14 @@ | ||
| 829 | 829 | |
| 830 | 830 | # Check for the FuseFS library |
| 831 | 831 | if {[opt-bool fusefs]} { |
| 832 | 832 | if {[opt-bool static]} { |
| 833 | 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" | |
| 834 | 838 | } elseif {[cc-check-function-in-lib fuse_mount fuse]} { |
| 835 | 839 | define-append EXTRA_CFLAGS -DFOSSIL_HAVE_FUSEFS |
| 836 | 840 | define FOSSIL_HAVE_FUSEFS 1 |
| 837 | 841 | msg-result "FuseFS support enabled" |
| 838 | 842 | } |
| 839 | 843 |
| --- 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 |