diff options
author | Stefano Lattarini <stefano.lattarini@gmail.com> | 2011-11-05 21:35:40 +0100 |
---|---|---|
committer | Stefano Lattarini <stefano.lattarini@gmail.com> | 2011-11-05 21:35:40 +0100 |
commit | eea57793c7dde8b836ff1e6f8e232747a85b5dba (patch) | |
tree | c689a7f1f89e7a89e13a51c13bc34388a83466db /m4 | |
parent | db93b31d81c7809e49fa874acfd5e3aa3504dc48 (diff) | |
download | automake-eea57793c7dde8b836ff1e6f8e232747a85b5dba.tar.gz |
ar-lib: fix configure output for "unrecognized archiver interface"
* m4/ar-lib.m4: Ensure that, even when an error is hit while trying
to determine the archiver interface kind, the "checking archiver
interface" message from configure is properly terminated before
an error message is printed, to avoid slightly garbled output.
* tests/ar4.test: Enhance.
* tests/ar5.test: Likewise.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/ar-lib.m4 | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/m4/ar-lib.m4 b/m4/ar-lib.m4 index 822ca6085..e45c558dd 100644 --- a/m4/ar-lib.m4 +++ b/m4/ar-lib.m4 @@ -33,8 +33,7 @@ AC_CACHE_CHECK([the archiver ($AR) interface], [am_cv_ar_interface], if test "$ac_status" -eq 0; then am_cv_ar_interface=lib else - m4_default([$1], - [AC_MSG_ERROR([could not determine $AR interface])]) + am_cv_ar_interface=unknown fi fi rm -f conftest.lib libconftest.a @@ -53,6 +52,10 @@ lib) # similar. AR="$am_aux_dir/ar-lib $AR" ;; +unknown) + m4_default([$1], + [AC_MSG_ERROR([could not determine $AR interface])]) + ;; esac AC_SUBST([AR])dnl ]) |