summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2012-02-24 21:54:39 -0700
committerEric Blake <eblake@redhat.com>2012-02-24 22:12:07 -0700
commit9e4e0a37d7b7200f671c2eadb3478a77d2dd7c9c (patch)
tree5f55e14c9955633b4c98848a99db6612bb6a0a18 /doc
parent8798792f568d7cdfb0815d249fe6a718d6877708 (diff)
downloadautoconf-9e4e0a37d7b7200f671c2eadb3478a77d2dd7c9c.tar.gz
m4sh: make AS_EXECUTABLE_P public
In the process of making it public, factor it into a reusable function. This makes constructs like AC_CHECK_PROGRAM smaller, as well as making libtool's naughty use of $as_executable_p safer. * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Add a shell function. (AS_EXECUTABLE_P): Forward to shell function. * doc/autoconf.texi (Common Shell Constructs): Document it. * NEWS: Mention this. Signed-off-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/autoconf.texi7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/autoconf.texi b/doc/autoconf.texi
index 9c75ab08..83f24ba0 100644
--- a/doc/autoconf.texi
+++ b/doc/autoconf.texi
@@ -13658,6 +13658,13 @@ m4_bpatsubst([[@var{string}]], ['], ['\\''])
@end example
@end defmac
+@defmac AS_EXECUTABLE_P (@var{file})
+@asindex{EXECUTABLE_P}
+Emit code to probe whether @var{file} is a regular file with executable
+permissions (and not a directory with search permissions). The caller
+is responsible for quoting @var{file}.
+@end defmac
+
@defmac AS_EXIT (@dvar{status, $?})
@asindex{EXIT}
Emit code to exit the shell with @var{status}, defaulting to @samp{$?}.