bk: 555b03567V-dTk2ppUtBqhRSNv8lXw
---
+* Unity test framework fixes.
* Initial support for PACKAGE_VERSION tests.
---
(4.2.8p3-RC1) 2015/05/12 Released by Harlan Stenn <stenn@ntp.org>
NTP_PROG_CC
AC_PROG_CPP
+# Do we need CXX for anything besides google test?
AC_PROG_CXX
AC_PROG_YACC
AC_PROG_CC_C_O
AM_CONDITIONAL([SAVECONFIG_ENABLED], [test x$ntp_saveconfig_enabled = x1])
AC_MSG_RESULT([$ntp_ok])
+NTP_UNITYTEST
+
dnl gtest is needed for our tests subdirs. It would be nice if we could
dnl require a C++ compiler only if we will use gtest, but AC_PROG_CXX
dnl can't be conditionalized.
# Checks for library functions.
AC_CHECK_FUNCS([socket])
+NTP_UNITYTEST
# HMS: if we don't find c++ we should not look for gtest.
AC_PROG_CXX
NTP_GOOGLETEST
--- /dev/null
+dnl ######################################################################
+dnl NTP_UNITYBUILD - Unity build support
+dnl shared by top-level and sntp/configure.ac
+AC_DEFUN([NTP_UNITYBUILD], [
+# We may not need have_unity
+have_unity=false
+AC_PATH_PROG([ruby])
+case "$PATH_RUBY" in
+ /*)
+ have_unity=true
+ ;;
+ *) PATH_RUBY="false"
+ ;;
+esac
+# We may not need UNITYBUILD_AVAILABLE
+AM_CONDITIONAL([UNITYBUILD_AVAILABLE], [$have_unity])
+
+])
+dnl ======================================================================