summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-08-14 20:05:21 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-08-14 20:05:21 +0000
commitf7563703a72f8e6731e4bda0476247a84ab6e7fe (patch)
tree2897833a222c8f7a7bf8ad4e1026acc34985080b
parent2078e7456aa5ec2dfce55a9b5cdc95a5a6a554d6 (diff)
downloadruby-f7563703a72f8e6731e4bda0476247a84ab6e7fe.tar.gz
ruby-f7563703a72f8e6731e4bda0476247a84ab6e7fe.tar.xz
ruby-f7563703a72f8e6731e4bda0476247a84ab6e7fe.zip
* ext/digest/*/extconf.rb: really fix so that they build from any
directory. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1686 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--ext/digest/md5/extconf.rb4
-rw-r--r--ext/digest/rmd160/extconf.rb4
-rw-r--r--ext/digest/sha1/extconf.rb4
-rw-r--r--ext/digest/sha2/extconf.rb8
5 files changed, 15 insertions, 10 deletions
diff --git a/ChangeLog b/ChangeLog
index 8e9648960..9d5cee9d2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Wed Aug 15 04:59:15 2001 Akinori MUSHA <knu@iDaemons.org>
+
+ * ext/digest/*/extconf.rb: really fix so that they build from any
+ directory.
+
Wed Aug 15 04:04:02 2001 Akinori MUSHA <knu@iDaemons.org>
* ext/digest/sha2/extconf.rb: fix so that they build from any
diff --git a/ext/digest/md5/extconf.rb b/ext/digest/md5/extconf.rb
index 0d3b1ca7e..93a14025d 100644
--- a/ext/digest/md5/extconf.rb
+++ b/ext/digest/md5/extconf.rb
@@ -1,9 +1,9 @@
-# $RoughId: extconf.rb,v 1.1 2001/07/13 15:38:27 knu Exp $
+# $RoughId: extconf.rb,v 1.3 2001/08/14 19:54:51 knu Exp $
# $Id$
require "mkmf"
-$CFLAGS << " -DHAVE_CONFIG_H -I$(srcdir)/.."
+$CFLAGS << " -DHAVE_CONFIG_H -I#{File.dirname(__FILE__)}/.."
$objs = [
"md5.#{$OBJEXT}",
diff --git a/ext/digest/rmd160/extconf.rb b/ext/digest/rmd160/extconf.rb
index a1b178acb..ce53c77b5 100644
--- a/ext/digest/rmd160/extconf.rb
+++ b/ext/digest/rmd160/extconf.rb
@@ -1,9 +1,9 @@
-# $RoughId: extconf.rb,v 1.1 2001/07/13 15:38:27 knu Exp $
+# $RoughId: extconf.rb,v 1.3 2001/08/14 19:54:51 knu Exp $
# $Id$
require "mkmf"
-$CFLAGS << " -DHAVE_CONFIG_H -I$(srcdir)/.."
+$CFLAGS << " -DHAVE_CONFIG_H -I#{File.dirname(__FILE__)}/.."
$objs = [
"rmd160.#{$OBJEXT}",
diff --git a/ext/digest/sha1/extconf.rb b/ext/digest/sha1/extconf.rb
index 9ab198110..45e374e36 100644
--- a/ext/digest/sha1/extconf.rb
+++ b/ext/digest/sha1/extconf.rb
@@ -1,9 +1,9 @@
-# $RoughId: extconf.rb,v 1.1 2001/07/13 15:38:27 knu Exp $
+# $RoughId: extconf.rb,v 1.3 2001/08/14 19:54:51 knu Exp $
# $Id$
require "mkmf"
-$CFLAGS << " -DHAVE_CONFIG_H -I$(srcdir)/.."
+$CFLAGS << " -DHAVE_CONFIG_H -I#{File.dirname(__FILE__)}/.."
$objs = [
"sha1.#{$OBJEXT}",
diff --git a/ext/digest/sha2/extconf.rb b/ext/digest/sha2/extconf.rb
index dce1115bf..f593c7911 100644
--- a/ext/digest/sha2/extconf.rb
+++ b/ext/digest/sha2/extconf.rb
@@ -1,9 +1,9 @@
-# $RoughId: extconf.rb,v 1.1 2001/07/13 15:38:27 knu Exp $
+# $RoughId: extconf.rb,v 1.4 2001/08/14 19:54:51 knu Exp $
# $Id$
require "mkmf"
-$CFLAGS << " -DHAVE_CONFIG_H -I$(srcdir)/.."
+$CFLAGS << " -DHAVE_CONFIG_H -I#{File.dirname(__FILE__)}/.."
$objs = [
"sha2.#{$OBJEXT}",
@@ -17,8 +17,8 @@ have_header("inttypes.h")
have_header("unistd.h")
-if try_run(<<SRC, $defs.join(' ') + " -I#{$srcdir}")
-#include "../defs.h"
+if try_run(<<SRC, $defs.join(' '))
+#include "defs.h"
int main(void) {
#ifdef NO_UINT64_T
return 1;