Changeset 4844 for libcaca


Ignore:
Timestamp:
Nov 1, 2012, 9:17:46 PM (6 years ago)
Author:
Pascal Terjan
Message:

Use mkmf to get flags, needed for ruby 1.9

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/configure.ac

    r4820 r4844  
    465465  AC_PATH_PROG(RUBY, ruby, no)
    466466  if test "${RUBY}" != "no"; then
    467     RUBY_CFLAGS="-I$(ruby -r rbconfig -e 'print RbConfig::CONFIG@<:@"archdir"@:>@')"
     467    RUBY_CFLAGS="$(ruby -r mkmf -e 'conf = RbConfig::CONFIG.merge("hdrdir" => $hdrdir, "arch_hdrdir" => $arch_hdrdir); print RbConfig::expand("#$INCFLAGS", conf)')"
    468468    RUBY_LIBS="-L$(ruby -r rbconfig -e 'print RbConfig::CONFIG@<:@"libdir"@:>@') -l$(ruby -r rbconfig -e 'print RbConfig::CONFIG@<:@"RUBY_SO_NAME"@:>@')"
    469469    RUBY_SITEARCHDIR=`ruby -r rbconfig -e 'print RbConfig::CONFIG@<:@"sitearchdir"@:>@'`
Note: See TracChangeset for help on using the changeset viewer.