#include "display.h"
#include "gps.h"
-#include "gpsbt.h"
+
+#ifdef HAVE_LIBGPSBT
+# include "gpsbt.h"
+#endif
+
#include "path.h"
#include "util.h"
GnomeVFSSocket *socket = NULL;
GThread *my_thread = g_thread_self();
gboolean error = FALSE;
+#ifdef HAVE_LIBGPSBT
gpsbt_t gps_context;
+#endif
gboolean is_context = FALSE;
printf("%s(%d)\n", __PRETTY_FUNCTION__, gri->type);
switch(gri->type)
{
+#ifdef HAVE_LIBGPSBT
case GPS_RCVR_BT:
{
gchar errstr[BUFFER_SIZE] = "";
}
break;
}
+#endif
case GPS_RCVR_GPSD:
{
/* Set gpsd_host and gpsd_port. */
gpsd_port = gri->gpsd_port;
break;
}
+#ifdef HAVE_LIBGPSMGR
case GPS_RCVR_FILE:
{
/* Use gpsmgr to create a GPSD that uses the file. */
}
break;
}
+#endif
default:
error = TRUE;
}
{
switch(gri->type)
{
+#ifdef HAVE_LIBGPSBT
case GPS_RCVR_BT:
gpsbt_stop(&gps_context);
break;
+#endif
+#ifdef HAVE_LIBGPSMGR
case GPS_RCVR_FILE:
gpsmgr_stop(&gps_context.mgr);
break;
+#endif
default:
;