(_AC_PATH_PROG): Store the result to VARIABLE.

This commit is contained in:
Stepan Kasal 2006-03-17 19:05:27 +00:00
parent 2991e096f8
commit d2d7871702
2 changed files with 10 additions and 2 deletions

View File

@ -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:

View File

@ -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
]) ])