| 1 | # Bootstrap configuration. |
| 2 | |
| 3 | # Copyright (C) 2006-2020 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, even though gnulib-tool mistakenly |
| 20 | # includes them because of gettext and fchdir dependencies. |
| 21 | avoided_gnulib_modules=' |
| 22 | --avoid=canonicalize-lgpl |
| 23 | ' |
| 24 | |
| 25 | gnulib_name=libgnu |
| 26 | |
| 27 | # gnulib modules used by this package. |
| 28 | gnulib_modules=" |
| 29 | $avoided_gnulib_modules |
| 30 | alloca |
| 31 | alloca-opt |
| 32 | announce-gen |
| 33 | argv-iter |
| 34 | autobuild |
| 35 | calloc-gnu |
| 36 | closeout |
| 37 | dirname |
| 38 | do-release-commit-and-tag |
| 39 | error |
| 40 | exclude |
| 41 | exitfail |
| 42 | extensions |
| 43 | fflush |
| 44 | fnmatch |
| 45 | fnmatch-gnu |
| 46 | fopen |
| 47 | freopen |
| 48 | fpending |
| 49 | fprintf-posix |
| 50 | getcwd |
| 51 | getopt-gnu |
| 52 | gettext-h |
| 53 | git-version-gen |
| 54 | gitlog-to-changelog |
| 55 | gnu-make |
| 56 | gnu-web-doc-update |
| 57 | gnumakefile |
| 58 | gnupload |
| 59 | havelib |
| 60 | ignore-value |
| 61 | inttostr |
| 62 | lstat |
| 63 | malloc-gnu |
| 64 | maintainer-makefile |
| 65 | manywarnings |
| 66 | mbchar |
| 67 | mbuiter |
| 68 | mempcpy |
| 69 | obstack |
| 70 | pathmax |
| 71 | perl |
| 72 | posix-shell |
| 73 | printf-posix |
| 74 | progname |
| 75 | quote |
| 76 | quotearg |
| 77 | readme-release |
| 78 | realloc-gnu |
| 79 | regex |
| 80 | stat-macros |
| 81 | stdbool |
| 82 | sprintf-posix |
| 83 | strcase |
| 84 | strcasestr |
| 85 | strsep |
| 86 | strnlen1 |
| 87 | strsep |
| 88 | sys_ioctl |
| 89 | update-copyright |
| 90 | useless-if-before-free |
| 91 | vc-list-files |
| 92 | warnings |
| 93 | xalloc |
| 94 | xalloc-die |
| 95 | xgetcwd |
| 96 | " |
| 97 | |
| 98 | # Other locale categories that need message catalogs. |
| 99 | EXTRA_LOCALE_CATEGORIES= |
| 100 | |
| 101 | # Additional xgettext options to use. Use "\\\newline" to break lines. |
| 102 | XGETTEXT_OPTIONS=$XGETTEXT_OPTIONS'\\\ |
| 103 | --from-code=UTF-8\\\ |
| 104 | --flag=asprintf:2:c-format --flag=vasprintf:2:c-format\\\ |
| 105 | --flag=asnprintf:3:c-format --flag=vasnprintf:3:c-format\\\ |
| 106 | --flag=wrapf:1:c-format\\\ |
| 107 | ' |
| 108 | |
| 109 | # If "AM_GNU_GETTEXT(external" or "AM_GNU_GETTEXT([external]" |
| 110 | # appears in configure.ac, exclude some unnecessary files. |
| 111 | # Without grep's -E option (not portable enough, pre-configure), |
| 112 | # the following test is ugly. Also, this depends on the existence |
| 113 | # of configure.ac, not the obsolescent-named configure.in. But if |
| 114 | # you're using this infrastructure, you should care about such things. |
| 115 | |
| 116 | gettext_external=0 |
| 117 | grep '^[ ]*AM_GNU_GETTEXT(external\>' configure.ac > /dev/null && |
| 118 | gettext_external=1 |
| 119 | grep '^[ ]*AM_GNU_GETTEXT(\[external\]' configure.ac > /dev/null && |
| 120 | gettext_external=1 |
| 121 | |
| 122 | if test $gettext_external = 1; then |
| 123 | # Gettext supplies these files, but we don't need them since |
| 124 | # we don't have an intl subdirectory. |
| 125 | excluded_files=' |
| 126 | m4/glibc2.m4 |
| 127 | m4/intdiv0.m4 |
| 128 | m4/lcmessage.m4 |
| 129 | m4/uintmax_t.m4 |
| 130 | m4/ulonglong.m4 |
| 131 | m4/visibility.m4 |
| 132 | ' |
| 133 | fi |
| 134 | |
| 135 | gnulib_tool_option_extras="--tests-base=gnulib-tests --with-tests --symlink\ |
| 136 | --makefile-name=gnulib.mk |
| 137 | " |
| 138 | |
| 139 | # Build prerequisites |
| 140 | buildreq="\ |
| 141 | autoconf 2.61 |
| 142 | automake 1.11 |
| 143 | autopoint - |
| 144 | bison - |
| 145 | gettext 0.18 |
| 146 | git 1.4.4 |
| 147 | gperf - |
| 148 | gzip - |
| 149 | makeinfo - |
| 150 | perl 5.5 |
| 151 | rsync - |
| 152 | tar - |
| 153 | " |
| 154 | |
| 155 | # Automake requires that ChangeLog exist. |
| 156 | touch ChangeLog || exit 1 |
| 157 | |
| 158 | bootstrap_epilogue() |
| 159 | { |
| 160 | perl -pi -e "s/\@PACKAGE\@/$package/g" README-release |
| 161 | } |