From: Harlan Stenn Date: Sun, 31 Oct 2010 05:30:37 +0000 (-0400) Subject: Only build/run the sntp tests if we have gtest X-Git-Tag: NTP_4_2_7P76~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca6423753ee978800045843bd83623fed96b9d06;p=thirdparty%2Fntp.git Only build/run the sntp tests if we have gtest bk: 4cccfefdnpPFSJlgP4ZBqprFrN221Q --- diff --git a/ChangeLog b/ChangeLog index 389ad1278..57242530f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,5 @@ * Put the sntp tests under sntp/ . +* ... and only build/run them if we have gtest. (4.2.7p75) 2010/10/30 Released by Harlan Stenn * Documentation updates from Dave Mills. * Include Linus Karlsson's GSoC 2010 testing code. diff --git a/sntp/Makefile.am b/sntp/Makefile.am index 9a470e141..a314e5299 100644 --- a/sntp/Makefile.am +++ b/sntp/Makefile.am @@ -28,7 +28,10 @@ if NEED_LIBOPTS SUBDIRS+= libopts endif SUBDIRS+= . + +if GTEST_AVAILABLE SUBDIRS+= tests +endif sntp_SOURCES = \ crypto.c \