Description: <short summary of the patch>
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 gcl (2.6.7+dfsga-35) unstable; urgency=high
 .
   * latest gcc on all platforms, no gprof ppc64, -O1 ia64, -O0 alpha
Author: Camm Maguire <camm@debian.org>

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: http://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: <YYYY-MM-DD>

--- gcl-2.6.7+dfsga.orig/configure
+++ gcl-2.6.7+dfsga/configure
@@ -6203,6 +6203,10 @@ fi
 # pagewidth
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pagewidth" >&5
 $as_echo_n "checking for pagewidth... " >&6; }
+case $use in
+     mips*) min_pagewidth=14;;
+     *) min_pagewidth=12;;
+esac
 if test "$cross_compiling" = yes; then :
   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
@@ -6223,7 +6227,7 @@ main ()
 	    size_t i=getpagesize(),j;
 	    FILE *fp=fopen("conftest1","w");
 	    for (j=0;i>>=1;j++);
-	    if (j<12) {printf("pagewidth %u is too small\n",j);return -1;}
+	    j=j<$min_pagewidth ? $min_pagewidth : j;
 	    fprintf(fp,"%u",j);
 	    return 0;
 
--- gcl-2.6.7+dfsga.orig/configure.in
+++ gcl-2.6.7+dfsga/configure.in
@@ -1157,6 +1157,10 @@ AC_SUBST(DOUBLE_BIGENDIAN)
 
 # pagewidth
 AC_MSG_CHECKING(for pagewidth)
+case $use in
+     mips*) min_pagewidth=14;;
+     *) min_pagewidth=12;;
+esac
 AC_RUN_IFELSE([
 	AC_LANG_PROGRAM([[
 	    #include <stdio.h>
@@ -1165,7 +1169,7 @@ AC_RUN_IFELSE([
 	    size_t i=getpagesize(),j; 
 	    FILE *fp=fopen("conftest1","w");
 	    for (j=0;i>>=1;j++);
-	    if (j<12) {printf("pagewidth %u is too small\n",j);return -1;}
+	    j=j<$min_pagewidth ? $min_pagewidth : j;
 	    fprintf(fp,"%u",j);
 	    return 0;
 	]])],
