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