Blame SOURCES/guile-1.8.7-multilib.patch

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