|
From: <sv...@va...> - 2009-05-31 11:23:07
|
Author: bart Date: 2009-05-31 12:22:58 +0100 (Sun, 31 May 2009) New Revision: 10176 Log: Added test that checks whether the compiler supports -Wno-empty-body. Modified: trunk/configure.in Modified: trunk/configure.in =================================================================== --- trunk/configure.in 2009-05-31 11:21:54 UTC (rev 10175) +++ trunk/configure.in 2009-05-31 11:22:58 UTC (rev 10176) @@ -1212,6 +1212,29 @@ fi +# does this compiler support -Wno-empty-body ? + +AC_MSG_CHECKING([if gcc accepts -Wno-empty-body]) + +safe_CFLAGS=$CFLAGS +CFLAGS="-Wno-empty-body" + +AC_TRY_COMPILE( +[ ], +[ + return 0; +], +[ +AC_SUBST([FLAG_W_NO_EMPTY_BODY], [-Wno-empty-body]) +AC_MSG_RESULT([yes]) +], +[ +AC_SUBST([FLAG_W_NO_EMPTY_BODY], []) +AC_MSG_RESULT([no]) +]) +CFLAGS=$safe_CFLAGS + + # does this compiler support -Wno-format-zero-length ? AC_MSG_CHECKING([if gcc accepts -Wno-format-zero-length]) |