summaryrefslogtreecommitdiff
path: root/BUILD
diff options
context:
space:
mode:
authorVladislav Vaintroub <vvaintroub@mysql.com>2010-03-09 22:51:36 +0100
committerVladislav Vaintroub <vvaintroub@mysql.com>2010-03-09 22:51:36 +0100
commitcb0d6611a39a78dae3fc7badc0f46b18653ce418 (patch)
tree1664c501d36528dd76529fe5805c6c28b82e8cb5 /BUILD
parentd15dfba1fbcf75bde9760387d3b723c605715e2f (diff)
downloadmariadb-git-cb0d6611a39a78dae3fc7badc0f46b18653ce418.tar.gz
Bug#51607: Automake distcheck target broken.
Reason for the error was that ./configure wrapper script was not safe for VPATH builds used by "make distcheck", specifically it expected configure.am to be in the current directory. Fix changes configure wrapper to resolve script names relative to configure script path. Also, use $top_srcdir/configure.am instead of configure.am in dist-hook to be more VPATH friendly.
Diffstat (limited to 'BUILD')
-rw-r--r--BUILD/choose_configure.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/BUILD/choose_configure.sh b/BUILD/choose_configure.sh
index 476b8b51657..80423205274 100644
--- a/BUILD/choose_configure.sh
+++ b/BUILD/choose_configure.sh
@@ -5,10 +5,11 @@
# Ensure cmake and perl are there
cmake -P cmake/check_minimal_version.cmake >/dev/null 2>&1 || HAVE_CMAKE=no
perl --version >/dev/null 2>&1 || HAVE_CMAKE=no
+scriptdir=`dirname $0`
if test "$HAVE_CMAKE" = "no"
then
- sh ./configure.am "$@"
+ sh $scriptdir/configure.am "$@"
else
- perl ./cmake/configure.pl "$@"
+ perl $scriptdir/cmake/configure.pl "$@"
fi