[rtems commit] Fail gracefully if pax is not found
Ben Gras
beng at rtems.org
Thu Oct 22 22:07:52 UTC 2015
Module: rtems
Branch: master
Commit: 7e06bd982bf33748485e6cfaf179f8fe68763abc
Changeset: http://git.rtems.org/rtems/commit/?id=7e06bd982bf33748485e6cfaf179f8fe68763abc
Author: Ben Gras <beng at rtems.org>
Date: Thu Oct 22 21:53:36 2015 +0200
Fail gracefully if pax is not found
The $(PAX) variable is used unconditionally so it shouldn't be
left empty if not found at configure time. Fixes #2437.
---
testsuites/libtests/configure.ac | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/testsuites/libtests/configure.ac b/testsuites/libtests/configure.ac
index 89ca57f..a34bbb2 100644
--- a/testsuites/libtests/configure.ac
+++ b/testsuites/libtests/configure.ac
@@ -30,7 +30,11 @@ RTEMS_CHECK_CPUOPTS([RTEMS_NETWORKING])
RTEMS_CHECK_CPUOPTS([RTEMS_POSIX_API])
AC_PROG_LN_S
-AC_PATH_PROG([PAX],[pax])
+AC_PATH_PROG([PAX],[pax],no)
+
+AS_IF([test "x$PAX" = "xno"],[
+ AC_MSG_ERROR([pax is missing.])
+])
AC_CHECK_HEADERS([complex.h])
More information about the vc
mailing list