]> sourceware.org Git - automake.git/commitdiff
* m4/Makefile.am (m4data_DATA): Added make.m4.
authorTom Tromey <tromey@redhat.com>
Mon, 5 Feb 2001 06:59:02 +0000 (06:59 +0000)
committerTom Tromey <tromey@redhat.com>
Mon, 5 Feb 2001 06:59:02 +0000 (06:59 +0000)
* automake.in (handle_dependencies): Use @AM_INCLUDE@ to include
dependency files.
* m4/depend.m4 (AM_DEPNDENCIES): Require AM_MAKE_INCLUDE.
Copy depcomp to subdir.
* m4/make.m4: New file.

ChangeLog
automake.in
m4/Makefile.am
m4/Makefile.in
m4/depend.m4
m4/make.m4 [new file with mode: 0644]

index b5e3c25bfd107f7618d84dea307dcf0a433934a7..a51d045b7011afdf701268f964ba3dff2d965b40 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2001-02-04  Tom Tromey  <tromey@redhat.com>
+
+       * m4/Makefile.am (m4data_DATA): Added make.m4.
+       * automake.in (handle_dependencies): Use @AM_INCLUDE@ to include
+       dependency files.
+       * m4/depend.m4 (AM_DEPNDENCIES): Require AM_MAKE_INCLUDE.
+       Copy depcomp to subdir.
+       * m4/make.m4: New file.
+
 2001-02-04  Pavel Roskin  <proski@gnu.org>
 
        * automake.in (handle_dist_worker): Remove a line that is now
index 4c613cf256beae285523cff825f3d7d45946a834..9f9f63f6bc9c6148900a7e363a67e14cdba96688 100755 (executable)
@@ -3049,7 +3049,7 @@ sub handle_dependencies
            $output_rules .= "\n";
            foreach $iter (@deplist)
            {
-               $output_rules .= "\@AMDEP\@" . 'include ' . $iter . "\n";
+               $output_rules .= "\@AMDEP\@\@AM_INCLUDE\@ " . $iter . "\n";
            }
 
            $output_rules .= &file_contents ('depend');
index 8f57d903ab6203b2181c82960573f1a35ce29ff5..88d06f38d3d5f06925e31ca68723ba6750d4f10d 100644 (file)
@@ -5,8 +5,8 @@ MAINT_CHARSET = latin1
 
 m4datadir = $(datadir)/aclocal
 m4data_DATA = ccstdc.m4 cond.m4 depend.m4 depout.m4 dmalloc.m4 \
-error.m4 gcj.m4 header.m4 init.m4 lex.m4 lispdir.m4 maintainer.m4 \
-minuso.m4 missing.m4 multi.m4 obstack.m4 protos.m4 ptrdiff.m4 \
-python.m4 regex.m4 sanity.m4 strtod.m4 termios.m4 winsz.m4
+error.m4 gcj.m4 header.m4 init.m4 lex.m4 lispdir.m4 make.m4 \
+maintainer.m4 minuso.m4 missing.m4 multi.m4 obstack.m4 protos.m4 \
+ptrdiff.m4 python.m4 regex.m4 sanity.m4 strtod.m4 termios.m4 winsz.m4
 
 EXTRA_DIST = $(m4data_DATA)
index 6e6c8b40b3f775a6032893d6ba45a68ed32b5dc6..bad2e3d8485716e55f26650ca08df922a1a3e879 100644 (file)
@@ -48,6 +48,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@
 INSTALL_DATA = @INSTALL_DATA@
 INSTALL_SCRIPT = @INSTALL_SCRIPT@
 INSTALL_STRIP_FLAG =
+INSTALL_HEADER = $(INSTALL_DATA)
 transform = @program_transform_name@
 
 NORMAL_INSTALL = :
@@ -74,9 +75,9 @@ MAINT_CHARSET = latin1
 
 m4datadir = $(datadir)/aclocal
 m4data_DATA = ccstdc.m4 cond.m4 depend.m4 depout.m4 dmalloc.m4 \
-error.m4 gcj.m4 header.m4 init.m4 lex.m4 lispdir.m4 maintainer.m4 \
-minuso.m4 missing.m4 multi.m4 obstack.m4 protos.m4 ptrdiff.m4 \
-python.m4 regex.m4 sanity.m4 strtod.m4 termios.m4 winsz.m4
+error.m4 gcj.m4 header.m4 init.m4 lex.m4 lispdir.m4 make.m4 \
+maintainer.m4 minuso.m4 missing.m4 multi.m4 obstack.m4 protos.m4 \
+ptrdiff.m4 python.m4 regex.m4 sanity.m4 strtod.m4 termios.m4 winsz.m4
 
 
 EXTRA_DIST = $(m4data_DATA)
@@ -99,7 +100,7 @@ $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
 
 Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status
        cd $(top_builddir) \
-         && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
+         && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= CONFIG_LINKS= CONFIG_COMMANDS= $(SHELL) ./config.status
 
 
 install-m4dataDATA: $(m4data_DATA)
index 8f63a3d642b0256aa8d51a68aa564e7729d84d54..59c95d655245935f9e6e05c656434473e11a9093 100644 (file)
@@ -28,6 +28,8 @@ depcpp="$CXXCPP"],
 depcc="$$1"
 depcpp=""])
 
+AC_REQUIRE([AM_MAKE_INCLUDE])
+
 AC_CACHE_CHECK([dependency style of $depcc],
                [am_cv_$1_dependencies_compiler_type],
 [if test -z "$AMDEP"; then
@@ -37,10 +39,13 @@ AC_CACHE_CHECK([dependency style of $depcc],
   # making a dummy file named `D' -- because `-MD' means `put the output
   # in D'.
   mkdir confdir
+  # Copy depcomp to subdir because otherwise we won't find it if we're
+  # using a relative directory.
+  cp "$am_depcomp" confdir
   cd confdir
 
   am_cv_$1_dependencies_compiler_type=none
-  for depmode in `sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < "$am_depcomp"`; do
+  for depmode in `sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < "./depcomp"`; do
     # We need to recreate these files for each test, as the compiler may
     # overwrite some of them when testing with obscure command lines.
     # This happens at least with the AIX C compiler.
@@ -65,7 +70,7 @@ AC_CACHE_CHECK([dependency style of $depcc],
     if depmode="$depmode" \
        source=conftest.c object=conftest.o \
        depfile=conftest.Po tmpdepfile=conftest.TPo \
-       $SHELL $am_depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
+       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
        grep conftest.h conftest.Po > /dev/null 2>&1; then
       am_cv_$1_dependencies_compiler_type="$depmode"
       break
diff --git a/m4/make.m4 b/m4/make.m4
new file mode 100644 (file)
index 0000000..2307f0f
--- /dev/null
@@ -0,0 +1,24 @@
+# AM_MAKE_INCLUDE()
+# -----------------
+# Check to see how make treats includes.
+AC_DEFUN([AM_MAKE_INCLUDE],
+[am_make=${MAKE-make}
+# BSD make uses .include
+cat > confinc << 'END'
+doit:
+       @echo done
+END
+# If we don't find an include directive, just comment out the code.
+AC_MSG_CHECKING([for style of include used by $am_make])
+AM_INCLUDE='#'
+for am_inc in include .include; do
+   echo "$am_inc confinc" > confmf
+   if test "`$am_make -f confmf 2> /dev/null`" = "done"; then
+      AM_INCLUDE=$am_inc
+      break
+   fi
+done
+AC_SUBST(AM_INCLUDE)
+AC_MSG_RESULT($AM_INCLUDE)
+rm -f confinc confmf
+])
This page took 0.039347 seconds and 5 git commands to generate.