doc: Improve doc about gl_EARLY.
authorBruno Haible <bruno@clisp.org>
Thu, 29 Sep 2011 08:50:37 +0000 (10:50 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 29 Sep 2011 08:50:37 +0000 (10:50 +0200)
* doc/gnulib-tool.texi (Initial import): Mention where to place an
AC_PROG_CC_STDC invocation.
Reported by Gary V. Vaughan <gary@vaughan.pe>.

ChangeLog
doc/gnulib-tool.texi

index 349bb17..067c515 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-09-29  Bruno Haible  <bruno@clisp.org>
+
+       doc: Improve doc about gl_EARLY.
+       * doc/gnulib-tool.texi (Initial import): Mention where to place an
+       AC_PROG_CC_STDC invocation.
+       Reported by Gary V. Vaughan <gary@vaughan.pe>.
+
 2011-09-28  Bruno Haible  <bruno@clisp.org>
 
        fgetc, fputc, fread, fwrite tests: Fix link error.
index 7581d81..adeb229 100644 (file)
@@ -217,6 +217,17 @@ gl_EARLY
 ...
 @end example
 
+If you are using @code{AC_PROG_CC_STDC}, the macro @code{gl_EARLY} must
+be called after it, like this:
+
+@example
+...
+AC_PROG_CC
+AC_PROG_CC_STDC
+gl_EARLY
+...
+@end example
+
 The core part of the gnulib checks are done by the macro
 @code{gl_INIT}.  Place it further down in the file, typically where
 you normally check for header files or functions.  It must come after