From 7aaf51f9b4b7077367ca3d26e83d072dfc585b1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrico=20Tr=C3=B6ger?= Date: Sun, 15 Aug 2010 12:53:09 +0000 Subject: [PATCH] Check for libsocket on OpenSolaris to fix build. git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5162 ea778897-0a13-0410-b9d1-a72fbfd435f5 --- ChangeLog | 6 ++++++ wscript | 7 ++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index c4a0242b..27297cd2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2010-08-15 Enrico Tröger + + * wscript: + Check for libsocket on OpenSolaris to fix build. + + 2010-08-13 Nick Treleaven * configure.ac: diff --git a/wscript b/wscript index 45fd4199..3764c8fd 100644 --- a/wscript +++ b/wscript @@ -196,6 +196,11 @@ def configure(conf): conf.check(function_name='mkstemp', header_name='stdlib.h') conf.check(function_name='strstr', header_name='string.h', mandatory=True) + # check sunOS socket support + if Options.platform == 'sunos': + conf.check(function_name='socket', lib='socket', + header_name='sys/socket.h', uselib_store='SUNOS_SOCKET', mandatory=True) + # check for cxx after the header and function checks have been done to ensure they are # checked with cc not cxx conf.check_tool('compiler_cxx misc') @@ -385,7 +390,7 @@ def build(bld): source = geany_sources, includes = '. src/ scintilla/include/ tagmanager/include/', defines = 'G_LOG_DOMAIN="Geany"', - uselib = 'GTK GIO WIN32', + uselib = 'GTK GIO WIN32 SUNOS_SOCKET', uselib_local = 'scintilla tagmanager', add_objects = 'geany-rc' if is_win32 else None )