2010-02-23 03:01:32 +03:00
# Bootstrap configuration.
2015-01-10 00:54:15 +03:00
# Copyright (C) 2010-2014 Red Hat, Inc.
2010-02-23 03:01:32 +03:00
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2019-01-25 12:50:26 +03:00
# GNU Lesser General Public License for more details.
2010-02-23 03:01:32 +03:00
# You should have received a copy of the GNU Lesser General Public
2012-09-21 02:30:55 +04:00
# License along with this library. If not, see
2012-07-27 02:58:02 +04:00
# <http://www.gnu.org/licenses/>.
2010-02-23 03:01:32 +03:00
# gnulib modules used by this package.
2019-12-24 14:48:37 +03:00
# NB the GSocket conversion is non-trivial due to the
# different FD vs HANDLE usage in gnulib vs glib. Need
# to find a way to duplicate a socket HANDLE before
# turning it into a FD, since closing an FD also closes
# the original HANDLE.
# -> Meson
gnulib_modules="$gnulib_modules largefile"
# -> custom configure check
gnulib_modules="$gnulib_modules localeconv"
# -> open code / conditional comp
gnulib_modules="$gnulib_modules pipe-posix"
# -> open code / conditional comp
gnulib_modules="$gnulib_modules pipe2"
# -> GMainLoop
gnulib_modules="$gnulib_modules poll"
2020-01-17 17:50:47 +03:00
# -> GThread
gnulib_modules="$gnulib_modules threadlib"
2019-12-24 14:48:37 +03:00
# -> remove sys/wait.h include from any win32 code paths
gnulib_modules="$gnulib_modules sys_wait"
2010-02-23 03:01:32 +03:00
2010-02-23 03:01:33 +03:00
SKIP_PO=true
2019-12-11 12:17:27 +03:00
copy=true
2010-03-17 21:22:50 +03:00
2019-12-11 12:18:29 +03:00
bootstrap_sync=true
2019-12-11 12:19:21 +03:00
vc_ignore=
2010-02-23 03:01:32 +03:00
# Tell gnulib to:
# require LGPLv2+
2011-11-09 04:06:27 +04:00
# apply any local diffs in gnulib/local/ dir
2013-10-08 01:44:45 +04:00
# put *.m4 files in m4/ dir
2011-11-09 04:06:27 +04:00
# put *.[ch] files in new gnulib/lib/ dir
# import gnulib tests in new gnulib/tests/ dir
2010-02-23 03:01:32 +03:00
gnulib_name=libgnu
2013-10-08 01:44:45 +04:00
m4_base=m4
2010-02-23 03:01:32 +03:00
source_base=gnulib/lib
gnulib_tool_option_extras="\
--lgpl=2\
2012-01-12 04:19:01 +04:00
--makefile-name=gnulib.mk\
2011-11-04 00:56:13 +04:00
--avoid=pt_chown\
2019-12-11 12:19:21 +03:00
--no-vc-files\
2010-02-23 03:01:32 +03:00
"
2011-11-09 04:06:27 +04:00
local_gl_dir=gnulib/local
2010-02-23 03:01:32 +03:00
# Build prerequisites
2011-11-19 03:35:54 +04:00
# Note that some of these programs are only required for 'make dist' to
# succeed from a fresh git checkout; not all of these programs are
2015-06-29 14:43:51 +03:00
# required to run 'make dist' on a tarball.
2010-02-23 03:01:32 +03:00
buildreq="\
autoconf 2.59
automake 1.9.6
2010-02-24 21:38:44 +03:00
git 1.5.5
2010-02-23 03:01:32 +03:00
gzip -
libtool -
2011-12-07 20:26:57 +04:00
patch -
2010-02-23 03:01:32 +03:00
perl 5.5
2010-10-05 19:10:31 +04:00
pkg-config -
2011-05-06 17:11:32 +04:00
rpcgen -
2010-02-23 03:01:32 +03:00
tar -
2011-11-19 03:35:54 +04:00
xmllint -
xsltproc -
2010-02-23 03:01:32 +03:00
"
2011-02-19 00:40:35 +03:00
# Override bootstrap's list - we don't use mdate-sh or texinfo.tex.
gnulib_extra_files="
2013-07-19 01:47:41 +04:00
build-aux/install-sh
build-aux/depcomp
build-aux/config.guess
build-aux/config.sub
2011-02-19 00:40:35 +03:00
doc/INSTALL
"
2019-11-06 17:55:12 +03:00
bootstrap_epilogue()
{
echo "$0: done. Now you can run 'mkdir build && cd build && ../configure'."
exit 0
}