* Fortran 9x Support:: Compiling Fortran 9x sources
* Java Support with gcj:: Compiling Java sources using gcj
* Vala Support:: Compiling Vala sources
-* Support for Other Languages:: Compiling other languages
+* Support for Other Languages:: Compiling other languages
* Dependencies:: Automatic dependency tracking
* EXEEXT:: Support for executable extensions
only on the maintainer's system, as configurations vary too much. So
instead Automake implements dependency tracking at build time.
-Automatic dependency tracking can be suppressed by putting
+This automatic dependency tracking can be suppressed by putting
@option{no-dependencies} in the variable @code{AUTOMAKE_OPTIONS}, or
passing @option{no-dependencies} as an argument to @code{AM_INIT_AUTOMAKE}
(this should be the preferred way). Or, you can invoke @command{automake}
@vindex AUTOMAKE_OPTIONS
@opindex no-dependencies
+@cindex Disabling dependency tracking
+@cindex Dependency tracking, disabling
The person building your package also can choose to disable dependency
tracking by configuring with @option{--disable-dependency-tracking}.
-@cindex Disabling dependency tracking
-@cindex Dependency tracking, disabling
+@cindex Conditional for dependency tracking
+If, as the package maintainer, you wish to conditionalize your
+@code{Makefile.am} according to whether dependency tracking is
+enabled, the best way is to define your own conditional in
+@code{configure.ac} according to the shell variable
+@code{$enable_dependency_tracking} (all
+@code{--enable}/@code{--disable} options are available as shell
+variables; @pxref{Package Options,,,autoconf,GNU Autoconf}):
+@example
+AM_CONDITIONAL([NO_DEP_TRACKING],
+ [test x"$enable_dependency_tracking" = x"no"])
+@end example
+
+And then in your @code{Makefile.am}:
+
+@example
+if NO_DEP_TRACKING
+# stuff to do when dependency tracking is disabled
+else
+# stuff to do when it's enabled
+endif
+@end example
@node EXEEXT
@section Support for executable extensions