diff -urN ../tk8.4.1/unix/tcl.m4 tk8.4.1/unix/tcl.m4
--- ../tk8.4.1/unix/tcl.m4	Wed Oct 23 19:58:17 2002
+++ tk8.4.1/unix/tcl.m4	Tue Dec 24 01:47:39 2002
@@ -909,6 +909,15 @@
 		fi
 	    fi
 	    ;;
+	BeOS*)
+	    SHLIB_CFLAGS="-fPIC"
+	    SHLIB_LD="cc -nostart"
+	    SHLIB_LD_LIBS='${LIBS}'
+	    SHLIB_SUFFIX=".so"
+	    DL_OBJS="tclLoadDl.o"
+	    DL_LIBS="-ldl"
+	    LDFLAGS="-lsocket -lbind"
+	    ;;
 	BSD/OS-2.1*|BSD/OS-3*)
 	    SHLIB_CFLAGS=""
 	    SHLIB_LD="shlicc -r"
