[pyatspi2] Fix autogen.sh for non-sourcedir build
- From: Mike Gorse <mgorse src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pyatspi2] Fix autogen.sh for non-sourcedir build
- Date: Fri, 24 Aug 2012 21:52:58 +0000 (UTC)
commit a4c9ade0c875ca26a172af14f86241a745a1b992
Author: Theppitak Karoonboonyanan <thep linux thai net>
Date: Wed Aug 22 18:25:57 2012 +0700
Fix autogen.sh for non-sourcedir build
* Detect $srcdir from command line
* Invoke autotools stuffs in $srcdir
* Invoke configure from $builddir
autogen.sh | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/autogen.sh b/autogen.sh
index de36d60..9c7e0c0 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -3,8 +3,12 @@
#name of package
test "$PKG_NAME" || PKG_NAME=Package
+test "$srcdir" || srcdir=`dirname "$0"`
test "$srcdir" || srcdir=.
+olddir=`pwd`
+cd "$srcdir"
+
# default version requirements ...
test "$REQUIRED_AUTOCONF_VERSION" || REQUIRED_AUTOCONF_VERSION=2.53
test "$REQUIRED_AUTOMAKE_VERSION" || REQUIRED_AUTOMAKE_VERSION=1.9
@@ -525,6 +529,8 @@ if $want_maintainer_mode; then
conf_flags="--enable-maintainer-mode"
fi
+cd "$olddir"
+
if test x$NOCONFIGURE = x; then
printbold Running $srcdir/configure $conf_flags "$@" ...
$srcdir/configure $conf_flags "$@" \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]