From d3008258ff6216485d6b6e22381529eb48219ce9 Mon Sep 17 00:00:00 2001
From: Marcus Comstedt <marcus@mc.pp.se>
Date: Fri, 27 Feb 1998 18:59:11 +0100
Subject: [PATCH] Result of volatile check now used in signal test.

Rev: src/configure.in:1.163
---
 src/configure.in | 36 ++++++++++++++++++------------------
 1 file changed, 18 insertions(+), 18 deletions(-)

diff --git a/src/configure.in b/src/configure.in
index 63edae9ade..b15eed07a3 100644
--- a/src/configure.in
+++ b/src/configure.in
@@ -1,4 +1,4 @@
-AC_REVISION("$Id: configure.in,v 1.162 1998/02/27 17:35:04 marcus Exp $")
+AC_REVISION("$Id: configure.in,v 1.163 1998/02/27 17:59:11 marcus Exp $")
 AC_INIT(interpret.c)
 AC_CONFIG_HEADER(machine.h)
 
@@ -1480,6 +1480,22 @@ else
   AC_MSG_RESULT(not by cast)
 fi
 
+#############################################################################
+
+AC_MSG_CHECKING(for volatile)
+AC_CACHE_VAL(pike_cv_volatile,
+[
+ AC_TRY_COMPILE([],[ volatile int foo=1;], pike_cv_volatile=yes,pike_cv_volatile=no)
+])
+
+if test "$pike_cv_volatile" = yes; then
+ AC_MSG_RESULT(yes)
+ AC_DEFINE(VOLATILE,volatile)
+else
+ AC_MSG_RESULT(no)
+ AC_DEFINE(VOLATILE,)
+fi
+
 ########################################################################
 
 AC_MSG_CHECKING(for sig_atomic_t)
@@ -1513,7 +1529,7 @@ AC_TRY_RUN([
 #include <stdlib.h>
 #include <stddef.h>
 #endif
-volatile sig_atomic_t sigrun=0;
+VOLATILE sig_atomic_t sigrun=0;
 RETSIGTYPE func(int sig) { sigrun=1; }
 
 int main()
@@ -1700,22 +1716,6 @@ fi
 
 #############################################################################
 
-AC_MSG_CHECKING(for volatile)
-AC_CACHE_VAL(pike_cv_volatile,
-[
- AC_TRY_COMPILE([],[ volatile int foo=1;], pike_cv_volatile=yes,pike_cv_volatile=no)
-])
-
-if test "$pike_cv_volatile" = yes; then
- AC_MSG_RESULT(yes)
- AC_DEFINE(VOLATILE,volatile)
-else
- AC_MSG_RESULT(no)
- AC_DEFINE(VOLATILE,)
-fi
-
-#############################################################################
-
 AC_MSG_CHECKING(for gcc function attributes)
 AC_CACHE_VAL(pike_cv_gcc_attributes,
 [
-- 
GitLab