configure.sh: use colors only with terminal

The color codes mess up less and log files.

Signed-off-by: Mikko Rapeli <mikko.rapeli@iki.fi>
configure.sh: use gcc as default compiler

Cross compilers might not have cc symlink but do have gcc.

Signed-off-by: Mikko Rapeli <mikko.rapeli@iki.fi>
configure.sh: expand tilde from CROSS_COMPILE variable

Users can define cross compiler paths like
CROSS_COMPILE="ccache ~/bin/arm/bin/..." and would like this to work.

Signed-off-by: Mikko Rapeli <mikko.rapeli@iki.fi>
Makefile: use gcc as compiler

Cross compilers might not have cc symlink to gcc.

Signed-off-by: Mikko Rapeli <mikko.rapeli@iki.fi>
Makefile: support sysroot for libs and includes

Helps with cross compilation when correct lib and include files
are used.

Signed-off-by: Mikko Rapeli <mikko.rapeli@iki.fi>
Define IP_MULTICAST_ALL if header files don't have it

Older systems have it defined in <linux/in.h> which conflicts with
<netinet/in.h>.

Signed-off-by: Mikko Rapeli <mikko.rapeli@iki.fi>
net/irda_setsockopt.c: workaround for old irda headers

Signed-off-by: Mikko Rapeli <mikko.rapeli@iki.fi>
net/netlink.c: support older kernels and headers

Signed-off-by: Mikko Rapeli <mikko.rapeli@iki.fi>
net/netlink_setsockopt.c: workaround for old headers

Signed-off-by: Mikko Rapeli <mikko.rapeli@iki.fi>
Makefile: install depends on trinity target

After this 'make install' just works.

Signed-off-by: Mikko Rapeli <mikko.rapeli@iki.fi>