patch from Steven Jenkins <steven.jenkins@ieee.org>:

If configure attempts to build the Ruby extension on a system without a previous
installation of comedilib, compilation fails because gcc can't find comedilib.h.

The attached patch adds the distribution include directory to the gcc search
path when compiling the extension.
This commit is contained in:
Frank Mori Hess 2004-11-23 01:18:14 +00:00
parent 4cff0c973e
commit 0942349bb8
2 changed files with 2 additions and 1 deletions

View file

@ -13,7 +13,7 @@ install-data-local:
endif
ext/Makefile config.save:
$(RUBY) $(srcdir)/setup.rb config $(RUBY_CONFIG_OPTIONS)
$(RUBY) $(srcdir)/setup.rb config $(RUBY_CONFIG_OPTIONS) -- --with-comedilib-dir=../../..
ext/comedi.so ext/comedi_ruby_wrap.o: ext/Makefile config.save $(srcdir)/ext/comedi_ruby_wrap.c
$(RUBY) $(srcdir)/setup.rb setup

View file

@ -1,3 +1,4 @@
require 'mkmf'
dir_config('comedilib')
have_library('comedi')
create_makefile("comedi")