summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-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
4 files changed, 10 insertions, 10 deletions
diff --git a/ext/digest/md5/extconf.rb b/ext/digest/md5/extconf.rb
index 0d3b1ca7ea5..93a14025d02 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 a1b178acb7f..ce53c77b557 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 9ab198110af..45e374e369d 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 dce1115bf8c..f593c791115 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;