summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorTim Van Holder <tim.van.holder@pandora.be>2001-07-21 09:57:42 +0000
committerTim Van Holder <tim.van.holder@pandora.be>2001-07-21 09:57:42 +0000
commitcc7d957a25b496939739d7395564105319d1e283 (patch)
tree61ab77114ceb3e5a02e132163b290fd33537d3c5 /m4
parent569453df849251934e05fe2f6293ff5ff9a94eac (diff)
downloadautomake-cc7d957a25b496939739d7395564105319d1e283.tar.gz
* automake.in (handle_single_transform_list): Use $(DEPDIR)
instead of hardcoding '.deps'. * m4/depend.m4 (AM_SET_DEPDIR): Sync with libtool's libdir check.
Diffstat (limited to 'm4')
-rw-r--r--m4/depend.m49
1 files changed, 5 insertions, 4 deletions
diff --git a/m4/depend.m4 b/m4/depend.m4
index c57c2e96b..106004847 100644
--- a/m4/depend.m4
+++ b/m4/depend.m4
@@ -98,14 +98,15 @@ AC_SUBST([$1DEPMODE])
# Choose a directory name for dependency files.
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
AC_DEFUN([AM_SET_DEPDIR],
-[if test -d .deps || mkdir .deps 2> /dev/null || test -d .deps; then
+[rm -f .deps 2>/dev/null
+mkdir .deps 2>/dev/null
+if test -d .deps; then
DEPDIR=.deps
- # We redirect because .deps might already exist and be populated.
- # In this situation we don't want to see an error.
- rmdir .deps > /dev/null 2>&1
else
+ # MS-DOS does not allow filenames that begin with a dot.
DEPDIR=_deps
fi
+rmdir .deps 2>/dev/null
AC_SUBST(DEPDIR)
])