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
--- 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)
 ])

Reply via email to