changeset 1174:f1cb493f97fd

Updated configure to check the presence of a .svn directory before doing the check for the svnversion command.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Mon, 19 Sep 2011 16:21:26 +0000
parents 38e925147a60
children eb4589ddff3e
files configure configure.in
diffstat 2 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Mon Sep 19 09:52:45 2011 +0000
+++ b/configure	Mon Sep 19 16:21:26 2011 +0000
@@ -3355,7 +3355,8 @@
 
 
 fi
-# Extract the first word of "svnversion", so it can be a program name with args.
+if test -d .svn; then
+   # Extract the first word of "svnversion", so it can be a program name with args.
 set dummy svnversion; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 $as_echo_n "checking for $ac_word... " >&6; }
@@ -3392,6 +3393,7 @@
 fi
 
 
+fi
 if test x"$SVNVERSION" = x; then
    SVNVERSION=0
 else
--- a/configure.in	Mon Sep 19 09:52:45 2011 +0000
+++ b/configure.in	Mon Sep 19 16:21:26 2011 +0000
@@ -32,7 +32,9 @@
 if test x"$MAKE" = x; then
    AC_CHECK_PROG(MAKE, make, make)
 fi
-AC_CHECK_PROG(SVNVERSION, svnversion, svnversion)
+if test -d .svn; then 
+   AC_CHECK_PROG(SVNVERSION, svnversion, svnversion)
+fi
 if test x"$SVNVERSION" = x; then
    SVNVERSION=0
 else