*** Makefile.in.orig	Tue Dec 17 10:55:56 1996
--- Makefile.in	Tue Dec 17 11:22:05 1996
***************
*** 358,363 ****
--- 358,369 ----
  tclLoadAout.o:	compat/tclLoadAout.c
  	$(CC) -c $(CC_SWITCHES) compat/tclLoadAout.c -o $@
  
+ tclLoadNone.o:	compat/tclLoadNone.c
+ 	$(CC) -c $(CC_SWITCHES) compat/tclLoadNone.c -o $@
+ 
+ _eprintf.o:	compat/_eprintf.c
+ 	$(CC) -c $(CC_SWITCHES) compat/_eprintf.c -o $@
+ 
  #-------------------------------------------------------#
  
  $(TRF_LIB_FILE):	$(OBJECTS)
*** compat/_eprintf.c.orig	Tue Dec 17 11:17:01 1996
--- compat/_eprintf.c	Thu Dec 12 11:37:31 1996
***************
*** 0 ****
--- 1,16 ----
+ #include <tcl.h>
+ #include <stdio.h>
+ 
+ /* This is used by the `assert' macro.  */
+ void
+ __eprintf (string, expression, line, filename)
+      CONST char *string;
+      CONST char *expression;
+      int line;
+      CONST char *filename;
+ {
+   fprintf (stderr, string, expression, line, filename);
+   fflush (stderr);
+   abort ();
+ }
+ 
*** configure.in.orig	Tue Dec 17 10:56:48 1996
--- configure.in	Tue Dec 17 11:20:38 1996
***************
*** 233,240 ****
  if test "$ok" = "yes" -a "${SHLIB_SUFFIX}" != ""; then
      TRF_SHLIB_CFLAGS="${SHLIB_CFLAGS}"
      eval "TRF_LIB_FILE=libtrf${TCL_SHARED_LIB_SUFFIX}"
!     eval "ZLIB_LIB_FILE=libz${TCL_SHARED_LIB_SUFFIX}"
!     eval "LIBDES_LIB_FILE=libdes${TCL_SHARED_LIB_SUFFIX}"
      MAKE_LIB="\${SHLIB_LD} -o ${TRF_LIB_FILE} \${OBJECTS} ${SHLIB_LD_LIBS}"
      MAKE_ZLIB="\${SHLIB_LD} -o ${ZLIB_LIB_FILE} \${ZLIB_OBJ} ${SHLIB_LD_LIBS}"
      MAKE_LIBDES="\${SHLIB_LD} -o ${LIBDES_LIB_FILE} \${LIBDES_OBJ} ${SHLIB_LD_LIBS}"
--- 233,240 ----
  if test "$ok" = "yes" -a "${SHLIB_SUFFIX}" != ""; then
      TRF_SHLIB_CFLAGS="${SHLIB_CFLAGS}"
      eval "TRF_LIB_FILE=libtrf${TCL_SHARED_LIB_SUFFIX}"
!     eval "ZLIB_LIB_FILE=libz${SHLIB_SUFFIX}"
!     eval "LIBDES_LIB_FILE=libdes${SHLIB_SUFFIX}"
      MAKE_LIB="\${SHLIB_LD} -o ${TRF_LIB_FILE} \${OBJECTS} ${SHLIB_LD_LIBS}"
      MAKE_ZLIB="\${SHLIB_LD} -o ${ZLIB_LIB_FILE} \${ZLIB_OBJ} ${SHLIB_LD_LIBS}"
      MAKE_LIBDES="\${SHLIB_LD} -o ${LIBDES_LIB_FILE} \${LIBDES_OBJ} ${SHLIB_LD_LIBS}"
***************
*** 244,251 ****
  else
      TRF_SHLIB_CFLAGS=""
      eval "TRF_LIB_FILE=libtrf${TCL_UNSHARED_LIB_SUFFIX}"
!     eval "ZLIB_LIB_FILE=libz${TCL_UNSHARED_LIB_SUFFIX}"
!     eval "LIBDES_LIB_FILE=libdes${TCL_UNSHARED_LIB_SUFFIX}"
      MAKE_LIB="ar cr ${TRF_LIB_FILE} \${OBJECTS}"
      MAKE_ZLIB="ar cr ${ZLIB_LIB_FILE} \${ZLIB_OBJ}"
      MAKE_LIBDES="ar cr ${LIBDES_LIB_FILE} \${LIBDES_OBJ}"
--- 244,251 ----
  else
      TRF_SHLIB_CFLAGS=""
      eval "TRF_LIB_FILE=libtrf${TCL_UNSHARED_LIB_SUFFIX}"
!     eval "ZLIB_LIB_FILE=libz.a"
!     eval "LIBDES_LIB_FILE=libdes.a"
      MAKE_LIB="ar cr ${TRF_LIB_FILE} \${OBJECTS}"
      MAKE_ZLIB="ar cr ${ZLIB_LIB_FILE} \${ZLIB_OBJ}"
      MAKE_LIBDES="ar cr ${LIBDES_LIB_FILE} \${LIBDES_OBJ}"
***************
*** 323,328 ****
--- 323,332 ----
      DL_OBJS=""
  fi
  
+ if test "x$CC" = "xgcc" -o `$CC -v 2>&1 | grep -c gcc` != "0" ; then
+     DL_OBJS="$DL_OBJS _eprintf.o"
+ fi
+ 
  dirs="/lib/libm${TEST_SUFFIX}* /usr/lib/libm${TEST_SUFFIX}*"
  for i in $dirs ; do
      if test -f $i; then
*** compat/tclLoadNone.c.orig	Tue Dec 17 11:16:18 1996
--- compat/tclLoadNone.c	Tue Dec 17 11:15:45 1996
***************
*** 0 ****
--- 1,62 ----
+ /* 
+  * tclLoadNone.c --
+  *
+  *	This procedure provides a version of the TclLoadFile for use
+  *	in systems that don't support dynamic loading; it just returns
+  *	an error.
+  *
+  * Copyright (c) 1995-1996 Sun Microsystems, Inc.
+  *
+  * See the file "license.terms" for information on usage and redistribution
+  * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
+  *
+  * SCCS: @(#) tclLoadNone.c 1.5 96/02/15 11:43:01
+  */
+ 
+ #include "tclInt.h"
+ #include "../compat/dlfcn.h"
+ 
+ 
+ /*
+  *----------------------------------------------------------------------
+  *
+  * dlopen  --
+  * dlsym   --
+  * dlerror --
+  * dlclose --
+  *
+  *	Dummy functions, in case our system doesn't support
+  *	dynamic loading.
+  *
+  * Results:
+  *	NULL for dlopen() and dlsym(). Error for other functions.
+  *
+  * Side effects:
+  *	None
+  *
+  *----------------------------------------------------------------------
+  */
+ VOID *dlopen(path, mode)
+     CONST char *path;
+     int mode;
+ {
+     return (VOID *) NULL;
+ }
+ 
+ VOID *dlsym(handle, symbol)
+     VOID *handle;
+     CONST char *symbol;
+ {
+     return (VOID *) NULL;
+ }
+ 
+ char *dlerror()
+ {
+     return "dynamic loading is not currently available on this system";
+ }
+ 
+ int dlclose(handle)
+     VOID *handle;
+ {
+     return -1;
+ }
*** transformInt.h.orig	Tue Dec 17 11:04:21 1996
--- transformInt.h	Tue Dec 17 11:04:58 1996
***************
*** 46,52 ****
  #else
  #   include "compat/zlib.h"
  #endif
! #ifdef HAVE_ZLIB_H
  #   include <des.h>
  #else
  #   include "compat/des.h"
--- 46,52 ----
  #else
  #   include "compat/zlib.h"
  #endif
! #ifdef HAVE_DES_H
  #   include <des.h>
  #else
  #   include "compat/des.h"
