mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
5ddff307b4
This avoids creating a mini-configure in the configure script.
Users wishing to use python2 to build need to specify PYTHON=
to both ./configure and make
After we merged the python3 change, it became clear that relying on systems prefixing
the correct python just causes trouble and make debugging harder, so only use $PYTHON
for the override, not the default case
This essentially reverts a660b7fb8e
but
leaves the files more consistent.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Noel Power <npower@samba.org>
18 lines
318 B
Bash
Executable File
18 lines
318 B
Bash
Executable File
#!/bin/sh
|
|
|
|
PREVPATH=`dirname $0`
|
|
|
|
WAF=./buildtools/bin/waf
|
|
|
|
# using JOBS=1 gives maximum compatibility with
|
|
# systems like AIX which have broken threading in python
|
|
JOBS=1
|
|
export JOBS
|
|
|
|
# Make sure we don't have any library preloaded.
|
|
unset LD_PRELOAD
|
|
|
|
cd . || exit 1
|
|
$PYTHON $WAF configure "$@" || exit 1
|
|
cd $PREVPATH
|