Services and Modeling for Embedded Software Development
Embecosm divider strip
Prev  Next

5.1.  The configure.ac file

This is the file that is modified by autoconf and provides ultimately the definitions that will feed into automake. It will need some additional changes to tell it about DejaGnu

[Note]Note

In some older systems, this file may be named configure.in.

Where there are multiple configuration files, it is usually the top level one which is changed. The important thing is it should be the configuration file which feeds into the transformation of the Makefile.am file in the main test directory (testsuite).

The file should be extended to set the DEJAGNU environment variable to point to the global configuration file. There are two approaches to this. The simplest is just to set the value. However it is more flexible to only set a value if it is not already set. This allows the user to try different global configurations by manually setting DEJAGNU before running tests.

if test x"$DEJAGNU" = x
then
  DEJAGNU="\$(top_srcdir)/testsuite/global-conf.exp"
fi

AC_SUBST(DEJAGNU)
	
Embecosm divider strip