wget/bootstrap.conf

170 lines
2.8 KiB
Plaintext
Raw Normal View History

2010-05-07 04:51:08 +08:00
# bootstrap.conf - Bootstrap configuration.
2018-01-14 18:24:43 +08:00
# Copyright (C) 2007-2012, 2018 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.
#
# 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
# along with this program. If not, see `https://www.gnu.org/licenses/'.
2010-05-07 04:51:08 +08:00
# gnulib library name
gnulib_name=libgnu
gnulib_tool_option_extras=
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
alloca
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
c-strcase
c-strcasestr
2011-04-19 18:33:46 +08:00
clock-time
2010-05-07 18:28:26 +08:00
close
connect
dirname
2011-04-03 08:15:22 +08:00
fcntl
flock
fnmatch
fopen
2011-04-19 18:33:46 +08:00
futimens
2012-03-21 03:41:14 +08:00
ftello
2010-06-15 22:35:29 +08:00
getaddrinfo
getline
getopt-gnu
2010-05-07 04:51:08 +08:00
getpass-gnu
2010-05-07 18:28:26 +08:00
getpeername
getsockname
gettext-h
gitlog-to-changelog
git-version-gen
2010-05-07 04:51:08 +08:00
gnupload
2017-03-24 18:36:01 +08:00
group-member
hostent
2011-04-04 02:23:31 +08:00
ioctl
2011-08-11 18:15:51 +08:00
iconv
2010-06-04 00:09:52 +08:00
iconv-h
inet_ntop
intprops
inttypes
langinfo
limits-h
link
2010-05-07 18:28:26 +08:00
listen
2010-05-07 04:51:08 +08:00
maintainer-makefile
mbiter
2011-04-14 22:02:43 +08:00
mbtowc
memrchr
2011-04-19 17:31:25 +08:00
mkdir
2012-03-21 03:41:14 +08:00
mkstemp
mkostemp
nanosleep
crypto/md2
crypto/md4
2010-05-16 07:34:17 +08:00
crypto/md5
2011-11-05 05:25:00 +08:00
crypto/sha1
Metalink support. * bootstrap.conf: Add crypto/sha256 * configure.ac: Look for libmetalink and GPGME * doc/wget.texi: Add --input-metalink and --metalink-over-http options description. * po/POTFILES.in: Add metalink.c * src/Makefile.am: Add new translation unit (metalink.c) * src/http.c (http_stat): Add metalink field. (free_stat): Free metalink field. (find_key_value): Find value of given key in header string. (has_key): Check if token exists in header string. (find_key_values): Find all key=value pairs in header string. (metalink_from_http): Obtain Metalink metadata from HTTP response. (gethttp): Call metalink_from_http if requested. (http_loop): Request Metalink metadata from HTTP response if should be. Fall back to regular download if no Metalink metadata found. * src/init.c: Add --input-metalink and --metalink-over-http options * src/main.c (option_data): Handle --input-metalink and --metalink-over-http cmd arguments. (print_help): Print --input-metalink option description. (main): Retrieve files from Metalink file * src/metalink.c (retrieve_from_metalink): Download files described by metalink. (metalink_res_cmp): Comparator for resources priority-sorting. * src/metalink.h: Create header for metalink.c (RES_TYPE_SUPPORTED): Define supported resources media. (DEFAULT_PRI): Default mirror priority for Metalink over HTTP. (VALID_PRI_RANGE): Valid priority range. * src/options.h (options): Add input_metalink option and metalink_over_http options. * src/utils.c (hex_to_string): Convert binary data to ASCII-hex. * src/utils.h (hex_to_string): Add prototype. * src/wget.h: Add metalink-related error enums Add METALINK_METADATA flag for document type.
2015-05-31 05:51:55 +08:00
crypto/sha256
crypto/sha512
open
pipe-posix
posix_spawn
2010-05-07 04:51:08 +08:00
quote
quotearg
recv
regex
2010-05-07 04:51:08 +08:00
select
send
2010-05-07 18:28:26 +08:00
setsockopt
signal-h
2011-08-11 20:23:39 +08:00
sigprocmask
sigpipe
2010-05-27 19:59:46 +08:00
snprintf
2010-05-07 04:51:08 +08:00
socket
spawn-pipe
stat
2010-05-07 04:51:08 +08:00
stdbool
stdint
strcase
strerror_r-posix
strpbrk
strptime
2012-03-21 03:41:14 +08:00
strtok_r
strtol
strtoll
symlink
sys_types
timegm
2011-11-05 05:25:00 +08:00
tmpdir
unlink
2011-04-14 22:02:43 +08:00
unlocked-io
2010-05-07 04:51:08 +08:00
update-copyright
libunistring-optional
unistr/u8-strlen
unicase/u8-tolower
utime
utime-h
utimens
2010-07-09 20:56:40 +08:00
vasprintf
vsnprintf
wcwidth
2010-05-07 04:51:08 +08:00
write
xmemdup0
xstrndup
2010-05-07 04:51:08 +08:00
"
gnulib_extra_files="
$build_aux/install-sh
$build_aux/mdate-sh
$build_aux/texinfo.tex
$build_aux/depcomp
$build_aux/config.guess
$build_aux/config.sub
$build_aux/config.rpath
doc/INSTALL
"
2010-06-10 16:06:03 +08:00
# Build prerequisites
buildreq="\
2011-03-20 05:25:35 +08:00
autoconf 2.62
automake 1.11.1
2010-06-10 16:06:03 +08:00
autopoint -
gettext 0.17
2010-06-10 16:06:03 +08:00
git 1.4.4
makeinfo -
perl 5.5
rsync -
tar -
2011-03-20 05:25:35 +08:00
xz -
flex -
2017-07-31 20:56:32 +08:00
gperf -
2010-06-10 16:06:03 +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
echo "Creating lib/unicase/special-casing-table.h for gperf < 3.1"
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
fi
}