--- configure.orig	ðÔ ÄÅË. 26 15:40:19 2008
+++ configure	ðÔ ÄÅË. 26 15:50:16 2008
@@ -3938,14 +3938,19 @@
 	    # Check to enable 64-bit flags for compiler/linker
 	    if test "$do64bit" = "yes" ; then
 		arch=`isainfo`
-		if test "$arch" = "sparcv9 sparc" ; then
+		if test "$arch" = "sparcv9 sparc" -o "$arch" = "amd64 i386" ; then
 			if test "$GCC" = "yes" ; then
 			    if test "`gcc -dumpversion | awk -F. '{print $1}'`" -lt "3" ; then
 				echo "configure: warning: 64bit mode not supported with GCC < 3.2 on $system" 1>&2
 			    else
 				do64bit_ok=yes
+				if test "$arch" = "sparcv9 sparc"; then
 				CFLAGS="$CFLAGS -m64 -mcpu=v9"
 				LDFLAGS="$LDFLAGS -m64 -mcpu=v9"
+				else
+				CFLAGS="$CFLAGS -m64"
+				LDFLAGS="$LDFLAGS -m64"
+				fi
 				SHLIB_CFLAGS="-fPIC"
 			    fi
 			else
