/[autoconf]/autoconf/doc/autoconf.texi
ViewVC logotype

Diff of /autoconf/doc/autoconf.texi

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.605 by akim, Tue Mar 26 09:32:30 2002 UTC revision 1.606 by petere, Tue Apr 2 18:22:08 2002 UTC
# Line 4770  this: Line 4770  this:
4770  AC_PROG_CC(cl egcs gcc cc)  AC_PROG_CC(cl egcs gcc cc)
4771  @end example  @end example
4772    
4773    If the C compiler is not in @sc{ansi} C mode by default, try to add an
4774    option to output variable @code{CC} to make it so.  This macro tries
4775    various options that select @sc{ansi} C on some system or another.  It
4776    considers the compiler to be in @sc{ansi} C mode if it handles function
4777    prototypes correctly.
4778    
4779    After calling this macro you can check whether the C compiler has been
4780    set to accept @sc{ansi} C; if not, the shell variable
4781    @code{ac_cv_prog_cc_stdc} is set to @samp{no}.  If you wrote your source
4782    code in @sc{ansi} C, you can make an un-@sc{ansi}fied copy of it by
4783    using the program @code{ansi2knr}, which comes with Automake.  See also
4784    under @code{AC_C_PROTOTYPES} below.
4785    
4786  If using the @sc{gnu} C compiler, set shell variable @code{GCC} to  If using the @sc{gnu} C compiler, set shell variable @code{GCC} to
4787  @samp{yes}.  If output variable @code{CFLAGS} was not already set, set  @samp{yes}.  If output variable @code{CFLAGS} was not already set, set
4788  it to @option{-g -O2} for the @sc{gnu} C compiler (@option{-O2} on systems  it to @option{-g -O2} for the @sc{gnu} C compiler (@option{-O2} on systems
# Line 4787  macro was created for @sc{gnu} Make to c Line 4800  macro was created for @sc{gnu} Make to c
4800  rule.  rule.
4801  @end defmac  @end defmac
4802    
 @defmac AC_PROG_CC_STDC  
 @acindex PROG_CC_STDC  
 @ovindex CC  
 If the C compiler is not in @sc{ansi} C mode by default, try to add an  
 option to output variable @code{CC} to make it so.  This macro tries  
 various options that select @sc{ansi} C on some system or another.  It  
 considers the compiler to be in @sc{ansi} C mode if it handles function  
 prototypes correctly.  
   
 If you use this macro, you should check after calling it whether the C  
 compiler has been set to accept @sc{ansi} C; if not, the shell variable  
 @code{ac_cv_prog_cc_stdc} is set to @samp{no}.  If you wrote your source  
 code in @sc{ansi} C, you can make an un-@sc{ansi}fied copy of it by  
 using the program @code{ansi2knr}, which comes with Automake.  
 @end defmac  
   
4803    
4804  @defmac AC_PROG_CPP  @defmac AC_PROG_CPP
4805  @acindex PROG_CPP  @acindex PROG_CPP
# Line 4941  found in macros such as this: Line 4938  found in macros such as this:
4938  @cvindex PROTOTYPES  @cvindex PROTOTYPES
4939  @cvindex __PROTOTYPES  @cvindex __PROTOTYPES
4940  @cvindex PARAMS  @cvindex PARAMS
4941  Check to see if function prototypes are understood by the compiler.  If  If function prototypes are understood by the compiler (as determined by
4942  so, define @code{PROTOTYPES} and @code{__PROTOTYPES}.  @code{AC_PROG_CC}), define @code{PROTOTYPES} and @code{__PROTOTYPES}.
4943  In the case the compiler does not handle  In the case the compiler does not handle
4944  prototypes, you should use @code{ansi2knr}, which comes with the  prototypes, you should use @code{ansi2knr}, which comes with the
4945  Automake distribution, to unprotoize function definitions.  For  Automake distribution, to unprotoize function definitions.  For
# Line 11819  AC_CONFIG_COMMANDS([default], [[echo "Sq Line 11816  AC_CONFIG_COMMANDS([default], [[echo "Sq
11816  @code{AC_PREFIX_PROGRAM}  @code{AC_PREFIX_PROGRAM}
11817  @end defmac  @end defmac
11818    
11819    @defmac AC_PROG_CC_STDC
11820    @acindex PROG_CC_STDC
11821    This macro has been integrated into @code{AC_PROG_CC_STDC}.
11822    @end defmac
11823    
11824  @defmac AC_PROGRAMS_CHECK  @defmac AC_PROGRAMS_CHECK
11825  @acindex PROGRAMS_CHECK  @acindex PROGRAMS_CHECK
11826  @code{AC_CHECK_PROGS}  @code{AC_CHECK_PROGS}

Legend:
Removed from v.1.605  
changed lines
  Added in v.1.606

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26