mirror of
git://git.sv.gnu.org/autoconf
synced 2024-12-15 02:20:10 +08:00
(_AC_PATH_PROG): Store the result to VARIABLE.
This commit is contained in:
parent
2991e096f8
commit
d2d7871702
@ -1,3 +1,10 @@
|
|||||||
|
2006-03-17 Stepan Kasal <kasal@ucw.cz>
|
||||||
|
|
||||||
|
* lib/autoconf/programs.m4 (AC_CHECK_PROG): Quote the parameter of
|
||||||
|
AC_SUBST.
|
||||||
|
(_AC_PATH_PROG): Store the result to VARIABLE.
|
||||||
|
(AC_PATH_PROG): No need to set VARIABLE again.
|
||||||
|
|
||||||
2006-03-17 Stepan Kasal <kasal@ucw.cz>
|
2006-03-17 Stepan Kasal <kasal@ucw.cz>
|
||||||
|
|
||||||
* tests/local.at (AT_CHECK_MACRO_CROSS): New macro, creates two tests:
|
* tests/local.at (AT_CHECK_MACRO_CROSS): New macro, creates two tests:
|
||||||
|
@ -122,7 +122,7 @@ fi
|
|||||||
# -----------------------------------------------------
|
# -----------------------------------------------------
|
||||||
AC_DEFUN([AC_CHECK_PROG],
|
AC_DEFUN([AC_CHECK_PROG],
|
||||||
[_AC_CHECK_PROG($@)
|
[_AC_CHECK_PROG($@)
|
||||||
AC_SUBST($1)dnl
|
AC_SUBST([$1])dnl
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
@ -164,6 +164,7 @@ m4_ifvaln([$3],
|
|||||||
[ test -z "$ac_cv_path_$1" && ac_cv_path_$1="$3"])dnl
|
[ test -z "$ac_cv_path_$1" && ac_cv_path_$1="$3"])dnl
|
||||||
;;
|
;;
|
||||||
esac])dnl
|
esac])dnl
|
||||||
|
$1=$ac_cv_path_$1
|
||||||
if test -n "$$1"; then
|
if test -n "$$1"; then
|
||||||
AC_MSG_RESULT([$$1])
|
AC_MSG_RESULT([$$1])
|
||||||
else
|
else
|
||||||
@ -176,7 +177,7 @@ fi
|
|||||||
# -----------------------------------------------------------------------
|
# -----------------------------------------------------------------------
|
||||||
AC_DEFUN([AC_PATH_PROG],
|
AC_DEFUN([AC_PATH_PROG],
|
||||||
[_AC_PATH_PROG($@)
|
[_AC_PATH_PROG($@)
|
||||||
AC_SUBST([$1], [$ac_cv_path_$1])dnl
|
AC_SUBST([$1])dnl
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user