[m-dev.] diff: update configure.in to work with MSVC
Fergus Henderson
fjh at cs.mu.OZ.AU
Fri Jun 23 06:50:52 AEST 2000
On 22-Jun-2000, Peter Ross <petdr at cs.mu.OZ.AU> wrote:
> configure.in:
> When testing for a usable mercury compiler, strip any carriage
> returns from the output string.
> If compiling under Windows use hlc.gc for the default grade and
> don't build the libraries in any other grades (as those grades aren't
> supported yet).
Is that parenthetical comment correct?
Why aren't the none.* grades supported?
> Index: configure.in
> ===================================================================
> RCS file: /home/mercury1/repository/mercury/configure.in,v
> retrieving revision 1.209
> diff -u -r1.209 configure.in
> --- configure.in 2000/06/16 16:37:02 1.209
> +++ configure.in 2000/06/22 13:24:04
> @@ -104,7 +104,7 @@
> echo $BOOTSTRAP_MC conftest >&AC_FD_CC 2>&1 &&
> $BOOTSTRAP_MC --high-level-code conftest \
> </dev/null >&AC_FD_CC 2>&1 &&
> - test "`./conftest 2>&1`" = "Hello, world"
> + test "`./conftest 2>&1 | tr -d '\015'`" = "Hello, world"
I suggest using `\r' rather than `\015'.
> @@ -1766,9 +1770,16 @@
> # add `hlc' (--high-level-code, i.e. MLDS back-end) grade
> LIBGRADES="$LIBGRADES hlc.gc"
>
> +# If we are using the MS compiler currently the only interesting grade
> +# is hlc.gc, which is what we install by default.
> +if test $ac_microsoft = yes; then
> + LIBGRADES=
> +fi
That comment is wrong. The grades `none.gc.tr.debug',
`none.gc.prof', etc. are interesting, because they let
the user do debugging, profiling (for test coverage analysis),
trailing, etc.
For that reason, it would make sense to install those grades
in addition to hlc.gc.
--
Fergus Henderson <fjh at cs.mu.oz.au> | "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh> | of excellence is a lethal habit"
PGP: finger fjh at 128.250.37.3 | -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to: mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions: mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------
More information about the developers
mailing list