diff options
author | Yang Tse <yangsita@gmail.com> | 2008-10-02 03:56:55 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2008-10-02 03:56:55 +0000 |
commit | 2245ac2f884513bb3145f841fb3a9aed80b6ff34 (patch) | |
tree | bc60c78e19ae34e8b57ef5bf19c12fe30ae33d33 /ares/acinclude.m4 | |
parent | 1bfaf76dd09a12ccd0dea7f4ec7d1a34b38cbce5 (diff) |
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 'ares/acinclude.m4')
-rw-r--r-- | ares/acinclude.m4 | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/ares/acinclude.m4 b/ares/acinclude.m4 index 06fa2f58a..0225f9ba7 100644 --- a/ares/acinclude.m4 +++ b/ares/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]) |