[m-rev.] trivial diff: avoid potential problems in configure script

Julien Fischer juliensf at csse.unimelb.edu.au
Thu Dec 3 03:48:04 AEDT 2009


configure.in:
 	Avoid problems with especially picky C compilers.

Julien.

Index: configure.in
===================================================================
RCS file: /home/mercury/mercury1/repository/mercury/configure.in,v
retrieving revision 1.554
diff -u -r1.554 configure.in
--- configure.in	24 Nov 2009 23:49:44 -0000	1.554
+++ configure.in	2 Dec 2009 16:41:33 -0000
@@ -1606,6 +1606,7 @@
  if test "$mercury_cv_word_type" = unknown; then
      AC_TRY_RUN([
      #include <stdio.h>
+    #include <stdlib.h>
      int main() {
          FILE *fp;

@@ -1689,6 +1690,7 @@
      AC_TRY_RUN([
      #include <stdio.h>
      #include <limits.h>
+    #include <stdlib.h>
      int main() {
          FILE *fp;

@@ -1725,6 +1727,7 @@
      AC_TRY_RUN([
      #include <stdio.h>
      #include <limits.h>
+    #include <stdlib.h>
      int main() {
          FILE *fp;

@@ -1792,6 +1795,7 @@
      AC_TRY_RUN([
      #include <stdio.h>
      #include <limits.h>
+    #include <stdlib.h>
      int main() {
          FILE *fp;


--------------------------------------------------------------------------
mercury-reviews mailing list
Post messages to:       mercury-reviews at csse.unimelb.edu.au
Administrative Queries: owner-mercury-reviews at csse.unimelb.edu.au
Subscriptions:          mercury-reviews-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the reviews mailing list