# HG changeset patch # User lost # Date 1223090436 0 # Node ID 287a6905a63c9d22f482e894d10921ef070778bf # Parent 34568fab605805ac250a0c24dd21e108349f5c9b Moved config.h to src/ and switched version strings to use autotools version diff -r 34568fab6058 -r 287a6905a63c TODO --- a/TODO Sat Oct 04 03:14:20 2008 +0000 +++ b/TODO Sat Oct 04 03:20:36 2008 +0000 @@ -1,3 +1,1 @@ -* Switch internal version string to use the value from autotools - * add support for an object file format diff -r 34568fab6058 -r 287a6905a63c configure.ac --- a/configure.ac Sat Oct 04 03:14:20 2008 +0000 +++ b/configure.ac Sat Oct 04 03:20:36 2008 +0000 @@ -1,7 +1,7 @@ -AC_INIT([lwasm], [1.0], [lost@l-w.ca]) +AC_INIT([LWASM], [1.0], [lost@l-w.ca]) AM_INIT_AUTOMAKE([-Wall -Werror foreign]) AC_PROG_CC -AC_CONFIG_HEADERS([config.h]) +AC_CONFIG_HEADERS([src/config.h]) AC_CONFIG_FILES([ Makefile src/Makefile diff -r 34568fab6058 -r 287a6905a63c src/main.c --- a/src/main.c Sat Oct 04 03:14:20 2008 +0000 +++ b/src/main.c Sat Oct 04 03:20:36 2008 +0000 @@ -22,6 +22,8 @@ */ +#include "config.h" + #include #include #include @@ -37,8 +39,8 @@ // command line option handling -const char *argp_program_version = "LWASM Version 0.0"; -const char *argp_program_bug_address = "lost@l-w.ca"; +const char *argp_program_version = PACKAGE_STRING; +const char *argp_program_bug_address = PACKAGE_BUGREPORT; static error_t parse_opts(int key, char *arg, struct argp_state *state) {