summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorStefan Bühler <stbuehler@web.de>2017-10-24 13:34:37 +0200
committerGlenn Strauss <gstrauss@gluelogic.com>2017-10-28 22:41:32 -0400
commit08c8749b481ce3a2e3fb3ac026dea2a3d7d84f27 (patch)
treeb10e87f8a8da6dc8898f2fce9cc4995b79812398 /SConstruct
parenta4f7845dbf081399f9f44b9a2cc29e5ff999f19e (diff)
downloadlighttpd-git-08c8749b481ce3a2e3fb3ac026dea2a3d7d84f27.tar.gz
[scons] add with_uuid option, document webdav relations
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct11
1 files changed, 6 insertions, 5 deletions
diff --git a/SConstruct b/SConstruct
index 20987e7e..c6ae4254 100644
--- a/SConstruct
+++ b/SConstruct
@@ -135,11 +135,11 @@ vars.AddVariables(
BoolVariable('with_openssl', 'enable openssl support', 'no'),
PackageVariable('with_pcre', 'enable pcre support', 'yes'),
PackageVariable('with_pgsql', 'enable pgsql support', 'no'),
- BoolVariable('with_sqlite3', 'enable sqlite3 support', 'no'),
- # with_uuid not supported
+ BoolVariable('with_sqlite3', 'enable sqlite3 support (required for webdav props)', 'no'),
+ BoolVariable('with_uuid', 'enable uuid support (required for webdav locks)', 'no'),
# with_valgrind not supported
# with_xattr not supported
- PackageVariable('with_xml', 'enable xml support', 'no'),
+ PackageVariable('with_xml', 'enable xml support (required for webdav props)', 'no'),
BoolVariable('with_zlib', 'enable deflate/gzip compression', 'no'),
BoolVariable('with_all', 'enable all with_* features', 'no'),
@@ -271,8 +271,9 @@ if 1:
if autoconf.CheckLibWithHeader('rt', 'time.h', 'c', 'clock_gettime(CLOCK_MONOTONIC, (struct timespec*)0);', autoadd = 0):
autoconf.env.Append(CPPFLAGS = [ '-DHAVE_CLOCK_GETTIME' ], LIBS = [ 'rt' ])
- if autoconf.CheckLibWithHeader('uuid', 'uuid/uuid.h', 'C', autoadd = 0):
- autoconf.env.Append(CPPFLAGS = [ '-DHAVE_UUID_UUID_H', '-DHAVE_LIBUUID' ], LIBUUID = 'uuid')
+ if env['with_uuid']:
+ if autoconf.CheckLibWithHeader('uuid', 'uuid/uuid.h', 'C', autoadd = 0):
+ autoconf.env.Append(CPPFLAGS = [ '-DHAVE_UUID_UUID_H', '-DHAVE_LIBUUID' ], LIBUUID = 'uuid')
if env['with_openssl']:
if autoconf.CheckLibWithHeader('ssl', 'openssl/ssl.h', 'C', autoadd = 0):