Subject: CONFIG_{GUESS,SUB}_OVERRIDE
To: None <tech-pkg@netbsd.org>
From: Amitai Schlair <schmonz@schmonz.com>
List: tech-pkg
Date: 05/13/2002 17:07:00
A couple days ago, Rafal Boni wrote:

> it seems ~ 500 packages die due to `mipseb' being an unknown machine
> type to autoconf... IIRC, fixing this involves adding cases for
> `mipseb' to config.sub, and in the past I've added patches to do just
> that.

I'm seeing this on Darwin as well. I don't have a count from a bulk
build, but it's a similarly large problem, such that Apple ships a
custom "config.guess" and "config.sub" with Darwin, and recommends using
them in place of the ones included with third-party software.

To solve this problem, I'd like to add CONFIG_GUESS_OVERRIDE and
CONFIG_SUB_OVERRIDE knobs to bsd.pkg.mk that pull in the versions
installed with our libtool. Nick Hudson suggested that we could even set
these knobs automatically if GNU_CONFIGURE is set.

This ought to catch most of the problem cases without much work.
Thoughts?

- Amitai