add clang-format to emacs configuration (still requires clang-format to be installed...
[oweals/gnunet.git] / bootstrap
1 #!/bin/sh
2 # This file is in the public domain.
3 echo "Removing folder 'libltdl'..."
4 rm -rf libltdl
5
6 # Install clang format symlink (if possible)
7 ln -s contrib/conf/editors/clang-format .clang-format &> /dev/null
8
9 echo "checking for libtoolize / libtool... "
10
11 # This is more portable than `which' but comes with
12 # the caveat of not(?) properly working on busybox's ash:
13 existence()
14 {
15     command -v "$1" >/dev/null 2>&1
16 }
17
18 if existence libtool || existence libtoolize || existence glibtoolize || existence slibtool; then
19     autoreconf -if
20     . "bin/pogen.sh"
21 else
22     echo "*** No libtoolize (libtool) or libtool found, please install it ***" >&2;
23     exit 1
24 fi