From d8a48784795cf71730717717f6b9f75be0b80d16 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Wed, 2 May 2018 15:12:24 +0200 Subject: Make building tests optional. --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 05d66b9..6ac02c9 100644 --- a/configure.ac +++ b/configure.ac @@ -42,8 +42,9 @@ AC_SUBST(PAMMODULEDIR) m4_include([m4/gtest.m4]) CHECK_GTEST if test "x$have_gtest" != "xyes"; then - AC_MSG_ERROR([tests were requested but gtest is not installed.]) + AC_MSG_WARN([tests were requested but gtest is not installed.]) fi +AM_CONDITIONAL([HAVE_GTEST], [test "$have_gtest" != "no"]) ########################### # gcov coverage reporting -- cgit v1.2.3