summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/ac-macros/misc.m47
1 files changed, 2 insertions, 5 deletions
diff --git a/config/ac-macros/misc.m4 b/config/ac-macros/misc.m4
index 791cd754bc4..975e48d0487 100644
--- a/config/ac-macros/misc.m4
+++ b/config/ac-macros/misc.m4
@@ -648,11 +648,8 @@ case $CXX_VERSION in
ARFLAGS="-xar -o"
;;
*)
- if test -z "$AR"
- then
- AC_CHECK_PROG([AR], [ar], [ar])
- fi
- if test -z "$AR"
+ AC_CHECK_PROG([AR], [ar], [ar])
+ if test -z "$AR" || test "$AR" = "false"
then
AC_MSG_ERROR([You need ar to build the library])
fi