Add system-wide configuration file and new config file environment vars Introduced envvars TIGRC_USER and TIGRC_SYSTEM to control which config file is used. The default user specific config file can be overridden with TIGRC_USER. Before loading the user config file, tig now looks for a system wide config file ($(sysconfdir)/tirgc by default). This can be overridden with the environment variable TIGRC_SYSTEM. Also corrected a small mistake in the Makefile. Instead of setting CFLAGS for '-D...' compiler options, use CPPFLAGS. [ The original code from Dominik was changed so that tig always reads the system-wide configuration file. The documentation was improved so the configured sysconfdir is used in the generated documentation. -- jonas ] Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
Add autoconf-based build infrastructure for tig This is a first cut at building tig using autoconf. With this patch, tig configures and builds on both Linux (FC4) and OS X. Signed-off-by: Steven Grimm <koreth@midwinter.com> Reworked to not use aclocal+automake and external scripts for bootstrapping. Instead, run `make configure` to generate the configure script. It will create a config.make file from config.make.in, which contains variables set by the configure script. Update .gitignore to list generated files. Signed-off-by: Jonas Fonseca <fonseca@diku.dk>