aboutsummaryrefslogtreecommitdiffstats
path: root/plugins.m4
diff options
context:
space:
mode:
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2005-05-02 10:29:20 +0000
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2005-05-02 10:29:20 +0000
commit0849d874e73b9c456d633bf43f8c219a6be4ec0e (patch)
treedfb02be1bd48236faa35fb0dc814c44eb5d55d77 /plugins.m4
parentdfcd00a79bf78f14f8699b303b1e8bb4d77d53f0 (diff)
downloadlcd4linux-0849d874e73b9c456d633bf43f8c219a6be4ec0e.tar.gz
[lcd4linux @ 2005-05-02 10:29:20 by reinelt]
preparations for python bindings and python plugin git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@536 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'plugins.m4')
-rw-r--r--plugins.m416
1 files changed, 14 insertions, 2 deletions
diff --git a/plugins.m4 b/plugins.m4
index 63c4aa9..927029f 100644
--- a/plugins.m4
+++ b/plugins.m4
@@ -64,6 +64,7 @@ for plugin in $plugins; do
PLUGIN_POP3="yes"
PLUGIN_PPP="yes"
PLUGIN_PROC_STAT="yes"
+ PLUGIN_PYTHON="yes"
PLUGIN_SETI="yes"
PLUGIN_STATFS="yes"
PLUGIN_UNAME="yes"
@@ -116,6 +117,9 @@ for plugin in $plugins; do
proc_stat)
PLUGIN_PROC_STAT=$val
;;
+ python)
+ PLUGIN_PYTHON=$val
+ ;;
seti)
PLUGIN_SETI=$val
;;
@@ -216,8 +220,8 @@ fi
if test "$PLUGIN_PPP" = "yes"; then
AC_CHECK_HEADERS(net/if_ppp.h, [has_ppp_header="true"], [has_ppp_header="false"])
if test "$has_ppp_header" = "true"; then
- PLUGINS="$PLUGINS plugin_ppp.o"
- AC_DEFINE(PLUGIN_PPP,1,[ppp plugin])
+ PLUGINS="$PLUGINS plugin_ppp.o"
+ AC_DEFINE(PLUGIN_PPP,1,[ppp plugin])
else
AC_MSG_WARN(net/if_ppp.h header not found: ppp plugin disabled)
fi
@@ -226,6 +230,14 @@ if test "$PLUGIN_PROC_STAT" = "yes"; then
PLUGINS="$PLUGINS plugin_proc_stat.o"
AC_DEFINE(PLUGIN_PROC_STAT,1,[proc_stat plugin])
fi
+if test "$PLUGIN_PYTHON" = "yes"; then
+ if test -z "$python_path"; then
+ AC_MSG_WARN(python headers not found: python plugin disabled)
+ else
+ PLUGINS="$PLUGINS plugin_python.o"
+ AC_DEFINE(PLUGIN_PYTHON,1,[python plugin])
+ fi
+fi
if test "$PLUGIN_SETI" = "yes"; then
PLUGINS="$PLUGINS plugin_seti.o"
AC_DEFINE(PLUGIN_SETI,1,[seti plugin])