Subject: Re: gmp and i386 cpu type - problems?
To: Jason Thorpe <thorpej@nas.nasa.gov>
From: Simon Burge <simonb@netbsd.org>
List: tech-pkg
Date: 07/21/1999 16:36:42
Jason Thorpe wrote:

> On Wed, 21 Jul 1999 13:28:27 +1000 
>  Simon Burge <simonb@netbsd.org> wrote:
> 
>  > The following looks a bit suspect (from pkgsrc/devel/gmp/patches/patch-ab):
>  > 
>  > +       case "${target}" in
>  > +         i[34]86*-*-*bsd*)
>  > +               path="x86" ;;
>  > +         i[56]86*-*-*bsd* | pentium-*-*bsd* | pentiumpro-*-*bsd*)
>  > +               path="x86/pentium x86" ;;
>  > +       esac ;;
>  > 
>  > so I'd guess the answer is "yes" unfortunately.  Maybe this sort of
>  > behaviour could be overriden by a /etc/mk.conf variable perhaps.
>  > Something like "IM_IN_BINARY_PACKAGE_MODE=yes", but shorter :-)
> 
> Um... but I don't think it will ever configure to anything other than
> "i386--netbsd" ... "uname -p" reports "i386" under NetBSD, because
> that's MACHINE_ARCH.

Good, I don't need to be concerned then!

Looking a little further, the original autoconf code seemed to test
for all combinations of i[3456]86, but Johnny's had to generalise the
various targets for ELF support.  Does any of the other *BSDs return
anything other than i386?

Simon.