[m-dev.] trivial diff: reorder tests in configure.in

Fergus Henderson fjh at cs.mu.OZ.AU
Tue Nov 21 01:23:16 AEDT 2000


Estimated hours taken: 0.1

configure.in:
	Reorder the tests so that all of the tests related to the use
	of gcc global registers and non-local gotos are together.

Workspace: /home/mercury0/fjh/mercury
Index: configure.in
===================================================================
RCS file: /home/mercury1/repository/mercury/configure.in,v
retrieving revision 1.232
diff -u -d -r1.232 configure.in
--- configure.in	2000/11/20 13:13:31	1.232
+++ configure.in	2000/11/20 14:19:37
@@ -1579,6 +1579,34 @@
 	mercury_cv_gcc_model_fast=no
 fi
 #-----------------------------------------------------------------------------#
+#
+# Restore env vars modified by Irix 5 hack above
+#
+CC="$save_CC"
+LIBRARY_PATH="$save_LIBRARY_PATH"
+#-----------------------------------------------------------------------------#
+
+AC_MSG_CHECKING(whether we can use global registers without gcc labels)
+AC_CACHE_VAL(mercury_cv_gcc_model_reg,
+AC_TRY_RUN([
+#define USE_GCC_GLOBAL_REGISTERS
+#include "mercury_engine.h"
+changequote(<<,>>) 
+MercuryEngine MR_engine_base;
+changequote([,]) 
+main() {
+	mr0 = 20;
+	mr7 = 22;
+	if (mr0 + mr7 != 42)
+		exit(1);
+	exit(0);
+}], [mercury_cv_gcc_model_reg=yes], [mercury_cv_gcc_model_reg=no],
+	[mercury_cv_gcc_model_reg=no])
+)
+AC_MSG_RESULT($mercury_cv_gcc_model_reg)
+
+#-----------------------------------------------------------------------------#
+
 AC_MSG_CHECKING(whether we can support profiling on this system)
 AC_CACHE_VAL(mercury_cv_profiling,
 AC_TRY_CPP([
@@ -1609,32 +1637,6 @@
 ], [mercury_cv_profiling=yes], [mercury_cv_profiling=no]))
 AC_MSG_RESULT($mercury_cv_profiling)
 
-#-----------------------------------------------------------------------------#
-#
-# Restore env vars modified by Irix 5 hack above
-#
-CC="$save_CC"
-LIBRARY_PATH="$save_LIBRARY_PATH"
-#-----------------------------------------------------------------------------#
-
-AC_MSG_CHECKING(whether we can use global registers without gcc labels)
-AC_CACHE_VAL(mercury_cv_gcc_model_reg,
-AC_TRY_RUN([
-#define USE_GCC_GLOBAL_REGISTERS
-#include "mercury_engine.h"
-changequote(<<,>>) 
-MercuryEngine MR_engine_base;
-changequote([,]) 
-main() {
-	mr0 = 20;
-	mr7 = 22;
-	if (mr0 + mr7 != 42)
-		exit(1);
-	exit(0);
-}], [mercury_cv_gcc_model_reg=yes], [mercury_cv_gcc_model_reg=no],
-	[mercury_cv_gcc_model_reg=no])
-)
-AC_MSG_RESULT($mercury_cv_gcc_model_reg)
 #-----------------------------------------------------------------------------#
 
 # Figure out which flavour of pthreads to use, since none of the

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
                                    |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- 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