ruby-m4.patch
libprelude-3.0.0/m4/am_path_ruby.m4.new 2016-05-01 10:46:14.221008470 +0200 | ||
---|---|---|
96 | 96 |
dnl (shared libraries) |
97 | 97 |
AC_CACHE_CHECK([for $am_display_RUBY extension module directory], |
98 | 98 |
[am_cv_ruby_rbexecdir], |
99 |
[am_cv_ruby_rbexecdir=`$RUBY -rrbconfig -e "drive = File::PATH_SEPARATOR == ';' ? /\A\w:/ : /\A/; prefix = Regexp.new('\\A' + Regexp.quote(RbConfig::CONFIG[['prefix']])); \\$prefix = RbConfig::CONFIG[['prefix']].sub(drive, ''); \\$sitearchdir = RbConfig::CONFIG[['sitearchdir']].sub(prefix, '\\$(prefix)').sub(drive, ''); print \\$sitearchdir;" 2>/dev/null || echo "${RUBY_EXEC_PREFIX}/local/lib/site_ruby/${RUBY_VERSION}/${RUBY_PLATFORM}"`])
|
|
99 |
[am_cv_ruby_rbexecdir=`$RUBY -r rbconfig -e "print RbConfig::CONFIG[['vendorarchdir']]"`])
|
|
100 | 100 |
AC_SUBST([rbexecdir], [$am_cv_ruby_rbexecdir]) |
101 | 101 | |
102 |
RUBY_INCLUDES=`$RUBY -r rbconfig -e 'if RbConfig::CONFIG[["archdir"]] then print " -I" + RbConfig::CONFIG[["archdir"]] end
|
|
103 |
if RbConfig::CONFIG[["rubyhdrdir"]] then print " -I" + RbConfig::CONFIG[["rubyhdrdir"]] end'`
|
|
102 |
RUBY_VER=`$RUBY -rrbconfig -e "print RbConfig::CONFIG[['ruby_pc']]" | sed 's/.pc//g'`
|
|
103 |
RUBY_INCLUDES=`pkg-config $RUBY_VER --cflags`
|
|
104 | 104 |
AC_SUBST([RUBY_INCLUDES]) |
105 | 105 | |
106 | 106 |
dnl pkgrbexecdir -- $(rbexecdir)/$(PACKAGE) |