diff options
author | Paul Querna <pquerna@apache.org> | 2009-03-24 00:01:59 +0000 |
---|---|---|
committer | Paul Querna <pquerna@apache.org> | 2009-03-24 00:01:59 +0000 |
commit | f6d4e345e459fd660bd5654a30367eee9ae5559a (patch) | |
tree | 453bf1933eb14bed9a8a3dcf991d1538a419a626 /build/aprenv.py | |
parent | b848a578a069915d3f9d3ed6094c9e6f8d0385a9 (diff) | |
download | apr-f6d4e345e459fd660bd5654a30367eee9ae5559a.tar.gz |
Scons:
Add detection of fork and mmap.
Add detection of accept filters.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@757607 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build/aprenv.py')
-rw-r--r-- | build/aprenv.py | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/build/aprenv.py b/build/aprenv.py index 227e16d71..956a76c83 100644 --- a/build/aprenv.py +++ b/build/aprenv.py @@ -509,7 +509,9 @@ class APREnv(Environment): 'strnicmp', 'strstr', 'memchr', - 'iovec' + 'iovec', + 'fork', + 'mmap' ] for func in check_functions: @@ -520,15 +522,14 @@ class APREnv(Environment): # Set Features # TODO: Not done yet - subst['@sharedmem@'] = 0 - subst['@threads@'] = 0 + subst['@sharedmem@'] = 1 + subst['@threads@'] = 1 subst['@sendfile@'] = 0 - subst['@mmap@'] = 0 - subst['@fork@'] = 0 + subst['@mmap@'] = subst['@have_mmap@'] + subst['@fork@'] = subst['@have_fork@'] subst['@rand@'] = 0 subst['@oc@'] = 0 subst['@aprdso@'] = 0 - subst['@acceptfilter@'] = 0 subst['@have_unicode_fs@'] = 0 subst['@have_proc_invoked@'] = 0 subst['@aprlfs@'] = 0 @@ -546,6 +547,11 @@ class APREnv(Environment): else: subst['@have_ipv6@'] = 0 + if conf.CheckDeclaration('SO_ACCEPTFILTER', '#include <sys/socket.h>'): + subst['@acceptfilter@'] = 1 + else: + subst['@acceptfilter@'] = 0 + if conf.CheckDeclaration('IPPROTO_SCTP', '#include <netinet/in.h>') and \ conf.Check_apr_sctp(): subst['@have_sctp@'] = 1 |