Annotation of embedaddon/ntp/m4/ntp_vpathhack.m4, revision 1.1.1.1

1.1       misho       1: dnl ######################################################################
                      2: dnl NTP_VPATH_HACK
                      3: dnl
                      4: dnl Are we using FreeBSD's make?
                      5: dnl if we are building outside the srcdir and either
                      6: dnl   force_ntp_vpath_hack is set
                      7: dnl     or
                      8: dnl   we're on freebsd and not using GNU make
                      9: dnl then we want VPATH_HACK to be true in automake tests
                     10: dnl
                     11: AC_DEFUN([NTP_VPATH_HACK], [
                     12: AC_MSG_CHECKING([to see if we need a VPATH hack])
                     13: ntp_vpath_hack="no"
                     14: case "$srcdir::$build_os::${force_ntp_vpath_hack+set}" in
                     15:  .::*::*)
                     16:     ;;
                     17:  *::*::set)
                     18:     ntp_vpath_hack="yes"
                     19:     ;;
                     20:  *::freebsd*::)
                     21:     case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in
                     22:      '')
                     23:        ntp_vpath_hack="yes"
                     24:     esac
                     25: esac
                     26: AC_MSG_RESULT([$ntp_vpath_hack])
                     27: AM_CONDITIONAL([VPATH_HACK], [test x$ntp_vpath_hack = xyes])
                     28: ])
                     29: dnl ======================================================================

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>