X-Git-Url: http://pileus.org/git/?p=aweather;a=blobdiff_plain;f=configure.ac;h=b3c0d4ac1ec7405c3ef5e7af40576f747c2922ef;hp=dab9baa13757e31f93ef06dfa74bb45ce5c7baf2;hb=19465fdbeac07e6c7f4d5dc6613d783b72d5ddbf;hpb=ddfd014a5ea589685b11b199c03482119ed03b9f diff --git a/configure.ac b/configure.ac index dab9baa..b3c0d4a 100644 --- a/configure.ac +++ b/configure.ac @@ -16,6 +16,12 @@ PKG_PROG_PKG_CONFIG PKG_CHECK_MODULES(GLIB, glib-2.0) PKG_CHECK_MODULES(GRITS, grits >= 0.6) +# Check for gpsd support +AC_CHECK_LIB(gps, gps_open, GPS_LIBS="-lgps") +AM_CONDITIONAL(HAVE_GPSD, test "$GPS_LIBS" != "") +AC_DEFINE([HAVE_GPSD], [1], [GPSD support]) +AC_SUBST(GPS_LIBS) + # Define odd RSL install location AC_CHECK_LIB(rsl, RSL_wsr88d_to_radar, RSL_LIBS="-lrsl") AM_CONDITIONAL(HAVE_RSL, test "$RSL_LIBS" != "")