X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=build.sh;h=bd4c1a319108e28ac3ec0b8822c733bcdd6dd4e2;hb=383df7c4409738283ac2cd8d972104353ddbd54c;hp=ca41cad0d28dc311373a52b2769ef731bd889582;hpb=a68fbc307be87f0b24fa5c8e6d0bc2116672a158;p=collectd.git diff --git a/build.sh b/build.sh index ca41cad0..bd4c1a31 100755 --- a/build.sh +++ b/build.sh @@ -1,11 +1,51 @@ -#! /bin/sh +#!/bin/sh + +GLOBAL_ERROR_INDICATOR=0 + +check_for_application() +{ + for PROG in "$@" + do + which "$PROG" >/dev/null 2>&1 + if test $? -ne 0; then + cat >&2 </dev/null 2>/dev/null +if test $? -eq 0; then + libtoolize=libtoolize +else + glibtoolize --version >/dev/null 2>/dev/null + if test $? -eq 0; then + libtoolize=glibtoolize + else + cat >&2 <