[rtems commit] Fail gracefully if pax is not found

Ben Gras beng at rtems.org
Thu Oct 22 23:23:06 UTC 2015


Module:    rtems
Branch:    4.11
Commit:    bad82027ebf605ace3da5d0bc713a0b554545d7f
Changeset: http://git.rtems.org/rtems/commit/?id=bad82027ebf605ace3da5d0bc713a0b554545d7f

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 4924e0f..2b32a42 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