X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=build.sh;h=3822c2bc1b217a9a1c93e730bfbadd0561f7a20f;hb=422c0afd40606e7f22304ea11086ea9e56da2579;hp=3efb44f64047c5bdeedf6dc5d646230645a4afcd;hpb=bc0a8f260e4e24bdf664c3dcff919b6f99bfe31d;p=collectd.git diff --git a/build.sh b/build.sh index 3efb44f6..3822c2bc 100755 --- a/build.sh +++ b/build.sh @@ -1,9 +1,48 @@ #! /bin/sh -libtoolize=libtoolize +GLOBAL_ERROR_INDICATOR=0 -if which glibtoolize > /dev/null 2>&1; then +check_for_application () +{ + for PROG in "$@" + do + if ! which "$PROG" >/dev/null 2>&1; then + cat >&2 </dev/null 2>&1 +then + libtoolize=libtoolize +else if which glibtoolize >/dev/null 2>&1 +then libtoolize=glibtoolize +else + cat >&2 <