diff options
author | Bruno Haible <bruno@clisp.org> | 2021-12-07 21:12:50 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2021-12-07 21:12:50 +0100 |
commit | 276c406870573ba9ac0318d16761fd3058ab11a8 (patch) | |
tree | bae1e5a49fe594b738aa29b197b15869427cd705 /m4 | |
parent | d61bca14edc031e824fe30bcad577da145842d50 (diff) | |
download | libunistring-276c406870573ba9ac0318d16761fd3058ab11a8.tar.gz |
Clarify rationale for gl_INIT_PACKAGE.
* m4/init-package-version.m4: Add more comments.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/init-package-version.m4 | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/m4/init-package-version.m4 b/m4/init-package-version.m4 index a26b1ab..823afc6 100644 --- a/m4/init-package-version.m4 +++ b/m4/init-package-version.m4 @@ -1,4 +1,4 @@ -# init-package-version.m4 serial 2 +# init-package-version.m4 serial 3 dnl Copyright (C) 1992-2021 Free Software Foundation, Inc. dnl This file is free software, distributed under the terms of the GNU dnl General Public License. As a special exception to the GNU General @@ -61,6 +61,28 @@ dnl the same distribution terms as the rest of that program. # . $srcdir/../version.sh # gl_INIT_PACKAGE(PACKAGE, $VERSION_NUMBER) # AM_INIT_AUTOMAKE([OPTIONS]) +# +# and after changing version.sh, the developer can directly configure and build: +# +# make distclean +# ./configure +# make +# +# Some other packages use another approach: +# +# AC_INIT(PACKAGE, +# m4_normalize(m4_esyscmd([. ./version.sh; echo $VERSION_NUMBER]))) +# AC_CONFIG_SRCDIR(WITNESS) +# AM_INIT_AUTOMAKE([OPTIONS]) +# +# but here, after changing version.sh, the developer must first regenerate the +# configure file: +# +# make distclean +# ./autogen.sh --skip-gnulib +# ./configure +# make +# # gl_INIT_PACKAGE(PACKAGE-NAME, VERSION) # -------------------------------------- |