Browse Source

configure.ac: Fix macro IS_SUPPORTED_CFLAG
- Add option -we10006 for Intel Compiler to return an error instead of a warning
- Restore CFLAGS

Nathalie Furmento 14 years ago
parent
commit
009b1fefab
1 changed files with 3 additions and 1 deletions
  1. 3 1
      configure.ac

+ 3 - 1
configure.ac

@@ -1018,7 +1018,8 @@ AC_DEFUN([IS_SUPPORTED_CFLAG],
 
 	AC_MSG_CHECKING([whether compiler support $1])
 
-	CFLAGS=$1
+	SAVED_CFLAGS="$CFLAGS"
+	CFLAGS="$1 -we10006"
 
 	AC_COMPILE_IFELSE(
 		AC_LANG_PROGRAM(
@@ -1035,6 +1036,7 @@ AC_DEFUN([IS_SUPPORTED_CFLAG],
 		],
 			AC_MSG_RESULT(no)
 	)
+	CFLAGS="$SAVED_CFLAGS"
 ])
 
 IS_SUPPORTED_CFLAG(-W)