Navigation Menu

Skip to content

Commit

Permalink
combine gcc and g++ flag checks.
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Dec 4, 2011
1 parent 24fd20c commit 6653b32
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions configure.ac
Expand Up @@ -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=
Expand Down

0 comments on commit 6653b32

Please sign in to comment.