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