Subject: More programming questions
To: None <port-arm32@NetBSD.ORG>
From: Martin Tee <martin.tee@argonet.co.uk>
List: port-arm32
Date: 04/05/1998 15:28:00
When compiling Lesstif v0.83 the configure command is used
which uses config.guess to extract information. It obtains
machine and system details with the uname command. The only
arm computer it expects is the Riscix. To get the script
to work I added an extra case statement for arm32 but
still made it respond like it was a Riscix. ie

UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown

trap 'rm -f dummy.c dummy.o dummy; exit 1' 1 2 15

# Note: order is significant - the case branches are not exclusive.

case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
[snip]
 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
    echo arm-acorn-riscix${UNAME_RELEASE}
    exit 0;;
 arm32:*:*)
     echo arm-acorn-riscix${UNAME_RELEASE}
     exit 0 ;;

Will this work? or will there be problems over 26 bit and 
32 bit addressing? Should I pretend its some other more
appropriate machine? 

BTW how do we go about informing developers of the existence 
of RiscBSD so it can be included in their configuration options?

On another subject, am I right in thinking we can only link with
static libraries ie lib*.a files? If so, do we have all the files
for X programming, as I can't find an libXt.a library.

Thanks for your help.
Martin
-- 
                    ___     
|\/| _.._ _|_ o._    | _  _ 
|  |(_||   |_ || |   |(/_(/_
martin.tee@argonet.co.uk   http://www.argonet.co.uk/users/martin.tee/