OSDN Git Service
(root)
/
android-x86
/
hardware-intel-common-vaapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
24cba20
)
autogen.sh: fix out of tree invocation
author
Emil Velikov
<emil.l.velikov@gmail.com>
Thu, 18 Sep 2014 16:45:39 +0000
(17:45 +0100)
committer
Xiang, Haihao
<haihao.xiang@intel.com>
Mon, 10 Nov 2014 01:59:33 +0000
(09:59 +0800)
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
autogen.sh
patch
|
blob
|
history
diff --git
a/autogen.sh
b/autogen.sh
index
f5164d8
..
626d213
100755
(executable)
--- a/
autogen.sh
+++ b/
autogen.sh
@@
-1,7
+1,14
@@
#! /bin/sh
-autoreconf -v --install
+srcdir=`dirname "$0"`
+test -z "$srcdir" && srcdir=.
+
+ORIGDIR=`pwd`
+cd "$srcdir"
+
+autoreconf -v --install || exit 1
+cd $ORIGDIR || exit $?
if test -z "$NOCONFIGURE"; then
-
.
/configure "$@"
+
"$srcdir"
/configure "$@"
fi