summaryrefslogtreecommitdiff
path: root/source4/build/m4
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-02-09 17:07:02 +0100
committerJelmer Vernooij <jelmer@samba.org>2008-02-09 17:07:02 +0100
commitc8c9d70221b5d5b5e58ebb306911aa2f9b6ac2a6 (patch)
tree1bf5ca52a461cf03a5efb14f8f90f82d66807e25 /source4/build/m4
parent9fccd8361320e82a7819e73f44bc62cf37f88c60 (diff)
downloadsamba-c8c9d70221b5d5b5e58ebb306911aa2f9b6ac2a6.tar.gz
samba-c8c9d70221b5d5b5e58ebb306911aa2f9b6ac2a6.tar.bz2
samba-c8c9d70221b5d5b5e58ebb306911aa2f9b6ac2a6.zip
Move first_prereq test to m4 code.
(This used to be commit c0fef09c5d88158b620f38b6f74498a8b6323bd9)
Diffstat (limited to 'source4/build/m4')
-rw-r--r--source4/build/m4/check_make.m48
1 files changed, 8 insertions, 0 deletions
diff --git a/source4/build/m4/check_make.m4 b/source4/build/m4/check_make.m4
index 4780f43e1c..d7799649a7 100644
--- a/source4/build/m4/check_make.m4
+++ b/source4/build/m4/check_make.m4
@@ -46,3 +46,11 @@ AC_ARG_ENABLE(automatic-dependencies,
[ automatic_dependencies=no ])
AC_MSG_RESULT($automatic_dependencies)
AC_SUBST(automatic_dependencies)
+
+FIRST_PREREQ="\$*.c"
+AC_SUBST(FIRST_PREREQ)
+
+if test x$GNU_MAKE = xyes; then
+ FIRST_PREREQ="\$<"
+fi
+