aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-09-17 09:37:41 +0000
committerYang Tse <yangsita@gmail.com>2008-09-17 09:37:41 +0000
commitf30959c6bd01a90d1f6b17d72d03a415ec83ec99 (patch)
tree5e7144c1d741d4a8abdf4adf55aa9edc6c90371c
parentd7e406e0205d98486cce66c370d7dc4a7f56862a (diff)
On Linux Intel's icc uses gcc's header files, so
we select ANSI C89 dialect plus GNU extensions.
-rw-r--r--ares/configure.ac7
-rw-r--r--configure.ac7
2 files changed, 6 insertions, 8 deletions
diff --git a/ares/configure.ac b/ares/configure.ac
index 159d98fe2..9aacaea90 100644
--- a/ares/configure.ac
+++ b/ares/configure.ac
@@ -226,10 +226,9 @@ AC_MSG_CHECKING([whether we are using the Intel C compiler])
CURL_CHECK_DEF([__INTEL_COMPILER], [], [silent])
if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
AC_MSG_RESULT([yes])
- dnl Select strict ANSI C conformance
- CPPFLAGS="$CPPFLAGS -strict-ansi"
- dnl Select ANSI C dialect
- CPPFLAGS="$CPPFLAGS -std=c89 -D__STRICT_ANSI__"
+ dnl On Linux this compiler uses gcc's header files, so
+ dnl we select ANSI C89 dialect plus GNU extensions.
+ CPPFLAGS="$CPPFLAGS -std=gnu89"
dnl Change some warnings into errors
dnl #140: too many arguments in function call
dnl #147: declaration is incompatible with 'previous one'
diff --git a/configure.ac b/configure.ac
index af6fae5e0..bd58e7d30 100644
--- a/configure.ac
+++ b/configure.ac
@@ -300,10 +300,9 @@ AC_MSG_CHECKING([whether we are using the Intel C compiler])
CURL_CHECK_DEF([__INTEL_COMPILER], [], [silent])
if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
AC_MSG_RESULT([yes])
- dnl Select strict ANSI C conformance
- CPPFLAGS="$CPPFLAGS -strict-ansi"
- dnl Select ANSI C dialect
- CPPFLAGS="$CPPFLAGS -std=c89 -D__STRICT_ANSI__"
+ dnl On Linux this compiler uses gcc's header files, so
+ dnl we select ANSI C89 dialect plus GNU extensions.
+ CPPFLAGS="$CPPFLAGS -std=gnu89"
dnl Change some warnings into errors
dnl #140: too many arguments in function call
dnl #147: declaration is incompatible with 'previous one'