4 ms·
Sorry to be a little offtopic, but do you have any pointers for where to learn this kind of knowledge (more "best practices" than "getting started") for autocon
by andrewcooke 16y ago
Sorry to be a little offtopic, but do you have any pointers for where to learn this kind of knowledge (more "best practices" than "getting started") for autoconf et al? I just started using them and I am sure many of your criticisms would apply to my code; I'd like to do better... Thanks.
- endgame 16y agoIn case anyone wants to know, this is my go-to recommendation for "getting started": http://www.lrde.epita.fr/~adl/autotools.html http://www.lrde.epita.fr/~adl/autotools.html . Extremely thorough, and shows how all the different pieces work together. I'd read it anyway, even though you've got started. It's very, very good. I've also found Diego Pettenò's "Autotools Mythbuster" to be quite good: http://www.flameeyes.eu/autotools-mythbuster/index.html http://www.flameeyes.eu/autotools-mythbuster/index.html . His old article "Best practices with autotools" isn't bad, but a little light: http://www.linux.com/archive/articles/114061 http://www.linux.com/archive/articles/114061 You may also want to browse the autoconf and automake tags of Diego's blog: http://blog.flameeyes.eu/tag/autoconf http://blog.flameeyes.eu/tag/autoconf and http://blog.flameeyes.eu/tag/automake http://blog.flameeyes.eu/tag/automake A thorough reading of the autoconf and automake manuals also points out common pitfalls.
- cbetz 16y agoMy opinion is that many people hate autotools because they don't understand them. It was designed to handle just about any crazy build scenario you can throw at it -- of course it going to be a little complex. I started by spending a few hours forcing myself to read the following. It explains how autotools works and (importantly) why. http://www.freesoftwaremagazine.com/books/autotools_a_guide_to_autoconf_automake_libtool http://www.freesoftwaremagazine.com/books/autotools_a_guide_... It is critical to understand what the autotools are actually doing before you just go and copy'n'paste somebody else's configure.ac and/or Makefile.am. When you are ready to get your feet wet, here is a really good quick summary from the GNOME project: http://library.gnome.org/users/anjuta-build-tutorial/2.26/create-autotools.html.en http://library.gnome.org/users/anjuta-build-tutorial/2.26/cr... Once you understand what is going on, finding specifics in the GNU manuals (and being able to interpret them) is much easier. Yes, you should understand how m4 works (it's not rocket science).