SF bug #1395926: Also test for svnversion command on $PATH before using it to
calculate the build number.
diff --git a/Makefile.pre.in b/Makefile.pre.in
index 259cd87..079e929 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -349,7 +349,7 @@
 		$(SIGNAL_OBJS) \
 		$(MODOBJS) \
 		$(srcdir)/Modules/getbuildinfo.c
-	if test -d $(srcdir)/.svn; then \
+	if test -d $(srcdir)/.svn -a ! -z "`type -t svnversion`" ; then \
 		svnversion $(srcdir) >buildno; \
 	elif test -f buildno; then \
 		expr `cat buildno` + 1 >buildno1; \