For issue#2192. Run scripts though shellcheck. Put back configure.inc to use bash for now.
Fix Syntax error. Redirection wrong way around. Thanks @ksooo !
Corrected build for android.
Included --enable-android on configure script.
Build with that sample script:
#!/bin/sh
# Make sure you have TOOLCHAIN defined in .bashrc or .bash_profile and have linux/dvb headers in include dir.
SRC_DIR="`pwd`/tvheadend"
INCLUDE_DIR="`pwd`/out/include"
cd $SRC_DIR
export SYS_ROOT="$TOOLCHAIN/sysroot"
export CC="arm-linux-androideabi-gcc --sysroot=$SYS_ROOT -I$INCLUDE_DIR"
export CXX="arm-linux-androideabi-g++ --sysroot=$SYS_ROOT -I$INCLUDE_DIR"
export CPP="arm-linux-androideabi-cpp"
export LD="arm-linux-androideabi-ld"
export AR="arm-linux-androideabi-ar"
export RANLIB="arm-linux-androideabi-ranlib"
export STRIP="arm-linux-androideabi-strip"
export CROSSCOMPILE="arm-linux-androideabi-"
export CFLAGS="--sysroot=$SYS_ROOT -I$INCLUDE_DIR"
export CXXFLAGS="--sysroot=$SYS_ROOT -I$INCLUDE_DIR"
export LIBS="-lc -lgcc"
./configure --prefix=$SYS_ROOT/usr --arch=armv7  --platform=linux --disable-avahi --enable-bundle --python=/usr/bin/python --enable-android
make
TODO: change shm code to ashmem on tvhtime.c
Corrected ssize_t log printing. Cleanup.
whitespace fix
Merge remote-tracking branch 'upstream/master'

sync with upstream
idnode: fix the short uuid check in idnode_insert()
linuxdvb: add more trace info to the tune functions
ACL: rewrite to use idnode system...
ACL: add missing src/api/api_access.c file
Merge remote-tracking branch 'upstream/master'

Upstream sync
linuxdvb: handle lfe_ready better - send status all time
ACL: fix the default rights and rights updating
ACL: 2nd attempt to fix the default access
ACL: fix the channel tag list creation
Revert "linuxdvb: handle lfe_ready better - send status all time"

This reverts commit 91f3b2c5f8ef9f5b383d647d582327ee08bafc89.
mpegts: move active mux check to mpegts_mux_instance_start()
linuxdvb: Do not allow to use tuner in the setup phase (diseqc+)
subcriptions: reschedule - add the early retry scheme for the busy situations
subscriptions: send GRACE also for the MUX subscriptions