I'm trying to compile mod_gearman 1.3.4 on FreeBSD, and running into a problem where configure is inexplicably unable to find ltdl.h.
checking for ltdl.h... no
configure: error: Compiling Mod-Gearman requires ltdl.h
It's definitely present:
% locate ltdl.h
/usr/local/include/ltdl.h
/usr/local/share/libtool/libltdl/ltdl.h
% portversion -v libltdl
libltdl-2.4.2 = up-to-date with port
On the off chance that configure wasn't searching /usr/local for some reason I attempted to set LDFLAGS, but that had no effect.
% setenv LDFLAGS "-L/usr/local/lib -I/usr/local/include"
The only other mention I've found of this is in a release notice for 1.2.4 which said that mod_gearman should work out of the box on FreeBSD from that point on. Just in case I tried compiling 1.2.4 itself, but that had the same issue.
I'm attaching the relevant section of config.log, but it doesn't seem to provide much more information. Although I do note that my LDFLAGS aren't present in the gcc commands. In case configure wasn't picking up the LDFLAGS environment variable I also tried passing it on the configure command line, but that had no effect either.
Any thoughts from anyone?