if test "x$enable_gpsd" = "xyes" ; then
AC_CHECK_HEADERS([gps.h], [ac_cv_gps_h=yes])
AC_CHECK_LIB(gps, gps_open,[ac_cv_libgps=yes] )
+
+PKG_CHECK_MODULES(LIBGPSBT, gpsbt, HAVE_GPSBT=yes, HAVE_GPSBT=no)
+if test "x$HAVE_GPSBT" = "xyes"; then
+ AC_DEFINE(WITH_GPSBT, 1, [Support gpsbt])
+ AC_SUBST(LIBGPSBT_CFLAGS)
+ AC_SUBST(LIBGPSBT_LIBS)
+fi
+
+PKG_CHECK_MODULES(LIBGPSMGR, gpsmgr, HAVE_GPSMGR=yes, HAVE_GPSMGR=no)
+if test "x$HAVE_GPSMGR" = "xyes"; then
+ AC_DEFINE(WITH_GPSMGR, 1, [Support gpsmgr])
+ AC_SUBST(LIBGPSMGR_CFLAGS)
+ AC_SUBST(LIBGPSMGR_LIBS)
+fi
+
if test "x$ac_cv_libgps" = xyes; then
AC_DEFINE(WITH_LIBGPS, 1, [build with gpsd])
fi