emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/configure,v


From: Stefan Monnier
Subject: [Emacs-diffs] Changes to emacs/configure,v
Date: Fri, 18 Apr 2008 15:48:08 +0000

CVSROOT:        /sources/emacs
Module name:    emacs
Changes by:     Stefan Monnier <monnier>        08/04/18 15:48:06

Index: configure
===================================================================
RCS file: /sources/emacs/emacs/configure,v
retrieving revision 1.262
retrieving revision 1.263
diff -u -b -r1.262 -r1.263
--- configure   16 Apr 2008 19:53:02 -0000      1.262
+++ configure   18 Apr 2008 15:48:03 -0000      1.263
@@ -16734,7 +16734,6 @@
 # endif
 #endif
 
-#include <limits.h>
 #include <stdlib.h>
 
 #ifdef HAVE_UNISTD_H
@@ -16883,15 +16882,12 @@
      isn't worth using anyway.  */
   alarm (60);
 
-  for (;;)
-    {
-      t = (time_t_max << 1) + 1;
-      if (t <= time_t_max)
-       break;
-      time_t_max = t;
-    }
-  time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
-
+  for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
+    continue;
+  time_t_max--;
+  if ((time_t) -1 < 0)
+    for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
+      continue;
   delta = time_t_max / 997; /* a suitable prime number */
   for (i = 0; i < N_STRINGS; i++)
     {
@@ -16906,12 +16902,10 @@
             && mktime_test ((time_t) (60 * 60 * 24))))
        return 1;
 
-      for (j = 1; ; j <<= 1)
+      for (j = 1; 0 < j; j *= 2)
        if (! bigtime_test (j))
          return 1;
-       else if (INT_MAX / 2 < j)
-         break;
-      if (! bigtime_test (INT_MAX))
+      if (! bigtime_test (j - 1))
        return 1;
     }
   return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
@@ -18820,13 +18814,11 @@
 cat confdefs.h >>conftest.$ac_ext
 cat >>conftest.$ac_ext <<_ACEOF
 /* end confdefs.h.  */
-#include <sys/types.h> /* for off_t */
-     #include <stdio.h>
+#include <stdio.h>
 int
 main ()
 {
-int (*fp) (FILE *, off_t, int) = fseeko;
-     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
+return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
   ;
   return 0;
 }
@@ -18866,13 +18858,11 @@
 cat >>conftest.$ac_ext <<_ACEOF
 /* end confdefs.h.  */
 #define _LARGEFILE_SOURCE 1
-#include <sys/types.h> /* for off_t */
-     #include <stdio.h>
+#include <stdio.h>
 int
 main ()
 {
-int (*fp) (FILE *, off_t, int) = fseeko;
-     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
+return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
   ;
   return 0;
 }
@@ -24062,6 +24052,19 @@
 #define USE_X_TOOLKIT 1
 _ACEOF
 
+  if test "${USE_X_TOOLKIT}" == "LUCID"; then
+
+cat >>confdefs.h <<\_ACEOF
+#define USE_LUCID 1
+_ACEOF
+
+  elif test "${USE_X_TOOLKIT}" == "MOTIF"; then
+
+cat >>confdefs.h <<\_ACEOF
+#define USE_MOTIF 1
+_ACEOF
+
+  fi
 fi
 if test "${HAVE_X11}" = "yes" ; then
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]