X-Git-Url: https://git.tokkee.org/?p=collectd.git;a=blobdiff_plain;f=build.sh;h=20854b13b7d88cf6aa90f5ce990fd07370fff56c;hp=ca41cad0d28dc311373a52b2769ef731bd889582;hb=31ee0e5282b59f89ac5c9bcaebb993450e45dba1;hpb=a68fbc307be87f0b24fa5c8e6d0bc2116672a158 diff --git a/build.sh b/build.sh index ca41cad0..20854b13 100755 --- a/build.sh +++ b/build.sh @@ -1,11 +1,59 @@ #! /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 <