From be7bf40bdbcbfc6329abc4e5465cfa2b382e2ce7 Mon Sep 17 00:00:00 2001
From: =?utf8?q?Rafa=C5=82=20D=C5=82ugo=C5=82=C4=99cki?=
 <kontakt@dlugolecki.net.pl>
Date: Wed, 7 Aug 2013 08:22:24 +0200
Subject: [PATCH] vlp-15 Set version to 3.1. Replaced hardcoded strings with
 generated ones.

---
 configure.ac          | 2 +-
 src/kernel/kernel.cpp | 7 +++++--
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/configure.ac b/configure.ac
index 65e94cf..db2329c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,4 +1,4 @@
-AC_INIT([Virtual Loglan Processor], [2.6], [bugz@dlugolecki.net.pl], [vlp], [http://dlugolecki.net.pl/software/vlp/])
+AC_INIT([Virtual Loglan Processor], [3.1], [bugz@dlugolecki.net.pl], [vlp], [http://dlugolecki.net.pl/software/vlp/])
 AC_PREREQ([2.59])
 AM_INIT_AUTOMAKE([1.10 no-define])
 AC_CONFIG_HEADERS([config.h])
diff --git a/src/kernel/kernel.cpp b/src/kernel/kernel.cpp
index 333a555..16bda4f 100644
--- a/src/kernel/kernel.cpp
+++ b/src/kernel/kernel.cpp
@@ -73,6 +73,9 @@
 
 #include <libconfig.h>
 
+/* File resides in top directory (where are Makefiles)*/
+#include "../../config.h"
+
 #define GPATH "loggr"
 #define IPATH "logi"
 #define NPATH "logn"
@@ -244,7 +247,7 @@ QKernel::QKernel()
 	info_messages = TRUE;
 	wait_for_info = FALSE;
 
-	setCaption("Virtual LOGLAN Processor");
+	setCaption(PACKAGE_NAME);
 	setBackgroundColor(white);
 
 	bar = new QMenuBar(this);
@@ -1231,7 +1234,7 @@ void QKernel::UnlockConsole()
  */
 void QKernel::InitMessage()
 {
-	WriteMessage("\n Virtual LOGLAN Processor - ver 1.9: READY \n");
+	WriteMessage("\n " PACKAGE_STRING ": READY \n");
 }
 
 /**
-- 
2.30.2