summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct15
1 files changed, 14 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index 84d6fadadc..ac049cf405 100644
--- a/SConstruct
+++ b/SConstruct
@@ -38,7 +38,6 @@ opts.AddOptions(
BoolOption('BUILD_SSE_OPTIMIZATIONS', 'Use our hand-written x86/SSE optimizations when possible (off by default)', 0)
)
-
#----------------------------------------------------------------------
# a handy helper that provides a way to merge compile/link information
# from multiple different "environments"
@@ -519,6 +518,20 @@ else:
config_prefix = '$DESTDIR' + final_config_prefix
+
+# SCons should really do this for us
+
+conf = Configure (env)
+
+have_cxx = conf.TryAction (Action (env['CXX'] + ' --version'));
+if have_cxx[0] != 1:
+ print "This system has no functional C++ compiler. You cannot build Ardour from source without one."
+ exit (1);
+else:
+ print "Congratulations, you have a functioning C++ compiler."
+
+env = conf.Finish()
+
#
# Compiler flags and other system-dependent stuff
#