summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-12-12 18:08:06 -0800
committerKarl Berry <karl@freefriends.org>2021-12-12 18:08:06 -0800
commit5112a1fe820379585f648e238a3c6c94ff3a787d (patch)
tree412a684a86455e05b5c22b112ec0d98f9662b2dd
parentbed9e25e89e6c42ae23794015a62310b0208c82b (diff)
downloadautomake-5112a1fe820379585f648e238a3c6c94ff3a787d.tar.gz
configure: skip kcc on case-insensitive filesystems; add clang++.
This change fixes https://bugs.gnu.org/21336. * configure.ac: Skip KCC check on case-insensitive filesystems; on macOS 10.10 and later, a kerberos tool named "kcc" is installed. Add clang++ to the C++ search list, as with current autoconf.
-rw-r--r--configure.ac8
1 files changed, 5 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index 5a00bd29e..6be3ba752 100644
--- a/configure.ac
+++ b/configure.ac
@@ -444,11 +444,13 @@ AS_IF([test x"$GCC" = x"yes"], [am_CC_is_GNU=yes], [am_CC_is_GNU=no])
# to a C++ compiler as expected (see automake bugs #11893 and #10766).
# Similarly, we must avoid looking for 'RCC', as that can point to the
# Qt4 "Resource Compiler": <http://doc.qt.digia.com/4.2/rcc.html>
+# And we avoid looking for 'KCC' as that can be a kerberos tool under
+# macOS systems.
if test -f /bIn/rMdIr || test -f /uSr/bIn/rMdIr; then
# Case-insensitive file system, don't look for CC.
- am_CC= am_RCC=
+ am_CC= am_RCC= am_KCC=
else
- am_CC=CC am_RCC=RCC
+ am_CC=CC am_RCC=RCC am_KCC=KCC
fi
# The list of C++ compilers here has been copied, pasted and edited
@@ -456,7 +458,7 @@ fi
# Keep it in sync, or better again, find out a way to avoid this code
# duplication.
_AM_COMPILER_CAN_FAIL([AC_PROG_CXX(dnl
- [aCC $am_CC FCC KCC $am_RCC xlC_r xlC c++ cxx cc++ gpp g++])],
+ [aCC $am_CC FCC $am_KCC $am_RCC xlC_r xlC c++ cxx cc++ gpp g++ clang++])],
[CXX=false; _AM_SKIP_COMP_TESTS([C++])])
AS_IF([test x"$GXX" = x"yes"], [am_CXX_is_GNU=yes], [am_CXX_is_GNU=no])