mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-18 10:10:23 +02:00
Use Gnulib's version-etc-fsf' for
--version' and `--help' output.
* m4/gnulib-cache.m4: Add `version-etc-fsf'. Switch to LGPLv3+. * GUILE-VERSION (PACKAGE): Change to "GNU Guile". * Makefile.am (distdir): New variable. * libguile/script.c (scm_shell_usage): Improve formatting. Use `emit_bug_reporting_address ()'. (scm_compile_shell_switches): Use `version_etc ()'.
This commit is contained in:
parent
8bcecbd302
commit
4f02b98d0e
18 changed files with 899 additions and 50 deletions
33
m4/version-etc.m4
Normal file
33
m4/version-etc.m4
Normal file
|
@ -0,0 +1,33 @@
|
|||
# version-etc.m4 serial 1
|
||||
# Copyright (C) 2009 Free Software Foundation, Inc.
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
dnl $1 - configure flag and define name
|
||||
dnl $2 - human readable description
|
||||
m4_define([gl_VERSION_ETC_FLAG],
|
||||
[dnl
|
||||
AC_ARG_WITH([$1], [AS_HELP_STRING([--with-$1], [$2])],
|
||||
[dnl
|
||||
case $withval in
|
||||
yes|no) ;;
|
||||
*) AC_DEFINE_UNQUOTED(AS_TR_CPP([PACKAGE_$1]), ["$withval"], [$2]) ;;
|
||||
esac
|
||||
])
|
||||
])
|
||||
|
||||
AC_DEFUN([gl_VERSION_ETC],
|
||||
[dnl
|
||||
gl_VERSION_ETC_FLAG([packager],
|
||||
[String identifying the packager of this software])
|
||||
gl_VERSION_ETC_FLAG([packager-version],
|
||||
[Packager-specific version information])
|
||||
gl_VERSION_ETC_FLAG([packager-bug-reports],
|
||||
[Packager info for bug reports (URL/e-mail/...)])
|
||||
if test "X$with_packager" = "X" && \
|
||||
test "X$with_packager_version$with_packager_bug_reports" != "X"
|
||||
then
|
||||
AC_MSG_ERROR([The --with-packager-{bug-reports,version} options require --with-packager])
|
||||
fi
|
||||
])
|
Loading…
Add table
Add a link
Reference in a new issue