revert FFT_ANALYSIS=1, add check for fftw3.h if FFT_ANALYSIS==1
authorPaul Davis <paul@linuxaudiosystems.com>
Tue, 19 Dec 2006 17:00:21 +0000 (17:00 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Tue, 19 Dec 2006 17:00:21 +0000 (17:00 +0000)
git-svn-id: svn://localhost/ardour2/trunk@1232 d708f5d6-7413-0410-9779-e7cbd77b26cf

SConstruct

index 497b2b84e16b89914bb2d11f61a527bbc2e79dbd..f0c7f3fe0f87de4c473fc4da65c509d7b9d8d6d5 100644 (file)
@@ -34,7 +34,7 @@ opts.AddOptions(
     EnumOption('DIST_TARGET', 'Build target for cross compiling packagers', 'auto', allowed_values=('auto', 'i386', 'i686', 'x86_64', 'powerpc', 'tiger', 'panther', 'none' ), ignorecase=2),
     BoolOption('DMALLOC', 'Compile and link using the dmalloc library', 0),
     BoolOption('EXTRA_WARN', 'Compile with -Wextra, -ansi, and -pedantic.  Might break compilation.  For pedants', 0),
-    BoolOption('FFT_ANALYSIS', 'Include FFT analysis window', 1),
+    BoolOption('FFT_ANALYSIS', 'Include FFT analysis window', 0),
     BoolOption('FPU_OPTIMIZATION', 'Build runtime checked assembler code', 1),
     BoolOption('LIBLO', 'Compile with support for liblo library', 1),
     BoolOption('NLS', 'Set to turn on i18n support', 1),
@@ -234,7 +234,8 @@ def i18n (buildenv, sources, installenv):
 
 
 def fetch_svn_revision (path):
-    cmd = "svn info "
+    cmd = "LANG= "
+    cmd += "svn info "
     cmd += path
     cmd += " | awk '/^Revision:/ { print $2}'"
     return commands.getoutput (cmd)
@@ -463,6 +464,13 @@ libraries['samplerate'].ParseConfig('pkg-config --cflags --libs samplerate')
 if env['FFT_ANALYSIS']:
        libraries['fftw3f'] = LibraryInfo()
        libraries['fftw3f'].ParseConfig('pkg-config --cflags --libs fftw3f')
+        #
+        # Check for fftw3 header as well as the library
+        conf = Configure (libraries['fftw3f'])
+        if conf.CheckHeader ('fftw3.h') == False:
+                print "FFT Analysis cannot be compiled without the FFTW3 headers, which don't seem to be installed"
+                sys.exit (1)
+        libraries['fftw3f'] = conf.Finish();
 
 libraries['jack'] = LibraryInfo()
 libraries['jack'].ParseConfig('pkg-config --cflags --libs jack')