October 2000
Intermediate to advanced
432 pages
9h 9m
English
Automake conditionals are a way to omit or include different parts of the 'Makefile', depending on what configure discovers. A conditional is introduced in 'configure.in' using the 'AM_CONDITIONAL' macro. This macro takes two arguments: The first is the name of the condition, and the second is a shell expression that returns true when the condition is true.
For instance, here is how to make a condition named 'TRUE' that is always true:
AM_CONDITIONAL(TRUE, true)
As another example, here is how to make a condition named 'DEBUG' that is true when the user has given the '--enable-debug' option to configure:
AM_CONDITIONAL(DEBUG, test "$enable_debug" = yes)
After you have defined a condition in 'configure.in', you can refer ...
Read now
Unlock full access