1 # Bootstrap configuration.
3 # Copyright (C) 2010 Red Hat, Inc.
5 # This library is free software; you can redistribute it and/or
6 # modify it under the terms of the GNU Lesser General Public
7 # License as published by the Free Software Foundation; either
8 # version 2.1 of the License, or (at your option) any later version.
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.
15 # You should have received a copy of the GNU Lesser General Public
16 # License along with this library; if not, write to the Free Software
17 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 # gnulib modules used by this package.
72 useless-if-before-free
79 # Additional xgettext options to use. Use "\\\newline" to break lines.
80 XGETTEXT_OPTIONS=$XGETTEXT_OPTIONS'\\\
81 --flag=virAsprintf:2:c-format\\\
85 # This is not a GNU package, so the default bug address is invalid,
86 # and the translation project is not in use.
87 MSGID_BUGS_ADDRESS=libvir-list@redhat.com
88 COPYRIGHT_HOLDER='Red Hat, Inc.'
91 # Enable copy-mode for MSYS/MinGW. MSYS' ln doesn't work well in the way
92 # bootstrap uses it with relative paths.
93 if test -n "$MSYSTEM"; then
97 # If "AM_GNU_GETTEXT(external" or "AM_GNU_GETTEXT([external]"
98 # appears in configure.ac, exclude some unnecessary files.
99 # Without grep's -E option (not portable enough, pre-configure),
100 # the following test is ugly. Also, this depends on the existence
101 # of configure.ac, not the obsolescent-named configure.in. But if
102 # you're using this infrastructure, you should care about such things.
105 grep '^[ ]*AM_GNU_GETTEXT(external\>' configure.ac > /dev/null &&
107 grep '^[ ]*AM_GNU_GETTEXT(\[external\]' configure.ac > /dev/null &&
110 if test $gettext_external = 1; then
111 # Gettext supplies these files, but we don't need them since
112 # we don't have an intl subdirectory.
125 # put *.m4 files in new gnulib/m4/ dir
126 # put *.[ch] files in new gnulib/lib/ dir.
127 # import gnulib tests in new gnulib/tests/ dir.
130 source_base=gnulib/lib
131 tests_base=gnulib/tests
132 gnulib_mk=Makefile.am
133 gnulib_tool_option_extras="\
138 # Convince bootstrap to use multiple m4 directories.
140 ACLOCAL="$ACLOCAL -I gnulib/m4"
143 # Build prerequisites
157 # Automake requires that ChangeLog exist.
158 touch ChangeLog || exit 1
163 # Change paths in gnulib/tests/Makefile.am from "../../.." to "../..".
164 m=gnulib/tests/Makefile.am
165 sed 's,\.\./\.\./\.\.,../..,g' $m > $m-t