123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- AC_DEFUN([AX_AM_JOBSERVER], [
- AC_REQUIRE([AX_COUNT_CPUS])
- AC_REQUIRE([AX_AM_MACROS])
- AC_ARG_ENABLE( jobserver,
- [ --enable-jobserver@<:@=no/yes/@%:@@:>@ default=m4_ifval([$1],[$1],[yes])
- Enable up to @%:@ make jobs
- yes: enable one more than CPU count
- ],, [enable_jobserver=m4_ifval([$1],[$1],[yes])])
- if test "x$enable_jobserver" = "xyes"; then
- enable_jobserver=$CPU_COUNT
- : $((enable_jobserver+=1))
- fi
- m4_pattern_allow(AM_MAKEFLAGS)
- if test "x$enable_jobserver" != "xno"; then
- AC_MSG_NOTICE([added jobserver support to make for $enable_jobserver jobs])
- AX_ADD_AM_MACRO( AM_MAKEFLAGS += -j$enable_jobserver )
- fi
- ])
|