On Mon, Aug 04, 2003 at 10:59:05PM +0900, ts wrote:
> >>>>> "B" == Brian Candler <B.Candler / pobox.com> writes:
> 
> B> cpp = Config::expand sprintf(CPP, $CPPFLAGS, $CFLAGS, '')
> 
>  Can you try ?
> 
>      Config::expand(cpp_command(""))

$ ruby -v -rmkmf -e 'p Config::expand(cpp_command(""))'
ruby 1.8.0 (2003-08-04) [i386-freebsd4.7]
"gcc -E -I/usr/local/lib/ruby/1.8/i386-freebsd4.7 -I/usr/local/lib/ruby/1.8/i386-freebsd4.7  -g -O2   conftest.c"

So now I have changed the following line in extconf.rb:

#cpp = Config::expand sprintf(CPP, $CPPFLAGS, $CFLAGS, '')
cpp = Config::expand(cpp_command(""))

And the next problem is that 'make' does nothing.

-bash-2.05b$ ruby extconf.rb --with-mysql-dir=/usr/local/mysql
checking for mysql_query() in -lmysqlclient... yes
checking for mysql.h... yes
creating Makefile
-bash-2.05b$ gmake
gmake: Nothing to be done for `all'.

The relevant section of Makefile:

...
all:            Makefile

clean:
                @$(RM) $(CLEANLIBS) $(CLEANOBJS) $(CLEANFILES)
...

So indeed, there is nothing to do. Hmm!

Regards,

Brian.