]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Fail during configure if unable to find ar
authorTom Yu <tlyu@mit.edu>
Wed, 22 Feb 2012 19:27:56 +0000 (19:27 +0000)
committerTom Yu <tlyu@mit.edu>
Mon, 22 Apr 2013 22:30:02 +0000 (18:30 -0400)
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.

(cherry picked from commit 2c990e6418cd7cee7ca178a3175b07ed6a01ffae)

ticket: 7613 (new)
version_fixed: 1.9.5
status: resolved

src/aclocal.m4

index 408035aaeb8f703f838ad9f9f55fe0ea11edecfd..c32e1011815abef3339009e2f29af8260987e5c7 100644 (file)
@@ -1076,6 +1076,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.)