summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rwxr-xr-xlib/talloc/configure9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/talloc/configure b/lib/talloc/configure
index 2d4aec724e..6a9f875511 100755
--- a/lib/talloc/configure
+++ b/lib/talloc/configure
@@ -2,7 +2,14 @@
PREVPATH=`dirname $0`
-WAF=../../buildtools/bin/waf
+if [ -f $PREVPATH/../../buildtools/bin/waf ]; then
+ WAF=../../buildtools/bin/waf
+elif [ -f $PREVPATH/buildtools/bin/waf ]; then
+ WAF=./buildtools/bin/waf
+else
+ echo "replace: Unable to find waf"
+ exit 1
+fi
# using JOBS=1 gives maximum compatibility with
# systems like AIX which have broken threading in python