summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure10
1 files changed, 10 insertions, 0 deletions
diff --git a/configure b/configure
index 826da7c..53ad5d6 100755
--- a/configure
+++ b/configure
@@ -900,8 +900,18 @@ if test "$bluez" = "yes" ; then
`pkg-config bluez` || bluez="no"
fi
if test "$bluez" = "yes" ; then
+ cat > $TMPC << EOF
+#include <bluetooth/bluetooth.h>
+int main(void) { return bt_error(0); }
+EOF
bluez_cflags=`pkg-config --cflags bluez`
bluez_libs=`pkg-config --libs bluez`
+ if $cc $ARCH_CFLAGS -o $TMPE ${OS_FLAGS} $bluez_cflags $TMPC \
+ $bluez_libs 2> /dev/null ; then
+ :
+ else
+ bluez="no"
+ fi
fi
##########################################
OpenPOWER on IntegriCloud