diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2013-09-16 10:07:27 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2013-09-16 10:07:27 -0400 |
commit | 7c8f3adc7522857f4b858c8480e1e580702943ec (patch) | |
tree | e041b978af34571aa7c31c8065973b717bfc2c87 /libs/surfaces | |
parent | 31157cb343ad1b6a82134c92c77fb37d983cc5ed (diff) |
allow waf to handle inconsistent case where cwiid.h is present but not the pkg-config file
Diffstat (limited to 'libs/surfaces')
-rw-r--r-- | libs/surfaces/wscript | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libs/surfaces/wscript b/libs/surfaces/wscript index 3a4b562629..0879cbc569 100644 --- a/libs/surfaces/wscript +++ b/libs/surfaces/wscript @@ -53,8 +53,11 @@ def configure(conf): if conf.is_defined('HAVE_CWIID_H'): conf.check_cc (header_name='bluetooth/bluetooth.h', define_name='HAVE_BLUETOOTH_H',mandatory=False) if conf.is_defined('HAVE_BLUETOOTH_H'): - autowaf.check_pkg(conf, 'cwiid', uselib_store='CWIID', atleast_version='0.6.00') - conf.define ('BUILD_WIIMOTE', 1) + autowaf.check_pkg(conf, 'cwiid', uselib_store='CWIID', atleast_version='0.6.00',mandatory=False) + if conf.is_defined ('HAVE_CWIID'): + conf.define ('BUILD_WIIMOTE', 1) + else: + print('You are have the cwiid headers needed to compile wiimote support BUT you are missing the pkg-config file for cwiid') else: print('You are missing the libbluetooth headers needed to compile wiimote support') else: |