Ruby not seeing readline on sparc64-sun-solaris2.8



I can’t seem to get ruby 1.8.4 to see lib readline. I have compiled
readline in
directory X.

% cd X
% ls include/readline/
chardefs.h history.h keymaps.h readline.h rlconf.h rlstdc.h
rltypedefs.h tilde.h
% ls lib/
libhistory.a libreadline.a

I have set CFLAGS, CPPFLAGS and LDFLAGS to X/include and X/lib, but
the extension
just doesn’t see the files. I have even added these directories to
extconf.rb and
still not luck.

Any ideas?