diff --git a/android/Android.mk b/android/Android.mk
index 32e9e98..f43297f 100644
--- a/android/Android.mk
+++ b/android/Android.mk
LOCAL_PATH := external/bluetooth
# Retrieve BlueZ version from configure.ac file
-BLUEZ_VERSION := $(shell grep ^AC_INIT $(LOCAL_PATH)/bluez/configure.ac | cpp -P -D'AC_INIT(_,v)=v')
+BLUEZ_VERSION := $(shell grep '^AC_INIT' $(LOCAL_PATH)/bluez/configure.ac | sed -e 's/.*[, ]\(.*\))/\1/')
# Specify pathmap for glib and sbc
pathmap_INCL += glib:external/bluetooth/glib \