Fix so that AR/AROPTIONS can be overridden on the configure command line when

using Sun CC.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43888 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Michael Wetherell 2006-12-09 23:43:54 +00:00
parent e3a10e0c62
commit d083d20168
3 changed files with 16 additions and 10 deletions

View file

@ -601,9 +601,9 @@ AC_DEFUN([AC_BAKEFILE_CHECK_BASIC_STUFF],
dnl Sun C++ compiler requires special way of creating static libs;
dnl see here for more details:
dnl https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1229751&group_id=9863
AR=$CXX
AR=${AR:-"$CXX"}
AC_SUBST(AR)
AROPTIONS="-xar -o"
AROPTIONS=${AROPTIONS:-"-xar -o"}
else
AC_CHECK_TOOL(AR, ar, ar)
AROPTIONS=rcu