Second aproach at solving the 'install -d' issue. I added a public domain script that supposedly solves the issue on every box. I also looke at 'install-sh', but found a bazillion of versions, doing so much more than we actually need. But I am open to sugestions, and happy to reverse my changes if something better comes along.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5799 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Matthias Melcher 2007-05-03 12:33:20 +00:00
parent 40be03495d
commit d84e2832f7
3 changed files with 49 additions and 9 deletions

View File

@ -278,14 +278,6 @@ 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,7 +40,7 @@ VPATH = @srcdir@
# programs we use...
HTMLDOC = @HTMLDOC@
INSTALL = @INSTALL@
MKDIRR = @MKDIRR@
MKDIRR = ../mkinstalldirs
LN = ln -s
NROFF = @NROFF@
RM = rm -f

48
mkinstalldirs Executable file
View File

@ -0,0 +1,48 @@
#! /bin/sh
# mkinstalldirs --- make directory hierarchy
# Author: Noah Friedman <friedman@prep.ai.mit.edu>
# Created: 1993-05-16
# Public domain
# $Id: mkinstalldirs,v 1.13 1999/01/05 03:18:55 bje Exp $
errstatus=0
for file
do
set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
shift
pathcomp=
for d
do
pathcomp="$pathcomp$d"
case "$pathcomp" in
-* ) pathcomp=./$pathcomp ;;
esac
if test ! -d "$pathcomp"; then
mkdir "$pathcomp" || lasterr=$?
if test ! -d "$pathcomp"; then
errstatus=$lasterr
else
lasterr=""
chmod 755 "$pathcomp" || lasterr=$?
if test ! -z "$lasterr"; then
errstatus=$lasterr
fi
fi
fi
pathcomp="$pathcomp/"
done
done
exit $errstatus
# mkinstalldirs ends here