summaryrefslogtreecommitdiff
path: root/source4/build/m4
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-04-25 09:21:40 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:04:21 -0500
commita78a6fcb4946cb8d07345b23a040f1c022c6415d (patch)
tree8d371e4e2323df73c3e7106cddbf2d13e56aadde /source4/build/m4
parent99487b0ab7e381fd34d703720f5c6b1ed5f17ca8 (diff)
downloadsamba-a78a6fcb4946cb8d07345b23a040f1c022c6415d.tar.gz
samba-a78a6fcb4946cb8d07345b23a040f1c022c6415d.tar.bz2
samba-a78a6fcb4946cb8d07345b23a040f1c022c6415d.zip
r15231: Try to fix detection of ability of CC to generate dependencies
(This used to be commit 11353d4b47964b762a72ec0e55221811a5a3d550)
Diffstat (limited to 'source4/build/m4')
-rw-r--r--source4/build/m4/check_cc.m48
1 files changed, 6 insertions, 2 deletions
diff --git a/source4/build/m4/check_cc.m4 b/source4/build/m4/check_cc.m4
index 6823237805..a56627eecc 100644
--- a/source4/build/m4/check_cc.m4
+++ b/source4/build/m4/check_cc.m4
@@ -217,12 +217,16 @@ if test "x$GNU_MAKE" = x"yes"; then
fi
-automatic_dependencies=no
+new_make=no
AC_MSG_CHECKING([for GNU make >= 3.81])
if test x$GNU_MAKE = x"yes"; then
if $PERL -e " \$_ = '$GNU_MAKE_VERSION'; s/@<:@^\d\.@:>@.*//g; exit (\$_ < 3.81);"; then
- AX_CXXFLAGS_GCC_OPTION(-MT, [], [automatic_dependencies=yes], [])
+ new_make=yes
fi
fi
+AC_MSG_RESULT($new_make)
+automatic_dependencies=no
+AX_CXXFLAGS_GCC_OPTION(-MT, [], [ automatic_dependencies=$new_make ], [])
+AC_MSG_CHECKING([Whether to use automatic dependencies])
AC_MSG_RESULT($automatic_dependencies)
AC_SUBST(automatic_dependencies)