From: Paul Eggert Date: Mon, 12 Nov 2001 18:48:02 +0000 (+0000) Subject: (C Compiler): AC_C_PROTOTYPES now defines __PROTOTYPES too. X-Git-Tag: AUTOCONF-2.52g~66 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd7fab58ee31468c74a277a0422a565dbe9b2d5c;p=thirdparty%2Fautoconf.git (C Compiler): AC_C_PROTOTYPES now defines __PROTOTYPES too. --- diff --git a/doc/autoconf.texi b/doc/autoconf.texi index 6f5e0facc..a60b3c86a 100644 --- a/doc/autoconf.texi +++ b/doc/autoconf.texi @@ -4784,9 +4784,11 @@ found in macros such as this: @defmac AC_C_PROTOTYPES @acindex C_PROTOTYPES @cvindex PROTOTYPES +@cvindex __PROTOTYPES @cvindex PARAMS Check to see if function prototypes are understood by the compiler. If -so, define @samp{PROTOTYPES}. In the case the compiler does not handle +so, define @code{PROTOTYPES} and @code{__PROTOTYPES}. +In the case the compiler does not handle prototypes, you should use @code{ansi2knr}, which comes with the Automake distribution, to unprotoize function definitions. For function prototypes, you should first define @code{PARAMS}: @@ -4809,6 +4811,9 @@ size_t my_strlen PARAMS ((const char *)); @end example @end defmac +This macro also defines @code{__PROTOTYPES}; this is for the benefit of +header files that cannot use macros that infringe on user name space. + @defmac AC_PROG_GCC_TRADITIONAL @acindex PROG_GCC_TRADITIONAL @ovindex CC