tatsuhiro-t / spdylay

The experimental SPDY protocol version 2, 3 and 3.1 implementation in C
http://tatsuhiro-t.github.io/spdylay/
MIT License
602 stars 103 forks source link

does not build for mac lion #41

Closed life0fun closed 12 years ago

life0fun commented 12 years ago

I have installed pkg-config with brew install pkg-config. pkg-config-0.27 already installed pkgconfig @0.27 devel/pkgconfig

checking whether make sets $(MAKE)... (cached) yes ./configure: line 15729: syntax error near unexpected token 0.20' ./configure: line 15729:PKG_PROG_PKG_CONFIG(0.20)'

tatsuhiro-t commented 12 years ago

Run autoreconf again. Autoreconf should be executed after pkg-config was installed. Otherwise PKG_PROG_PKG_CONFIG macro is undefined.

life0fun commented 12 years ago

I did....I removed the folder and git cloned again. Still. My colleague has the same problem in his mac also.

tatsuhiro-t commented 12 years ago

I think the following SO question may be relevant to this issue: http://stackoverflow.com/questions/3522248/how-do-i-compile-jzmq-for-zeromq-on-osx http://stackoverflow.com/questions/10875983/installing-pkg-config-on-osx-10-6

If that is the case, the problem is that m4 macro pkg.m4 is not installed in the directory the aclocal is looking for the macros. I don't know this is a bug of homebrew pkg-config package. To workaround this, you need to copy pkg.m4 file to the right place or edit files to add the directory in the way described in the above links.

After fixing pkg.m4 location, run autoreconf -i again and run configure.

life0fun commented 12 years ago

Yes, it works. Just need to add brew path for aclocal.

Close the issue. Thanks !