From: Václav Slavík Date: Thu, 14 Aug 2003 15:36:33 +0000 (+0000) Subject: complain if ar is missing X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/911740e77a6e993ff23ea5086a74f528ad1cf9e4 complain if ar is missing git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22865 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/configure b/configure index c29078fe4b..9a707790b2 100755 --- a/configure +++ b/configure @@ -11362,7 +11362,6 @@ do done done - test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" fi fi AR=$ac_cv_prog_AR @@ -11374,6 +11373,11 @@ else echo "${ECHO_T}no" >&6 fi +if test "x$AR" = "x" ; then + { { echo "$as_me:$LINENO: error: ar is needed to build wxWindows" >&5 +echo "$as_me: error: ar is needed to build wxWindows" >&2;} + { (exit 1); exit 1; }; } +fi # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or @@ -34880,8 +34884,6 @@ fi - - # Check whether --enable-precomp-headers or --disable-precomp-headers was given. if test "${enable_precomp_headers+set}" = set; then enableval="$enable_precomp_headers" diff --git a/configure.in b/configure.in index ed2a157a4d..5ac745776e 100644 --- a/configure.in +++ b/configure.in @@ -1309,7 +1309,10 @@ AC_PROG_RANLIB dnl ar command dnl defines AR with the appropriate command -AC_CHECK_PROG(AR, ar, ar, ar) +AC_CHECK_PROG(AR, ar, ar) +if test "x$AR" = "x" ; then + AC_MSG_ERROR([ar is needed to build wxWindows]) +fi dnl install checks dnl defines INSTALL with the appropriate command