LINGUAS=`echo $RAWLINGUAS`
AC_SUBST(LINGUAS)
-if git diff --name-only --exit-code v${PACKAGE_VERSION} HEAD > /dev/null; then
+# This will fail if we're building from a tarball not a git checkout,
+# but that's probably fine for now. Although actually we should probably
+# make the specfile in autogen.sh not at configure time, and then we
+# can trust that the ones included by 'make dist' should be right.
+if git diff --name-only --exit-code v${PACKAGE_VERSION} HEAD > /dev/null 2>/dev/null; then
gitdesc=$(git describe --tags HEAD)
AC_SUBST(SNAPCOUNT, $(echo "$gitdesc" | cut -f2 -d-))
AC_SUBST(SNAPCOMMIT, $(git rev-parse HEAD))