From 513bccca0deecc049fe94c92f25f544bb81e7847 Mon Sep 17 00:00:00 2001 From: Derek Atkins Date: Thu, 8 Feb 2007 16:03:24 +0000 Subject: [PATCH] If we're not building from SVN then make sure that swig-runtime.h and gnc-svninfo.h exist in the source tree. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15524 57a11ea4-9604-0410-9ed3-97b8803252fd --- configure.in | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/configure.in b/configure.in index b4a76e804e..83920a2c27 100644 --- a/configure.in +++ b/configure.in @@ -165,6 +165,27 @@ if test $? = 0 ; then AC_PROG_SWIG(1.3.28) else BUILDING_FROM_SVN=no + # Make sure we've got swig-runtime.h and gnc-svninfo.h + AC_CHECK_FILE(${srcdir}/src/swig-runtime.h. [], + [AC_MSG_ERROR([ + +It looks like you are NOT building from Subversion +but I cannot find swig-runtime.h. Check your PATH +and make sure we can find svnversion in your PATH! +Either that or contact gnucash-devel@gnucash.org because +the tarball you downloaded is broken. + + ])]) + AC_CHECK_FILE(${srcdir}/src/gnome-utils/gnc-svninfo.h. [], + [AC_MSG_ERROR([ + +It looks like you are NOT building from Subversion +but I cannot find gnc-svninfo.h. Check your PATH +and make sure we can find svnversion in your PATH! +Either that or contact gnucash-devel@gnucash.org because +the tarball you downloaded is broken. + + ])]) fi AM_CONDITIONAL(BUILDING_FROM_SVN, test "x$BUILDING_FROM_SVN" = "xyes")