configure.ac | 15 +++++++++++++++ 1 file changed, 15 insertions(+) --- quilt.orig/configure.ac 2005-09-18 13:19:00.000000000 +0200 +++ quilt/configure.ac 2005-09-18 13:19:43.000000000 +0200 @@ -56,6 +56,21 @@ QUILT_COMPAT_PROG_PATH(PERL, perl, [perl perl5]) QUILT_COMPAT_PROG_PATH(GREP, grep) QUILT_COMPAT_PROG_PATH(TAIL, tail) + +# Solaris' /usr/bin/tail doesn't understand -n. +AC_MSG_CHECKING([whether $TAIL -n works]) +if test "`(echo first; echo second) | $TAIL -n 1 2>/dev/null`" == "second"; then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) + AC_MSG_ERROR([ +Sorry, you have a version of tail which doesn't understand -n. +$PACKAGE_NAME needs it. If you have access to a version of tail which does +understand -n, you can supply its path with the '--with-tail=' option. +Solaris users can use /usr/xpg4/bin/tail. +]) +fi + QUILT_COMPAT_PROG_PATH(SED, sed) QUILT_COMPAT_PROG_PATH(AWK, awk, [gawk awk]) QUILT_COMPAT_PROG_PATH(POD2MAN, pod2man)