OSDN Git Service

build: update 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         manywarnings
45         mktempd
46         realloc
47         rpmatch
48         progname
49         safe-read
50         stdbool
51         update-copyright
52         useless-if-before-free
53         vc-list-files
54         version-etc-fsf
55         warnings
56         xstrtol
57 "
58
59 # Additional xgettext options to use.  Use "\\\newline" to break lines.
60 XGETTEXT_OPTIONS=$XGETTEXT_OPTIONS'\\\
61  --from-code=UTF-8\\\
62  --flag=asprintf:2:c-format\\\
63  --flag=asnprintf:3:c-format\\\
64  --flag=error:3:c-format\\\
65  --flag=error_at_line:5:c-format\\\
66  --flag=vasprintf:2:c-format\\\
67  --flag=vasnprintf:3:c-format\\\
68  --flag=wrapf:1:c-format\\\
69  --flag=xasprintf:1:c-format\\\
70  --flag=xfprintf:2:c-format\\\
71  --flag=xprintf:1:c-format\\\
72 '
73
74 # Append these, since we use the propername module.
75 see_manual='"This is a proper name. See the gettext manual, section Names."'
76 see_manual=\'"$see_manual"\'
77 XGETTEXT_OPTIONS=$XGETTEXT_OPTIONS'\\\
78  --keyword=proper_name:1,'"$see_manual"'\\\
79  --keyword=proper_name_utf8:1,'"$see_manual"'\\\
80 '
81
82 # If "AM_GNU_GETTEXT(external" or "AM_GNU_GETTEXT([external]"
83 # appears in configure.ac, exclude some unnecessary files.
84 # Without grep's -E option (not portable enough, pre-configure),
85 # the following test is ugly.  Also, this depends on the existence
86 # of configure.ac, not the obsolescent-named configure.in.  But if
87 # you're using this infrastructure, you should care about such things.
88
89 gettext_external=0
90 grep '^[         ]*AM_GNU_GETTEXT(external\>' configure.ac > /dev/null &&
91   gettext_external=1
92 grep '^[         ]*AM_GNU_GETTEXT(\[external\]' configure.ac > /dev/null &&
93   gettext_external=1
94
95 if test $gettext_external = 1; then
96   # Gettext supplies these files, but we don't need them since
97   # we don't have an intl subdirectory.
98   excluded_files='
99       m4/glibc2.m4
100       m4/intdiv0.m4
101       m4/lcmessage.m4
102       m4/lock.m4
103       m4/uintmax_t.m4
104       m4/ulonglong.m4
105       m4/visibility.m4
106   '
107 fi
108
109 gnulib_tool_option_extras="--tests-base=$bt/gnulib-tests --with-tests"
110 mkdir -p gnulib-tests
111
112 # Build prerequisites
113 buildreq="\
114 autoconf   2.61
115 automake   1.11
116 autopoint  -
117 gettext    -
118 git        1.4.4
119 gperf      -
120 gzip       -
121 makeinfo   -
122 perl       5.5
123 rsync      -
124 tar        -
125 "
126
127 # If there is no ChangeLog file, create it.
128 if test -d .git; then
129   test -e ChangeLog ||
130     git log --pretty=medium | fold -s > ChangeLog
131 fi
132
133 gnulib_name=libgnulib