diff options
author | Francesco Salvestrini <salvestrini@gmail.com> | 2008-02-21 12:44:35 +0100 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2008-02-21 12:44:35 +0100 |
commit | 7eb6fcbd35b3fdb1cc36e192971c693e4cdb0ca5 (patch) | |
tree | c950f69318ddad71f7880e5c90e7798467e995f3 /m4/ax_path_missing.m4 | |
parent | 845b77ae4b39cbec4aba7afb52de0d2e9b749cd6 (diff) | |
download | autoconf-archive-7eb6fcbd35b3fdb1cc36e192971c693e4cdb0ca5.tar.gz |
AX_PATH_MISSING: added missing 'unset' and improved documentation
Diffstat (limited to 'm4/ax_path_missing.m4')
-rw-r--r-- | m4/ax_path_missing.m4 | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/m4/ax_path_missing.m4 b/m4/ax_path_missing.m4 index c871271..21bb910 100644 --- a/m4/ax_path_missing.m4 +++ b/m4/ax_path_missing.m4 @@ -2,15 +2,15 @@ # # SYNOPSIS # -# AX_PATH_MISSING(variable, prog-to-check-for, warning-if-not-found, path) +# AX_PATH_MISSING(VARIABLE, PROG-TO-CHECK-FOR, WARNING-IF-NOT-FOUND, PATH) # # DESCRIPTION # -# Check whether program prog-to-check-for exists in path. If it is -# found, set variable to the full path of prog-to-check-for, -# otherwise warn warning-if-not-found and set variable to the full -# path of the Automake missing script with prog-to-check-for as the -# command to run. +# Check whether program PROG-TO-CHECK-FOR exists in path. If it is +# found, set VARIABLE to the full path of PROG-TO-CHECK-FOR, +# otherwise warn using the string WARNING-IF-NOT-FOUND and set +# VARIABLE to the full path of the Automake missing script with +# PROG-TO-CHECK-FOR as the command to run. # # A typical use is the following: # @@ -22,20 +22,21 @@ # # LAST MODIFICATION # -# 2007-11-28 +# 2008-02-21 # # COPYLEFT # -# Copyright (c) 2007 Noah Slater <nslater@bytesexual.org> -# Copyright (c) 2007 Francesco Salvestrini <salvestrini@sourceforge.net> +# Copyright (c) 2008 Noah Slater <nslater@bytesexual.org> +# Copyright (c) 2008 Francesco Salvestrini <salvestrini@sourceforge.net> # # Copying and distribution of this file, with or without # modification, are permitted in any medium without royalty provided # the copyright notice and this notice are preserved. AC_DEFUN([AX_PATH_MISSING], [ - AC_PATH_PROG([$1], [$2], [$4]) + AC_PATH_PROG([$1],[$2],[$4]) AS_IF([ test -z "${$1}" ],[ + unset $1 AX_MISSING_PROG([$1],[$2],[$3]) ]) ]) |