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