# bootstrap.conf - Bootstrap configuration.
# Copyright (C) 2007-2025 Free Software Foundation, Inc.
#
# This file is part of GNU Inetutils.
#
# GNU Inetutils is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or (at
# your option) any later version.
#
# GNU Inetutils is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see `http://www.gnu.org/licenses/'.

GNULIB_REVISION=c89cd2fbd3b9f3d7c5a146247256599714c91ec7

# Build prerequisites.
buildreq="\
autoconf   2.59
automake   1.11.1
bison      2.3
m4         -
gzip	   -
xz	   -
"

checkout_only_file=README-alpha

# gnulib library name
gnulib_name=libgnu

# gnulib modules used by this package.
gnulib_modules="
alloca
alloca-opt
argp
argp-version-etc
attribute
autobuild
dirfd
dirname-lgpl
environ
errno
error
exitfail
extensions
filemode
forkpty
fts
gendocs
getaddrinfo
getcwd
getline
getopt-gnu
getpass
getpeername
gettext-h
gettime
getusershell
git-version-gen
gitlog-to-changelog
glob
intprops
inttostr
inttypes
ioctl
malloc-gnu
mempcpy
mgetgroups
minmax
mkstemp
obstack
poll
progname
pselect
read-file
readline
readme-release
readutmp
realloc-posix
regex
setenv
sethostname
signal
size_max
snprintf
socklen
stat-time
stdarg
stdbool
stdint
stdlib
strchrnul
strerror
string
strndup
strnlen
sys_types
sysexits
termios
timespec
timespec-add
timespec-sub
unistd-safer
update-copyright
vasnprintf
version-etc-fsf
vsnprintf
xalloc
xalloc-die
xgetcwd
xgetdomainname
xgethostname
xsize
xstrtoimax
xvasprintf
"

bootstrap_post_import_hook ()
{
  # Automake requires that ChangeLog exist.
  touch ChangeLog || return 1
}

bootstrap_epilogue ()
{
    # Run automake again.  It seems the first time ./bootstrap runs
    # automake, it will not add some files to am__DIST_COMMON in
    # top-level Makefile.in, but on subsequent runs (for example
    # through autoreconf, which is triggered on 'make release') it
    # will add the files.  The missing files include
    # build-aux/depcomp, build-aux/mdate-sh, build-aux/texinfo.texi,
    # and build-aux/ylwrap.  We want the am__DIST_COMMON value to be
    # identical so that "make dist" and "make release" tarballs are
    # identical and reproducible.
    ${AUTOMAKE=automake} --no-force
}
