summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2015-01-09 20:06:44 +0000
committerDavid Robillard <d@drobilla.net>2015-01-09 20:06:44 +0000
commit362d1d663bd0d6160293b240e1ed85a1ae662ef2 (patch)
treef6c94bf52ab97b5b0295aa7ce1a79e0843b5455d /wscript
parent88103d9fc6c5ab22aab264d7bd6ad6865d5f7719 (diff)
downloadganv-362d1d663bd0d6160293b240e1ed85a1ae662ef2.tar.gz
ganv-362d1d663bd0d6160293b240e1ed85a1ae662ef2.tar.bz2
ganv-362d1d663bd0d6160293b240e1ed85a1ae662ef2.zip
Fix OSX compilation.
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5505 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'wscript')
-rw-r--r--wscript26
1 files changed, 16 insertions, 10 deletions
diff --git a/wscript b/wscript
index a089b3a..894bbee 100644
--- a/wscript
+++ b/wscript
@@ -63,7 +63,11 @@ def configure(conf):
autowaf.define(conf, 'GANV_FDGL', 1)
if not Options.options.no_nls:
- autowaf.check_header(conf, 'c', 'libintl.h', 'ENABLE_NLS', mandatory=False)
+ conf.check(function_name = 'dgettext',
+ header_name = 'libintl.h',
+ lib = 'intl',
+ define_name = 'ENABLE_NLS',
+ mandatory = False)
conf.env.LIB_GANV = ['ganv-%s' % GANV_MAJOR_VERSION]
@@ -124,15 +128,17 @@ def build(bld):
target = 'src/ganv-marshal.c')
# Library
- bld(features = 'c cshlib cxx cxxshlib',
- export_includes = ['.'],
- source = ganv_source,
- includes = ['.', './src'],
- name = 'libganv',
- target = 'ganv-%s' % GANV_MAJOR_VERSION,
- uselib = 'GTKMM AGRAPH_2_20 AGRAPH_2_30',
- vnum = GANV_VERSION,
- install_path = '${LIBDIR}')
+ lib = bld(features = 'c cshlib cxx cxxshlib',
+ export_includes = ['.'],
+ source = ganv_source,
+ includes = ['.', './src'],
+ name = 'libganv',
+ target = 'ganv-%s' % GANV_MAJOR_VERSION,
+ uselib = 'GTKMM AGRAPH_2_20 AGRAPH_2_30',
+ vnum = GANV_VERSION,
+ install_path = '${LIBDIR}')
+ if bld.is_defined('ENABLE_NLS'):
+ lib.lib = ['intl']
# Benchmark program (C++)
bld(features = 'cxx cxxprogram',