1dnl prog-ensure.m4 -- Require that a program be found in the PATH. 2dnl $Id: prog-ensure.m4 8475 2009-05-17 20:30:23Z iulius $ 3dnl 4dnl This is a version of AC_PATH_PROG that requires that the program being 5dnl searched for is found in the user's PATH. 6 7AC_DEFUN([INN_PATH_PROG_ENSURE], 8[if test x"${$1}" = x ; then 9 AC_PATH_PROG([$1], [$2]) 10fi 11if test x"${$1}" = x ; then 12 AC_MSG_ERROR([$2 was not found in path and is required]) 13fi]) 14