summaryrefslogtreecommitdiff
path: root/bootstrap.conf
diff options
context:
space:
mode:
authorTim Rühsen <tim.ruehsen@gmx.de>2018-05-18 20:31:31 +0200
committerTim Rühsen <tim.ruehsen@gmx.de>2018-06-14 11:07:46 +0200
commit3f1dc3fe54b32b56471a3e964b840b9b46ae7e09 (patch)
treeec2dfe0d6c6e56c3482fecf0823a84c4d4235499 /bootstrap.conf
parent0b73ac23e7e00e1bc3a0b4f1c1c21caec0c80901 (diff)
downloadgnutls-3f1dc3fe54b32b56471a3e964b840b9b46ae7e09.tar.gz
Add bootstrap + bootstrap.conf
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Diffstat (limited to 'bootstrap.conf')
-rw-r--r--bootstrap.conf78
1 files changed, 78 insertions, 0 deletions
diff --git a/bootstrap.conf b/bootstrap.conf
new file mode 100644
index 0000000000..c40d16e38b
--- /dev/null
+++ b/bootstrap.conf
@@ -0,0 +1,78 @@
+# Copyright (C) 2016 Tim Rühsen
+# Copyright (C) 2016-2017 Simon Josefsson
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 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
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+# gnulib library name
+source_base=gl
+tests_base=gl/tests
+m4_base=gl/m4
+gnulib_name=libgnu
+gnulib_tool_option_extras="--with-tests"
+use_libtool=1
+checkout_only_file=
+local_gl_dir=gl/override/
+SKIP_PO=1
+
+# Reproduce by: gnulib-tool --import --local-dir=gl/override --lib=libgnu --source-base=gl --m4-base=gl/m4 --doc-base=doc --tests-base=gl/tests --aux-dir=build-aux --with-tests --avoid=alignof-tests --avoid=lock-tests --avoid=lseek-tests --lgpl=2 --no-conditional-dependencies --libtool --macro-prefix=gl --no-vc-files alloca byteswap c-ctype extensions func gendocs getline gettext-h gettimeofday hash-pjw-bare havelib intprops lib-msvc-compat lib-symbol-versions maintainer-makefile manywarnings memmem-simple minmax netdb netinet_in pmccabe2html read-file secure_getenv snprintf stdint strcase strndup strtok_r strverscmp sys_socket sys_stat time_r unistd vasprintf vsnprintf warnings
+
+gnulib_modules="
+alloca byteswap c-ctype extensions func gendocs getline gettext-h gettimeofday hash-pjw-bare havelib intprops lib-msvc-compat lib-symbol-versions maintainer-makefile manywarnings memmem-simple minmax netdb netinet_in pmccabe2html read-file secure_getenv snprintf stdint strcase strndup strtok_r strverscmp sys_socket sys_stat sys_types time_r unistd valgrind-tests vasprintf vsnprintf warnings
+"
+
+unistring_modules="
+unictype/category-all unictype/property-default-ignorable-code-point unictype/property-join-control unictype/property-not-a-character uninorm/nfc uninorm/nfkc uninorm/u16-normalize uninorm/u32-normalize uninorm/u8-normalize unistr/u16-to-u8 unistr/u32-to-u8 unistr/u8-check unistr/u8-to-u16 unistr/u8-to-u32
+"
+
+src_modules="
+accept bind close connect getaddrinfo getpass gettext-h inet_ntop inet_pton listen minmax parse-datetime progname read-file recv recvfrom select send sendto servent setsockopt shutdown socket sockets socklen
+"
+
+# Build prerequisites
+buildreq="\
+autoconf 2.62
+automake 1.11.1
+gettext 0.17
+git 1.4.4
+perl 5.5
+"
+
+GTKDOCIZE=$(which gtkdocize 2>/dev/null)
+if test $? -ne 0; then
+ echo "No gtk-doc support found. You can't build the docs."
+ # rm because gtk-doc.make might be a link to a protected file
+ rm -f gtk-doc.make 2>/dev/null
+ echo "EXTRA_DIST =" >gtk-doc.make
+ echo "CLEANFILES =" >>gtk-doc.make
+ GTKDOCIZE=""
+else
+ $GTKDOCIZE
+fi
+
+bootstrap_post_import_hook ()
+{
+ # we re-use malloc-posix from the original gnulib
+# for i in ${unistring_modules}; do
+# sed -i 's/malloc-posix//g' ${GNULIB_SRCDIR}/modules/$i
+# done
+
+ ${GNULIB_SRCDIR}/gnulib-tool --import --local-dir=lib/unistring/override --lib=libunistring --source-base=lib/unistring --m4-base=lib/unistring/m4 --doc-base=doc --tests-base=tests --aux-dir=build-aux --lgpl=3orGPLv2 --no-conditional-dependencies --libtool --macro-prefix=unistring ${unistring_modules}
+
+ ${GNULIB_SRCDIR}/gnulib-tool --import --local-dir=src/gl/override --lib=libgnu_gpl --source-base=src/gl --m4-base=src/gl/m4 --doc-base=doc --tests-base=tests --aux-dir=build-aux --no-conditional-dependencies --libtool --macro-prefix=ggl --no-vc-files ${src_modules}
+
+# git -C ${GNULIB_SRCDIR} reset --hard
+
+ # Automake requires that ChangeLog exist.
+ touch ChangeLog || return 1
+}