]> jfr.im git - irc/rizon/znc.git/commitdiff
Why was this removed
authorAdam <redacted>
Tue, 17 Jul 2012 00:12:34 +0000 (20:12 -0400)
committerAdam <redacted>
Tue, 17 Jul 2012 00:12:34 +0000 (20:12 -0400)
autogen.sh

index 5347ab2e9548f998cac1413398b145116e36bcfa..2ed4030702d5efd221ccff79673004470f07e53f 100755 (executable)
@@ -1 +1,41 @@
-autogen.sh
\ No newline at end of file
+#!/bin/sh
+# Run this to generate all the initial makefiles, etc.
+# This is based on various examples which can be found everywhere.
+set -e
+
+FLAGS=${FLAGS--Wall}
+ACLOCAL=${ACLOCAL-aclocal}
+AUTOHEADER=${AUTOHEADER-autoheader}
+AUTOCONF=${AUTOCONF-autoconf}
+AUTOMAKE=${AUTOMAKE-automake}
+ACLOCAL_FLAGS="${ACLOCAL_FLAGS--I m4} ${FLAGS}"
+AUTOHEADER_FLAGS="${AUTOHEADER_FLAGS} ${FLAGS}"
+AUTOCONF_FLAGS="${AUTOCONF_FLAGS} ${FLAGS}"
+AUTOMAKE_FLAGS="${AUTOMAKE_FLAGS---add-missing} ${FLAGS}"
+
+die() {
+       echo "$@"
+       exit 1
+}
+do_cmd() {
+       echo "Running '$@'"
+       $@
+}
+
+test -f configure.ac || die "No configure.ac found."
+
+# Generate aclocal.m4 for use by autoconf
+do_cmd $ACLOCAL    $ACLOCAL_FLAGS
+# Generate zncconfig.h.in for configure
+do_cmd $AUTOHEADER $AUTOHEADER_FLAGS
+# Generate configure
+do_cmd $AUTOCONF   $AUTOCONF_FLAGS
+# Copy config.sub, config.guess, install.sh, ...
+# This will complain that we don't use automake, let's just ignore that
+do_cmd $AUTOMAKE   $AUTOMAKE_FLAGS || true
+test -f config.guess -a -f config.sub -a -f install-sh ||
+       die "Automake didn't install config.guess, config.sub and install-sh!"
+
+echo "(Yes, automake is supposed to fail, ignore that)"
+echo
+echo "You may now run ./configure."