diff options
author | Tom Yu <tlyu@mit.edu> | 2012-02-22 19:27:56 +0000 |
---|---|---|
committer | Tom Yu <tlyu@mit.edu> | 2012-02-22 19:27:56 +0000 |
commit | 2c990e6418cd7cee7ca178a3175b07ed6a01ffae (patch) | |
tree | b9f1216df0574aabbdc6f088d91907a87c0fe570 | |
parent | aeea90b7c21f5bf0a18e5ca3ede90b3e013fef87 (diff) | |
download | krb5-2c990e6418cd7cee7ca178a3175b07ed6a01ffae.tar.gz krb5-2c990e6418cd7cee7ca178a3175b07ed6a01ffae.tar.xz krb5-2c990e6418cd7cee7ca178a3175b07ed6a01ffae.zip |
Fail during configure if unable to find ar
Fail during configure time if the configure script can't locate the
"ar" program, instead of producing a delayed failure during build time
by running the "false" command. Some Solaris releases have ar in
/usr/ccs/bin, which is not in the default path for some users.
ticket: 7094
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25711 dc483132-0cff-0310-8789-dd5450dbe970
-rw-r--r-- | src/aclocal.m4 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/aclocal.m4 b/src/aclocal.m4 index 7e635c831..7944532c6 100644 --- a/src/aclocal.m4 +++ b/src/aclocal.m4 @@ -1014,6 +1014,9 @@ AC_REQUIRE([AC_PROG_ARCHIVE])dnl AC_REQUIRE([AC_PROG_ARCHIVE_ADD])dnl AC_REQUIRE([AC_PROG_INSTALL])dnl AC_CHECK_PROG(AR, ar, ar, false) +if test "$AR" = "false"; then + AC_MSG_ERROR([ar not found in PATH]) +fi AC_CHECK_PROG(PERL, perl, perl, false) if test "$ac_cv_prog_PERL" = "false"; then AC_MSG_ERROR(Perl is now required for Kerberos builds.) |