X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=configure.ac;h=d7268abc7263e900762bddf967abfea7c9e31f3a;hb=16d982eb38d41572ad6dda74470a249dcb9a3247;hp=480c8bec605404d84035d83f26dea2128cc83eae;hpb=3a85e0bc9c72935ca9d154b3aa3093c31ed1836e;p=mmh diff --git a/configure.ac b/configure.ac index 480c8be..d7268ab 100644 --- a/configure.ac +++ b/configure.ac @@ -121,6 +121,15 @@ AC_ARG_WITH([pager], AS_IF([test -n "$with_pager"], [pagerpath="$with_pager"]) +dnl If a pager is not explicitly specified, then look for one. +dnl Fall back to `cat', to avoid catastrophic failure of +dnl `mhshow', et al., if pagerpath is set to `no'. +if test -z "$pagerpath"; then + pathtmp=/usr/bin:/bin:/usr/ucb:/usr/local/bin + AC_PATH_PROGS([pagerpath], [more less most cat], [no], [$pathtmp]) +fi +AC_SUBST(pagerpath)dnl + dnl What should be the default mail server(s)? AC_ARG_WITH(smtpservers, AS_HELP_STRING([--with-smtpservers='SMTPSERVER1@<:@ SMTPSERVER2...@:>@'], @@ -286,17 +295,6 @@ if test "$lspath" != "no"; then fi]) fi -dnl Look for `more' -pathtmp=/usr/bin:/bin:/usr/ucb:/usr/local/bin -AC_PATH_PROG([morepath], [more], [no], [$pathtmp]) - -dnl If pager is not specified yet, -dnl then use `more' as the default. -if test -z "$pagerpath"; then - pagerpath="$morepath" -fi -AC_SUBST(pagerpath)dnl - dnl Look for `sendmail' pathtmp=/usr/lib:/usr/sbin:/usr/etc:/usr/ucblib:/usr/bin:/bin AC_PATH_PROG([sendmailpath], [sendmail], [/usr/sbin/sendmail], [$pathtmp])