diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-03-08 04:05:34 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-03-08 04:05:34 +0300 |
commit | 28ecac7a3cca968ec3d8847872a8ed5e80714430 (patch) | |
tree | d9e4b49a9a1ef6824ec088c4e06205457b84caf8 /configure.ac | |
parent | e6d078dd852f0d2cbaf04a258e4f3afa00e43234 (diff) | |
download | plus-28ecac7a3cca968ec3d8847872a8ed5e80714430.tar.gz plus-28ecac7a3cca968ec3d8847872a8ed5e80714430.tar.bz2 plus-28ecac7a3cca968ec3d8847872a8ed5e80714430.tar.xz plus-28ecac7a3cca968ec3d8847872a8ed5e80714430.zip |
Fix removing CXXFLAGS in configure.
Diffstat (limited to 'configure.ac')
-rwxr-xr-x | configure.ac | 13 |
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" ] ) |