diff options
author | Nils Gillmann <ng0@n0.is> | 2018-06-14 21:50:59 +0000 |
---|---|---|
committer | Nils Gillmann <ng0@n0.is> | 2018-06-14 21:50:59 +0000 |
commit | eab87ba800bf45782ed7ae2d2648079b7078787f (patch) | |
tree | d760ce28855f3596a2caa7c07f323298f8424801 /bootstrap | |
parent | 3b8dabb7fb3241e2bddbaf70b568ed1ee015d1b6 (diff) | |
download | gnunet-eab87ba800bf45782ed7ae2d2648079b7078787f.tar.gz gnunet-eab87ba800bf45782ed7ae2d2648079b7078787f.zip |
bootstrap: Replace which.
Signed-off-by: Nils Gillmann <ng0@n0.is>
Diffstat (limited to 'bootstrap')
-rwxr-xr-x | bootstrap | 23 |
1 files changed, 17 insertions, 6 deletions
@@ -1,9 +1,20 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | echo "Removing folder 'libltdl'..." | ||
2 | rm -rf libltdl | 3 | rm -rf libltdl |
3 | echo -n "checking for libtoolize / libtool... " | 4 | |
4 | which glibtoolize || which libtoolize || which libtool || { | 5 | echo "checking for libtoolize / libtool... " |
5 | echo "*** No libtoolize (libtool) or libtool found, please install it ***" | 6 | |
6 | exit 1 | 7 | # This is more portable than `which' but comes with |
8 | # the caveat of not(?) properly working on busybox's ash: | ||
9 | existence() | ||
10 | { | ||
11 | command -v "$1" >/dev/null 2>&1 | ||
7 | } | 12 | } |
8 | autoreconf -if | 13 | |
9 | . "bin/pogen.sh" | 14 | if existence libtool || existence libtoolize || existence glibtoolize; then |
15 | autoreconf -if | ||
16 | . "bin/pogen.sh" | ||
17 | else | ||
18 | echo "*** No libtoolize (libtool) or libtool found, please install it ***" >&2; | ||
19 | exit 1 | ||
20 | fi | ||