Skip to content

Commit 10ec19d

Browse files
author
michael
committed
ported r839 from volker_dev
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@927 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
1 parent 9798fe8 commit 10ec19d

File tree

5 files changed

+88
-9
lines changed

5 files changed

+88
-9
lines changed

config.h.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,9 @@
347347
/* netdev plugin */
348348
#undef PLUGIN_NETDEV
349349

350+
/* netinfo plugin */
351+
#undef PLUGIN_NETINFO
352+
350353
/* POP3 plugin */
351354
#undef PLUGIN_POP3
352355

configure

Lines changed: 54 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1351,6 +1351,8 @@ Optional Packages:
13511351
--with-plugins=<list> choose which plugins to compile.
13521352
type --with-plugins=list for a list
13531353
of avaible plugins
1354+
plugins may be excluded with 'all,!<plugin>',
1355+
(try 'all,\!<plugin>' if your shell complains...)
13541356
--with-gnu-ld assume the C compiler uses GNU ld default=no
13551357
--with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
13561358
--without-libiconv-prefix don't search for libiconv in includedir and libdir
@@ -4445,7 +4447,7 @@ echo "${ECHO_T}Please note that some screen refreshs may fail" >&6; }
44454447
echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6; }
44464448
ncurses_version=unknown
44474449
cat > conftest.$ac_ext <<EOF
4448-
#line 4448 "configure"
4450+
#line 4450 "configure"
44494451
#include "confdefs.h"
44504452
#ifdef RENAMED_NCURSES
44514453
#include <curses.h>
@@ -8525,6 +8527,23 @@ if test "$LIBFTDI" = "yes"; then
85258527
DRVLIBS="$DRVLIBS -lftdi"
85268528
fi
85278529
8530+
if test "$DRIVERS" = ""; then
8531+
{ { echo "$as_me:$LINENO: error: You should include at least one driver..." >&5
8532+
echo "$as_me: error: You should include at least one driver..." >&2;}
8533+
{ (exit 1); exit 1; }; }
8534+
else
8535+
{ echo "$as_me:$LINENO: result: -----------------------------------------
8536+
including drivers:
8537+
$DRIVERS
8538+
-----------------------------------------
8539+
" >&5
8540+
echo "${ECHO_T}-----------------------------------------
8541+
including drivers:
8542+
$DRIVERS
8543+
-----------------------------------------
8544+
" >&6; }
8545+
fi
8546+
85288547
85298548
85308549
@@ -8561,8 +8580,14 @@ for plugin in $plugins; do
85618580
85628581
case "$plugin" in
85638582
list)
8564-
{ echo "$as_me:$LINENO: result: TO BE DONE..." >&5
8565-
echo "${ECHO_T}TO BE DONE..." >&6; }
8583+
{ echo "$as_me:$LINENO: result: available plugins:
8584+
apm,cpuinfo,diskstats,dvb,exec,file,gps,i2c_sensors,iconv,imon,isdn,kvv,
8585+
loadavg,meminfo,mpd,mysql,netdev,netinfo,pop3,ppp,proc_stat,sample,seti,
8586+
statfs,uname,uptime,wireless,xmms" >&5
8587+
echo "${ECHO_T}available plugins:
8588+
apm,cpuinfo,diskstats,dvb,exec,file,gps,i2c_sensors,iconv,imon,isdn,kvv,
8589+
loadavg,meminfo,mpd,mysql,netdev,netinfo,pop3,ppp,proc_stat,sample,seti,
8590+
statfs,uname,uptime,wireless,xmms" >&6; }
85668591
{ { echo "$as_me:$LINENO: error: run ./configure --with-plugins=..." >&5
85678592
echo "$as_me: error: run ./configure --with-plugins=..." >&2;}
85688593
{ (exit 1); exit 1; }; }
@@ -8589,6 +8614,7 @@ echo "$as_me: error: run ./configure --with-plugins=..." >&2;}
85898614
PLUGIN_MPD="yes"
85908615
PLUGIN_MYSQL="yes"
85918616
PLUGIN_NETDEV="yes"
8617+
PLUGIN_NETINFO="yes"
85928618
PLUGIN_POP3="yes"
85938619
PLUGIN_PPP="yes"
85948620
PLUGIN_PROC_STAT="yes"
@@ -8665,6 +8691,9 @@ echo "$as_me: error: run ./configure --with-plugins=..." >&2;}
86658691
netdev)
86668692
PLUGIN_NETDEV=$val
86678693
;;
8694+
netinfo)
8695+
PLUGIN_NETINFO=$val
8696+
;;
86688697
pop3)
86698698
PLUGIN_POP3=$val
86708699
;;
@@ -11204,7 +11233,7 @@ echo "$as_me: WARNING: mysql/mysql.h header not found: mysql plugin disabled" >&
1120411233
fi
1120511234
fi
1120611235
11207-
# network device
11236+
# /proc/net/dev
1120811237
if test "$PLUGIN_NETDEV" = "yes"; then
1120911238
PLUGINS="$PLUGINS plugin_netdev.o"
1121011239
@@ -11214,6 +11243,16 @@ _ACEOF
1121411243
1121511244
fi
1121611245
11246+
# configuration of network devices
11247+
if test "$PLUGIN_NETINFO" = "yes"; then
11248+
PLUGINS="$PLUGINS plugin_netinfo.o"
11249+
11250+
cat >>confdefs.h <<\_ACEOF
11251+
#define PLUGIN_NETINFO 1
11252+
_ACEOF
11253+
11254+
fi
11255+
1121711256
# POP3
1121811257
if test "$PLUGIN_POP3" = "yes"; then
1121911258
PLUGINS="$PLUGINS plugin_pop3.o"
@@ -11805,8 +11844,17 @@ if test "$PLUGINS" = ""; then
1180511844
{ { echo "$as_me:$LINENO: error: You should include at least one plugin..." >&5
1180611845
echo "$as_me: error: You should include at least one plugin..." >&2;}
1180711846
{ (exit 1); exit 1; }; }
11808-
#else
11809-
# AC_MSG_ERROR($PLUGINS)
11847+
else
11848+
{ echo "$as_me:$LINENO: result: -----------------------------------------
11849+
including plugins:
11850+
$PLUGINS
11851+
-----------------------------------------
11852+
" >&5
11853+
echo "${ECHO_T}-----------------------------------------
11854+
including plugins:
11855+
$PLUGINS
11856+
-----------------------------------------
11857+
" >&6; }
1181011858
fi
1181111859
1181211860

drivers.m4

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -697,5 +697,16 @@ if test "$LIBFTDI" = "yes"; then
697697
DRVLIBS="$DRVLIBS -lftdi"
698698
fi
699699

700+
if test "$DRIVERS" = ""; then
701+
AC_MSG_ERROR([You should include at least one driver...])
702+
else
703+
AC_MSG_RESULT(
704+
[-----------------------------------------]
705+
[including drivers:]
706+
[ $DRIVERS]
707+
[-----------------------------------------]
708+
)
709+
fi
710+
700711
AC_SUBST(DRIVERS)
701712
AC_SUBST(DRVLIBS)

evaluator.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,16 @@ typedef enum {
100100
T_FUNCTION
101101
} TOKEN;
102102

103+
static char *tokenNames[] = {
104+
"undef",
105+
"Name",
106+
"Number",
107+
"String",
108+
"Operator",
109+
"Variable",
110+
"Function"
111+
};
112+
103113
typedef enum {
104114
O_UNDEF, /* undefined */
105115
O_LST, /* expression lists */

plugins.m4

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ AC_ARG_WITH(
2828
plugins,
2929
[ --with-plugins=<list> choose which plugins to compile.]
3030
[ type --with-plugins=list for a list]
31-
[ of avaible plugins],
31+
[ of avaible plugins]
32+
[ plugins may be excluded with 'all,!<plugin>',]
33+
[ (try 'all,\!<plugin>' if your shell complains...)],
3234
plugins=$withval,
3335
plugins=all
3436
)
@@ -490,8 +492,13 @@ fi
490492

491493
if test "$PLUGINS" = ""; then
492494
AC_MSG_ERROR([You should include at least one plugin...])
493-
#else
494-
# AC_MSG_ERROR($PLUGINS)
495+
else
496+
AC_MSG_RESULT(
497+
[-----------------------------------------]
498+
[including plugins:]
499+
[ $PLUGINS]
500+
[-----------------------------------------]
501+
)
495502
fi
496503

497504
AC_SUBST(PLUGINS)

0 commit comments

Comments
 (0)