X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=configure.in;h=a60920a21aa2aeec6e4e6b347b25b63dd6a52db2;hb=877d0da4a8334e53ebc0a8b740efe489e0817e92;hp=d3f2c084ee2131471de0e0ba26e0de37e647d726;hpb=6918a091f788f34d97c176b1cfa1da8d9e463c6c;p=mmh diff --git a/configure.in b/configure.in index d3f2c08..a60920a 100644 --- a/configure.in +++ b/configure.in @@ -256,6 +256,18 @@ dnl AC_SUBST(LORDER)dnl dnl AC_SUBST(TSORT)dnl fi +dnl Check whether tsort can deal with loops +AC_CACHE_CHECK(whether tsort can deal with loops, nmh_cv_tsort_loop, + [if test -z "`echo a b b a | tsort 2>/dev/null | grep a`" ; then + nmh_cv_tsort_loop=no + else + nmh_cv_tsort_loop=yes + fi]) +if test x$nmh_cv_tsort_loop = xno ; then + TSORT=cat + AC_SUBST(TSORT)dnl +fi + dnl Look for `ls' pathtmp=/usr/bin:/bin:/usr/local/bin:/usr/xpg4/bin:/usr/ucb AC_PATH_PROG(lspath, ls, no, [$pathtmp])