mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
autogen: fix configure script generation when srcdir != builddir.
This patch allows for regenerating the configure script from a build directory that is not the actual source directory. Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
This commit is contained in:
parent
749fab61b9
commit
a8636b4310
1 changed files with 12 additions and 9 deletions
21
autogen.sh
21
autogen.sh
|
@ -1,16 +1,17 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
srcdir=`dirname $0`
|
PROJECT="gstreamer-vaapi"
|
||||||
test -z "$srcdir" && srcdir=.
|
|
||||||
|
|
||||||
PROJECT=gstreamer-vaapi
|
test -n "$srcdir" || srcdir="`dirname \"$0\"`"
|
||||||
TEST_TYPE=-d
|
test -n "$srcdir" || srcdir=.
|
||||||
FILE=gst-libs
|
|
||||||
|
|
||||||
test $TEST_TYPE $FILE || {
|
if ! test -f "$srcdir/configure.ac"; then
|
||||||
echo "You must run this script in the top-level $PROJECT directory"
|
echo "Failed to find the top-level $PROJECT directory"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
fi
|
||||||
|
|
||||||
|
olddir="`pwd`"
|
||||||
|
cd "$srcdir"
|
||||||
|
|
||||||
mkdir -p m4
|
mkdir -p m4
|
||||||
|
|
||||||
|
@ -30,6 +31,8 @@ else
|
||||||
autoreconf -v --install || exit $?
|
autoreconf -v --install || exit $?
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
cd "$olddir"
|
||||||
|
|
||||||
if test -z "$NO_CONFIGURE"; then
|
if test -z "$NO_CONFIGURE"; then
|
||||||
./configure "$@" && echo "Now type 'make' to compile $PROJECT."
|
$srcdir/configure "$@" && echo "Now type 'make' to compile $PROJECT."
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue