aboutsummaryrefslogtreecommitdiff
path: root/sntp/m4/ntp_unitytest.m4
diff options
context:
space:
mode:
Diffstat (limited to 'sntp/m4/ntp_unitytest.m4')
-rw-r--r--sntp/m4/ntp_unitytest.m419
1 files changed, 19 insertions, 0 deletions
diff --git a/sntp/m4/ntp_unitytest.m4 b/sntp/m4/ntp_unitytest.m4
new file mode 100644
index 000000000000..dd7ad3d184c4
--- /dev/null
+++ b/sntp/m4/ntp_unitytest.m4
@@ -0,0 +1,19 @@
+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([PATH_RUBY], [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 ======================================================================