]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* acfunctions.m4 (AC_FUNC_ALLOCA): Don't require AC_PROG_CPP,
authorAkim Demaille <akim@epita.fr>
Tue, 14 Nov 2000 10:38:57 +0000 (10:38 +0000)
committerAkim Demaille <akim@epita.fr>
Tue, 14 Nov 2000 10:38:57 +0000 (10:38 +0000)
since (i) you actually need a compiler, (ii) AC_TRY_LINK handles
it.
* acheaders.m4 (AC_HEADER_STDC): Don't require AC_PROG_CPP,
AC_TRY_CPP does it.

ChangeLog
acfunctions.m4
acgeneral.m4
acheaders.m4
lib/autoconf/functions.m4
lib/autoconf/general.m4
lib/autoconf/headers.m4

index 58a32b075517e4e9e53a115e2f56ad11dc4100be..79d1ac1c9ba87153e1c7d19b884c273b83469b35 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2000-11-14  Akim Demaille  <akim@epita.fr>
+
+       * acfunctions.m4 (AC_FUNC_ALLOCA): Don't require AC_PROG_CPP,
+       since (i) you actually need a compiler, (ii) AC_TRY_LINK handles
+       it.
+       * acheaders.m4 (AC_HEADER_STDC): Don't require AC_PROG_CPP,
+       AC_TRY_CPP does it.
+
 2000-11-14  Akim Demaille  <akim@epita.fr>
 
        Create acheaders.m4.
index 3222460de07e8f029657e626c803b7d6a41456f7..bd4b10872f96329258175e02f8182c35ca3b1525 100644 (file)
@@ -197,8 +197,7 @@ AC_DEFINE_UNQUOTED(STACK_DIRECTION, $ac_cv_c_stack_direction)
 # AC_FUNC_ALLOCA
 # --------------
 AC_DEFUN([AC_FUNC_ALLOCA],
-[AC_REQUIRE_CPP()dnl Set CPP; we run AC_EGREP_CPP conditionally.
-# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
+[# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
 # for constant arguments.  Useless!
 AC_CACHE_CHECK([for working alloca.h], ac_cv_working_alloca_h,
 [AC_TRY_LINK([@%:@include <alloca.h>],
index 86482aac8a1161ba2617c50ef88cc9340e4fcc5d..fca4d60988fc2e2664e5a4a760b72b3d0b2da17d 100644 (file)
@@ -2771,10 +2771,12 @@ m4_popdef([AC_Lib_Name])dnl
 # _AC_TRY_CPP
 # -----------
 # Run cpp and set ac_cpp_err to "yes" for an error, to
-# "$ac_(c,cxx)_preproc_warn_flag" if there are warnings or to "" if neither
-# warnings nor errors have been detected.
-# eval is necessary to expand ac_cpp.  It may put trace lines to conftest.err
-# when run under sh -x (e.g. when zsh is used), so we filter them out.
+# "$ac_(c,cxx)_preproc_warn_flag" if there are warnings or to "" if
+# neither warnings nor errors have been detected.  eval is necessary
+# to expand ac_cpp.  It may put trace lines to conftest.err when run
+# under sh -x (e.g. when zsh is used), so we filter them out.
+#
+# Do not require AC_PROG_CPP since this macro is also used by AC_PROG_CPP.
 AC_DEFUN([_AC_TRY_CPP],
 [ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err"
 if AC_TRY_EVAL(ac_try); then
@@ -2812,15 +2814,6 @@ rm -f conftest*
 ])# AC_TRY_CPP
 
 
-# AC_EGREP_HEADER(PATTERN, HEADER-FILE,
-#                 [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
-# ---------------------------------------------------------
-AC_DEFUN([AC_EGREP_HEADER],
-[AC_EGREP_CPP([$1],
-[#include <$2>
-], [$3], [$4])])
-
-
 # AC_EGREP_CPP(PATTERN, PROGRAM,
 #              [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
 # ------------------------------------------------------
@@ -2842,6 +2835,16 @@ rm -f conftest*
 ])# AC_EGREP_CPP
 
 
+# AC_EGREP_HEADER(PATTERN, HEADER-FILE,
+#                 [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
+# ---------------------------------------------------------
+AC_DEFUN([AC_EGREP_HEADER],
+[AC_EGREP_CPP([$1],
+[#include <$2>
+], [$3], [$4])])
+
+
+
 
 ## ------------------ ##
 ## Examining syntax.  ##
index bb93fab7175cad505df4fa9911c2612a6824fc3d..a91109e874ff0f42179d37cdec59d08f5ba83a6b 100644 (file)
@@ -223,8 +223,7 @@ fi
 # AC_HEADER_STDC
 # --------------
 AC_DEFUN([AC_HEADER_STDC],
-[AC_REQUIRE_CPP()dnl
-AC_CACHE_CHECK(for ANSI C header files, ac_cv_header_stdc,
+[AC_CACHE_CHECK(for ANSI C header files, ac_cv_header_stdc,
 [AC_TRY_CPP([#include <stdlib.h>
 #include <stdarg.h>
 #include <string.h>
index 3222460de07e8f029657e626c803b7d6a41456f7..bd4b10872f96329258175e02f8182c35ca3b1525 100644 (file)
@@ -197,8 +197,7 @@ AC_DEFINE_UNQUOTED(STACK_DIRECTION, $ac_cv_c_stack_direction)
 # AC_FUNC_ALLOCA
 # --------------
 AC_DEFUN([AC_FUNC_ALLOCA],
-[AC_REQUIRE_CPP()dnl Set CPP; we run AC_EGREP_CPP conditionally.
-# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
+[# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
 # for constant arguments.  Useless!
 AC_CACHE_CHECK([for working alloca.h], ac_cv_working_alloca_h,
 [AC_TRY_LINK([@%:@include <alloca.h>],
index 86482aac8a1161ba2617c50ef88cc9340e4fcc5d..fca4d60988fc2e2664e5a4a760b72b3d0b2da17d 100644 (file)
@@ -2771,10 +2771,12 @@ m4_popdef([AC_Lib_Name])dnl
 # _AC_TRY_CPP
 # -----------
 # Run cpp and set ac_cpp_err to "yes" for an error, to
-# "$ac_(c,cxx)_preproc_warn_flag" if there are warnings or to "" if neither
-# warnings nor errors have been detected.
-# eval is necessary to expand ac_cpp.  It may put trace lines to conftest.err
-# when run under sh -x (e.g. when zsh is used), so we filter them out.
+# "$ac_(c,cxx)_preproc_warn_flag" if there are warnings or to "" if
+# neither warnings nor errors have been detected.  eval is necessary
+# to expand ac_cpp.  It may put trace lines to conftest.err when run
+# under sh -x (e.g. when zsh is used), so we filter them out.
+#
+# Do not require AC_PROG_CPP since this macro is also used by AC_PROG_CPP.
 AC_DEFUN([_AC_TRY_CPP],
 [ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err"
 if AC_TRY_EVAL(ac_try); then
@@ -2812,15 +2814,6 @@ rm -f conftest*
 ])# AC_TRY_CPP
 
 
-# AC_EGREP_HEADER(PATTERN, HEADER-FILE,
-#                 [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
-# ---------------------------------------------------------
-AC_DEFUN([AC_EGREP_HEADER],
-[AC_EGREP_CPP([$1],
-[#include <$2>
-], [$3], [$4])])
-
-
 # AC_EGREP_CPP(PATTERN, PROGRAM,
 #              [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
 # ------------------------------------------------------
@@ -2842,6 +2835,16 @@ rm -f conftest*
 ])# AC_EGREP_CPP
 
 
+# AC_EGREP_HEADER(PATTERN, HEADER-FILE,
+#                 [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
+# ---------------------------------------------------------
+AC_DEFUN([AC_EGREP_HEADER],
+[AC_EGREP_CPP([$1],
+[#include <$2>
+], [$3], [$4])])
+
+
+
 
 ## ------------------ ##
 ## Examining syntax.  ##
index bb93fab7175cad505df4fa9911c2612a6824fc3d..a91109e874ff0f42179d37cdec59d08f5ba83a6b 100644 (file)
@@ -223,8 +223,7 @@ fi
 # AC_HEADER_STDC
 # --------------
 AC_DEFUN([AC_HEADER_STDC],
-[AC_REQUIRE_CPP()dnl
-AC_CACHE_CHECK(for ANSI C header files, ac_cv_header_stdc,
+[AC_CACHE_CHECK(for ANSI C header files, ac_cv_header_stdc,
 [AC_TRY_CPP([#include <stdlib.h>
 #include <stdarg.h>
 #include <string.h>