OSDN Git Service

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