summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-03-08 04:05:34 +0300
committerAndrei Karas <akaras@inbox.ru>2017-03-08 04:05:34 +0300
commit28ecac7a3cca968ec3d8847872a8ed5e80714430 (patch)
treed9e4b49a9a1ef6824ec088c4e06205457b84caf8
parente6d078dd852f0d2cbaf04a258e4f3afa00e43234 (diff)
downloadmanaplus-28ecac7a3cca968ec3d8847872a8ed5e80714430.tar.gz
manaplus-28ecac7a3cca968ec3d8847872a8ed5e80714430.tar.bz2
manaplus-28ecac7a3cca968ec3d8847872a8ed5e80714430.tar.xz
manaplus-28ecac7a3cca968ec3d8847872a8ed5e80714430.zip
Fix removing CXXFLAGS in configure.
-rwxr-xr-xconfigure.ac13
1 files changed, 6 insertions, 7 deletions
diff --git a/configure.ac b/configure.ac
index 5135052cc..4ee915424 100755
--- a/configure.ac
+++ b/configure.ac
@@ -8,20 +8,19 @@ AC_DEFUN([AC_CHECK_CXX_FLAG],
AC_MSG_CHECKING([whether $CC supports $1])
OLD_CXXFLAGS="$CXXFLAGS"
CXXFLAGS="$CXXFLAGS -Werror $1"
- test_flag=no
+ $2=no
AC_COMPILE_IFELSE(
[AC_LANG_SOURCE([int foo;])],
[
AC_MSG_RESULT([yes])
- test_flag=yes
+ $2=yes
],
[
AC_MSG_RESULT([no])
- test_flag=no
+ $2=no
]
- CXXFLAGS="$OLD_CXXFLAGS"
)
- AM_CONDITIONAL($2, test x$test_flag = xtrue)
+ CXXFLAGS="$OLD_CXXFLAGS"
]
)
@@ -48,9 +47,9 @@ AC_DEFUN([AC_CHECK_LD_FLAG],
AC_MSG_RESULT([no])
$2=no
]
- CXXFLAGS="$OLD_CXXFLAGS"
- LDFLAGS="$OLD_LDFLAGS"
)
+ CXXFLAGS="$OLD_CXXFLAGS"
+ LDFLAGS="$OLD_LDFLAGS"
]
)