xref: /lighttpd1.4/autogen.sh (revision 7adc6625)
1#!/bin/sh
2# Run this to generate all the initial makefiles, etc.
3
4errtrace() {
5   echo 1>&2 \
6     "build requires autoconf automake libtool m4 pcre pcre-devel pkg-config"
7}
8
9trap errtrace ERR
10
11set -e
12
13if [ ! -f configure.ac -o ! -f COPYING ]; then
14	echo "Doesn't look like you're in the source directory" >&2
15	exit 1
16fi
17
18# old autoreconf/aclocal versions fail hard if m4 doesn't exist
19mkdir -p m4
20autoreconf --force --install
21echo "Now type './configure ...' and 'make' to compile."
22