bootstrap.conf 3.0 KB
Newer Older
E
Eric Blake 已提交
1 2
# Bootstrap configuration.

3
# Copyright (C) 2010-2014 Red Hat, Inc.
E
Eric Blake 已提交
4 5 6 7 8 9 10 11 12

# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.

# This program 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
13
# GNU Lesser General Public License for more details.
E
Eric Blake 已提交
14 15

# You should have received a copy of the GNU Lesser General Public
16
# License along with this library.  If not, see
17
# <http://www.gnu.org/licenses/>.
E
Eric Blake 已提交
18 19 20

# gnulib modules used by this package.
gnulib_modules='
E
Eric Blake 已提交
21
accept
E
Eric Blake 已提交
22
areadlink
E
Eric Blake 已提交
23
bind
24
byteswap
E
Eric Blake 已提交
25
c-ctype
26 27
c-strcase
c-strcasestr
E
Eric Blake 已提交
28
canonicalize-lgpl
E
Eric Blake 已提交
29
chown
30
clock-time
E
Eric Blake 已提交
31 32
close
connect
33
configmake
E
Eric Blake 已提交
34
dirname-lgpl
35
environ
36
execinfo
E
Eric Blake 已提交
37
fclose
38
fcntl
E
Eric Blake 已提交
39
fcntl-h
E
Eric Blake 已提交
40
fdatasync
41
fnmatch
42
fsync
E
Eric Blake 已提交
43
getaddrinfo
44
getcwd-lgpl
E
Eric Blake 已提交
45 46
gethostname
getpass
E
Eric Blake 已提交
47 48
getpeername
getsockname
49
gettimeofday
E
Eric Blake 已提交
50
intprops
E
Eric Blake 已提交
51
ioctl
52
largefile
E
Eric Blake 已提交
53
listen
54
localeconv
55
manywarnings
E
Eric Blake 已提交
56
mgetgroups
57
mkdtemp
58 59
mkostemp
mkostemps
60
net_if
E
Eric Blake 已提交
61
netdb
62
nonblocking
63
openpty
64
passfd
E
Eric Blake 已提交
65
physmem
66
pipe-posix
E
Eric Blake 已提交
67
pipe2
E
Eric Blake 已提交
68 69
poll
posix-shell
E
Eric Blake 已提交
70
pthread_sigmask
E
Eric Blake 已提交
71
recv
72
regex
E
Eric Blake 已提交
73
send
E
Eric Blake 已提交
74
setenv
E
Eric Blake 已提交
75
setsockopt
76 77
sigaction
sigpipe
E
Eric Blake 已提交
78
snprintf
E
Eric Blake 已提交
79
socket
80
stat-time
E
Eric Blake 已提交
81 82
strchrnul
strerror
83
strerror_r-posix
84
strptime
E
Eric Blake 已提交
85
strsep
86
strtok_r
E
Eric Blake 已提交
87
sys_stat
E
Eric Blake 已提交
88
sys_wait
E
Eric Blake 已提交
89
termios
E
Eric Blake 已提交
90
time_r
91
timegm
92
ttyname_r
E
Eric Blake 已提交
93
uname
M
Michal Privoznik 已提交
94
unsetenv
E
Eric Blake 已提交
95
usleep
E
Eric Blake 已提交
96
verify
97
vsnprintf
98
waitpid
99
warnings
S
Simon Kobyda 已提交
100
wcwidth
E
Eric Blake 已提交
101 102
'

E
Eric Blake 已提交
103 104
SKIP_PO=true

105 106 107 108 109 110
# Enable copy-mode for MSYS/MinGW. MSYS' ln doesn't work well in the way
# bootstrap uses it with relative paths.
if test -n "$MSYSTEM"; then
    copy=true
fi

E
Eric Blake 已提交
111 112 113

# Tell gnulib to:
#   require LGPLv2+
E
Eric Blake 已提交
114
#   apply any local diffs in gnulib/local/ dir
115
#   put *.m4 files in m4/ dir
E
Eric Blake 已提交
116 117
#   put *.[ch] files in new gnulib/lib/ dir
#   import gnulib tests in new gnulib/tests/ dir
E
Eric Blake 已提交
118
gnulib_name=libgnu
119
m4_base=m4
E
Eric Blake 已提交
120 121 122 123 124
source_base=gnulib/lib
tests_base=gnulib/tests
gnulib_tool_option_extras="\
 --lgpl=2\
 --with-tests\
E
Eric Blake 已提交
125
 --makefile-name=gnulib.mk\
126
 --avoid=pt_chown\
127
 --avoid=lock-tests\
E
Eric Blake 已提交
128
"
E
Eric Blake 已提交
129
local_gl_dir=gnulib/local
E
Eric Blake 已提交
130 131

# Build prerequisites
132 133
# Note that some of these programs are only required for 'make dist' to
# succeed from a fresh git checkout; not all of these programs are
134
# required to run 'make dist' on a tarball.
E
Eric Blake 已提交
135 136 137
buildreq="\
autoconf   2.59
automake   1.9.6
E
Eric Blake 已提交
138
git        1.5.5
E
Eric Blake 已提交
139 140
gzip       -
libtool    -
E
Eric Blake 已提交
141
patch      -
E
Eric Blake 已提交
142
perl       5.5
143
pkg-config -
144
rpcgen     -
E
Eric Blake 已提交
145
tar        -
146 147
xmllint	   -
xsltproc   -
E
Eric Blake 已提交
148 149
"

150 151
# Automake requires that AUTHORS exist.
touch AUTHORS || exit 1
E
Eric Blake 已提交
152

153 154
# Override bootstrap's list - we don't use mdate-sh or texinfo.tex.
gnulib_extra_files="
E
Eric Blake 已提交
155 156 157 158
        build-aux/install-sh
        build-aux/depcomp
        build-aux/config.guess
        build-aux/config.sub
159 160 161
        doc/INSTALL
"

E
Eric Blake 已提交
162

E
Eric Blake 已提交
163
bootstrap_post_import_hook()
E
Eric Blake 已提交
164
{
165
  # Change paths in gnulib/tests/gnulib.mk from "../../.." to "../..",
E
Eric Blake 已提交
166
  # and make tests conditional by changing "TESTS" to "GNULIB_TESTS".
167
  m=gnulib/tests/gnulib.mk
168
  sed 's,\.\./\.\./\.\.,../..,g; s/^TESTS /GNULIB_TESTS /' $m > $m-t
E
Eric Blake 已提交
169 170
  mv -f $m-t $m
}