[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Duplicate tests
From: |
Pavel Roskin |
Subject: |
Duplicate tests |
Date: |
Thu, 14 Dec 2000 01:00:43 -0500 (EST) |
Hello!
Some tests exist both in compile.at and semantics.at. ChangeLog shows that
they were "moved" to compile.at, so it's time to remove them from
semantics.at.
We also had two different tests named AC_CHECK_TYPES :-)
ChangeLog:
* tests/semantics.at (AC_CHECK_TYPES): There are two tests with
this name. Rename the second one to "AC_CHECK_TYPES: backward
compatibility"
(AC_TRY_LINK_FUNC): Removed. It's now in tests/compile.at.
(C keywords): Likewise.
(AC_PROG_CPP with warnings): Likewise.
(AC_PROG_CPP without warnings): Likewise.
Regards,
Pavel Roskin
____________________________
--- tests/semantics.at
+++ tests/semantics.at
@@ -3,14 +3,6 @@
AT_BANNER([Semantics.])
-# AC_TRY_LINK_FUNC
-# ----------------
-AT_CHECK_MACRO(AC_TRY_LINK_FUNC,
-[AC_TRY_LINK_FUNC(exit,,
- [AC_MSG_ERROR([cannot find `exit'])])
-AC_TRY_LINK_FUNC(Be_doomed_if_your_libc_has_a_function_named_like_this,
- [AC_MSG_ERROR([found a nonexistent function])])])
-
## -------------------------------- ##
@@ -141,7 +133,7 @@
# --------------
# Check that we properly dispatch properly to the old implementation
# or to the new one.
-AT_SETUP([AC_CHECK_TYPES])
+AT_SETUP([AC_CHECK_TYPES: backward compatibility])
AT_DATA(configure.in,
[[AC_INIT
@@ -304,90 +296,6 @@
AT_CHECK_CONFIGURE
AT_CLEANUP(path)
-
-
-
-
-## ----------------- ##
-## Specific macros. ##
-## ----------------- ##
-
-
-# C compiler
-# ----------
-# GCC supports `const', `volatile', and `inline'.
-AT_CHECK_MACRO(C keywords,
-[[AC_PROG_CC
-AC_C_CONST
-AC_C_INLINE
-AC_C_VOLATILE
-case "$GCC,$ac_cv_c_const,$ac_cv_c_inline,$ac_cv_c_volatile" in
- yes,*no*)
- AC_MSG_ERROR([failed to detect `const', `inline' or `volatile' support]);;
-esac]])
-
-
-## ------------- ##
-## AC_PROG_CPP. ##
-## ------------- ##
-
-
-# It's Ok for strict preprocessors to produce warnings.
-
-AT_SETUP([AC_PROG_CPP with warnings])
-
-AT_DATA([mycpp],
-[[#! /bin/sh
-echo noise >&2
-exec ${1+"$@"}
-]])
-
-chmod +x mycpp
-
-_AT_CHECK_AC_MACRO(
-[AC_PROG_CPP
-# If the preprocessor is not strict, just ignore
-test "x$ac_c_preproc_warn_flag" = xyes &&
- AC_MSG_ERROR([preprocessor has no warning option], 77)
-CPP="./mycpp $CPP"
-AC_CHECK_HEADERS(stdio.h autoconf_io.h)])
-
-AT_CHECK_DEFINES(
-[/* #undef HAVE_AUTOCONF_IO_H */
-#define HAVE_STDIO_H 1
-])
-
-AT_CLEANUP
-
-
-# Non-strict preprocessors work if they produce no warnings.
-
-AT_SETUP([AC_PROG_CPP without warnings])
-
-AT_DATA([mycpp],
-[[#! /bin/sh
-/lib/cpp ${1+"$@"}
-exit 0
-]])
-
-chmod +x mycpp
-
-_AT_CHECK_AC_MACRO(
-[# Ignore if /lib/cpp doesn't work
-/lib/cpp </dev/null >/dev/null 2>&1 ||
- AC_MSG_ERROR([preprocessor doesn't work], 77)
-CPP=./mycpp
-AC_PROG_CPP
-test "x$ac_c_preproc_warn_flag" != xyes &&
- AC_MSG_ERROR([failed to detect preprocessor warning option])
-AC_CHECK_HEADERS(stdio.h autoconf_io.h)])
-
-AT_CHECK_DEFINES(
-[/* #undef HAVE_AUTOCONF_IO_H */
-#define HAVE_STDIO_H 1
-])
-
-AT_CLEANUP
____________________________
- Duplicate tests,
Pavel Roskin <=