aboutsummaryrefslogtreecommitdiff
path: root/ares/m4
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-10-10 05:09:28 +0000
committerYang Tse <yangsita@gmail.com>2008-10-10 05:09:28 +0000
commit4f6f334f41a30a29d94a5e572a2771c1e33dff93 (patch)
treecb0ae3a98319512bb37e353f7dfda5154a6e2ed7 /ares/m4
parent8cd76d392133a0c8a52ff0cb9f56951e19657936 (diff)
simplify SGI C compiler check
Diffstat (limited to 'ares/m4')
-rw-r--r--ares/m4/cares-compilers.m417
1 files changed, 4 insertions, 13 deletions
diff --git a/ares/m4/cares-compilers.m4 b/ares/m4/cares-compilers.m4
index c1ad12bc4..ea0d3744c 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 15
+# serial 18
dnl CARES_CHECK_COMPILER
@@ -220,21 +220,12 @@ dnl Verify if the C compiler being used is SGI's.
AC_DEFUN([CARES_CHECK_COMPILER_SGI], [
AC_MSG_CHECKING([whether we are using the SGI C compiler])
- CURL_CHECK_DEF([_SGI_COMPILER_VERSION], [], [silent])
- CURL_CHECK_DEF([_COMPILER_VERSION], [], [silent])
CURL_CHECK_DEF([__GNUC__], [], [silent])
CURL_CHECK_DEF([__sgi], [], [silent])
- if test "$curl_cv_have_def___GNUC__" = "no"; then
- if test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes"; then
- compiler_id="SGIC"
- fi
- if test "$curl_cv_have_def__COMPILER_VERSION" = "yes" &&
- test "$curl_cv_have_def___sgi" = "yes"; then
- compiler_id="SGIC"
- fi
- fi
- if test "$compiler_id" = "SGIC"; then
+ if test "$curl_cv_have_def___GNUC__" = "no" &&
+ test "$curl_cv_have_def___sgi" = "yes"; then
AC_MSG_RESULT([yes])
+ compiler_id="SGIC"
flags_dbg_all="-g -g0 -g1 -g2 -g3"
flags_dbg_yes="-g"
flags_dbg_off="-g0"