xref: /freebsd/contrib/ntp/sntp/m4/ntp_unitytest.m4 (revision b5ff185e19f6013ca565b2a15bc2d6abce933f46)
1*276da39aSCy Schubertdnl ######################################################################
2*276da39aSCy Schubertdnl NTP_UNITYBUILD -  Unity build support
3*276da39aSCy Schubertdnl shared by top-level and sntp/configure.ac
4*276da39aSCy SchubertAC_DEFUN([NTP_UNITYBUILD], [
5*276da39aSCy Schubert# We may not need have_unity
6*276da39aSCy Schuberthave_unity=false
7*276da39aSCy SchubertAC_PATH_PROG([PATH_RUBY], [ruby])
8*276da39aSCy Schubertcase "$PATH_RUBY" in
9*276da39aSCy Schubert /*)
10*276da39aSCy Schubert    have_unity=true
11*276da39aSCy Schubert    ;;
12*276da39aSCy Schubert *) PATH_RUBY="false"
13*276da39aSCy Schubert    ;;
14*276da39aSCy Schubertesac
15*276da39aSCy Schubert# We may not need UNITYBUILD_AVAILABLE
16*276da39aSCy SchubertAM_CONDITIONAL([UNITYBUILD_AVAILABLE], [$have_unity])
17*276da39aSCy Schubert
18*276da39aSCy Schubert])
19*276da39aSCy Schubertdnl ======================================================================
20