11 echo "Usage: $prog [options...]"
12 echo " -f, --force Force run of \`autoconf' and \`autoheader'"
13 echo " -c, --conf Run \`configure' after bootstrapping"
14 echo " -h, --help Display usage information"
21 echo "${prog}: error: $*" >&2
26 while [[ $# > 0 ]]; do
45 die
"invalid argument \`${arg}'"
50 [[ -e configure.ac
]] || \
51 die
"this script must be run from top-level source directory"
53 if [[ ${force} == yes ||
! -e configure || configure.ac
-nt configure
]]; then
54 echo "bootstrapping..."
55 for tool
in auto
{conf
,header
}; do
56 ${tool} || die
"${tool} failed"
60 if [[ ${configure} == yes ]]; then
62 .
/configure
"$@" || die
"configure failed"
68 # vim: ts=8 sw=8 noet fdm=marker tw=80