comparison configure.in @ 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 52e3aa735bdb
children b561c169c115
comparison
equal deleted inserted replaced
1173:38e925147a60 1174:f1cb493f97fd
30 30
31 AC_CHECK_PROG(MAKE, gmake, gmake) 31 AC_CHECK_PROG(MAKE, gmake, gmake)
32 if test x"$MAKE" = x; then 32 if test x"$MAKE" = x; then
33 AC_CHECK_PROG(MAKE, make, make) 33 AC_CHECK_PROG(MAKE, make, make)
34 fi 34 fi
35 AC_CHECK_PROG(SVNVERSION, svnversion, svnversion) 35 if test -d .svn; then
36 AC_CHECK_PROG(SVNVERSION, svnversion, svnversion)
37 fi
36 if test x"$SVNVERSION" = x; then 38 if test x"$SVNVERSION" = x; then
37 SVNVERSION=0 39 SVNVERSION=0
38 else 40 else
39 SVNVERSION="\` $SVNVERSION -n . | cut -d \":\" -f 1 | tr -d MS \`" 41 SVNVERSION="\` $SVNVERSION -n . | cut -d \":\" -f 1 | tr -d MS \`"
40 fi 42 fi