tests: Allow environment specified autom4te.
authorEthan Jackson <ethan@nicira.com>
Wed, 3 Oct 2012 22:58:54 +0000 (15:58 -0700)
committerEthan Jackson <ethan@nicira.com>
Thu, 4 Oct 2012 20:42:46 +0000 (13:42 -0700)
In the ESX build system, autom4te is in a funny location specified
by an environment variable.  Before this patch, this environment
variable was overridden by the tests automake file.

Signed-off-by: Ethan Jackson <ethan@nicira.com>
configure.ac
tests/automake.mk

index 9bdffea..10b214e 100644 (file)
@@ -34,6 +34,11 @@ if test "$PERL" = no; then
    AC_MSG_ERROR([Perl interpreter not found in $PATH or $PERL.])
 fi
 
+AC_PATH_PROG([AUTOM4TE], autom4te, no)
+if test "$AUTOM4TE" = no; then
+   AC_MSG_ERROR([autom4te not found in $PATH or $AUTOM4TE.])
+fi
+
 AC_USE_SYSTEM_EXTENSIONS
 AC_C_BIGENDIAN
 AC_SYS_LARGEFILE
index 20f9e82..2977f76 100644 (file)
@@ -146,7 +146,6 @@ check-valgrind: all tests/atconfig tests/atlocal $(TESTSUITE) \
 clean-local:
        test ! -f '$(TESTSUITE)' || $(SHELL) '$(TESTSUITE)' -C tests --clean
 
-AUTOM4TE = autom4te
 AUTOTEST = $(AUTOM4TE) --language=autotest
 $(TESTSUITE): package.m4 $(TESTSUITE_AT)
        $(AUTOTEST) -I '$(srcdir)' -o $@.tmp $@.at