--- config.orig 2021-08-24 23:38:47.000000000 +1000 +++ config 2021-12-01 01:02:05.178600000 +1000 @@ -105,6 +105,27 @@ # Now we simply scan though... In most cases, the SYSTEM info is enough # case "${SYSTEM}:${RELEASE}:${VERSION}:${MACHINE}" in + BSDSUniX:*:*:*386*) + VERS=`echo ${RELEASE} | sed -e 's/[-(].*//'` + MACH=`sysctl -n hw.model` + ARCH='whatever' + case ${MACH} in + *386* ) MACH="i386" ;; + *486* ) MACH="i486" ;; + Pentium\ II*) MACH="i686" ;; + Pentium* ) MACH="i586" ;; + * ) MACH="$MACHINE" ;; + esac + case ${MACH} in + i[0-9]86 ) ARCH="pc" ;; + esac + echo "${MACH}-${ARCH}-bsdsunix${VERS}"; exit 0 + ;; + + BSDSUniX:*) + echo "${MACHINE}-whatever-bsdsunix"; exit 0 + ;; + A/UX:*) echo "m68k-apple-aux3"; exit 0 ;;