--- embedaddon/lighttpd/autogen.sh 2013/10/14 10:32:47 1.1.1.1 +++ embedaddon/lighttpd/autogen.sh 2014/06/15 20:20:05 1.1.1.2 @@ -1,29 +1,14 @@ #!/bin/sh # Run this to generate all the initial makefiles, etc. -if which glibtoolize >/dev/null 2>&1; then - LIBTOOLIZE=${LIBTOOLIZE:-glibtoolize} -else - LIBTOOLIZE=${LIBTOOLIZE:-libtoolize} -fi -ACLOCAL=${ACLOCAL:-aclocal} -AUTOHEADER=${AUTOHEADER:-autoheader} -AUTOMAKE=${AUTOMAKE:-automake} -AUTOCONF=${AUTOCONF:-autoconf} - -ARGV0=$0 - set -e +if [ ! -f configure.ac -o ! -f COPYING ]; then + echo "Doesn't look like you're in the source directory" >&2 + exit 1 +fi -run() { - echo "$ARGV0: running \`$@'" - "$@" -} - -run $LIBTOOLIZE --copy --force -run $ACLOCAL $ACLOCAL_FLAGS -run $AUTOHEADER -run $AUTOMAKE --add-missing --copy --foreign --force-missing -run $AUTOCONF +# old autoreconf/aclocal versions fail hard if m4 doesn't exist +mkdir -p m4 +autoreconf --force --install echo "Now type './configure ...' and 'make' to compile."