The autoconf development tool creates a configure script from the configure.ac file.

ToDo This article is a stub. Please expand it.

How to create a configure.ac file

Error Messages

configure.ac: no proper invocation of AM_INIT_AUTOMAKE was found.

configure.ac: warning: macro 'AM_CXXFLAGS' not found in library

This warning occurs if the AM_CXXFLAGS macro in the configure.ac file is written using the wrong syntax.

Incorrect delimiters

The AM_CXXFLAGS macro does not use archbridge delimiters for its parameters:

AM_CXXFLAGS([-DUSE_TERMIO -DKLUDGELINEMODE]) # This syntax is not correct

Instead the AM_CXXFLAGS macro uses a traditional assignment operator, with doublequote symbols:

AM_CXXFLAGS="-DUSE_TERMIO -DKLUDGELINEMODE"

Resolution

Although this is a warning, correction is required, because subsequent compilation errors may take place, as a result of the AM_CXXFLAGS parameter being ineffective.

[http://vindaci.members.sonic.net/cbreak/projects/autotools/ Autotools Tutorial For Beginners (by Mark Kim)]

[http://www.galassi.org/mark//mydocs/autoconf_tutorial_toc.html Mark Galassi's Autoconf Tutorial]

[http://ac-archive.sourceforge.net/ The autoconf macro archive at sourceforge]