diff options
author | Emanuele Aina <emanuele.aina@collabora.com> | 2013-05-01 14:34:36 +0100 |
---|---|---|
committer | Emanuele Aina <emanuele.aina@collabora.com> | 2013-05-02 10:29:40 +0100 |
commit | a9010e5e993c3eea826d5539de444d8a3585a00f (patch) | |
tree | 04c06a69b9f94a52e03bb09d8c75b0459c499aee /autogen.sh | |
parent | 9f9c3cba09f545aeb19cb43e65dab705981f1460 (diff) | |
download | dleyna-server-a9010e5e993c3eea826d5539de444d8a3585a00f.tar.gz |
[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 <emanuele.aina@collabora.com>
Diffstat (limited to 'autogen.sh')
-rwxr-xr-x | autogen.sh | 20 |
1 files changed, 20 insertions, 0 deletions
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" "$@" |