added --with-distcc configure option

This commit is contained in:
Vadim Kurland
2010-01-26 23:58:07 +00:00
parent b046165273
commit d2d50b5d1f
+14
View File
@@ -459,6 +459,19 @@ then
ccache -s
fi
AC_ARG_WITH(distcc,[ --with-distcc=N Use distcc with N parallel make count])
if test -n "$with_distcc"; then
AC_PATH_PROG(HAVE_DISTCC, distcc, , )
if test -n "$HAVE_DISTCC"; then
DISTCC=$HAVE_DISTCC
AC_SUBST(DISTCC)
PARALLEL_MAKE_COUNT=$with_distcc
AC_SUBST(PARALLEL_MAKE_COUNT)
fi
else
AC_PATH_PROG(HAVE_DISTCC, distcc, , )
if test -n "$HAVE_DISTCC"; then
M_J=$(distcc -j 2>/dev/null)
@@ -469,6 +482,7 @@ if test -n "$HAVE_DISTCC"; then
AC_SUBST(PARALLEL_MAKE_COUNT)
fi
fi
fi
dnl AC_CONFIG_FILES([ Main.make ])
AC_CONFIG_FILES([ qmake.inc ])