Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix for the problem with the auto* process failing when svnversion isn't
available. 


git-svn-id: http://svn.osgeo.org/qgis/trunk@5828 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Sep 15, 2006
1 parent 33de773 commit 76e09e1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile.am
Expand Up @@ -63,7 +63,11 @@ BUILT_SOURCES = qgssvnversion.h

.PHONY : qgssvnversion.h
qgssvnversion.h:
@QGSSVNDEF="#define QGSSVNVERSION \"`svnversion .`\"" && \
@if [ "$(HAVE_SVNVERSION)" == "yes" ]; then \
QGSSVNDEF="#define QGSSVNVERSION \"`svnversion .`\""; \
else \
QGSSVNDEF="#define QGSSVNVERSION \"unknown\""; \
fi; \
if [ "`grep QGSSVNVERSION qgssvnversion.h 2>/dev/null`" != "$$QGSSVNDEF" ]; then \
echo $$QGSSVNDEF > qgssvnversion.h; \
fi
4 changes: 4 additions & 0 deletions configure.in
Expand Up @@ -80,6 +80,10 @@ dnl check lib64 environment
dnl ---------------------------------------------------------------------------
AQ_CHECK_LIB64

dnl ---------------------------------------------------------------------------
dnl svnversion check
dnl ---------------------------------------------------------------------------
AC_CHECK_PROG(HAVE_SVNVERSION, [svnversion], [yes], [no])

dnl ---------------------------------------------------------------------------
dnl Qt check
Expand Down

0 comments on commit 76e09e1

Please sign in to comment.