aboutsummaryrefslogtreecommitdiff
path: root/build-aux
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2011-05-08 22:27:35 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2011-05-08 22:42:28 +0300
commite523423777dd75acc59cf7b9e7466527d774a9f9 (patch)
tree6d17e7553373fdfb6f32870902b75874c3f06aae /build-aux
parent79f6b2c923d1c2366b68a431756bde6e4a04ae86 (diff)
downloadgrecs-e523423777dd75acc59cf7b9e7466527d774a9f9.tar.gz
grecs-e523423777dd75acc59cf7b9e7466527d774a9f9.tar.bz2
Various fixes.
* .gitignore: Add gitid.h * Makefile.am: Build gitid.h. * am/grecs.m4: Remove GRECS_VEROK_AT. * build-aux/getopt.m4 (print_version_hook): New variable. (print_version): Call print_version_hook, if defined. * src/Make.am (INCLUDES): Update. * src/grecs.h (grecs_version_info) <id>: New member. * src/version.c (grecs_version): Initialize id. * tests/Makefile.am: Remove GRECS_VEROK_AT. * tests/testsuite.at: Likewise.
Diffstat (limited to 'build-aux')
-rw-r--r--build-aux/getopt.m44
1 files changed, 4 insertions, 0 deletions
diff --git a/build-aux/getopt.m4 b/build-aux/getopt.m4
index b63baaf..83a1e35 100644
--- a/build-aux/getopt.m4
+++ b/build-aux/getopt.m4
@@ -697,12 +697,14 @@ print_version_only(const char *program_version, FILE *stream)
_getopt_if_option_set([<authors>],[<
char *program_author[] = {
format_authors(_getopt_get_option(authors))
};>])
+void (*print_version_hook)(FILE *stream);
+
void
print_version(const char *program_version, FILE *stream)
{
_getopt_if_option_set([<authors>],[<int i;
unsigned width;
const char *written_by = _("Written by ");
@@ -726,12 +728,14 @@ dnl **************************************************************************
dnl This string cannot be split over serveal lines, because this would trigger
dnl a bug in GNU M4 (version 1.4.9 and 1.4.10), which would insert #line
dnl directives between the lines.
dnl **************************************************************************
fputs (_("License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law.\n\n"),
stream);
+ if (print_version_hook)
+ print_version_hook (stream);
_getopt_if_option_set([<authors>],[<
width = strlen (written_by);
fputs (written_by, stream);
for (i = 0; ; )
{
char *author = program_author[i++];

Return to:

Send suggestions and report system problems to the System administrator.