summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-08-14 12:15:21 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-08-14 12:15:21 +0000
commit5b63fc556fd06f8c6c170df359a854d3e504806f (patch)
tree39ea0f370ed876bbf2d07503e5e92a681310ee98
parent04a8e85bc5d305d1c227ca9d3ccc0794e07fafc1 (diff)
* ext/digest/sha2/extconf.rb: do not create Makefile when no 64bit
integer type is detected. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1683 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--ext/digest/sha2/extconf.rb8
2 files changed, 13 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 47f8156f926..c2822bfae70 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Tue Aug 14 21:14:07 2001 Akinori MUSHA <knu@iDaemons.org>
+
+ * ext/digest/sha2/extconf.rb: do not create Makefile when no 64bit
+ integer type is detected.
+
Tue Aug 14 17:09:12 2001 Yukihiro Matsumoto <matz@ruby-lang.org>
* range.c (range_step): new method.
diff --git a/ext/digest/sha2/extconf.rb b/ext/digest/sha2/extconf.rb
index fcbc1ddd8be..144f266b20e 100644
--- a/ext/digest/sha2/extconf.rb
+++ b/ext/digest/sha2/extconf.rb
@@ -17,4 +17,12 @@ have_header("inttypes.h")
have_header("unistd.h")
+unless try_link(<<SRC, $defs.join(' '))
+#include "../defs.h"
+main(){}
+SRC
+ puts "** Cannot find a 64bit integer type - skipping the SHA2 module."
+ exit 1
+end
+
create_makefile("digest/sha2")