summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSrivardhan Hebbar <sri.hebbar@samsung.com>2014-09-22 14:43:32 +0200
committerCedric BAIL <cedric@osg.samsung.com>2014-09-22 14:46:52 +0200
commitd65e0316c3fdb069e71e2a4e2036e79430f4e2ae (patch)
tree34bb042df2a8e34d919acb9e910e11d4d64349e1
parent32efb7e5e42f6eddbc1e26a13fc06cc53bc34756 (diff)
autotools: modified autogen.sh script to be able to build from different directory.
Summary: Right now we cannot have a designated build directory and build in the same folder as in the source. So modified the autogen.sh so that we can have a designated build directory and can build from that. @feature Signed-off-by: Srivardhan Hebbar <sri.hebbar@samsung.com> Reviewers: cedric, raster, devilhorns Subscribers: zmike, cedric Differential Revision: https://phab.enlightenment.org/D1359 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
-rwxr-xr-xautogen.sh18
1 files changed, 12 insertions, 6 deletions
diff --git a/autogen.sh b/autogen.sh
index 3e7444b..69a0b2f 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,11 +1,17 @@
1#!/bin/sh 1#!/bin/sh
2 2
3rm -rf autom4te.cache 3test -n "$srcdir" || srcdir=`dirname "$0"`
4rm -f aclocal.m4 ltmain.sh config.cache 4test -n "$srcdir" || srcdir=.
5(
6 cd "$srcdir" &&
7 (
8 rm -rf autom4te.cache
9 rm -f aclocal.m4 ltmain.sh config.cache
5 10
6autoreconf --symlink --install || exit 1 11 autoreconf --symlink --install || exit 1
12 )
13)
14
15test -n "$NOCONFIGURE" || exec $srcdir/configure -C "$@"
7 16
8if [ -z "$NOCONFIGURE" ]; then
9 exec ./configure -C "$@"
10fi
11exit 0 17exit 0