Fossil SCM
Update autosetup to automatically detect the availability of FuseFS and add it to the configuration.
Commit
be7e2398941aa2cd4f850f11a0dfb1f308b8ac2a
Parent
a2730f72768678c…
1 file changed
+9
M
auto.def
+9
| --- auto.def | ||
| +++ auto.def | ||
| @@ -11,10 +11,11 @@ | ||
| 11 | 11 | with-tcl-private-stubs=0 |
| 12 | 12 | => {Enable Tcl integration via private stubs mechanism} |
| 13 | 13 | internal-sqlite=1 => {Don't use the internal SQLite, use the system one} |
| 14 | 14 | static=0 => {Link a static executable} |
| 15 | 15 | lineedit=1 => {Disable line editing} |
| 16 | + fusefs=1 => {Disable the Fuse Filesystem} | |
| 16 | 17 | fossil-debug=0 => {Build with fossil debugging enabled} |
| 17 | 18 | json=0 => {Build with fossil JSON API enabled} |
| 18 | 19 | } |
| 19 | 20 | |
| 20 | 21 | # sqlite wants these types if possible |
| @@ -260,8 +261,16 @@ | ||
| 260 | 261 | if {![cc-check-functions getpassphrase]} { |
| 261 | 262 | # Haiku needs this |
| 262 | 263 | cc-check-function-in-lib getpass bsd |
| 263 | 264 | } |
| 264 | 265 | cc-check-function-in-lib dlopen dl |
| 266 | + | |
| 267 | +# Check for the FuseFS library | |
| 268 | +if {[opt-bool fusefs]} { | |
| 269 | + if {[cc-check-function-in-lib fuse_mount fuse]} { | |
| 270 | + define FOSSIL_HAVE_FUSEFS 1 | |
| 271 | + define-append LIBS -lfuse | |
| 272 | + } | |
| 273 | +} | |
| 265 | 274 | |
| 266 | 275 | make-template Makefile.in |
| 267 | 276 | make-config-header autoconfig.h -auto {USE_* FOSSIL_*} |
| 268 | 277 |
| --- auto.def | |
| +++ auto.def | |
| @@ -11,10 +11,11 @@ | |
| 11 | with-tcl-private-stubs=0 |
| 12 | => {Enable Tcl integration via private stubs mechanism} |
| 13 | internal-sqlite=1 => {Don't use the internal SQLite, use the system one} |
| 14 | static=0 => {Link a static executable} |
| 15 | lineedit=1 => {Disable line editing} |
| 16 | fossil-debug=0 => {Build with fossil debugging enabled} |
| 17 | json=0 => {Build with fossil JSON API enabled} |
| 18 | } |
| 19 | |
| 20 | # sqlite wants these types if possible |
| @@ -260,8 +261,16 @@ | |
| 260 | if {![cc-check-functions getpassphrase]} { |
| 261 | # Haiku needs this |
| 262 | cc-check-function-in-lib getpass bsd |
| 263 | } |
| 264 | cc-check-function-in-lib dlopen dl |
| 265 | |
| 266 | make-template Makefile.in |
| 267 | make-config-header autoconfig.h -auto {USE_* FOSSIL_*} |
| 268 |
| --- auto.def | |
| +++ auto.def | |
| @@ -11,10 +11,11 @@ | |
| 11 | with-tcl-private-stubs=0 |
| 12 | => {Enable Tcl integration via private stubs mechanism} |
| 13 | internal-sqlite=1 => {Don't use the internal SQLite, use the system one} |
| 14 | static=0 => {Link a static executable} |
| 15 | lineedit=1 => {Disable line editing} |
| 16 | fusefs=1 => {Disable the Fuse Filesystem} |
| 17 | fossil-debug=0 => {Build with fossil debugging enabled} |
| 18 | json=0 => {Build with fossil JSON API enabled} |
| 19 | } |
| 20 | |
| 21 | # sqlite wants these types if possible |
| @@ -260,8 +261,16 @@ | |
| 261 | if {![cc-check-functions getpassphrase]} { |
| 262 | # Haiku needs this |
| 263 | cc-check-function-in-lib getpass bsd |
| 264 | } |
| 265 | cc-check-function-in-lib dlopen dl |
| 266 | |
| 267 | # Check for the FuseFS library |
| 268 | if {[opt-bool fusefs]} { |
| 269 | if {[cc-check-function-in-lib fuse_mount fuse]} { |
| 270 | define FOSSIL_HAVE_FUSEFS 1 |
| 271 | define-append LIBS -lfuse |
| 272 | } |
| 273 | } |
| 274 | |
| 275 | make-template Makefile.in |
| 276 | make-config-header autoconfig.h -auto {USE_* FOSSIL_*} |
| 277 |