STR #1632: replaced 'install -d' with 'mkdir -p', falling back to 'install' in case 'mkdir' could not be found (which I can't imagine happening. Now I hope that every implementation of 'mkdir' supports the '-p' flag.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5797 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Matthias Melcher 2007-05-02 15:01:37 +00:00
parent 2559710cac
commit ba562f87b9
2 changed files with 10 additions and 1 deletions

View File

@ -278,6 +278,14 @@ if test "$INSTALL" = "$ac_install_sh"; then
# Use full path to install-sh script...
INSTALL="`pwd`/install-sh -c"
fi
AC_PATH_PROG(MKDIRR,mkdir)
dnl recursive mkdir
if test "x$MKDIRR" = "x:"; then
# Use install instead
MKDIRR="$INSTALL -d"
else
MKDIRR="$MKDIRR -p"
fi
AC_PATH_PROG(NROFF,nroff)
if test "x$NROFF" = "x:"; then
# Try groff instead of nroff...

View File

@ -40,6 +40,7 @@ VPATH = @srcdir@
# programs we use...
HTMLDOC = @HTMLDOC@
INSTALL = @INSTALL@
MKDIRR = @MKDIRR@
LN = ln -s
NROFF = @NROFF@
RM = rm -f
@ -114,7 +115,7 @@ CAT6EXT = @CAT6EXT@
INSTALL_BIN = $(INSTALL) -m 755
INSTALL_DATA = $(INSTALL) -m 644
INSTALL_DIR = $(INSTALL) -d
INSTALL_DIR = $(MKDIRR) -v
INSTALL_LIB = $(INSTALL) -m 755
INSTALL_MAN = $(INSTALL) -m 644
INSTALL_SCRIPT = $(INSTALL) -m 755