Patches to STk 4.0.1 for UnixWare 7 support

From: Ronald Joe Record <rr_at_sco.com>
Date: Sat, 27 Nov 1999 18:47:34 -0800

Greetings,

Attached you should find patches which, when applied to STk 4.0.1, will
allow STk to build on UnixWare 7. I have also created a pkgadd installable
binary distribution which will be available via:

    http://www.sco.com/skunkware/uw7/interp/STk/

I've tested this to the extent that i ran the demos and built and tested
xxl 2.1.2. See http://www.sco.com/skunkware/uw7/x11/apps/xxl/

I will try to also upload a binary distribution to
ftp://kaolin.unice.fr/pub/STk/Incoming/ asap.
-rr-
-- 
Ronald Joe Record, Open Source Program Architect, The Santa Cruz Operation
WWW:    http://www.ocston.org/rr    http://www.sco.com/skunkware 
E-mail: rr_at_sco.com   Voice:  831-427-7604   FAX:  831-427-5417
USPS:   400 Encinal Street, Santa Cruz, California 95061


*** Extensions/Makefile.in.00 Fri Sep 3 13:21:32 1999
--- Extensions/Makefile.in Tue Nov 23 17:48:04 1999
***************
*** 20,27 ****
  EXAMPLES = stack.$(SH_SUFFIX) \
             when.$(SH_SUFFIX)
  
! CFLAGS= $(SH_CCFLAGS) $(STKCFLAGS) $(DFLGS) -DUSE_TK _at_DEFS@ \
! -I../Tk/generic -I../Tk/$(FLAVOR) -I../Tcl -I../Src -I../Mp $(XINCLUDES)
  
  ##############################################################################
  .SUFFIXES: .$(SH_SUFFIX) .o .c
--- 20,28 ----
  EXAMPLES = stack.$(SH_SUFFIX) \
             when.$(SH_SUFFIX)
  
! CFLAGS= $(SH_CCFLAGS) $(DFLGS) -DUSE_TK _at_DEFS@ \
! -I../Tk/generic -I../Tk/$(FLAVOR) -I../Tcl -I../Src -I../Mp \
! $(STKCFLAGS) $(XINCLUDES)
  
  ##############################################################################
  .SUFFIXES: .$(SH_SUFFIX) .o .c
*** Snow/dynload.c.00 Sun Sep 26 08:02:14 1999
--- Snow/dynload.c Tue Nov 23 17:44:03 1999
***************
*** 32,38 ****
  /* Support for Linux is inspired from Patrick Nguyen (pnguyen_at_elde.epfl.ch) */
  
  
! #if defined(SUNOS4)||defined(SUNOS5)||defined(IRIX5)||defined(OSF1)
  # include <dlfcn.h>
  # define DLOPEN_COMPATIBLE
  #endif
--- 32,38 ----
  /* Support for Linux is inspired from Patrick Nguyen (pnguyen_at_elde.epfl.ch) */
  
  
! #if defined(SUNOS4)||defined(SUNOS5)||defined(IRIX5)||defined(OSF1)||defined(UNIXWARE)
  # include <dlfcn.h>
  # define DLOPEN_COMPATIBLE
  #endif
***************
*** 172,178 ****
  #endif /* MSC_VER WIN32 */
  
  
! #if defined(SUNOS4) || defined(SUNOS5) || defined(NETBSD1) || defined(FREEBSD) || defined(IRIX5) || defined(OSF1) ||defined(LINUX_ELF)
  
  #define MAKE_STAT_PTR(p) (STk_make_Cpointer(ANONYMOUS_STAT_PTR_ID, (p), TRUE))
  #define MAKE_DYN_PTR(p) (STk_make_Cpointer(ANONYMOUS_DYN_PTR_ID, (p), FALSE))
--- 172,178 ----
  #endif /* MSC_VER WIN32 */
  
  
! #if defined(SUNOS4) || defined(SUNOS5) || defined(NETBSD1) || defined(FREEBSD) || defined(IRIX5) || defined(OSF1) ||defined(LINUX_ELF) || defined(UNIXWARE)
  
  #define MAKE_STAT_PTR(p) (STk_make_Cpointer(ANONYMOUS_STAT_PTR_ID, (p), TRUE))
  #define MAKE_DYN_PTR(p) (STk_make_Cpointer(ANONYMOUS_DYN_PTR_ID, (p), FALSE))
*** Src/io.c.00 Fri Sep 3 13:21:32 1999
--- Src/io.c Tue Nov 23 16:24:20 1999
***************
*** 74,80 ****
  # ifdef WIN32
  # define READ_DATA_PENDING(fp) (1)
  # else
! # define READ_DATA_PENDING(fp) (fp->_cnt)
  # endif
  #endif
  
--- 74,84 ----
  # ifdef WIN32
  # define READ_DATA_PENDING(fp) (1)
  # else
! # if defined(__USLC__)
! # define READ_DATA_PENDING(fp) (fp->__cnt)
! # else
! # define READ_DATA_PENDING(fp) (fp->_cnt)
! # endif
  # endif
  #endif
  
*** Src/Makefile.in.00 Fri Sep 3 13:21:32 1999
--- Src/Makefile.in Tue Nov 23 17:48:26 1999
***************
*** 19,28 ****
  
  include ../config.make
  
! CFLAGS = $(STKCFLAGS) $(MACHINE) $(DYNLOAD) $(TK) $(DFLGS) \
                    $(OPTS) _at_DEFS@ \
                    -I. -I../Tk/generic -I../Tk/$(FLAVOR) -I../Tcl -I../Mp \
! -I../Stack $(XINCLUDES)
  #
  # Add here your object ('.o') files
  #
--- 19,28 ----
  
  include ../config.make
  
! CFLAGS = $(MACHINE) $(DYNLOAD) $(TK) $(DFLGS) \
                    $(OPTS) _at_DEFS@ \
                    -I. -I../Tk/generic -I../Tk/$(FLAVOR) -I../Tcl -I../Mp \
! -I../Stack $(STKCFLAGS) $(XINCLUDES)
  #
  # Add here your object ('.o') files
  #
*** Tk/unix/Makefile.in.00 Sun Oct 25 13:52:31 1998
--- Tk/unix/Makefile.in Tue Nov 23 17:49:14 1999
***************
*** 184,193 ****
  
  
  CC = _at_CC@
! CC_SWITCHES = ${STKCFLAGS} ${DFLGS} -I../../Src \
  ${TK_SHLIB_CFLAGS} -I${UNIX_DIR} -I${GENERIC_DIR} \
  -I${BMAP_DIR} -I${TCL_GENERIC_DIR} ${X11_INCLUDES} ${AC_FLAGS} ${PROTO_FLAGS} \
! ${SECURITY_FLAGS} ${MEM_DEBUG_FLAGS} ${KEYSYM_FLAGS}
  
  DEPEND_SWITCHES = ${CFLAGS} -I${UNIX_DIR} -I${GENERIC_DIR} \
  -I${BMAP_DIR} \
--- 184,193 ----
  
  
  CC = _at_CC@
! CC_SWITCHES = ${DFLGS} -I../../Src \
  ${TK_SHLIB_CFLAGS} -I${UNIX_DIR} -I${GENERIC_DIR} \
  -I${BMAP_DIR} -I${TCL_GENERIC_DIR} ${X11_INCLUDES} ${AC_FLAGS} ${PROTO_FLAGS} \
! ${SECURITY_FLAGS} ${MEM_DEBUG_FLAGS} ${KEYSYM_FLAGS} ${STKCFLAGS}
  
  DEPEND_SWITCHES = ${CFLAGS} -I${UNIX_DIR} -I${GENERIC_DIR} \
  -I${BMAP_DIR} \
*** configure.in.00 Sat Nov 27 18:33:38 1999
--- configure.in Sat Nov 27 18:36:12 1999
***************
*** 27,32 ****
--- 27,36 ----
            case $machine in
              i*86) machine=ix86;;
            esac;;
+ UnixWare*)
+ case $machine in
+ i*86) machine=ix86;;
+ esac;;
    FreeBSD*)
             case $machine in
               i*86) machine=ix86;;
***************
*** 109,114 ****
--- 113,119 ----
  case $MACHINE in
    SunOS-4*) OS=SUNOS4;;
    SunOS-5*) OS=SUNOS5;;
+ UnixWare*) OS=UNIXWARE;;
    OSF1*) OS=OSF1;;
    ULTRIX*) OS=ULTRIX;;
    HP*) OS=HPUX; DFLGS="$DFLGS -Dhpux";;
***************
*** 437,442 ****
--- 442,453 ----
       SH_CCFLAGS="-K pic"
       SH_LDFLAGS='-G -z text -h'
       SH_LOADER="ld"
+ SH_SUFFIX='so';;
+ UNIXWARE)
+ SH_CCFLAGS="-K pic"
+ SH_LDFLAGS='-G -o'
+ SH_LOADER="ld"
+ STKLDFLAGS="$STKLDFLAGS -Wl,-Bexport"
       SH_SUFFIX='so';;
     OSF1)
       SH_CCFLAGS="-fpic"
Received on Sun Nov 28 1999 - 03:47:26 CET

This archive was generated by hypermail 2.3.0 : Mon Jul 21 2014 - 19:38:59 CEST