mirror of
git://git.sv.gnu.org/autoconf
synced 2024-12-09 02:10:22 +08:00
_AS_DIRNAME_PREPARE
This commit is contained in:
parent
784f54dfcd
commit
0435cce62a
@ -743,11 +743,23 @@ m4_defun([AS_DIRNAME_SED],
|
||||
s/.*/./; q']])
|
||||
|
||||
m4_defun([AS_DIRNAME],
|
||||
[(dirname $1) 2>/dev/null ||
|
||||
[AS_REQUIRE([_$0_PREPARE])dnl
|
||||
$as_dirname $1 ||
|
||||
AS_DIRNAME_EXPR([$1]) 2>/dev/null ||
|
||||
AS_DIRNAME_SED([$1])])
|
||||
|
||||
|
||||
# _AS_DIRNAME_PREPARE
|
||||
# --------------------
|
||||
m4_defun([_AS_DIRNAME_PREPARE],
|
||||
[if (dirname /) >/dev/null 2>&1; then
|
||||
as_dirname=dirname
|
||||
else
|
||||
as_dirname=false
|
||||
fi
|
||||
])# _AS_DIRNAME_PREPARE
|
||||
|
||||
|
||||
# AS_EXECUTABLE_P
|
||||
# ---------------
|
||||
# Check whether a file is executable.
|
||||
|
Loading…
Reference in New Issue
Block a user