From 6b96dd6643f020bac61886a20f79fc02ec6daff0 Mon Sep 17 00:00:00 2001 From: Andreas Gruenbacher Date: Mon, 19 Sep 2005 13:29:14 +0000 Subject: - Rename MTA program to SENDMAIL, and improve configure.ac (from John Vandenberg again, as several other recent things -- thanks!) - Must build the compatibility programs before creating the command reference (which extracts the help texts). --- aclocal.m4 | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'aclocal.m4') diff --git a/aclocal.m4 b/aclocal.m4 index aeb4d72..92c0313 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -16,7 +16,23 @@ AC_DEFUN([QUILT_COMPAT_PROG_PATH],[ COMPAT_SYMLINKS="$COMPAT_SYMLINKS $2" fi ],[ - AC_PATH_PROG($1, m4_if([$3],[],[$2],[$3])) + m4_if([$3],[],[ + AC_PATH_PROGS($1,$2,,$PATH:$4) + ],[ + AC_PATH_PROG($1,$3,,$PATH:$4) + ]) + m4_if([$4],[],[],[ + if test -n "$$1"; then + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR + for dir in "$4"; do + if test "`dirname $$1`" = "$dir"; then + COMPAT_SYMLINKS="$COMPAT_SYMLINKS $2" + break + fi + done + IFS="$as_save_IFS" + fi + ]) ]) if test -z "$$1"; then m4_if(internal_$2_cmd,[],[ -- cgit