From 80e03daff50cd484b842df8d13bd6fc46922dd95 Mon Sep 17 00:00:00 2001 From: Emanuele Aina Date: Thu, 2 May 2013 10:20:05 +0100 Subject: [Build] Add autogen.sh script to call `autoreconf -i` Even when using autoreconf an autogen.sh script is usually expected, as it save users from needing to know which flags to pass to autoreconf (ie. '-i'). It is also usually responsible of launching autoreconf from the right directory, calling utilities like intltoolize and gtkdocize, checking out git submodules and running ./configure unless $NOCONFIGURE is set. Signed-off-by: Emanuele Aina --- autogen.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 autogen.sh (limited to 'autogen.sh') diff --git a/autogen.sh b/autogen.sh new file mode 100755 index 0000000..27aa055 --- /dev/null +++ b/autogen.sh @@ -0,0 +1,20 @@ +#!/bin/sh +# Run this to generate all the initial makefiles, etc. +# Derived from https://git.gnome.org/browse/glib/tree/autogen.sh + +test -n "$srcdir" || srcdir=`dirname "$0"` +test -n "$srcdir" || srcdir=. + +olddir=`pwd` +cd "$srcdir" + +AUTORECONF=`which autoreconf` +if test -z $AUTORECONF; then + echo "*** No autoreconf found, please install it ***" + exit 1 +fi + +autoreconf --force --install --verbose || exit $? + +cd "$olddir" +test -n "$NOCONFIGURE" || "$srcdir/configure" "$@" -- cgit v1.2.1