Add configuration infrastructure

Rather than expecting parameters on the command line, this change
implemnets a little configration infrastructure, to allow the core
code to load configuration from a file in ${sysconfdir}.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
diff --git a/Makefile.am b/Makefile.am
index 3d0a9b0..d7272a6 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -5,12 +5,16 @@
 
 AM_CFLAGS = -Wall -Wextra -Werror
 
-console_server_CPPFLAGS = -DLOCALSTATEDIR=\"$(localstatedir)\"
+EXTRA_DIST = openbmc-console.conf.sample
+
+console_server_CPPFLAGS = -DLOCALSTATEDIR=\"$(localstatedir)\" \
+			  -DSYSCONFDIR=\"$(sysconfdir)\"
 
 console_server_SOURCES = \
 	 console-server.c \
 	 console-server.h \
 	 util.c \
+	 config.c \
 	 log-handler.c \
 	 socket-handler.c