# 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=b3518f60173c907453ee5c7d439f967342de6d0c

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

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
bool
dirfd
dirname-lgpl
environ
errno-h
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
hostent
intprops
inttostr
inttypes-h
ioctl
malloc-gnu
mempcpy
mgetgroups
minmax
mkstemp
obstack
poll
progname
pselect
read-file
readline
readme-release
readutmp
realloc-posix
regex
setenv
sethostname
signal-h
size_max
snprintf
socket
socklen
stat-time
stdarg-h
stdint-h
stdlib-h
strchrnul
strerror
string-h
strndup
strnlen
sys_types-h
sysexits-h
termios-h
timespec
timespec-add
timespec-sub
unistd-safer
update-copyright
vasnprintf
vasprintf-posix
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
}
