--- configure.orig	Sun May 21 09:44:15 2006
+++ configure	Fri Aug  4 08:56:05 2006
@@ -4202,11 +4202,18 @@
 # $target is typically processor-vendor-os
 case "$target" in
   # linux
-  *86*linux*|*86*freebsd*|*86*openbsd*|*86*darwin*)
+  *86*linux*|*86*openbsd*|*86*darwin*)
     echo "$as_me:$LINENO: result: configuring for linux/x86" >&5
 echo "${ECHO_T}configuring for linux/x86" >&6
 
     ARCHOS=x86_LINUX
+    ;;
+
+    *amd64*freebsd*|*i386*freebsd*)
+    echo "$as_me:$LINENO: result: configuring for freebsd/${ARCH}" >&5
+echo "${ECHO_T}configuring for freebsd/${ARCH}" >&6
+
+    ARCHOS=`uname -p`_FREEBSD
     ;;
 
   # Mac OS X
