diff options
author | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-09-26 17:55:16 +0000 |
---|---|---|
committer | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-09-26 17:55:16 +0000 |
commit | 35e4d1319b86f9a2899a0fc1bb6ffafd7f26840e (patch) | |
tree | be3eac107c9d006eec09fd96d7e399ad4922810e /ext/digest/test.sh | |
parent | 7a6adb89246e1829e6da1666e2894b6bd3322539 (diff) | |
download | ruby-35e4d1319b86f9a2899a0fc1bb6ffafd7f26840e.tar.gz |
Add a knob WITH_BUNDLED_ENGINES to test.sh.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2896 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/digest/test.sh')
-rw-r--r-- | ext/digest/test.sh | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/ext/digest/test.sh b/ext/digest/test.sh index 88b34b04c5..6fb07d2177 100644 --- a/ext/digest/test.sh +++ b/ext/digest/test.sh @@ -14,14 +14,20 @@ ${MAKE} mkdir -p lib/digest for algo in md5 rmd160 sha1 sha2; do + args=--with-cflags="${CFLAGS}" + + if [ $WITH_BUNDLED_ENGINES ]; then + args="$args --with-bundled-$algo" + fi + (cd $algo && - ${RUBY} extconf.rb --with-cflags="${CFLAGS}"; + ${RUBY} extconf.rb $args; ${MAKE} clean; ${MAKE}) ln -sf ../../$algo/$algo.so lib/digest/ done -${RUBY} -I. -I./lib test.rb +${RUBY} -I. -I./lib test.rb rm lib/digest/*.so rmdir lib/digest |