summaryrefslogtreecommitdiff
path: root/ext/digest
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 /ext/digest
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
Diffstat (limited to 'ext/digest')
-rw-r--r--ext/digest/sha2/extconf.rb8
1 files changed, 8 insertions, 0 deletions
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")