#!/bin/sh die(){ echo "$@" exit } automake Makefile || die "The command 'automake Makefile' failed" aclocal || die "The command 'aclocal' failed" autoheader || die "The command 'autoheader' failed" autoconf || die "The command 'autoconf' failed"