source: trunk/essentials/sys-devel/automake-1.4/m4/missing.m4

Last change on this file was 3124, checked in by bird, 18 years ago

automake 1.4-p6

File size: 699 bytes
Line 
1## --------------------------------------------------------- ##
2## Fake the existence of programs that GNU maintainers use. ##
3## --------------------------------------------------------- ##
4dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
5dnl The program must properly implement --version.
6AC_DEFUN([AM_MISSING_PROG],
7[AC_MSG_CHECKING(for working $2)
8# Run test in a subshell; some versions of sh will print an error if
9# an executable is not found, even if stderr is redirected.
10# Redirect stdin to placate older versions of autoconf. Sigh.
11if ($2 --version) < /dev/null > /dev/null 2>&1; then
12 $1=$2
13 AC_MSG_RESULT(found)
14else
15 $1="$3/missing $2"
16 AC_MSG_RESULT(missing)
17fi
18AC_SUBST($1)])
Note: See TracBrowser for help on using the repository browser.