diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2019-05-05 14:34:25 -0400 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2019-05-05 23:05:02 -0400 |
commit | 52c489837f511771a00be91ecf1b15d390d2980c (patch) | |
tree | 741e4bdb7c0818e96bae88009665effbfccaeff1 /SConstruct | |
parent | ec94594504f4eec3a91fe5a55153dedbe8535790 (diff) | |
download | lighttpd-git-52c489837f511771a00be91ecf1b15d390d2980c.tar.gz |
[build] detect FreeBSD elftc_copyfile()
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -453,6 +453,12 @@ if 1: if autoconf.CheckType('struct sockaddr_storage', '#include <sys/socket.h>\n'): autoconf.env.Append(CPPFLAGS = [ '-DHAVE_STRUCT_SOCKADDR_STORAGE' ]) + if autoconf.CheckLibWithHeader('elftc', 'libelftc.h', 'c', 'elftc_copyfile(0, 1);'): + autoconf.env.Append( + CPPFLAGS = [ '-DHAVE_ELFTC_COPYFILE' ], + LIBS = [ 'elftc' ], + ) + if autoconf.CheckLibWithHeader('rt', 'time.h', 'c', 'clock_gettime(CLOCK_MONOTONIC, (struct timespec*)0);'): autoconf.env.Append( CPPFLAGS = [ '-DHAVE_CLOCK_GETTIME' ], |