--with-plugins=<list> choose which plugins to compile.
type --with-plugins=list for a list
of avaible plugins
+ plugins may be excluded with 'all,!<plugin>',
+ (try 'all,\!<plugin>' if your shell complains...)
--with-gnu-ld assume the C compiler uses GNU ld default=no
--with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
--without-libiconv-prefix don't search for libiconv in includedir and libdir
echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6; }
ncurses_version=unknown
cat > conftest.$ac_ext <<EOF
-#line 4448 "configure"
+#line 4450 "configure"
#include "confdefs.h"
#ifdef RENAMED_NCURSES
#include <curses.h>
DRVLIBS="$DRVLIBS -lftdi"
fi
+if test "$DRIVERS" = ""; then
+ { { echo "$as_me:$LINENO: error: You should include at least one driver..." >&5
+echo "$as_me: error: You should include at least one driver..." >&2;}
+ { (exit 1); exit 1; }; }
+else
+ { echo "$as_me:$LINENO: result: -----------------------------------------
+including drivers:
+ $DRIVERS
+-----------------------------------------
+ " >&5
+echo "${ECHO_T}-----------------------------------------
+including drivers:
+ $DRIVERS
+-----------------------------------------
+ " >&6; }
+fi
+
case "$plugin" in
list)
- { echo "$as_me:$LINENO: result: TO BE DONE..." >&5
-echo "${ECHO_T}TO BE DONE..." >&6; }
+ { echo "$as_me:$LINENO: result: available plugins:
+ apm,cpuinfo,diskstats,dvb,exec,file,gps,i2c_sensors,iconv,imon,isdn,kvv,
+ loadavg,meminfo,mpd,mysql,netdev,netinfo,pop3,ppp,proc_stat,sample,seti,
+ statfs,uname,uptime,wireless,xmms" >&5
+echo "${ECHO_T}available plugins:
+ apm,cpuinfo,diskstats,dvb,exec,file,gps,i2c_sensors,iconv,imon,isdn,kvv,
+ loadavg,meminfo,mpd,mysql,netdev,netinfo,pop3,ppp,proc_stat,sample,seti,
+ statfs,uname,uptime,wireless,xmms" >&6; }
{ { echo "$as_me:$LINENO: error: run ./configure --with-plugins=..." >&5
echo "$as_me: error: run ./configure --with-plugins=..." >&2;}
{ (exit 1); exit 1; }; }
PLUGIN_MPD="yes"
PLUGIN_MYSQL="yes"
PLUGIN_NETDEV="yes"
+ PLUGIN_NETINFO="yes"
PLUGIN_POP3="yes"
PLUGIN_PPP="yes"
PLUGIN_PROC_STAT="yes"
netdev)
PLUGIN_NETDEV=$val
;;
+ netinfo)
+ PLUGIN_NETINFO=$val
+ ;;
pop3)
PLUGIN_POP3=$val
;;
fi
fi
-# network device
+# /proc/net/dev
if test "$PLUGIN_NETDEV" = "yes"; then
PLUGINS="$PLUGINS plugin_netdev.o"
fi
+# configuration of network devices
+if test "$PLUGIN_NETINFO" = "yes"; then
+ PLUGINS="$PLUGINS plugin_netinfo.o"
+
+cat >>confdefs.h <<\_ACEOF
+#define PLUGIN_NETINFO 1
+_ACEOF
+
+fi
+
# POP3
if test "$PLUGIN_POP3" = "yes"; then
PLUGINS="$PLUGINS plugin_pop3.o"
{ { echo "$as_me:$LINENO: error: You should include at least one plugin..." >&5
echo "$as_me: error: You should include at least one plugin..." >&2;}
{ (exit 1); exit 1; }; }
-#else
-# AC_MSG_ERROR($PLUGINS)
+else
+ { echo "$as_me:$LINENO: result: -----------------------------------------
+including plugins:
+ $PLUGINS
+-----------------------------------------
+ " >&5
+echo "${ECHO_T}-----------------------------------------
+including plugins:
+ $PLUGINS
+-----------------------------------------
+ " >&6; }
fi