I have downloaded a macro from Autoconf Archive, and I want to use it. What do I have to put in my configure.ac file to make use this macro?
I had this exact same question, and it was harder to find an answer than I thought. It looked like AC_CONFIG_MACRO_DIR
was what I wanted, but if you are not using libtoolize, it appears that AC_CONFIG_MACRO_DIR
is useless at present.
If you're using automake, I think the answer above is right.
I'm not using automake, so the only way I've found is to use the m4_include
macro to suck in each .m4 file individually. I found this approach here:
http://www.flameeyes.eu/autotools-mythbuster/autoconf/macros.html
Hope this helps. (Considering how long autoconf has been around, it boggles my mind somewhat that there's no built-in way to just specify a directory in the .ac file. Seems like it would be an awefully common use case. Oh, well.)