shithub: aubio

Download patch

ref: 62b8ab2e4dbd8ba50153c1c70fb46446cf42d281
parent: e665063ce141832ef16386214d55db26f60cdbde
author: Paul Brossier <[email protected]>
date: Sun Oct 25 16:40:08 EDT 2009

configure.ac, wscript: default to no complex

--- a/configure.ac
+++ b/configure.ac
@@ -129,7 +129,7 @@
 AC_ARG_ENABLE(complex,
   AC_HELP_STRING([--enable-complex],[compile with complex.h [[default=auto]]]),
   [with_complex=$enableval],
-  with_complex="yes")
+  with_complex="no")
 if test "$with_complex" = "yes"; then
   AC_CHECK_HEADERS(complex.h,,AC_MSG_WARN([Ouch! missing complex.h header]))
 fi
--- a/wscript
+++ b/wscript
@@ -20,8 +20,8 @@
       help='compile aubio in double precision mode')
   opt.add_option('--disable-fftw3f', action='store_true', default=False,
       help='compile with fftw3 instead of fftw3f')
-  opt.add_option('--disable-complex', action='store_true', default=False,
-      help='compile without C99 complex')
+  opt.add_option('--enable-complex', action='store_true', default=False,
+      help='compile with C99 complex')
   opt.add_option('--disable-jack', action='store_true', default=False,
       help='compile without jack support')
   opt.add_option('--disable-lash', action='store_true', default=False,
@@ -56,7 +56,7 @@
   conf.check(header_name='limits.h')
 
   # optionally use complex.h
-  if (Options.options.disable_complex == False):
+  if (Options.options.enable_complex == True):
     conf.check(header_name='complex.h')
 
   # required dependancies