- conf.define ('AUDIOUNITS', 1)
- conf.define ('AU_STATE_SUPPORT', 1)
- conf.define ('COREAUDIO', 1)
+ # libintl may or may not be trivially locatable
+ if not os.path.isfile ('/usr/include/libintl.h'):
+ # XXXX hack hack hack
+ prefinclude = ''.join ([ '-I', os.path.expanduser ('~/gtk/inst/include') ])
+ preflib = ''.join ([ '-L', os.path.expanduser ('~/gtk/inst/lib') ])
+ conf.env.append_value('CFLAGS', [ prefinclude ])
+ conf.env.append_value('CXXFLAGS', [prefinclude ])
+ conf.env.append_value('LINKFLAGS', [ preflib ])
+
+ # this is required, potentially, for anything we link and then relocate into a bundle
+ conf.env.append_value('LINKFLAGS', [ '-Xlinker', '-headerpad_max_install_names' ])
+
+ conf.define ('HAVE_COREAUDIO', 1)
+ conf.define ('AUDIOUNIT_SUPPORT', 1)
+ if not Options.options.nocarbon:
+ conf.define ('WITH_CARBON', 1)
+ if not Options.options.freebie:
+ conf.define ('AU_STATE_SUPPORT', 1)
+