Line | |
---|
1 | ## --------------------------------------------------------- ##
|
---|
2 | ## Fake the existence of programs that GNU maintainers use. ##
|
---|
3 | ## --------------------------------------------------------- ##
|
---|
4 | dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
|
---|
5 | dnl The program must properly implement --version.
|
---|
6 | AC_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.
|
---|
11 | if ($2 --version) < /dev/null > /dev/null 2>&1; then
|
---|
12 | $1=$2
|
---|
13 | AC_MSG_RESULT(found)
|
---|
14 | else
|
---|
15 | $1="$3/missing $2"
|
---|
16 | AC_MSG_RESULT(missing)
|
---|
17 | fi
|
---|
18 | AC_SUBST($1)])
|
---|
Note:
See
TracBrowser
for help on using the repository browser.