gnucash-1.6.0 build problem with some guile versions

Bill Nottingham notting@redhat.com
Tue, 19 Jun 2001 19:31:56 -0400


--qDbXVdCdHGoSgWSk
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

scm_long_long2num and its inverse are only compiled when
LONGLONGS is defined in guile-1.3.4; this isn't the default.

The attached allows gnucash to build on such a system (otherwise
it tries to link in functions that don't exist...)

Bill

--qDbXVdCdHGoSgWSk
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="gnucash-1.6.0-64bit.patch"

--- gnucash-1.6.0/configure.in.foo	Mon Jun 18 23:05:27 2001
+++ gnucash-1.6.0/configure.in	Mon Jun 18 23:05:29 2001
@@ -549,7 +549,9 @@
   }
 ],[
   AC_MSG_RESULT(yes)
-  AC_DEFINE(GUILE_LONG_LONG_OK,1,is sizeof(long_long) >= sizeof(gint64))
+  AC_CHECK_LIB(guile, scm_long_long2num,
+               AC_DEFINE(GUILE_LONG_LONG_OK,1,is sizeof(long_long) >=
+	       sizeof(gint64)))
 ],[
   AC_MSG_RESULT(no)
 ])

--qDbXVdCdHGoSgWSk--