Blame SOURCES/guile-1.8.7-multilib.patch

43e42a
diff -up guile-1.8.7/libguile/Makefile.in.multilib guile-1.8.7/libguile/Makefile.in
43e42a
--- guile-1.8.7/libguile/Makefile.in.multilib	2009-07-05 22:25:09.000000000 +0200
43e42a
+++ guile-1.8.7/libguile/Makefile.in	2009-07-16 18:07:44.000000000 +0200
43e42a
@@ -1717,6 +1717,11 @@ install-nodist_modincludeHEADERS: $(nodi
43e42a
 	while read files; do \
43e42a
 	  echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(modincludedir)'"; \
43e42a
 	  $(INSTALL_HEADER) $$files "$(DESTDIR)$(modincludedir)" || exit $$?; \
43e42a
+	  for f in $$files; do if [ "$$f" = "scmconfig.h" ]; then \
43e42a
+ 	    grep -q "SCM_SIZEOF_LONG 4" "$(DESTDIR)$(modincludedir)/$$f" && g=32 || g=64; \
43e42a
+ 	    mv "$(DESTDIR)$(modincludedir)/$$f" "$(DESTDIR)$(modincludedir)/scmconfig-$$g.h"; \
43e42a
+ 	    $(INSTALL_HEADER) "$${d}scmconfig.h.mlib" "$(DESTDIR)$(modincludedir)/$$f"; \
43e42a
+ 	  fi; done \
43e42a
 	done
43e42a
 
43e42a
 uninstall-nodist_modincludeHEADERS:
43e42a
diff -up guile-1.8.7/libguile/guile-snarf.in.multilib guile-1.8.7/libguile/guile-snarf.in
43e42a
--- guile-1.8.7/libguile/guile-snarf.in.multilib	2009-07-04 00:19:00.000000000 +0200
43e42a
+++ guile-1.8.7/libguile/guile-snarf.in	2009-07-16 18:06:48.000000000 +0200
43e42a
@@ -39,7 +39,6 @@
43e42a
 #   #endif
43e42a
 # 
43e42a
 # If the environment variable CPP is set, use its value instead of the
43e42a
-# C pre-processor determined at Guile configure-time: "@CPP@".
43e42a
 
43e42a
 # Code:
43e42a
 
43e42a
@@ -75,7 +74,7 @@ tempdir="$TMPDIR/guile-snarf.$$"
43e42a
 (umask 077 && mkdir $tempdir) || exit 1
43e42a
 temp="$tempdir/tmp"
43e42a
 
43e42a
-if [ x"$CPP" = x ] ; then cpp="@CPP@" ; else cpp="$CPP" ; fi
43e42a
+if [ x"$CPP" = x ] ; then cpp="gcc -E" ; else cpp="$CPP" ; fi
43e42a
 
43e42a
 trap "rm -rf $tempdir" 0 1 2 15
43e42a
 
43e42a
diff -up /dev/null guile-1.8.7/libguile/scmconfig.h.mlib
43e42a
--- /dev/null	2009-06-24 16:43:53.264001725 +0200
43e42a
+++ guile-1.8.7/libguile/scmconfig.h.mlib	2009-07-16 18:06:48.000000000 +0200
43e42a
@@ -0,0 +1,6 @@
43e42a
+#include <bits/wordsize.h>
43e42a
+#if __WORDSIZE == 32
43e42a
+#include "libguile/scmconfig-32.h"
43e42a
+#else
43e42a
+#include "libguile/scmconfig-64.h"
43e42a
+#endif