137a26bcbe0e6165e00f1c49b8f5bce07803b967
[samba.git] / source4 / lib / ldb / configure
1 #!/bin/sh
2
3 PREVPATH=`dirname $0`
4
5 if [ -f $PREVPATH/../../../buildtools/bin/waf ]; then
6         WAF=../../../buildtools/bin/waf
7 elif [ -f $PREVPATH/buildtools/bin/waf ]; then
8         WAF=./buildtools/bin/waf
9 else
10         echo "ldb: Unable to find waf"
11         exit 1
12 fi
13
14 # using JOBS=1 gives maximum compatibility with
15 # systems like AIX which have broken threading in python
16 JOBS=1
17 export JOBS
18
19 cd . || exit 1
20 $WAF configure "$@" || exit 1
21 cd $PREVPATH