null+****@clear*****
null+****@clear*****
2011年 12月 4日 (日) 20:08:05 JST
Kouhei Sutou 2011-12-04 11:08:05 +0000 (Sun, 04 Dec 2011) New Revision: 6653b32887ad7bd340dfd2e529c266a02373bc9d Log: combine gcc and g++ flag checks. Modified files: configure.ac Modified: configure.ac (+8 -7) =================================================================== --- configure.ac 2011-12-04 10:50:24 +0000 (43b2893) +++ configure.ac 2011-12-04 11:08:05 +0000 (481d0de) @@ -54,14 +54,15 @@ AC_DEFUN([CHECK_CXXFLAG], [ AC_MSG_RESULT([$check_cxxflag]) ]) -if test "$GCC" = "yes"; then - CHECK_CFLAG([-Wall]) - CHECK_CFLAG([-Wextra]) - CHECK_CFLAG([-Wno-unused-parameter]) +AC_DEFUN([CHECK_BUILD_FLAG], [ + CHECK_CFLAG([$1]) + CHECK_CXXFLAG([$1]) +]) - CHECK_CXXFLAG([-Wall]) - CHECK_CXXFLAG([-Wextra]) - CHECK_CXXFLAG([-Wno-unused-parameter]) +if test "$GCC" = "yes"; then + CHECK_BUILD_FLAG([-Wall]) + CHECK_BUILD_FLAG([-Wextra]) + CHECK_BUILD_FLAG([-Wno-unused-parameter]) fi standalone_build=