X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=bootstrap;h=bd089f4296e591bd6e7e083540a83f10bd8235fb;hb=ee19e4da1ce73b50218b8a8ac026b04b9fd44138;hp=f13919ba8a8fe50fb2df15a3f9341c888eaa6969;hpb=b16fa2d88aabb18f222b40136d6ace68ffc104c6;p=oweals%2Fgnunet.git diff --git a/bootstrap b/bootstrap index f13919ba8..bd089f429 100755 --- a/bootstrap +++ b/bootstrap @@ -1,9 +1,24 @@ #!/bin/sh +# This file is in the public domain. +echo "Removing folder 'libltdl'..." rm -rf libltdl -echo -n "checking for libtoolize / libtool... " -which glibtoolize || which libtoolize || which libtool || { - echo "*** No libtoolize (libtool) or libtool found, please install it ***" - exit 1 + +# Install clang format symlink (if possible) +ln -s contrib/conf/editors/clang-format .clang-format 2> /dev/null + +echo "checking for libtoolize / libtool... " + +# This is more portable than `which' but comes with +# the caveat of not(?) properly working on busybox's ash: +existence() +{ + command -v "$1" >/dev/null 2>&1 } -autoreconf -if -contrib/pogen.sh + +if existence libtool || existence libtoolize || existence glibtoolize || existence slibtool; then + autoreconf -if + . "bin/pogen.sh" +else + echo "*** No libtoolize (libtool) or libtool found, please install it ***" >&2; + exit 1 +fi