summaryrefslogtreecommitdiff
path: root/ext/digest/sha2/extconf.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/digest/sha2/extconf.rb')
-rw-r--r--ext/digest/sha2/extconf.rb10
1 files changed, 2 insertions, 8 deletions
diff --git a/ext/digest/sha2/extconf.rb b/ext/digest/sha2/extconf.rb
index f593c791115..c982aa64de2 100644
--- a/ext/digest/sha2/extconf.rb
+++ b/ext/digest/sha2/extconf.rb
@@ -17,18 +17,12 @@ have_header("inttypes.h")
have_header("unistd.h")
-if try_run(<<SRC, $defs.join(' '))
+if try_cpp(<<SRC, $defs.join(' '))
#include "defs.h"
-int main(void) {
#ifdef NO_UINT64_T
- return 1;
-#else
- return 0;
+ #error ** Cannot find a 64bit integer type - skipping the SHA2 module.
#endif
-}
SRC
then
create_makefile("digest/sha2")
-else
- puts "** Cannot find a 64bit integer type - skipping the SHA2 module."
end