1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/tool/m4/ruby_prog_makedirs.m4
Nobuyoshi Nakada 67e54ce408
Fallback mkdir_p to as_mkdir_p
Assume `mkdir -p` to be race-free on recent systems.
And we do not provide install-sh anyway.
2022-07-07 15:06:10 +09:00

9 lines
303 B
Text

dnl -*- Autoconf -*-
m4_defun([RUBY_PROG_MAKEDIRS],
[m4_bpatsubst(m4_defn([AC_PROG_MKDIR_P]),
[MKDIR_P=\"$ac_install_sh -d\"], [
AS_IF([test "x$MKDIR_P" = "xfalse"], [AC_MSG_ERROR([mkdir -p is required])])
MKDIR_P="mkdir -p"])
]dnl
AC_SUBST(MAKEDIRS, ["$MKDIR_P"])
)