ruby/ext/digest/sha1/extconf.rb
yugui 226a7a81d6 merges r24415,r24426,r24427,r24428,r24433,r24434 and r24435 from trunk into ruby_1_9_1.
--
* ext/digest/sha2/sha2.[ch]: Update to 1.0 RELEASE which fixes an
  off-by-one bug in SHA-256 hashing.  Reduce differences from
  the original while at it. [Bug #1799]
--
* ext/digest/sha2/sha2.h (BYTE_ORDER): Define BYTE_ORDER as
  necessary. [ruby-dev:39029]
--
	* ext/digest/sha2/sha2.c (*_Final): typos.
--
	* ext/digest/sha2/lib/sha2.eb: should require sha2.so.
--
* ext/digest/*/extconf.rb: inttypes.h and unistd.h need not be
  checked here. [ruby-dev:39032]
--
* ext/digest/sha2/sha2.c: The ULL suffix is not supported by
  pre-C99 compilers, so resurrect the ULL() macro to regain
  portability. [ruby-dev:39032]
--
Fix a typo.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@24475 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-08 15:35:43 +00:00

24 lines
448 B
Ruby

# $RoughId: extconf.rb,v 1.3 2001/08/14 19:54:51 knu Exp $
# $Id$
require "mkmf"
$defs << "-DHAVE_CONFIG_H"
$INCFLAGS << " -I$(srcdir)/.."
$objs = [ "sha1init.#{$OBJEXT}" ]
dir_config("openssl")
if !with_config("bundled-sha1") &&
have_library("crypto") && have_header("openssl/sha.h")
$objs << "sha1ossl.#{$OBJEXT}"
else
$objs << "sha1.#{$OBJEXT}"
end
have_header("sys/cdefs.h")
$preload = %w[digest]
create_makefile("digest/sha1")