summaryrefslogtreecommitdiff
path: root/source4/build
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-04-24 22:50:19 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:04:20 -0500
commit847e80dee9c405f021c67d5ffb09804751ea2be7 (patch)
treed51279f69a90b4883893195d0a092d5bffc085b6 /source4/build
parent82f19553144f13e88ea58d04da15aba94059505f (diff)
downloadsamba-847e80dee9c405f021c67d5ffb09804751ea2be7.tar.gz
samba-847e80dee9c405f021c67d5ffb09804751ea2be7.tar.bz2
samba-847e80dee9c405f021c67d5ffb09804751ea2be7.zip
r15224: Check whether -MT is actually supported by the compiler before using
automatic dependencies (This used to be commit 6598efc6b302984d0b26b0c76a4b7107f5feba21)
Diffstat (limited to 'source4/build')
-rw-r--r--source4/build/m4/check_cc.m43
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/build/m4/check_cc.m4 b/source4/build/m4/check_cc.m4
index 99e6bd5d23..6823237805 100644
--- a/source4/build/m4/check_cc.m4
+++ b/source4/build/m4/check_cc.m4
@@ -216,11 +216,12 @@ if test "x$GNU_MAKE" = x"yes"; then
AC_SUBST(GNU_MAKE_VERSION)
fi
+
automatic_dependencies=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
- automatic_dependencies=yes
+ AX_CXXFLAGS_GCC_OPTION(-MT, [], [automatic_dependencies=yes], [])
fi
fi
AC_MSG_RESULT($automatic_dependencies)