dnl $Id$ dnl $URL$ dnl LCD4Linux Plugins conf part dnl dnl Copyright (C) 1999, 2000, 2001, 2002, 2003 Michael Reinelt dnl Copyright (C) 2004, 2005, 2006, 2007 The LCD4Linux Team dnl dnl This file is part of LCD4Linux. dnl dnl LCD4Linux is free software; you can redistribute it and/or modify dnl it under the terms of the GNU General Public License as published by dnl the Free Software Foundation; either version 2, or (at your option) dnl any later version. dnl dnl LCD4Linux is distributed in the hope that it will be useful, dnl but WITHOUT ANY WARRANTY; without even the implied warranty of dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the dnl GNU General Public License for more details. dnl dnl You should have received a copy of the GNU General Public License dnl along with this program; if not, write to the Free Software dnl Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. AC_MSG_CHECKING([which plugins to compile]) AC_ARG_WITH( plugins, [ --with-plugins= choose which plugins to compile.] [ type --with-plugins=list for a list] [ of avaible plugins] [ plugins may be excluded with 'all,!',] [ (try 'all,\!' if your shell complains...)], plugins=$withval, plugins=all ) plugins=`echo $plugins|sed 's/,/ /g'` for plugin in $plugins; do case $plugin in !*) val="no" plugin=`echo $plugin|cut -c 2-` ;; *) val="yes" ;; esac case "$plugin" in list) AC_MSG_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]) AC_MSG_ERROR([run ./configure --with-plugins=...]) ;; all) PLUGIN_APM="yes" PLUGIN_ASTERISK="yes" PLUGIN_BUTTON_EXEC="yes" PLUGIN_CPUINFO="yes" PLUGIN_DISKSTATS="yes" PLUGIN_DVB="yes" PLUGIN_EXEC="yes" PLUGIN_FIFO="yes" PLUGIN_FILE="yes" PLUGIN_GPS="yes" PLUGIN_HDDTEMP="yes" PLUGIN_I2C_SENSORS="yes" PLUGIN_ICONV="yes" PLUGIN_IMON="yes" PLUGIN_ISDN="yes" PLUGIN_KVV="yes" PLUGIN_LOADAVG="yes" PLUGIN_MEMINFO="yes" PLUGIN_MPD="yes" PLUGIN_MYSQL="yes" PLUGIN_NETDEV="yes" PLUGIN_NETINFO="yes" PLUGIN_POP3="yes" PLUGIN_PPP="yes" PLUGIN_PROC_STAT="yes" PLUGIN_PYTHON=$with_python PLUGIN_SAMPLE="yes" PLUGIN_SETI="yes" PLUGIN_STATFS="yes" PLUGIN_UNAME="yes" PLUGIN_UPTIME="yes" PLUGIN_W1RETAP="yes" PLUGIN_WIRELESS="yes" PLUGIN_XMMS="yes" ;; apm) PLUGIN_APM=$val ;; button_exec) PLUGIN_BUTTON_EXEC=$val ;; asterisk) PLUGIN_ASTERISK=$val ;; cpuinfo) PLUGIN_CPUINFO=$val ;; diskstats) PLUGIN_DISKSTATS=$val ;; dvb) PLUGIN_DVB=$val ;; exec) PLUGIN_EXEC=$val ;; fifo) PLUGIN_FIFO=$val ;; file) PLUGIN_FILE=$val ;; gps) PLUGIN_GPS=$val ;; hddtemp) PLUGIN_HDDTEMP=$val ;; i2c_sensors) PLUGIN_I2C_SENSORS=$val ;; iconv) PLUGIN_ICONV=$val ;; imon) PLUGIN_IMON=$val ;; isdn) PLUGIN_ISDN=$val ;; kvv) PLUGIN_KVV=$val ;; loadavg)
# Channel table for Tejupá - SP - Brazil
# Source: http://www.portalbsd.com.br/terrestres_channels.php?channels=2919

# Physical channel 26
[TV Tem Itapetininga]
	DELIVERY_SYSTEM = ISDBT
	BANDWIDTH_HZ = 6000000
	FREQUENCY = 545142857
	INVERSION = AUTO
	GUARD_INTERVAL = AUTO
	TRANSMISSION_MODE = AUTO
	INVERSION = AUTO
	GUARD_INTERVAL = AUTO
	TRANSMISSION_MODE = AUTO
	ISDBT_LAYER_ENABLED = 7
	ISDBT_SOUND_BROADCASTING = 0
	ISDBT_SB_SUBCHANNEL_ID = 0
	ISDBT_SB_SEGMENT_IDX = 0
	ISDBT_SB_SEGMENT_COUNT = 0
	ISDBT_LAYERA_FEC = AUTO
	ISDBT_LAYERA_MODULATION = QAM/AUTO
	ISDBT_LAYERA_SEGMENT_COUNT = 0
	ISDBT_LAYERA_TIME_INTERLEAVING = 0
	ISDBT_LAYERB_FEC = AUTO
	ISDBT_LAYERB_MODULATION = QAM/AUTO
	ISDBT_LAYERB_SEGMENT_COUNT = 0
	ISDBT_LAYERB_TIME_INTERLEAVING = 0
	ISDBT_LAYERC_FEC = AUTO
	ISDBT_LAYERC_MODULATION = QAM/AUTO
	ISDBT_LAYERC_SEGMENT_COUNT = 0
	ISDBT_LAYERC_TIME_INTERLEAVING = 0
AC_MSG_WARN(mysql/mysql.h header not found: mysql plugin disabled) fi fi # /proc/net/dev if test "$PLUGIN_NETDEV" = "yes"; then PLUGINS="$PLUGINS plugin_netdev.o" AC_DEFINE(PLUGIN_NETDEV,1,[netdev plugin]) fi # configuration of network devices if test "$PLUGIN_NETINFO" = "yes"; then PLUGINS="$PLUGINS plugin_netinfo.o" AC_DEFINE(PLUGIN_NETINFO,1,[netinfo plugin]) fi # POP3 if test "$PLUGIN_POP3" = "yes"; then PLUGINS="$PLUGINS plugin_pop3.o" AC_DEFINE(PLUGIN_POP3,1,[POP3 plugin]) fi # PPP 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]) else AC_MSG_WARN(net/if_ppp.h header not found: ppp plugin disabled) fi fi # /proc/stat if test "$PLUGIN_PROC_STAT" = "yes"; then PLUGINS="$PLUGINS plugin_proc_stat.o" AC_DEFINE(PLUGIN_PROC_STAT,1,[proc_stat plugin]) fi # python if test "$PLUGIN_PYTHON" = "yes"; then if test "$with_python" != "yes"; then AC_MSG_WARN(python support not enabled: python plugin disabled (use --with-python to enable)) else if test -z "$python_path"; then AC_MSG_WARN(python headers not found: python plugin disabled) else PLUGINS="$PLUGINS plugin_python.o" CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS" PLUGINLIBS="$PLUGINLIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LIBS" AC_DEFINE(PLUGIN_PYTHON,1,[python plugin]) fi fi fi # sample if test "$PLUGIN_SAMPLE" = "yes"; then PLUGINS="$PLUGINS plugin_sample.o" AC_DEFINE(PLUGIN_SAMPLE,1,[sample plugin]) fi # SETI if test "$PLUGIN_SETI" = "yes"; then PLUGINS="$PLUGINS plugin_seti.o" AC_DEFINE(PLUGIN_SETI,1,[seti plugin]) fi # statfs() if test "$PLUGIN_STATFS" = "yes"; then AC_CHECK_HEADERS(sys/vfs.h, [has_vfs_header="true"], [has_vfs_header="false"]) if test "$has_vfs_header" = "true"; then PLUGINS="$PLUGINS plugin_statfs.o" AC_DEFINE(PLUGIN_STATFS,1,[statfs plugin]) else AC_MSG_WARN(sys/vfs.h header not found: statfs plugin disabled) fi fi # uname if test "$PLUGIN_UNAME" = "yes"; then PLUGINS="$PLUGINS plugin_uname.o" AC_DEFINE(PLUGIN_UNAME,1,[uname plugin]) fi # uptime if test "$PLUGIN_UPTIME" = "yes"; then PLUGINS="$PLUGINS plugin_uptime.o" AC_DEFINE(PLUGIN_UPTIME,1,[uptime plugin]) fi if test "$PLUGIN_W1RETAP" = "yes"; then PLUGINS="$PLUGINS plugin_w1retap.o" AC_DEFINE(PLUGIN_W1RETAP,1,[w1retap plugin]) fi # WLAN if test "$PLUGIN_WIRELESS" = "yes"; then AC_CHECK_HEADERS(linux/wireless.h, [has_wireless_header="true"], [has_wireless_header="false"]) if test "$has_wireless_header" = "true"; then PLUGINS="$PLUGINS plugin_wireless.o" AC_DEFINE(PLUGIN_WIRELESS,1,[wireless plugin]) else AC_MSG_WARN(linux/wireless.h header not found: wireless plugin disabled) fi fi # XMMS if test "$PLUGIN_XMMS" = "yes"; then PLUGINS="$PLUGINS plugin_xmms.o" AC_DEFINE(PLUGIN_XMMS,1,[xmms plugin]) fi if test "$PLUGINS" = ""; then AC_MSG_ERROR([You should include at least one plugin...]) fi AC_SUBST(PLUGINS) AC_SUBST(PLUGINLIBS)