mirror of
git://git.sv.gnu.org/autoconf
synced 2024-12-03 02:00:36 +08:00
edf0d70863
(AC_FUNC_GETPGRP): Likewise. * acspecific.m4 (AC_AIX): Likewise. * m4/init.m4 (AM_INIT_AUTOMAKE): Likewise. * m4/missing.m4 (AM_MISSING_PROG): Likewise. * m4/sanity.m4 (AM_SANITY_CHECK): Likewise.
19 lines
710 B
Plaintext
19 lines
710 B
Plaintext
## --------------------------------------------------------- ##
|
|
## Fake the existence of programs that GNU maintainers use. ##
|
|
## --------------------------------------------------------- ##
|
|
dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
|
|
dnl The program must properly implement --version.
|
|
AC_DEFUN(AM_MISSING_PROG,
|
|
[AC_MSG_CHECKING([for working $2])
|
|
# 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.
|
|
if ($2 --version) < /dev/null > /dev/null 2>&1; then
|
|
$1=$2
|
|
AC_MSG_RESULT([found])
|
|
else
|
|
$1="$SHELL $3/missing $2"
|
|
AC_MSG_RESULT([missing])
|
|
fi
|
|
AC_SUBST($1)])
|