diff options
author | Yang Tse <yangsita@gmail.com> | 2009-05-07 11:06:48 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2009-05-07 11:06:48 +0000 |
commit | 411a7e17a18a682e582541b96b77bcad75daefcf (patch) | |
tree | f96ef19b4e545933d3d4f5acbabb679810b0eaef /acinclude.m4 | |
parent | 2a61e01b304695fc32e0cb35e7ed72392e1d25ae (diff) | |
download | c-ares-411a7e17a18a682e582541b96b77bcad75daefcf.tar.gz c-ares-411a7e17a18a682e582541b96b77bcad75daefcf.tar.bz2 c-ares-411a7e17a18a682e582541b96b77bcad75daefcf.zip |
Moved *_CHECK_COMPILER_HALT_ON_ERROR and *_CHECK_COMPILER_ARRAY_SIZE_NEGATIVE to *-compilers.m4 along with other *_CHECK_COMPILER_*
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index 4a74cd0..6b02776 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -1,52 +1,5 @@ -dnl CURL_CHECK_COMPILER_HALT_ON_ERROR -dnl ------------------------------------------------- -dnl Verifies if the compiler actually halts after the -dnl compilation phase without generating any object -dnl code file, when the source compiles with errors. - -AC_DEFUN([CURL_CHECK_COMPILER_HALT_ON_ERROR], [ - AC_MSG_CHECKING([if compiler halts on compilation errors]) - AC_COMPILE_IFELSE([ - AC_LANG_PROGRAM([[ - ]],[[ - force compilation error - ]]) - ],[ - AC_MSG_RESULT([no]) - AC_MSG_ERROR([compiler does not halt on compilation errors.]) - ],[ - AC_MSG_RESULT([yes]) - ]) -]) - - -dnl CURL_CHECK_COMPILER_ARRAY_SIZE_NEGATIVE -dnl ------------------------------------------------- -dnl Verifies if the compiler actually halts after the -dnl compilation phase without generating any object -dnl code file, when the source code tries to define a -dnl type for a constant array with negative dimension. - -AC_DEFUN([CURL_CHECK_COMPILER_ARRAY_SIZE_NEGATIVE], [ - AC_REQUIRE([CURL_CHECK_COMPILER_HALT_ON_ERROR])dnl - AC_MSG_CHECKING([if compiler halts on negative sized arrays]) - AC_COMPILE_IFELSE([ - AC_LANG_PROGRAM([[ - typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ]; - ]],[[ - bad_t dummy; - ]]) - ],[ - AC_MSG_RESULT([no]) - AC_MSG_ERROR([compiler does not halt on negative sized arrays.]) - ],[ - AC_MSG_RESULT([yes]) - ]) -]) - - dnl CURL_CHECK_DEF (SYMBOL, [INCLUDES], [SILENT]) dnl ------------------------------------------------- dnl Use the C preprocessor to find out if the given object-style symbol |