configure script unable to find log4cplus on openbsd
log4cplus installed from packages
openbsd65-64-1$ ls /usr/local/include/log4cplus/
appender.h consoleappender.h layout.h nteventlogappender.h thread
asyncappender.h fileappender.h log4judpappender.h nullappender.h tracelogger.h
boost fstreams.h logger.h socketappender.h tstring.h
clogger.h helpers loggingmacros.h spi version.h
config hierarchy.h loglevel.h streams.h win32consoleappender.h
config.hxx hierarchylocker.h mdc.h syslogappender.h win32debugappender.h
configurator.h internal ndc.h tchar.h
but when I run configure:
./configure --with-gtest-source=/opt/googletest/ --with-log4cplus=/usr/local/include/log4cplus/
[..]
checking HMAC functions returning ints... yes
checking sys/filio.h usability... yes
checking sys/filio.h presence... yes
checking for sys/filio.h... yes
checking log4cplus/logger.h usability... no
checking log4cplus/logger.h presence... no
checking for log4cplus/logger.h... no
configure: error: Missing required header files.
and in config.log I see that ./configure is searching for log4cplus in /usr/local/include/log4cplus/include
configure:18853: checking log4cplus/logger.h usability
configure:18853: /usr/bin/clang -c -g -O2 -I/usr/local/include/log4cplus//include -DOS_BSD conftest.cpp >&5
conftest.cpp:62:10: fatal error: 'log4cplus/logger.h' file not found
it should not append /include