dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY) dnl The program must properly implement --version. dnl vim: TOTALLY UGLY HACK to add my own macro directory dnl vim: as an option to aclocal. Didn't find a clean way dnl vim: to do it AC_DEFUN(VIM_MISSING_PROG_ACLOCAL, [AC_MSG_CHECKING(for working aclocal) # Run test in a subshell; some versions of sh will print an error if # an executable is not found, even if stderr is redirected. # Redirect stdin to placate older versions of autoconf. Sigh. vim_old_pwd=`pwd` cd $2 if (aclocal --version) < /dev/null > /dev/null 2>&1; then ACLOCAL="aclocal -I macros" AC_MSG_RESULT(found) else ACLOCAL="$1/missing aclocal" AC_MSG_RESULT(missing) fi cd $vim_old_pwd AC_SUBST(ACLOCAL)])