diff options
author | Tom Tromey <tromey@redhat.com> | 2001-02-05 06:59:03 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2001-02-05 06:59:03 +0000 |
commit | daea6deea6811d55032742e6508a780a79fbcc99 (patch) | |
tree | 0ce672a4bc6246b9a5667e1ad937bdbe4ebaa36c /m4/make.m4 | |
parent | 3e19938698261dbe749ce4eb023b3461961e2da8 (diff) | |
download | automake-daea6deea6811d55032742e6508a780a79fbcc99.tar.gz |
* 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.
Diffstat (limited to 'm4/make.m4')
-rw-r--r-- | m4/make.m4 | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/m4/make.m4 b/m4/make.m4 new file mode 100644 index 000000000..2307f0f23 --- /dev/null +++ b/m4/make.m4 @@ -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 +]) |