+check4progs() {
+ local RTN=0
+ local ARG=''
+ while [ ${#} -gt 0 ]
+ do
+ ARG="${1}"
+ shift
+
+ # check for availability
+ if ! \which "${ARG}" >/dev/null 2>&1
+ then
+ printf "%s: binary not found\n" "${ARG}" >&2
+ RTN=1
+ fi
+
+ done
+
+ # return non zero, if at least one prog is missing!
+ return ${RTN}