]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
[ng] general: assume dot-starting file names are supported
authorStefano Lattarini <stefano.lattarini@gmail.com>
Wed, 30 May 2012 07:25:59 +0000 (09:25 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Wed, 30 May 2012 08:30:20 +0000 (10:30 +0200)
Now that we've dropped support for DJGPP, Windows 95/98/ME and MS-DOS,
that should always the case.

* lib/am/texibuild.am: Just assume we can have directories whose name
starts with a dot, i.e., that '${am__leading_dot}' expands to '.'.
* m4/depend.m4 (AM_SET_DEPDIR): Likewise.  Now $(DEPDIR) will be set
unconditionally to '.deps'.
* m4/init.m4 (AM_INIT_AUTOMAKE): Don't AC_REQUIRE the m4 macro
'AM_SET_LEADING_DOT' anymore.
* m4/lead-dot.m4: Delete.
* Makefile.am (dist_automake_ac_DATA): Remove it.
* NG-NEWS: Update.
* t/subobj11a.sh: Just assume $(DEPDIR) expands to '.deps'.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
Makefile.am
NG-NEWS
lib/am/texibuild.am
m4/depend.m4
m4/init.m4
m4/lead-dot.m4 [deleted file]
t/subobj11a.sh

index 533faef45469a88e0ca881444410c8f1a13ad89d..51fb414a21d0e57ed69934b93c167011bc16e707 100644 (file)
@@ -243,7 +243,6 @@ dist_automake_ac_DATA = \
   m4/gcj.m4 \
   m4/init.m4 \
   m4/install-sh.m4 \
-  m4/lead-dot.m4 \
   m4/lex.m4 \
   m4/lispdir.m4 \
   m4/maintainer.m4 \
diff --git a/NG-NEWS b/NG-NEWS
index ed36fe26190e5a6e2da4ec363618681170e216ce..1e3c4643c695e8c1adc6045d4c641c856fb2f656 100644 (file)
--- a/NG-NEWS
+++ b/NG-NEWS
@@ -228,6 +228,12 @@ Obsolete Features Removed
   Of course, MinGW/MSYS and Cygwin on Windows 2000 and later are still
   fully supported.
 
+* Automake-generated Makefiles assume the target systems always support
+  file names starting with a dot; accordingly, the internal m4 macro
+  'AM_SET_LEADING_DOT' and AC_SUBST'd variable 'am__leading_dot' have
+  been removed.
+
+
 Source Files with Unknown Extensions
 ====================================
 
index 039e6de3872f7a6e82c938c203f6943729093a0f..10f5b369409eb4ead8a223d495a0db52dba403cb 100644 (file)
@@ -25,7 +25,7 @@
 ## 2) If the texinfo file has some minor mistakes which cause makeinfo
 ##    to fail, the info files are not removed.  (They are needed by the
 ##    developer while he writes documentation.)
-       %AM_V_MAKEINFO%restore=: && backupdir="$(am__leading_dot)am$$$$" && \
+       %AM_V_MAKEINFO%restore=: && backupdir=.am$$$$ && \
 ?INSRC?        am__cwd=`pwd` && $(am__cd) $(srcdir) && \
        rm -rf $$backupdir && mkdir $$backupdir && \
 ## If makeinfo is not installed we must not backup the files so
index 0c1112e2ce99861ba6925df24613e426f1a2a1a9..caa984b83bf20c1bfae5002ac2d853689bafbbd6 100644 (file)
@@ -159,10 +159,7 @@ AM_CONDITIONAL([am__fastdep$1], [
 # -------------
 # Choose a directory name for dependency files.
 # This macro is AC_REQUIREd in _AM_DEPENDENCIES.
-AC_DEFUN([AM_SET_DEPDIR],
-[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
-AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
-])
+AC_DEFUN([AM_SET_DEPDIR], [AC_SUBST([DEPDIR], [.deps])])
 
 
 # AM_DEP_TRACK
index 0abf7879ef184a6d9845edf76fafd672519edbc4..9d06c961527ff96938a16507bb3bf2c6e3178811 100644 (file)
@@ -68,7 +68,6 @@ AC_REQUIRE([AC_PROG_MKDIR_P])dnl
 # We need awk for the "check" target.  The system "awk" is bad on
 # some platforms.
 AC_REQUIRE([AC_PROG_AWK])dnl
-AC_REQUIRE([AM_SET_LEADING_DOT])dnl
 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
                             [_AM_PROG_TAR([v7])])])
diff --git a/m4/lead-dot.m4 b/m4/lead-dot.m4
deleted file mode 100644 (file)
index 8a86805..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-##                                                          -*- Autoconf -*-
-# Copyright (C) 2003-2012 Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# serial 2
-
-# Check whether the underlying file-system supports filenames
-# with a leading dot.  For instance MS-DOS doesn't.
-AC_DEFUN([AM_SET_LEADING_DOT],
-[rm -rf .tst 2>/dev/null
-mkdir .tst 2>/dev/null
-if test -d .tst; then
-  am__leading_dot=.
-else
-  am__leading_dot=_
-fi
-rmdir .tst 2>/dev/null
-AC_SUBST([am__leading_dot])])
index ae02e59b3e1f0b730d58c8a9c572799e1e321466..3dbf52b9eb948e3738b78a965406cdeb830b2d3a 100755 (executable)
@@ -63,13 +63,7 @@ $AUTOMAKE -a
 ./configure --enable-dependency-tracking
 
 $MAKE
-depdir=`sed -n 's/^ *DEPDIR *= *//p' Makefile`
-if test x"$depdir" != x; then
-  depdir=src/$depdir
-else
-  fatal_ "cannot extract value of DEPDIR from Makefile"
-fi
-
+depdir=src/.deps
 ls -l "$depdir"
 test -f "$depdir"/foo.Po