From 1c5336cd57958b3015a615677e3ef008212d1b84 Mon Sep 17 00:00:00 2001
From: Yang Tse <yangsita@gmail.com>
Date: Thu, 9 Oct 2008 15:06:20 +0000
Subject: [PATCH] convert rejected compiler options messages into a warnings

---
 ares/m4/cares-compilers.m4 | 8 ++++----
 m4/curl-compilers.m4       | 8 ++++----
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/ares/m4/cares-compilers.m4 b/ares/m4/cares-compilers.m4
index eaf0cc2162..00f427ade4 100644
--- a/ares/m4/cares-compilers.m4
+++ b/ares/m4/cares-compilers.m4
@@ -16,7 +16,7 @@
 #***************************************************************************
 
 # File version for 'aclocal' use. Keep it a single number.
-# serial 12
+# serial 14
 
 
 dnl CARES_CHECK_COMPILER
@@ -441,7 +441,7 @@ AC_DEFUN([CARES_SET_COMPILER_BASIC_OPTS], [
         AC_MSG_NOTICE([compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS])
       ],[
         AC_MSG_RESULT([no])
-        AC_MSG_NOTICE([compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS])
+        AC_MSG_WARN([compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS])
         dnl restore initial settings
         CPPFLAGS="$tmp_save_CPPFLAGS"
         CFLAGS="$tmp_save_CFLAGS"
@@ -488,7 +488,7 @@ AC_DEFUN([CARES_SET_COMPILER_DEBUG_OPTS], [
       AC_MSG_NOTICE([compiler options added: $tmp_options])
     ],[
       AC_MSG_RESULT([no])
-      AC_MSG_NOTICE([compiler options rejected: $tmp_options])
+      AC_MSG_WARN([compiler options rejected: $tmp_options])
       dnl restore initial settings
       CPPFLAGS="$tmp_save_CPPFLAGS"
       CFLAGS="$tmp_save_CFLAGS"
@@ -561,7 +561,7 @@ AC_DEFUN([CARES_SET_COMPILER_OPTIMIZE_OPTS], [
         AC_MSG_NOTICE([compiler options added: $tmp_options])
       ],[
         AC_MSG_RESULT([no])
-        AC_MSG_NOTICE([compiler options rejected: $tmp_options])
+        AC_MSG_WARN([compiler options rejected: $tmp_options])
         dnl restore initial settings
         CPPFLAGS="$tmp_save_CPPFLAGS"
         CFLAGS="$tmp_save_CFLAGS"
diff --git a/m4/curl-compilers.m4 b/m4/curl-compilers.m4
index 469801e69c..b108306095 100644
--- a/m4/curl-compilers.m4
+++ b/m4/curl-compilers.m4
@@ -22,7 +22,7 @@
 #***************************************************************************
 
 # File version for 'aclocal' use. Keep it a single number.
-# serial 11
+# serial 13
 
 
 dnl CURL_CHECK_COMPILER
@@ -447,7 +447,7 @@ AC_DEFUN([CURL_SET_COMPILER_BASIC_OPTS], [
         AC_MSG_NOTICE([compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS])
       ],[
         AC_MSG_RESULT([no])
-        AC_MSG_NOTICE([compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS])
+        AC_MSG_WARN([compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS])
         dnl restore initial settings
         CPPFLAGS="$tmp_save_CPPFLAGS"
         CFLAGS="$tmp_save_CFLAGS"
@@ -494,7 +494,7 @@ AC_DEFUN([CURL_SET_COMPILER_DEBUG_OPTS], [
       AC_MSG_NOTICE([compiler options added: $tmp_options])
     ],[
       AC_MSG_RESULT([no])
-      AC_MSG_NOTICE([compiler options rejected: $tmp_options])
+      AC_MSG_WARN([compiler options rejected: $tmp_options])
       dnl restore initial settings
       CPPFLAGS="$tmp_save_CPPFLAGS"
       CFLAGS="$tmp_save_CFLAGS"
@@ -567,7 +567,7 @@ AC_DEFUN([CURL_SET_COMPILER_OPTIMIZE_OPTS], [
         AC_MSG_NOTICE([compiler options added: $tmp_options])
       ],[
         AC_MSG_RESULT([no])
-        AC_MSG_NOTICE([compiler options rejected: $tmp_options])
+        AC_MSG_WARN([compiler options rejected: $tmp_options])
         dnl restore initial settings
         CPPFLAGS="$tmp_save_CPPFLAGS"
         CFLAGS="$tmp_save_CFLAGS"
-- 
GitLab