Have configure.ac tolerate unregistered builds or new platforms
Gabriel Dos Reis
gdr at integrable-solutions.net
Mon Jan 16 19:42:19 CET 2012
GHC's configure.ac is at the moment pretty intolerant with
respect to unregistered builds: it will issue outright rejection
for triplets it does not know about. However, the first thing
we want to do when performing an unregistered build or porting to
a new platform (or even cross-compiling) is to run configure
and inspect what it founds. For that to happen, configure.ac
ought to be flexible. Here is a patch that implements just that:
What it does:
-- removal of checkVendor
this check isn't doing anything really useful.
GHC should not halt configuration just because
it does not know about an OS vendor.
-- have both checkArch and checkOS not abort configuration
they should normalize arch and os known to be troublesome
and report ArchUnknown and OsUknown for arches and OSes
not known to GHC.
-- similar changes need to be reflected in GHC_CONVERTT_CPU,
More information about the Cvs-ghc