OSDN Git Service

maint: update all FSF copyright year lists to include 2010
[android-x86/external-parted.git] / bootstrap.conf
1 # Bootstrap configuration.
2
3 # Copyright (C) 2006-2010 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=dummy
22         --avoid=lock
23 '
24
25 # gnulib modules used by this package.
26 gnulib_modules="
27         $avoided_gnulib_modules
28         alloca announce-gen assert
29         argmatch
30         calloc config-h configmake
31         canonicalize-lgpl
32         close
33         closeout
34         dirname
35         fdl
36         fsync
37         gettext
38         git-version-gen
39         gitlog-to-changelog
40         gnu-web-doc-update
41         gnumakefile
42         gnupload
43         inttypes
44         lib-ignore
45         long-options
46         lseek
47         malloc
48         maintainer-makefile
49         manywarnings
50         mkstemp
51         mktempd
52         realloc
53         rpmatch
54         progname
55         safe-read
56         stdbool
57         strdup
58         unlink
59         update-copyright
60         useless-if-before-free
61         vc-list-files
62         version-etc-fsf
63         warnings
64         xstrtol
65 "
66
67 # Additional xgettext options to use.  Use "\\\newline" to break lines.
68 XGETTEXT_OPTIONS=$XGETTEXT_OPTIONS'\\\
69  --from-code=UTF-8\\\
70  --flag=asprintf:2:c-format\\\
71  --flag=asnprintf:3:c-format\\\
72  --flag=error:3:c-format\\\
73  --flag=error_at_line:5:c-format\\\
74  --flag=vasprintf:2:c-format\\\
75  --flag=vasnprintf:3:c-format\\\
76  --flag=wrapf:1:c-format\\\
77  --flag=xasprintf:1:c-format\\\
78  --flag=xfprintf:2:c-format\\\
79  --flag=xprintf:1:c-format\\\
80 '
81
82 # Append these, since we use the propername module.
83 see_manual='"This is a proper name. See the gettext manual, section Names."'
84 see_manual=\'"$see_manual"\'
85 XGETTEXT_OPTIONS=$XGETTEXT_OPTIONS'\\\
86  --keyword=proper_name:1,'"$see_manual"'\\\
87  --keyword=proper_name_utf8:1,'"$see_manual"'\\\
88 '
89
90 # If "AM_GNU_GETTEXT(external" or "AM_GNU_GETTEXT([external]"
91 # appears in configure.ac, exclude some unnecessary files.
92 # Without grep's -E option (not portable enough, pre-configure),
93 # the following test is ugly.  Also, this depends on the existence
94 # of configure.ac, not the obsolescent-named configure.in.  But if
95 # you're using this infrastructure, you should care about such things.
96
97 gettext_external=0
98 grep '^[         ]*AM_GNU_GETTEXT(external\>' configure.ac > /dev/null &&
99   gettext_external=1
100 grep '^[         ]*AM_GNU_GETTEXT(\[external\]' configure.ac > /dev/null &&
101   gettext_external=1
102
103 if test $gettext_external = 1; then
104   # Gettext supplies these files, but we don't need them since
105   # we don't have an intl subdirectory.
106   excluded_files='
107       m4/glibc2.m4
108       m4/intdiv0.m4
109       m4/lcmessage.m4
110       m4/lock.m4
111       m4/uintmax_t.m4
112       m4/ulonglong.m4
113       m4/visibility.m4
114   '
115 fi
116
117 gnulib_tool_option_extras="--tests-base=$bt/gnulib-tests --with-tests"
118 mkdir -p gnulib-tests
119
120 # Build prerequisites
121 buildreq="\
122 autoconf   2.61
123 automake   1.11
124 autopoint  -
125 gettext    -
126 git        1.4.4
127 gperf      3.0.3
128 gzip       -
129 makeinfo   -
130 perl       5.5
131 rsync      -
132 tar        -
133 "
134
135 # If there is no ChangeLog file, create it.
136 if test -d .git; then
137   test -e ChangeLog ||
138     git log --pretty=medium | fold -s > ChangeLog
139 fi
140
141 gnulib_name=libgnulib