[m-rev.] diff: update configuration test
Simon Taylor
stayl at cs.mu.OZ.AU
Wed Jul 11 02:45:49 AEST 2001
Estimated hours taken: 0.1
Branches: main
configure.in:
When checking whether the installed compiler is up-to-date,
check whether it creates `.c_date' files. If not, it won't
work with the latest version of scripts/Mmake.rules.
Index: configure.in
===================================================================
RCS file: /home/mercury1/repository/mercury/configure.in,v
retrieving revision 1.272
diff -u -u -r1.272 configure.in
--- configure.in 2001/07/09 08:22:54 1.272
+++ configure.in 2001/07/10 16:20:48
@@ -108,10 +108,13 @@
).
EOF
if
+ # The installed compiler must create `.c_date' files
+ # to be compatible with scripts/Mmake.rules.
echo $BOOTSTRAP_MC conftest >&AC_FD_CC 2>&1 &&
$BOOTSTRAP_MC \
--halt-at-warn --link-flags "--static" conftest \
</dev/null >&AC_FD_CC 2>&1 &&
+ test -f ./conftest.c_date &&
test "`./conftest 2>&1 | tr -d '\015'`" = "Hello, world"
then
AC_MSG_RESULT(yes)
--------------------------------------------------------------------------
mercury-reviews mailing list
post: mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------
More information about the reviews
mailing list