Re: cross-building from macos x
Kurt J. Lidl <lidl <at> pix.net>
2007-08-07 20:10:49 GMT
On Mon, Aug 06, 2007 at 10:09:19PM +0200, Alan Barrett wrote:
> On Mon, 06 Aug 2007, Joerg Sonnenberger wrote:
> > On Mon, Aug 06, 2007 at 12:16:51PM -0400, Kurt Lidl wrote:
> > > http://mail-index.netbsd.org/netbsd-bugs/2007/07/29/0002.html
> >
> > It should only include the minimal version from the #else case.
> > It doesn't have to be fast, so just providing the default version in C
> > is good enough.
>
> I agree. I will do some testing and then commit a fix along those
> lines, unless somebody else beats me to it.
The following patch (derived from the original one) progresses
beyond the very early failure that I saw before. Hopefully this
qualifies as "the minimal version", and can be commited. Thanks!
-Kurt
Index: tools/compat/configure.ac
===================================================================
RCS file: /cvsroot/src/tools/compat/configure.ac,v
retrieving revision 1.60
diff -u -r1.60 configure.ac
--- tools/compat/configure.ac 9 Oct 2006 14:59:05 -0000 1.60
+++ tools/compat/configure.ac 6 Aug 2007 19:22:53 -0000
<at> <at> -142,6 +142,8 <at> <at>
AC_CHECK_DECLS([bswap16, bswap32, bswap64],,, [#include <machine/bswap.h>])
+AC_CHECK_DECLS([be16enc, le16enc, be16dec, le16dec, be32enc, le32enc, be32dec, le32dec, be64enc,
(Continue reading)