summaryrefslogtreecommitdiffstats
path: root/m4macros/ax_gtest.m4
diff options
context:
space:
mode:
authorPiotrek Zadroga <piotrek@isc.org>2023-09-26 15:56:27 +0200
committerPiotrek Zadroga <piotrek@isc.org>2023-10-04 19:36:20 +0200
commitdd7f26ce7ae6b91664f28b431c0e768858fe152d (patch)
tree261f1992a3f90d0a59fee9272329f1f489e125f8 /m4macros/ax_gtest.m4
parent[#3065] modify semver regex (diff)
downloadkea-dd7f26ce7ae6b91664f28b431c0e768858fe152d.tar.xz
kea-dd7f26ce7ae6b91664f28b431c0e768858fe152d.zip
[#3065] find gtest version for debian/ubuntu
Diffstat (limited to 'm4macros/ax_gtest.m4')
-rw-r--r--m4macros/ax_gtest.m43
1 files changed, 2 insertions, 1 deletions
diff --git a/m4macros/ax_gtest.m4 b/m4macros/ax_gtest.m4
index 9290f4c2a5..876886a205 100644
--- a/m4macros/ax_gtest.m4
+++ b/m4macros/ax_gtest.m4
@@ -129,7 +129,8 @@ if test "x$enable_gtest" = "xyes" ; then
gtest_version_found="yes"
GTEST_VERSION=$gtest_version_candidate
fi
- else
+ fi
+ if test $gtest_version_found = "no" ; then
dpkg -l googletest libgtest-dev 2>/dev/null
# Try to get googletest version from debian/ubuntu package
dpkg -S "$GTEST_SOURCE" | cut -d':' -f1 &> /dev/null