summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsource4/script/build_idl.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/source4/script/build_idl.sh b/source4/script/build_idl.sh
index c9594f8a80..159cd1b36c 100755
--- a/source4/script/build_idl.sh
+++ b/source4/script/build_idl.sh
@@ -5,8 +5,12 @@ FULLBUILD=$1
[ -d librpc/gen_ndr ] || mkdir -p librpc/gen_ndr || exit 1
if [ ! -f build/pidl/idl.pm -o build/pidl/idl.yp -nt build/pidl/idl.pm ]; then
- echo Rebuilding IDL parser
- ( cd build/pidl && make ) || exit 1;
+ if `which yapp`; then
+ echo Rebuilding IDL parser
+ ( cd build/pidl && make ) || exit 1;
+ else
+ echo "warning: yapp is not installed";
+ fi
fi
PIDL="build/pidl/pidl.pl --output librpc/gen_ndr/ndr_ --parse --header --parser"