tests: fail rather than infloop in tail's inotify-rotate test
[coreutils.git] / bootstrap.conf
blob6e85c9a304bc2bc8f95466004934d9cd37a75321
1 # Bootstrap configuration.
3 # Copyright (C) 2006-2010 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 # These modules are obsolete and can probably be removed soon,
26 # but leave them in for now to minimize changes.
27 obsolete_gnulib_modules='
28   atexit
29   memcmp
30   memcpy
31   memmove
32   memset
33   strcspn
34   strtod
35   strtol
38 # gnulib modules used by this package.
39 gnulib_modules="
40   $avoided_gnulib_modules
41   $obsolete_gnulib_modules
42   acl
43   alignof
44   alloca
45   announce-gen
46   areadlink-with-size
47   argmatch
48   argv-iter
49   assert
50   autobuild
51   backupfile
52   base64
53   c-strcase
54   c-strtod
55   c-strtold
56   calloc
57   canon-host
58   canonicalize
59   chown
60   cloexec
61   closein
62   closeout
63   config-h
64   configmake
65   crypto/md5
66   crypto/sha1
67   crypto/sha256
68   crypto/sha512
69   cycle-check
70   d-ino
71   d-type
72   diacrit
73   dirfd
74   dirname
75   do-release-commit-and-tag
76   dup2
77   environ
78   error
79   euidaccess
80   exclude
81   exitfail
82   faccessat
83   fchdir
84   fcntl
85   fcntl-safer
86   fdl
87   file-type
88   fileblocks
89   filemode
90   filenamecat
91   filevercmp
92   fnmatch-gnu
93   fopen-safer
94   fprintftime
95   freopen
96   freopen-safer
97   fseeko
98   fsusage
99   fsync
100   ftello
101   fts
102   getdate
103   getgroups
104   gethrxtime
105   getline
106   getloadavg
107   getndelim2
108   getopt-gnu
109   getpagesize
110   getpass-gnu
111   gettext
112   gettime
113   gettimeofday
114   getugroups
115   getusershell
116   git-version-gen
117   gitlog-to-changelog
118   gnu-make
119   gnu-web-doc-update
120   gnumakefile
121   gnupload
122   group-member
123   hard-locale
124   hash
125   hash-pjw
126   host-os
127   human
128   idcache
129   ignore-value
130   inttostr
131   inttypes
132   isapipe
133   isblank
134   lchmod
135   lchown
136   lib-ignore
137   linebuffer
138   link
139   link-follow
140   linkat
141   long-options
142   lstat
143   maintainer-makefile
144   malloc
145   manywarnings
146   mbrtowc
147   mbsalign
148   mbswidth
149   memcasecmp
150   memchr
151   memcmp2
152   mempcpy
153   memrchr
154   mgetgroups
155   mkancesdirs
156   mkdir
157   mkdir-p
158   mkstemp
159   mktime
160   modechange
161   mountlist
162   mpsort
163   netinet_in
164   nproc
165   obstack
166   pathmax
167   perl
168   physmem
169   posix-shell
170   posixtm
171   posixver
172   priv-set
173   progname
174   propername
175   putenv
176   quote
177   quotearg
178   raise
179   randint
180   randperm
181   readlink
182   readtokens
183   readtokens0
184   readutmp
185   realloc
186   regex
187   remove
188   rename
189   rmdir
190   root-dev-ino
191   rpmatch
192   safe-read
193   same
194   save-cwd
195   savedir
196   savewd
197   selinux-at
198   settime
199   sig2str
200   sigaction
201   ssize_t
202   stat-macros
203   stat-time
204   stdbool
205   stdlib-safer
206   stpcpy
207   stpncpy
208   strdup-posix
209   strftime
210   strpbrk
211   strsignal
212   strtoimax
213   strtoumax
214   symlink
215   sys_ioctl
216   sys_stat
217   sys_wait
218   timespec
219   tzset
220   uname
221   unicodeio
222   unistd-safer
223   unlink-busy
224   unlocked-io
225   unsetenv
226   update-copyright
227   uptime
228   useless-if-before-free
229   userspec
230   utimecmp
231   utimens
232   vasprintf-posix
233   vc-list-files
234   verify
235   verror
236   version-etc-fsf
237   wcwidth
238   winsz-ioctl
239   winsz-termios
240   write-any-file
241   xalloc
242   xfreopen
243   xgetcwd
244   xgethostname
245   xmemcoll
246   xnanosleep
247   xprintf
248   xprintf-posix
249   xreadlink
250   xstrtod
251   xstrtoimax
252   xstrtol
253   xstrtold
254   xstrtoumax
255   yesno
258 # Other locale categories that need message catalogs.
259 EXTRA_LOCALE_CATEGORIES=LC_TIME
261 # Additional xgettext options to use.  Use "\\\newline" to break lines.
262 XGETTEXT_OPTIONS=$XGETTEXT_OPTIONS'\\\
263  --flag=asnprintf:3:c-format\\\
264  --flag=asprintf:2:c-format\\\
265  --flag=error:3:c-format\\\
266  --flag=error_at_line:5:c-format\\\
267  --flag=vasnprintf:3:c-format\\\
268  --flag=vasprintf:2:c-format\\\
269  --flag=verror:3:c-format\\\
270  --flag=verror_at_line:5:c-format\\\
271  --flag=wrapf:1:c-format\\\
272  --flag=xasprintf:1:c-format\\\
273  --flag=xfprintf:2:c-format\\\
274  --flag=xprintf:1:c-format\\\
275  --from-code=UTF-8\\\
278 # Append these, since we use the propername module.
279 see_manual='"This is a proper name. See the gettext manual, section Names."'
280 see_manual=\'"$see_manual"\'
281 XGETTEXT_OPTIONS=$XGETTEXT_OPTIONS'\\\
282  --keyword=proper_name:1,'"$see_manual"'\\\
283  --keyword=proper_name_utf8:1,'"$see_manual"'\\\
286 # If "AM_GNU_GETTEXT(external" or "AM_GNU_GETTEXT([external]"
287 # appears in configure.ac, exclude some unnecessary files.
288 # Without grep's -E option (not portable enough, pre-configure),
289 # the following test is ugly.  Also, this depends on the existence
290 # of configure.ac, not the obsolescent-named configure.in.  But if
291 # you're using this infrastructure, you should care about such things.
293 gettext_external=0
294 grep '^[         ]*AM_GNU_GETTEXT(external\>' configure.ac > /dev/null &&
295   gettext_external=1
296 grep '^[         ]*AM_GNU_GETTEXT(\[external\]' configure.ac > /dev/null &&
297   gettext_external=1
299 if test $gettext_external = 1; then
300   # Gettext supplies these files, but we don't need them since
301   # we don't have an intl subdirectory.
302   excluded_files='
303       m4/glibc2.m4
304       m4/intdiv0.m4
305       m4/lcmessage.m4
306       m4/uintmax_t.m4
307       m4/ulonglong.m4
308       m4/visibility.m4
309   '
312 gnulib_tool_option_extras="--tests-base=$bt/gnulib-tests --with-tests"
314 # Build prerequisites
315 buildreq="\
316 autoconf   2.62
317 automake   1.11.1
318 autopoint  -
319 bison      -
320 gettext    0.18
321 git        1.4.4
322 gperf      -
323 gzip       -
324 makeinfo   -
325 perl       5.5
326 rsync      -
327 tar        -
328 xz         -
331 # Automake requires that ChangeLog exist.
332 touch ChangeLog || exit 1
334 bootstrap_epilogue()
336   # Change paths in gnulib-tests/gnulib.mk from "../.." to "..".
337   m=gnulib-tests/gnulib.mk
338   sed 's,\.\./\.\.,..,g' $m > $m-t
339   mv -f $m-t $m
341   # Since this is a "GNU" package, replace this line
342   #   if LC_ALL=C grep 'GNU @PACKAGE@' $(top_srcdir)/* 2>/dev/null \
343   #      | grep -v 'libtool:' >/dev/null; then
344   # with this:
345   #   if true; then
346   # Why?  That pipeline searches all files in $(top_srcdir), and if you
347   # happen to have large files (or apparently large sparse files), the
348   # first grep may well run out of memory.
349   perl -pi -e 's/if LC_ALL=C grep .GNU .PACKAGE.*; then/if true; then/' \
350     po/Makefile.in.in