Debian Codegraph @

tools/gnulib/m4/version-etc.m4

raw
1 # version-etc.m4
2 # serial 2
3 dnl Copyright (C) 2009-2024 Free Software Foundation, Inc.
4 dnl This file is free software; the Free Software Foundation
5 dnl gives unlimited permission to copy and/or distribute it,
6 dnl with or without modifications, as long as this notice is preserved.
7
8 dnl $1 - configure flag and define name
9 dnl $2 - human readable description
10 m4_define([gl_VERSION_ETC_FLAG],
11 [dnl
12 AC_ARG_WITH([$1], [AS_HELP_STRING([[--with-]$1], [$2])],
13 [dnl
14 case $withval in
15 yes|no) ;;
16 *) AC_DEFINE_UNQUOTED(AS_TR_CPP([PACKAGE_$1]), ["$withval"], [$2]) ;;
17 esac
18 ])
19 ])
20
21 AC_DEFUN([gl_VERSION_ETC],
22 [dnl
23 gl_VERSION_ETC_FLAG([packager],
24 [String identifying the packager of this software])
25 gl_VERSION_ETC_FLAG([packager-version],
26 [Packager-specific version information])
27 gl_VERSION_ETC_FLAG([packager-bug-reports],
28 [Packager info for bug reports (URL/e-mail/...)])
29 if test "X$with_packager" = "X" && \
30 test "X$with_packager_version$with_packager_bug_reports" != "X"
31 then
32 AC_MSG_ERROR([The --with-packager-{bug-reports,version} options require --with-packager])
33 fi
34 ])