summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-10-02 03:56:56 +0000
committerYang Tse <yangsita@gmail.com>2008-10-02 03:56:56 +0000
commit79f844f6729a9a1cc18ada18a94f83efcfb43f91 (patch)
treeddb7729583154856c5fd0f93be1a93c7054796a7 /acinclude.m4
parent6503efa62a4b33f331b5b06403875f841103b05e (diff)
downloadc-ares-79f844f6729a9a1cc18ada18a94f83efcfb43f91.tar.gz
c-ares-79f844f6729a9a1cc18ada18a94f83efcfb43f91.tar.bz2
c-ares-79f844f6729a9a1cc18ada18a94f83efcfb43f91.zip
Initial attempt to support configure's --(dis|en)able-warnings
option to specify dis(activation) of picky compiler warnings. If option is specified, it will be honored independant of the --(dis|en)able-debug option. If option is not specified, it will follow --(dis|en)able-debug setting, whose default is disabled if not specified.
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m454
1 files changed, 0 insertions, 54 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 06fa2f5..0225f9b 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -1827,60 +1827,6 @@ AC_DEFUN([CURL_CHECK_LIBS_CLOCK_GETTIME_MONOTONIC], [
])
-dnl **********************************************************************
-dnl CURL_DETECT_ICC ([ACTION-IF-YES])
-dnl
-dnl check if this is the Intel ICC compiler, and if so run the ACTION-IF-YES
-dnl sets the $ICC variable to "yes" or "no"
-dnl **********************************************************************
-AC_DEFUN([CURL_DETECT_ICC],
-[
- ICC="no"
- AC_MSG_CHECKING([for icc in use])
- if test "$GCC" = "yes"; then
- dnl check if this is icc acting as gcc in disguise
- AC_EGREP_CPP([^__INTEL_COMPILER], [__INTEL_COMPILER],
- dnl action if the text is found, this it has not been replaced by the
- dnl cpp
- ICC="no",
- dnl the text was not found, it was replaced by the cpp
- ICC="yes"
- AC_MSG_RESULT([yes])
- [$1]
- )
- fi
- if test "$ICC" = "no"; then
- # this is not ICC
- AC_MSG_RESULT([no])
- fi
-])
-
-dnl We create a function for detecting which compiler we use and then set as
-dnl pendantic compiler options as possible for that particular compiler. The
-dnl options are only used for debug-builds.
-
-dnl This is a copy of the original found in curl's configure script. Don't
-dnl modify this one, edit the one in curl and copy it back here when that one
-dnl is changed.
-
-AC_DEFUN([CURL_CC_DEBUG_OPTS],
-[
- dnl strip off optimizer flags
- NEWFLAGS=""
- for flag in $CFLAGS; do
- case "$flag" in
- -O*)
- dnl echo "cut off $flag"
- ;;
- *)
- NEWFLAGS="$NEWFLAGS $flag"
- ;;
- esac
- done
- CFLAGS=$NEWFLAGS
-])
-
-
dnl This macro determines if the specified struct exists in the specified file
dnl Syntax:
dnl CARES_CHECK_STRUCT(headers, struct name, if found, [if not found])