]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[5057] Added --with-gtest-source googletest directory helper
authorFrancis Dupont <fdupont@isc.org>
Mon, 21 Nov 2016 14:10:19 +0000 (15:10 +0100)
committerFrancis Dupont <fdupont@isc.org>
Mon, 21 Nov 2016 14:10:19 +0000 (15:10 +0100)
configure.ac

index 7a0f45cd8a20a44933677ee5ea0235c92afca1b4..a9e49f8aec6963a8927fb186e1e6acf6e600c20d 100644 (file)
@@ -1212,6 +1212,9 @@ if test "x$enable_gtest" = "xyes" ; then
                 AC_MSG_ERROR([no gtest source but it was selected])
             fi
         else
+           if test ! -d $GTEST_SOURCE/src -a -d $GTEST_SOURCE/googletest; then
+               GTEST_SOURCE=$GTEST_SOURCE/googletest
+           fi
             AC_CHECK_FILES([$GTEST_SOURCE/src/gtest-all.cc]
                 [$GTEST_SOURCE/src/gtest_main.cc],
                 [have_gtest_source=yes],