X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=configure.ac;h=119f002bc27993b190e397e250eed630ba1c971e;hb=20786e86c5d91faa735c1534df1cafa53746d5f8;hp=ddd71d3d13b2d4676442e2011a00905352900d15;hpb=59aa092aa33cd2acd73c20cffa5789c7ef96eaac;p=xboard.git diff --git a/configure.ac b/configure.ac index ddd71d3..119f002 100644 --- a/configure.ac +++ b/configure.ac @@ -110,6 +110,15 @@ AC_CHECK_FUNC(setlocale, [], AC_CHECK_LIB(seq, getpseudotty) +dnl | add compiler warnings only if compiler understands them +AC_MSG_CHECKING(whether compiler understands -Wall -Wno-parentheses) +SAVE_CFLAGS="$CFLAGS" +CFLAGS="$CFLAGS -Wall -Wno-parentheses" +AC_TRY_COMPILE([],[], + AC_MSG_RESULT(yes), + AC_MSG_RESULT(no) + CFLAGS="$SAVE_CFLAGS") + dnl | check for X-libraries AC_PATH_XTRA