fuzzing: fix fuzz_stable_sort_r_unstable comparison
[samba.git] / configure
index 72f758e5adc3846b239cc7c438a5ee7843668d1f..ef80911d944ccde7a262c78f1c9d400d36edccdc 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-PREVPATH=`dirname $0`
+PREVPATH=$(dirname $0)
 
 WAF=./buildtools/bin/waf
 
@@ -9,6 +9,13 @@ WAF=./buildtools/bin/waf
 JOBS=1
 export JOBS
 
+# Make sure we don't have any library preloaded.
+unset LD_PRELOAD
+
+# Make sure we get stable hashes
+PYTHONHASHSEED=1
+export PYTHONHASHSEED
+
 cd . || exit 1
-$WAF configure "$@" || exit 1
+$PYTHON $WAF configure "$@" || exit 1
 cd $PREVPATH