1 # Bootstrap configuration.
3 # Copyright (C) 2006-2015, 2018-2021 Free Software Foundation, Inc.
5 # This program is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation, either version 3 of the License, or
8 # (at your option) any later version.
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program. If not, see <https://www.gnu.org/licenses/>.
18 # gnulib modules used by this package.
20 argmatch array-list assert assure attribute
22 calloc-posix close closeout config-h c-strcase
25 error execute extensions
26 fdl fopen-safer fstrcmp
28 gettext-h git-version-gen gitlog-to-changelog
29 gpl-3.0 intprops inttypes isnan javacomp-script
37 non-recursive-gnulib-prefix-hack
46 relocatable-prog relocatable-script
48 spawn-pipe stdbool stpcpy stpncpy strdup-posix strerror strverscmp
52 unicodeio unistd unistd-safer unlink unlocked-io
53 update-copyright unsetenv verify
65 fprintf-posix printf-posix snprintf-posix sprintf-posix
66 vsnprintf-posix vsprintf-posix
69 checkout_only_file=README-hacking.md
71 # Additional xgettext options to use. Use "\\\newline" to break lines.
72 XGETTEXT_OPTIONS=$XGETTEXT_OPTIONS'\\\
74 --flag=asprintf:2:c-format\\\
75 --flag=complain:3:c-format\\\
76 --flag=complain_indent:4:c-format\\\
77 --flag=unexpected_end:2:c-format\\\
79 XGETTEXT_OPTIONS_RUNTIME=$XGETTEXT_OPTIONS'\\\
83 gnulib_tool_option_extras='--symlink --conditional-dependencies --makefile-name=gnulib.mk --po-base=gnulib-po --po-domain=bison'
85 bootstrap_post_import_hook()
87 # Massage lib/gnulib.mk before using it later in the bootstrapping process.
88 build-aux/prefix-gnulib-mk --lib-name="$gnulib_name" "lib/$gnulib_mk"
90 # Ensure that ChangeLog exists, for automake.
91 test -f ChangeLog || touch ChangeLog
96 # Make sure we don't need src/bison, which usually doesn't exist at
97 # the time of a bootstrap.
98 touch src/parse-gram.[ch]
100 perl -pi -e "s/\@PACKAGE\@/$package/g" README-release
102 # Bison currently uses Gettext 0.19, but the gnulib-po module
103 # imports files from more recent versions of Gettext that are not
104 # yet available widely enough (e.g., not in bionic, used by the CI).
105 # Work around this. Don't use autopoint, which sends some other
107 cp po/Makefile.in.in gnulib-po
110 # Keep our bootstrap script in sync with gnulib's. If we ever need to
111 # maintain our own bootstrap script again, set this to false, remove
112 # the bootstrap entry from the file .x-update-copyright, and add any
113 # needed copyright years to the copyright statement in the bootstrap