--with-gtest=PATH is not working as expected
Describe the bug
When using --with-gtest with a prefix where gtest is installed as an argument, gtest is not found.
To Reproduce Steps to reproduce the behavior:
- run keas configure script with --with-gtest pointing to a non default location where gtest is installed (/opt/gtest) but gtest-config does not exist. gtest-config is not officially supported by googletest as is mentioned by the readme in the scripts directory where gtest-config resides.
- the configure script fails with the message: Found Google Test include but not the library in /opt/gtest .
Expected behavior
gtest is found and configure runs until the end.
Environment:
- Kea version: git as of 20200103.
- OS: [NetBSD 8.1]
How to fix
m4macros/ax_gtest.m4 has a typo on line 137, it looks for libgtests.a when it should look for libgtest.a as can be seen on line 143: -lgtest. Changing this makes it work for me.
Edited by Ghost User