--- configure.orig	Sun Feb 26 23:35:41 2006
+++ configure	Sun Feb 26 23:34:39 2006
@@ -3309,6 +3309,25 @@
 	AS=as
         QT_ARCH="sparc-os2"
         ;;
+    *freebsd*)
+        case "$CXX_COMP" in
+            c++ | g++)
+                EXTRA_CXXFLAGS="-Wall"
+                DEBUG_CXXFLAGS="-g"
+                OPT_CXXFLAGS="-O3"
+                TARGET_ARCH="freebsd"
+        	CC="$CXX"
+        	CFLAGS="$EXTRA_CXXFLAGS $OPT_CXXFLAGS"
+                ;;
+            *)
+                { { echo "$as_me:$LINENO: error: \"sorry...compiler not supported\"" >&5
+echo "$as_me: error: \"sorry...compiler not supported\"" >&2;}
+   { (exit 1); exit 1; }; }
+		;;
+        esac
+	AS=as
+        QT_ARCH="iX86"
+        ;;
     *linux*)
         case "$CXX_COMP" in
             c++ | g++)
@@ -3387,7 +3406,6 @@
 
 
 test "x$prefix" = xNONE && prefix=$srcdir
-current_dir=`pwd`; cd $prefix; prefix=`pwd`; cd $current_dir
 
 
 
