aboutsummaryrefslogtreecommitdiffstats
path: root/plugins.m4
diff options
context:
space:
mode:
authormichael <michael@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2007-05-19 11:43:32 +0000
committermichael <michael@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2007-05-19 11:43:32 +0000
commitcbde4d3f9281906feb5e051e6fa74ab065bd77c0 (patch)
tree6aa4a8177a7e9a2ab79f4ea92b58873501fbed87 /plugins.m4
parent93d751a7c3d5c6c1db576460a7f08bd80a0f3bb9 (diff)
downloadlcd4linux-cbde4d3f9281906feb5e051e6fa74ab065bd77c0.tar.gz
gps plugin, code by michu / www.neophob.com
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@801 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'plugins.m4')
-rw-r--r--plugins.m419
1 files changed, 19 insertions, 0 deletions
diff --git a/plugins.m4 b/plugins.m4
index f1d157f..c6a3bfa 100644
--- a/plugins.m4
+++ b/plugins.m4
@@ -59,6 +59,7 @@ for plugin in $plugins; do
PLUGIN_DVB="yes"
PLUGIN_EXEC="yes"
PLUGIN_FILE="yes"
+ PLUGIN_GPS="yes"
PLUGIN_I2C_SENSORS="yes"
PLUGIN_ICONV="yes"
PLUGIN_IMON="yes"
@@ -99,6 +100,9 @@ for plugin in $plugins; do
file)
PLUGIN_FILE=$val
;;
+ gps)
+ PLUGIN_GPS=$val
+ ;;
i2c_sensors)
PLUGIN_I2C_SENSORS=$val
;;
@@ -199,6 +203,21 @@ if test "$PLUGIN_FILE" = "yes"; then
PLUGINS="$PLUGINS plugin_file.o"
AC_DEFINE(PLUGIN_FILE,1,[file plugin])
fi
+if test "$PLUGIN_GPS" = "yes"; then
+ AC_CHECK_HEADERS(nmeap.h, [has_nmeap_header="true"], [has_nmeap_header="false"])
+ if test "$has_nmeap_header" = "true"; then
+ AC_CHECK_LIB(nmeap, nmeap_init, [has_libnmeap_lib="true"], [has_libnmeap_lib="false"])
+ if test "$has_libnmeap_lib" = "true"; then
+ PLUGINS="$PLUGINS plugin_gps.o"
+ PLUGINLIBS="$PLUGINLIBS -lnmeap"
+ AC_DEFINE(PLUGIN_GPS,1,[gps plugin])
+ else
+ AC_MSG_WARN(libnmeap lib not found: gps plugin disabled)
+ fi
+ else
+ AC_MSG_WARN(nmeap.h header not found: gps plugin disabled)
+ fi
+fi
if test "$PLUGIN_I2C_SENSORS" = "yes"; then
PLUGINS="$PLUGINS plugin_i2c_sensors.o"
AC_DEFINE(PLUGIN_I2C_SENSORS,1,[i2c sensors plugin])