- Issue #3754: Use AC_PATH_TOOL and AC_CHECK_TOOLS instead of

AC_PATH_PROG and AC_CHECK_PROGS for the target tools.
This commit is contained in:
doko@ubuntu.com 2012-06-30 14:42:46 +02:00
parent 93df16bb16
commit 51f6594054
2 changed files with 447 additions and 175 deletions

566
configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -608,9 +608,9 @@ preset_cxx="$CXX"
if test -z "$CXX"
then
case "$CC" in
gcc) AC_PATH_PROG(CXX, [g++], [g++], [notfound]) ;;
cc) AC_PATH_PROG(CXX, [c++], [c++], [notfound]) ;;
clang|*/clang) AC_PATH_PROG(CXX, [clang++], [clang++], [notfound]) ;;
gcc) AC_PATH_TOOL(CXX, [g++], [g++], [notfound]) ;;
cc) AC_PATH_TOOL(CXX, [c++], [c++], [notfound]) ;;
clang|*/clang) AC_PATH_TOOL(CXX, [clang++], [clang++], [notfound]) ;;
esac
if test "$CXX" = "notfound"
then
@ -619,7 +619,7 @@ then
fi
if test -z "$CXX"
then
AC_CHECK_PROGS(CXX, $CCC c++ g++ gcc CC cxx cc++ cl, notfound)
AC_CHECK_TOOLS(CXX, $CCC c++ g++ gcc CC cxx cc++ cl, notfound)
if test "$CXX" = "notfound"
then
CXX=""
@ -916,7 +916,7 @@ AC_MSG_RESULT($LDLIBRARY)
AC_PROG_RANLIB
AC_SUBST(AR)
AC_CHECK_PROGS(AR, ar aal, ar)
AC_CHECK_TOOLS(AR, ar aal, ar)
# tweak ARFLAGS only if the user didn't set it on the command line
AC_SUBST(ARFLAGS)