diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2011-07-05 18:31:33 -0700 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2011-07-05 18:31:59 -0700 |
commit | 111305c1bdc14546e515c8cf3f2975d610aafa84 (patch) | |
tree | 21c128b0163a7934456ad732e5237f2ce7098465 /wscript | |
parent | a845bf74ae065a809dbe342c19db4774ae74f57c (diff) | |
download | nodejs-111305c1bdc14546e515c8cf3f2975d610aafa84.tar.gz nodejs-111305c1bdc14546e515c8cf3f2975d610aafa84.tar.bz2 nodejs-111305c1bdc14546e515c8cf3f2975d610aafa84.zip |
Support SunOS 121. Check for ifaddrs in wscript for SunOS build.
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -351,6 +351,17 @@ def configure(conf): conf.env.append_value('CPPFLAGS', '-DHAVE_MONOTONIC_CLOCK=0') if sys.platform.startswith("sunos"): + code = """ + #include <ifaddrs.h> + int main(void) { + struct ifaddrs hello; + return 0; + } + """ + + if conf.check_cc(msg="Checking for ifaddrs on solaris", fragment=code): + conf.env.append_value('CPPFLAGS', '-DSUNOS_HAVE_IFADDRS') + if not conf.check(lib='socket', uselib_store="SOCKET"): conf.fatal("Cannot find socket library") if not conf.check(lib='nsl', uselib_store="NSL"): |