Check result of AX_PYTHON_MODULE in configure.ac
Posted
by tmatth
on Stack Overflow
See other posts from Stack Overflow
or by tmatth
Published on 2010-03-15T16:33:48Z
Indexed on
2010/03/15
17:09 UTC
Read the original article
Hit count: 248
In using the m4_ax_python_module.m4 macro in configure.ac (AX_PYTHON_MODULE), one can know at configure time if a given module is installed. It takes two arguments, the module name, and second argument which if not empty, will lead to an exit, useful when the module is a must-have.
In the case where you don't want a fatal exit, how do you test in configure.ac which modules were found or not? They output "yes" or "no" when configure is run, but that's all I've found so far. Basically If I have these lines in configure.ac:
AX_PYTHON_MODULE(json,[])
AX_PYTHON_MODULE(simplejson,[])
How do I test which of the two modules were found?
See http://www.gnu.org/software/autoconf-archive/ax_python_module.html#ax_python_module for documentation about this macro.
© Stack Overflow or respective owner