2013-05-29 Keith Marshall <keithmarshall@users.sourceforge.net>
+ Update program identification, via configuration process.
+
+ * pexports.c (main): Update identification text; remove references...
+ (VER_MAJOR, VER_MINOR): ...to these; combine them by substituting...
+ (PACKAGE_VERSION_STRING): ...this new macro; also amend instructions
+ for reporting bugs, as directed at URL identified by...
+ (PACKAGE_BUG_REPORT): ...this additional new macro.
+
+ * pexports.h (VER_MAJOR, VER_MINOR): Obsolete macros; delete them.
+
+ * Makefile.in (PACKAGE_DEFS): New macro; defined in terms of these...
+ (PACKAGE_VERSION_STRING, PACKAGE_BUG_REPORT_URL, PACKAGE_BUG_REPORT):
+ ...these additional new macros, defined by AC_SUBST from configure.ac,
+ and subsequently propagated to pexports.c, as an addendum to...
+ (CDEPFLAGS): ...this.
+
+2013-05-29 Keith Marshall <keithmarshall@users.sourceforge.net>
+
Autoconfiscate.
* configure.ac Makefile.in: New files.
# Binary file build rules and dependency tracking.
#
INCLUDES = -I ${srcdir}
-CDEPFLAGS = -MMD -MP -MF $*.dep $(CPPFLAGS)
+PACKAGE_BUG_REPORT_URL = PACKAGE_BUG_REPORT='"@PACKAGE_BUGREPORT@"'
+PACKAGE_VERSION_STRING = PACKAGE_VERSION_STRING='"$(PACKAGE_VERSION)"'
+PACKAGE_DEFS = -D $(PACKAGE_VERSION_STRING) -D $(PACKAGE_BUG_REPORT_URL)
+CDEPFLAGS = -MMD -MP -MF $*.dep $(CPPFLAGS) $(PACKAGE_DEFS)
sinclude *.dep
%.$(OBJEXT): %.c
if (filename == NULL)
{
- printf("PExports %d.%d Copyright 1998, Anders Norlander\n"
- "Changed 1999, Paul Sokolovsky\n"
- "Changed 2008, Tor Lillqvist\n"
+ printf("PExports %s; Originally written 1998, Anders Norlander\n"
+ "Updated 1999, Paul Sokolovsky, 2008, Tor Lillqvist, 2013, Keith Marshall\n"
+ "Copyright (C) 1998, 1999, 2008, 2013, MinGW.org Project\n\n"
"This program is free software; you may redistribute it under the terms of\n"
"the GNU General Public License. This program has absolutely no warranty.\n"
" -o\tprint ordinals\n"
" -p\tset preprocessor program\n"
" -v\tverbose mode\n"
- "\nReport bugs to anorland@hem2.passagen.se,\n"
- "Paul.Sokolovsky@technologist.com\n"
- "or tml@iki.fi\n",
- VER_MAJOR, VER_MINOR,
- program_name);
+ "\nReport bugs as directed at %s\n",
+ PACKAGE_VERSION_STRING, program_name, PACKAGE_BUG_REPORT);
return 1;
}
#include "str_tree.h"
-#define VER_MAJOR 0
-#define VER_MINOR 44
-
/* These are needed:
* FIXME: However, I'd really much prefer to see ISO-C99 standard
* types used throughout, in preference to these Micrsoft-inspired