How do you “echo” the last configure/make build –options within a source directory?

Incredibly, somehow everyone else missed the canonical way to do this, which has been around since 2 years before this thread began. πŸ™‚ I wondered the same thing as the OP and was disappointed by the lack of proper (non-ugly) ways to do this when I read this thread. A few days later, while idly … Read more

Any difference between configure.ac and configure.in, and Makefile.am and Makefile.in?

configure.ac and configure.in are two possible names for the master Autoconf source file, which is processed by autoconf to generate the configure shell script. configure.ac is preferred for new packages, configure.in is an older name which still works. (The .in suffix is now recommended to be used only for files which will be processed by … Read more

installed libtool but libtoolize not found

You typically need to use glibtool and glibtoolize, since libtool already exists on OS X as a binary tool for creating Mach-O dynamic libraries. So, that’s how MacPorts installs it, using a program name transform, though the port itself is still named ‘libtool’. Some autogen.sh scripts (or their equivalent) will honor the LIBTOOL / LIBTOOLIZE … Read more

Append compile flags to CFLAGS and CXXFLAGS while configuration/make

You almost have it right; why did you add the semicolon? To do it on the configure line: ./configure CFLAGS=’-g -O2 -w’ CXXFLAGS=’-g -O2 -w’ To do it on the make line: make CFLAGS=’-g -O2 -w’ CXXFLAGS=’-g -O2 -w’ However, that doesn’t really remove consider all warnings as errors; that removes all warnings. So specifying … Read more

Autoconf: dnl vs. #

In configure.ac, lines commented with ‘#’ that occur after AC_INIT will appear in the resulting configure script. dnl comments will not. One purpose of dnl is to discard unwanted newlines in an effort to make the configure script readable. Also, it is appropriate to use dnl comments to document an m4 macro; those comments make … Read more