mirror of
https://github.com/cuberite/TCLAP.git
synced 2025-08-03 17:56:17 -04:00
Correctly name variable for caching (fixes warning by autotools.sh)
This commit is contained in:
parent
a219293c87
commit
38af929982
@ -10,19 +10,19 @@ AC_DEFUN([HAVE_WARN_EFFECTIVE_CXX],
|
|||||||
[
|
[
|
||||||
AC_REQUIRE([AC_PROG_CXX])
|
AC_REQUIRE([AC_PROG_CXX])
|
||||||
AC_MSG_CHECKING([whether the C++ compiler (${CXX}) accepts -Weffc++])
|
AC_MSG_CHECKING([whether the C++ compiler (${CXX}) accepts -Weffc++])
|
||||||
AC_CACHE_VAL([cv_warn_effective_cxx],
|
AC_CACHE_VAL([_cv_warn_effective_cxx],
|
||||||
[
|
[
|
||||||
AC_LANG_SAVE
|
AC_LANG_SAVE
|
||||||
AC_LANG_CPLUSPLUS
|
AC_LANG_CPLUSPLUS
|
||||||
save_cxxflags="$CXXFLAGS"
|
save_cxxflags="$CXXFLAGS"
|
||||||
CXXFLAGS="$CXXFLAGS -Weffc++"
|
CXXFLAGS="$CXXFLAGS -Weffc++"
|
||||||
AC_TRY_COMPILE([],[main();],
|
AC_TRY_COMPILE([],[main();],
|
||||||
[cv_warn_effective_cxx=yes], [cv_warn_effective_cxx=no])
|
[_cv_warn_effective_cxx=yes], [_cv_warn_effective_cxx=no])
|
||||||
CXXFLAGS="$save_cxxflags"
|
CXXFLAGS="$save_cxxflags"
|
||||||
AC_LANG_RESTORE
|
AC_LANG_RESTORE
|
||||||
])
|
])
|
||||||
AC_MSG_RESULT([$cv_warn_effective_cxx])
|
AC_MSG_RESULT([$_cv_warn_effective_cxx])
|
||||||
if test "$cv_warn_effective_cxx" = yes; then
|
if test "$_cv_warn_effective_cxx" = yes; then
|
||||||
WARN_EFFECTIVE_CXX=-Weffc++
|
WARN_EFFECTIVE_CXX=-Weffc++
|
||||||
WARN_NO_EFFECTIVE_CXX=-Wno-effc++
|
WARN_NO_EFFECTIVE_CXX=-Wno-effc++
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user