diff options
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 27 |
1 files changed, 22 insertions, 5 deletions
diff --git a/configure.in b/configure.in index 04bf4c8..67ec4f1 100644 --- a/configure.in +++ b/configure.in @@ -67,18 +67,35 @@ set >&AS_MESSAGE_LOG_FD AC_MSG_RESULT([done]) dnl ---------------------------------------------------------------------- -dnl Some platforms have broken ``tr'' programs. Check that it actually -dnl does what it's supposed to do. Catch this early since configure -dnl relies upon tr heavily and there's no use continuing if it's broken. +dnl Some platforms have broken tr, basename, and/or xargs programs. Check +dnl that it actually does what it's supposed to do. Catch this early +dnl since configure relies upon tr heavily and there's no use continuing +dnl if it's broken. dnl AC_MSG_CHECKING([if tr works]) -TRTEST=`echo "Test" | tr 'a-z,' 'A-Z '` -if test $TRTEST != "TEST"; then +TR_TEST="`echo Test | tr 'a-z,' 'A-Z '`" +if test $TR_TEST != "TEST"; then AC_MSG_ERROR([tr program doesn't work]) else AC_MSG_RESULT([yes]) fi +AC_MSG_CHECKING([if basename works]) +BASENAME_TEST="`basename /foo/bar/baz/qux/basename_works`" +if test $BASENAME_TEST != "basename_works"; then + AC_MSG_ERROR([basename program doesn't work]) +else + AC_MSG_RESULT([yes]) +fi + +AC_MSG_CHECKING([if xargs works]) +XARGS_TEST="`echo /foo/bar/baz/qux/xargs_works | xargs basename`" +if test $XARGS_TEST != "xargs_works"; then + AC_MSG_ERROR([xargs program doesn't work]) +else + AC_MSG_RESULT([yes]) +fi + dnl ---------------------------------------------------------------------- dnl Check that the cache file was build on the same host as what we're dnl running on now. |