Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated compiler checks; they work now with Studio and Intel cc.

  • Loading branch information...
commit 57179696538242d1cffcd54f2ac9927b2796021a 1 parent a076fc5
@ingenthr ingenthr authored
Showing with 15 additions and 7 deletions.
  1. +15 −7 configure.ac
View
22 configure.ac
@@ -141,15 +141,23 @@ AM_CONDITIONAL([BUILD_BUNDLED_LIBSTROPHE], [test "x$build_bundled_libstrophe" =
AC_C_CONST
-dnl Turn up the warnings.
-if test "$GCC" = "yes"
+dnl Let the compiler be a bit more picky. Please note that you cannot
+dnl specify these flags to the compiler before AC_CHECK_FUNCS, because
+dnl the test program will generate a compilation warning and hence fail
+dnl to detect the function ;-)
+dnl Lines borrowed from memcached.
+if test "$ICC" = "yes"
then
- CFLAGS="$CFLAGS -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls"
-fi
-if test "$SUNCC" = "yes"
-then
- CFLAGS="$CFLAGS -errfmt=error -erroff=E_ATTRIBUTE_UNKNOWN"
+ dnl ICC trying to be gcc.
+ CFLAGS="$CFLAGS -w2 -Wcheck -Wall -Werror"
+elif test "$GCC" = "yes"
+then
+ CFLAGS="$CFLAGS -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls"
+elif test "$SUNCC" = "yes"
+then
+ CFLAGS="$CFLAGS -errfmt=error -erroff=E_ATTRIBUTE_UNKNOWN"
fi
+
AC_CONFIG_FILES(Makefile tests/Makefile libconflate.pc)
AC_OUTPUT
Please sign in to comment.
Something went wrong with that request. Please try again.