Allow Ruby bindings to build correctly even if libguestfs not installed.
authorRichard W.M. Jones <rjones@redhat.com>
Thu, 16 Apr 2009 22:55:56 +0000 (23:55 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Thu, 16 Apr 2009 22:55:56 +0000 (23:55 +0100)
ruby/Rakefile.in

index fc95f3f..ed217f4 100644 (file)
@@ -39,7 +39,7 @@ CLOBBER.include [ "config.save", "ext/**/mkmf.log",
 
 file MAKEFILE => EXT_CONF do |t|
     Dir::chdir(File::dirname(EXT_CONF)) do
-         unless sh "ruby #{File::basename(EXT_CONF)}"
+         unless sh "ruby #{File::basename(EXT_CONF)} --with-_guestfs-include=../../../src --with-_guestfs-lib=../../../src/.libs"
              $stderr.puts "Failed to run extconf"
              break
          end