2010-05-07 04:51:08 +08:00
|
|
|
# bootstrap.conf - Bootstrap configuration.
|
2024-02-19 21:03:43 +08:00
|
|
|
# Copyright (C) 2007-2012, 2018-2024 Free Software Foundation, Inc.
|
2010-05-07 04:51:08 +08:00
|
|
|
#
|
|
|
|
# This file is part of GNU Wget.
|
|
|
|
#
|
|
|
|
# GNU Wget 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.
|
|
|
|
#
|
2018-01-14 18:15:32 +08:00
|
|
|
# GNU Wget is distributed in the hope that it will be useful, but
|
2010-05-07 04:51:08 +08:00
|
|
|
# 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
|
2018-01-14 18:15:32 +08:00
|
|
|
# along with this program. If not, see `https://www.gnu.org/licenses/'.
|
2010-05-07 04:51:08 +08:00
|
|
|
|
|
|
|
# gnulib library name
|
2019-05-24 17:13:38 +08:00
|
|
|
source_base=lib
|
|
|
|
tests_base=lib/tests
|
2010-05-07 04:51:08 +08:00
|
|
|
gnulib_name=libgnu
|
2020-12-28 04:15:45 +08:00
|
|
|
gnulib_tool_option_extras="--makefile-name=gnulib.mk --po-base=gnulib_po --po-domain=wget"
|
2010-05-07 04:51:08 +08:00
|
|
|
use_libtool=0
|
|
|
|
checkout_only_file=
|
|
|
|
|
|
|
|
# gnulib modules used by this package.
|
|
|
|
gnulib_modules="
|
2010-05-07 18:28:26 +08:00
|
|
|
accept
|
2010-05-07 04:51:08 +08:00
|
|
|
announce-gen
|
2011-11-05 05:25:00 +08:00
|
|
|
base32
|
2010-05-07 18:28:26 +08:00
|
|
|
bind
|
2010-05-07 04:51:08 +08:00
|
|
|
c-ctype
|
2014-11-18 00:16:54 +08:00
|
|
|
c-strcase
|
2014-12-12 22:45:32 +08:00
|
|
|
c-strcasestr
|
2011-04-19 18:33:46 +08:00
|
|
|
clock-time
|
2010-05-07 18:28:26 +08:00
|
|
|
close
|
|
|
|
connect
|
2024-03-10 18:10:06 +08:00
|
|
|
crypto/md2
|
|
|
|
crypto/md4
|
|
|
|
crypto/md5
|
|
|
|
crypto/sha1
|
|
|
|
crypto/sha256
|
|
|
|
crypto/sha512
|
2014-12-19 23:07:38 +08:00
|
|
|
dirname
|
2024-03-10 18:10:06 +08:00
|
|
|
do-release-commit-and-tag
|
2011-04-03 08:15:22 +08:00
|
|
|
fcntl
|
2015-11-17 07:36:06 +08:00
|
|
|
flock
|
2020-02-14 22:30:14 +08:00
|
|
|
fnmatch-gnu
|
2016-08-15 03:04:58 +08:00
|
|
|
fopen
|
2012-03-21 03:41:14 +08:00
|
|
|
ftello
|
2024-03-10 18:10:06 +08:00
|
|
|
futimens
|
2021-01-09 08:48:53 +08:00
|
|
|
gendocs
|
2010-06-15 22:35:29 +08:00
|
|
|
getaddrinfo
|
2014-12-12 23:11:31 +08:00
|
|
|
getline
|
2010-05-16 04:34:33 +08:00
|
|
|
getopt-gnu
|
2010-05-07 04:51:08 +08:00
|
|
|
getpass-gnu
|
2010-05-07 18:28:26 +08:00
|
|
|
getpeername
|
|
|
|
getsockname
|
2018-01-31 16:01:54 +08:00
|
|
|
gettext-h
|
2012-05-13 22:46:15 +08:00
|
|
|
git-version-gen
|
2024-03-10 18:10:06 +08:00
|
|
|
gitlog-to-changelog
|
2021-01-09 08:48:53 +08:00
|
|
|
gnu-web-doc-update
|
2024-03-10 18:10:06 +08:00
|
|
|
gnupload
|
2017-03-24 18:36:01 +08:00
|
|
|
group-member
|
2017-01-13 19:54:35 +08:00
|
|
|
hostent
|
2011-08-11 18:15:51 +08:00
|
|
|
iconv
|
2010-06-04 00:09:52 +08:00
|
|
|
iconv-h
|
2017-01-13 19:54:35 +08:00
|
|
|
inet_ntop
|
2017-01-13 22:38:15 +08:00
|
|
|
intprops
|
|
|
|
inttypes
|
2024-03-10 18:10:06 +08:00
|
|
|
ioctl
|
2016-06-13 02:55:03 +08:00
|
|
|
langinfo
|
2024-03-10 18:10:06 +08:00
|
|
|
libunistring-optional
|
2017-01-13 22:38:15 +08:00
|
|
|
limits-h
|
2016-08-02 00:27:32 +08:00
|
|
|
link
|
2010-05-07 18:28:26 +08:00
|
|
|
listen
|
2010-05-07 04:51:08 +08:00
|
|
|
maintainer-makefile
|
2014-09-12 16:03:20 +08:00
|
|
|
mbiter
|
2011-04-14 22:02:43 +08:00
|
|
|
mbtowc
|
2014-12-05 18:57:28 +08:00
|
|
|
memrchr
|
2011-04-19 17:31:25 +08:00
|
|
|
mkdir
|
2013-05-18 04:36:36 +08:00
|
|
|
mkostemp
|
2024-03-10 18:10:06 +08:00
|
|
|
mkstemp
|
2017-01-13 19:54:35 +08:00
|
|
|
nanosleep
|
2016-08-15 03:04:58 +08:00
|
|
|
open
|
2016-10-07 19:23:27 +08:00
|
|
|
pipe-posix
|
2016-07-23 02:10:41 +08:00
|
|
|
posix_spawn
|
2010-05-07 04:51:08 +08:00
|
|
|
quote
|
|
|
|
quotearg
|
|
|
|
recv
|
2012-05-10 03:18:23 +08:00
|
|
|
regex
|
2021-04-11 19:16:17 +08:00
|
|
|
rename
|
2010-05-07 04:51:08 +08:00
|
|
|
select
|
|
|
|
send
|
2010-05-07 18:28:26 +08:00
|
|
|
setsockopt
|
2017-01-13 22:38:15 +08:00
|
|
|
signal-h
|
2011-04-14 18:07:43 +08:00
|
|
|
sigpipe
|
2024-03-10 18:10:06 +08:00
|
|
|
sigprocmask
|
2010-05-27 19:59:46 +08:00
|
|
|
snprintf
|
2010-05-07 04:51:08 +08:00
|
|
|
socket
|
2014-12-05 18:57:28 +08:00
|
|
|
spawn-pipe
|
2017-01-13 22:38:15 +08:00
|
|
|
stat
|
2010-05-07 04:51:08 +08:00
|
|
|
stdbool
|
2016-08-11 01:09:34 +08:00
|
|
|
stdint
|
2014-12-05 18:57:28 +08:00
|
|
|
strcase
|
2011-05-26 04:14:07 +08:00
|
|
|
strerror_r-posix
|
2016-09-07 16:40:43 +08:00
|
|
|
strpbrk
|
2014-12-05 18:57:28 +08:00
|
|
|
strptime
|
2012-03-21 03:41:14 +08:00
|
|
|
strtok_r
|
2018-04-16 01:00:32 +08:00
|
|
|
strtol
|
2014-12-05 18:57:28 +08:00
|
|
|
strtoll
|
2016-08-02 00:27:32 +08:00
|
|
|
symlink
|
2017-01-13 22:38:15 +08:00
|
|
|
sys_types
|
2014-12-05 18:57:28 +08:00
|
|
|
timegm
|
2011-11-05 05:25:00 +08:00
|
|
|
tmpdir
|
2024-03-10 18:10:06 +08:00
|
|
|
unicase/u8-tolower
|
|
|
|
unistr/u8-strlen
|
2016-08-02 00:27:32 +08:00
|
|
|
unlink
|
2011-04-14 22:02:43 +08:00
|
|
|
unlocked-io
|
2010-05-07 04:51:08 +08:00
|
|
|
update-copyright
|
2018-02-09 04:31:37 +08:00
|
|
|
utime
|
2017-01-13 19:54:35 +08:00
|
|
|
utimens
|
2010-07-09 20:56:40 +08:00
|
|
|
vasprintf
|
2011-10-23 19:23:46 +08:00
|
|
|
vsnprintf
|
2019-05-03 17:27:30 +08:00
|
|
|
warnings
|
2017-02-05 02:30:38 +08:00
|
|
|
wcwidth
|
2010-05-07 04:51:08 +08:00
|
|
|
write
|
2016-09-07 16:40:43 +08:00
|
|
|
xmemdup0
|
2014-10-22 07:10:21 +08:00
|
|
|
xstrndup
|
2010-05-07 04:51:08 +08:00
|
|
|
"
|
|
|
|
|
2010-06-10 16:06:03 +08:00
|
|
|
# Build prerequisites
|
|
|
|
buildreq="\
|
2020-12-28 01:49:03 +08:00
|
|
|
autoconf 2.64
|
2011-03-20 05:25:35 +08:00
|
|
|
automake 1.11.1
|
2010-06-10 16:06:03 +08:00
|
|
|
autopoint -
|
2021-03-14 02:40:59 +08:00
|
|
|
gettext -
|
2010-06-10 16:06:03 +08:00
|
|
|
git 1.4.4
|
|
|
|
makeinfo -
|
|
|
|
perl 5.5
|
|
|
|
tar -
|
2019-05-03 18:00:35 +08:00
|
|
|
gzip -
|
2014-11-25 16:52:40 +08:00
|
|
|
flex -
|
2017-07-31 20:56:32 +08:00
|
|
|
gperf -
|
2010-06-10 16:06:03 +08:00
|
|
|
"
|
2017-02-15 20:03:10 +08:00
|
|
|
|
|
|
|
bootstrap_post_import_hook ()
|
|
|
|
{
|
|
|
|
# We need to patch unicase/special-casing-table.h for gperf < 3.1
|
|
|
|
GPERF_VER=$(gperf --version | {
|
|
|
|
IFS=' .' read x y major minor bugfix _
|
|
|
|
printf "%d%02d%02d" $major $minor $bugfix
|
|
|
|
})
|
|
|
|
|
|
|
|
if [ $GPERF_VER -lt 30100 ]; then
|
2017-02-15 21:45:23 +08:00
|
|
|
echo "Creating lib/unicase/special-casing-table.h for gperf < 3.1"
|
2017-04-18 16:43:20 +08:00
|
|
|
gperf -m 10 lib/unicase/special-casing-table.gperf | \
|
|
|
|
sed -e "s/gl_unicase_special_lookup.*/gl_unicase_special_lookup\ \(const char \*str, size_t len\)/g" \
|
|
|
|
> lib/unicase/special-casing-table.h
|
2017-02-15 20:03:10 +08:00
|
|
|
fi
|
2019-05-06 02:34:09 +08:00
|
|
|
|
|
|
|
# ./bootstrap calls 'autopoint --force' which will overwrite
|
|
|
|
# po/Makevars.template. So here we add what we need for a VPATH
|
|
|
|
# build. ./bootstrap will create po/Makevars from po/Makevars.template
|
|
|
|
# after our change.
|
|
|
|
echo 'PACKAGE_GNU = yes' >> po/Makevars.template
|
2017-02-15 20:03:10 +08:00
|
|
|
}
|