mirror of
https://github.com/samba-team/samba.git
synced 2025-02-02 09:47:23 +03:00
r15224: Check whether -MT is actually supported by the compiler before using
automatic dependencies (This used to be commit 6598efc6b302984d0b26b0c76a4b7107f5feba21)
This commit is contained in:
parent
82f1955314
commit
847e80dee9
@ -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)
|
||||
|
@ -45,7 +45,7 @@
|
||||
#endif
|
||||
|
||||
#ifndef PRINTF_ATTRIBUTE
|
||||
#if !defined(NO_PRINTF_ATTRIBUTE) && (__GNUC__ >= 3)
|
||||
#if __GNUC__ >= 3
|
||||
/** Use gcc attribute to check printf fns. a1 is the 1-based index of
|
||||
* the parameter containing the format, and a2 the index of the first
|
||||
* argument. Note that some gcc 2.x versions don't handle this
|
||||
|
@ -109,7 +109,7 @@ int vasprintf(char **ptr, const char *format, va_list ap);
|
||||
#endif
|
||||
|
||||
#ifndef PRINTF_ATTRIBUTE
|
||||
#if !defined(NO_PRINTF_ATTRIBUTE) && (__GNUC__ >= 3)
|
||||
#if __GNUC__ >= 3
|
||||
/** Use gcc attribute to check printf fns. a1 is the 1-based index of
|
||||
* the parameter containing the format, and a2 the index of the first
|
||||
* argument. Note that some gcc 2.x versions don't handle this
|
||||
|
Loading…
x
Reference in New Issue
Block a user