build: adapt to gnulib's recent openat/fchownat separation
[coreutils.git] / bootstrap.conf
blobce87b5d1136051d06936e534c6afbcabedd0368d
1 # Bootstrap configuration.
3 # Copyright (C) 2006-2011 Free Software Foundation, Inc.
5 # This program is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation, either version 3 of the License, or
8 # (at your option) any later version.
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
19 # We don't need these modules.
20 avoided_gnulib_modules='
21   --avoid=canonicalize-lgpl
22   --avoid=dummy
25 # gnulib modules used by this package.
26 gnulib_modules="
27   $avoided_gnulib_modules
28   acl
29   alignof
30   alloca
31   announce-gen
32   areadlink-with-size
33   argmatch
34   argv-iter
35   assert
36   autobuild
37   backupfile
38   base64
39   c-strcase
40   c-strtod
41   c-strtold
42   calloc-gnu
43   canon-host
44   canonicalize
45   chown
46   cloexec
47   closein
48   closeout
49   config-h
50   configmake
51   crypto/md5
52   crypto/sha1
53   crypto/sha256
54   crypto/sha512
55   cycle-check
56   d-ino
57   d-type
58   di-set
59   diacrit
60   dirfd
61   dirname
62   do-release-commit-and-tag
63   dtoastr
64   dup2
65   environ
66   error
67   euidaccess
68   exclude
69   exitfail
70   faccessat
71   fadvise
72   fchdir
73   fchownat
74   fclose
75   fcntl
76   fcntl-safer
77   fdl
78   fdutimensat
79   file-type
80   fileblocks
81   filemode
82   filenamecat
83   filevercmp
84   fnmatch-gnu
85   fopen-safer
86   fprintftime
87   freopen
88   freopen-safer
89   fseeko
90   fsusage
91   fsync
92   ftello
93   ftoastr
94   fts
95   full-read
96   full-write
97   getgroups
98   gethrxtime
99   getline
100   getloadavg
101   getndelim2
102   getopt-gnu
103   getpagesize
104   getpass-gnu
105   gettext
106   gettime
107   gettimeofday
108   getugroups
109   getusershell
110   git-version-gen
111   gitlog-to-changelog
112   gnu-make
113   gnu-web-doc-update
114   gnumakefile
115   gnupload
116   group-member
117   hard-locale
118   hash
119   hash-pjw
120   heap
121   host-os
122   human
123   idcache
124   ignore-value
125   inttostr
126   inttypes
127   isapipe
128   isblank
129   largefile
130   lchmod
131   lchown
132   ldtoastr
133   lib-ignore
134   linebuffer
135   link
136   link-follow
137   linkat
138   long-options
139   lstat
140   maintainer-makefile
141   malloc-gnu
142   manywarnings
143   mbrlen
144   mbrtowc
145   mbsalign
146   mbswidth
147   memcasecmp
148   memchr
149   memcmp2
150   mempcpy
151   memrchr
152   mgetgroups
153   mkancesdirs
154   mkdir
155   mkdir-p
156   mkstemp
157   mktime
158   modechange
159   mountlist
160   mpsort
161   netinet_in
162   nproc
163   obstack
164   parse-datetime
165   perl
166   physmem
167   posix-shell
168   posixtm
169   posixver
170   priv-set
171   progname
172   propername
173   pthread
174   putenv
175   quote
176   quotearg
177   randint
178   randperm
179   read-file
180   readlink
181   readtokens
182   readtokens0
183   readutmp
184   realloc-gnu
185   regex
186   remove
187   rename
188   rmdir
189   root-dev-ino
190   rpmatch
191   safe-read
192   same
193   save-cwd
194   savedir
195   savewd
196   selinux-at
197   settime
198   sig2str
199   sigaction
200   ssize_t
201   stat-macros
202   stat-size
203   stat-time
204   stdbool
205   stdlib-safer
206   stpcpy
207   stpncpy
208   strdup-posix
209   strftime
210   strsignal
211   strtod
212   strtoimax
213   strtoumax
214   symlink
215   sys_ioctl
216   sys_stat
217   sys_wait
218   termios
219   timer-time
220   timespec
221   tzset
222   uname
223   unicodeio
224   unistd-safer
225   unlink-busy
226   unlocked-io
227   unsetenv
228   update-copyright
229   uptime
230   useless-if-before-free
231   userspec
232   utimecmp
233   utimens
234   vasprintf-posix
235   vc-list-files
236   verify
237   verror
238   version-etc-fsf
239   wcwidth
240   wcswidth
241   winsz-ioctl
242   winsz-termios
243   write-any-file
244   xalloc
245   xfreopen
246   xgetcwd
247   xgetgroups
248   xgethostname
249   xmemcoll
250   xnanosleep
251   xprintf
252   xprintf-posix
253   xreadlink
254   xstrtod
255   xstrtoimax
256   xstrtol
257   xstrtold
258   xstrtoumax
259   yesno
262 # Other locale categories that need message catalogs.
263 EXTRA_LOCALE_CATEGORIES=LC_TIME
265 # Additional xgettext options to use.  Use "\\\newline" to break lines.
266 XGETTEXT_OPTIONS=$XGETTEXT_OPTIONS'\\\
267  --flag=asnprintf:3:c-format\\\
268  --flag=asprintf:2:c-format\\\
269  --flag=error:3:c-format\\\
270  --flag=error_at_line:5:c-format\\\
271  --flag=vasnprintf:3:c-format\\\
272  --flag=vasprintf:2:c-format\\\
273  --flag=verror:3:c-format\\\
274  --flag=verror_at_line:5:c-format\\\
275  --flag=wrapf:1:c-format\\\
276  --flag=xasprintf:1:c-format\\\
277  --flag=xfprintf:2:c-format\\\
278  --flag=xprintf:1:c-format\\\
279  --from-code=UTF-8\\\
282 # Append these, since we use the propername module.
283 see_manual='"This is a proper name. See the gettext manual, section Names."'
284 see_manual=\'"$see_manual"\'
285 XGETTEXT_OPTIONS=$XGETTEXT_OPTIONS'\\\
286  --keyword=proper_name:1,'"$see_manual"'\\\
287  --keyword=proper_name_utf8:1,'"$see_manual"'\\\
290 gnulib_tool_option_extras="--tests-base=$bt/gnulib-tests --with-tests"
292 # Build prerequisites
293 buildreq="\
294 autoconf   2.62
295 automake   1.11.1
296 autopoint  -
297 bison      -
298 gettext    0.17
299 git        1.4.4
300 gperf      -
301 gzip       -
302 makeinfo   4.13
303 patch      -
304 perl       5.5
305 rsync      -
306 tar        -
307 xz         -
310 # Automake requires that ChangeLog exist.
311 touch ChangeLog || exit 1
313 bootstrap_epilogue()
315   # Change paths in gnulib-tests/gnulib.mk from "../.." to "..".
316   m=gnulib-tests/gnulib.mk
317   sed 's,\.\./\.\.,..,g' $m > $m-t
318   mv -f $m-t $m
320   # Since this is a "GNU" package, replace this line
321   #   if LC_ALL=C grep 'GNU @PACKAGE@' $(top_srcdir)/* 2>/dev/null \
322   #      | grep -v 'libtool:' >/dev/null; then
323   # with this:
324   #   if true; then
325   # Why?  That pipeline searches all files in $(top_srcdir), and if you
326   # happen to have large files (or apparently large sparse files), the
327   # first grep may well run out of memory.
328   perl -pi -e 's/if LC_ALL=C grep .GNU .PACKAGE.*; then/if true; then/' \
329     po/Makefile.in.in