Permalink
Browse files

Improve error reporting in wscript

  • Loading branch information...
1 parent bd84433 commit 9b3af3300897703b38ff1379649c069eb20f471c @Sannis Sannis committed Sep 30, 2010
Showing with 5 additions and 1 deletion.
  1. +5 −1 wscript
View
@@ -12,7 +12,11 @@ def set_options(opt):
def configure(conf):
conf.check_tool("compiler_cxx")
conf.check_tool("node_addon")
- conf.check(lib='gif', libpath=['/lib', '/usr/lib', '/usr/local/lib', '/usr/local/libgif/lib', '/usr/local/giflib/lib', '/usr/local/libungif/lib', '/usr/local/pkg/giflib-4.1.6/lib'])
+
+ if not conf.check_cxx(lib='gif', libpath=['/lib', '/usr/lib', '/usr/local/lib', '/usr/local/libgif/lib', '/usr/local/giflib/lib', '/usr/local/libungif/lib', '/usr/local/pkg/giflib-4.1.6/lib']):
+ conf.fatal("Missing libgif library from giflib package")
+ if not conf.check_cxx(header_name='gif_lib.h'):
+ conf.fatal("Missing gif_lib.h header from giflib-devel package")
def build(bld):
obj = bld.new_task_gen("cxx", "shlib", "node_addon")

0 comments on commit 9b3af33

Please sign in to comment.