wscript
changeset 1757 530d2e974eb2
parent 1747 abbefda4216a
parent 1532 1f54822519c0
child 1759 a7793aa3ef66
--- a/wscript	Wed Sep 26 18:28:42 2007 +0100
+++ b/wscript	Thu Sep 27 12:49:17 2007 +0100
@@ -20,7 +20,7 @@
 srcdir = '.'
 blddir = 'build'
 
-def dist_hook(srcdir, blddir):
+def dist_hook():
     shutil.rmtree("doc/html", True)
     shutil.rmtree("doc/latex", True)
 
@@ -85,8 +85,7 @@
 
 
 def configure(conf):
-    if not conf.check_tool('compiler_cxx'):
-        Params.fatal("No suitable compiler found")
+    conf.check_tool('compiler_cxx')
 
     # create the second environment, set the variant and set its name
     variant_env = conf.env.copy()
@@ -96,6 +95,8 @@
     else:
         variant_name = debug_level
 
+    variant_env['INCLUDEDIR'] = os.path.join(variant_env['PREFIX'], 'include')
+
     if Params.g_options.enable_gcov:
         variant_name += '-gcov'
         variant_env.append_value('CCFLAGS', '-fprofile-arcs')