[augeas-devel] [PATCH 3 of 7] Use autoheader and generate config.h

David Lutterkort dlutter at redhat.com
Thu May 29 23:56:45 UTC 2008


21 files changed, 35 insertions(+)
.hgignore       |    1 +
autogen.sh      |    1 +
configure.ac    |    2 ++
src/augeas.c    |    1 +
src/augparse.c  |    1 +
src/augtool.c   |    1 +
src/builtin.c   |    1 +
src/fa.c        |    1 +
src/get.c       |    2 ++
src/hash.c      |    2 ++
src/internal.c  |    2 ++
src/lens.c      |    2 ++
src/lexer.l     |    2 ++
src/memory.c    |    2 ++
src/parser.y    |    2 ++
src/put.c       |    2 ++
src/regexp.c    |    2 ++
src/syntax.c    |    2 ++
src/transform.c |    2 ++
tests/cutest.c  |    2 ++
tests/fatest.c  |    2 ++


# HG changeset patch
# User David Lutterkort <dlutter at redhat.com>
# Date 1212104447 25200
# Node ID 9db8dee781f59e68df1d8936f15c32c7e890a31c
# Parent  15f4b0a2233f3be09f47f5e7993ce8b950bb6956
Use autoheader and generate config.h

diff -r 15f4b0a2233f -r 9db8dee781f5 .hgignore
--- a/.hgignore	Thu May 29 16:40:41 2008 -0700
+++ b/.hgignore	Thu May 29 16:40:47 2008 -0700
@@ -1,6 +1,7 @@
 .*~$
 ^augeas\.(pc|spec)$
 ^build/
+^config\.h(\.in)?$
 ^aclocal\.m4$
 ^autom4te\.cache/
 Makefile(\.in)?$
diff -r 15f4b0a2233f -r 9db8dee781f5 autogen.sh
--- a/autogen.sh	Thu May 29 16:40:41 2008 -0700
+++ b/autogen.sh	Thu May 29 16:40:47 2008 -0700
@@ -45,6 +45,7 @@ fi
 
 aclocal
 $LIBTOOLIZE --force
+autoheader
 automake --add-missing
 autoconf
 
diff -r 15f4b0a2233f -r 9db8dee781f5 configure.ac
--- a/configure.ac	Thu May 29 16:40:41 2008 -0700
+++ b/configure.ac	Thu May 29 16:40:47 2008 -0700
@@ -1,4 +1,6 @@ AC_INIT(augeas, 0.1.1)
 AC_INIT(augeas, 0.1.1)
+AC_CONFIG_SRCDIR([src/augeas.c])
+AM_CONFIG_HEADER([config.h])
 AM_INIT_AUTOMAKE([-Wno-portability])
 
 AC_GNU_SOURCE
diff -r 15f4b0a2233f -r 9db8dee781f5 src/augeas.c
--- a/src/augeas.c	Thu May 29 16:40:41 2008 -0700
+++ b/src/augeas.c	Thu May 29 16:40:47 2008 -0700
@@ -20,6 +20,7 @@
  * Author: David Lutterkort <dlutter at redhat.com>
  */
 
+#include <config.h>
 #include "augeas.h"
 #include "internal.h"
 #include "memory.h"
diff -r 15f4b0a2233f -r 9db8dee781f5 src/augparse.c
--- a/src/augparse.c	Thu May 29 16:40:41 2008 -0700
+++ b/src/augparse.c	Thu May 29 16:40:47 2008 -0700
@@ -20,6 +20,7 @@
  * Author: David Lutterkort <dlutter at redhat.com>
  */
 
+#include <config.h>
 #include <argz.h>
 
 #include "list.h"
diff -r 15f4b0a2233f -r 9db8dee781f5 src/augtool.c
--- a/src/augtool.c	Thu May 29 16:40:41 2008 -0700
+++ b/src/augtool.c	Thu May 29 16:40:47 2008 -0700
@@ -20,6 +20,7 @@
  * Author: David Lutterkort <dlutter at redhat.com>
  */
 
+#include <config.h>
 #include "augeas.h"
 #include "internal.h"
 
diff -r 15f4b0a2233f -r 9db8dee781f5 src/builtin.c
--- a/src/builtin.c	Thu May 29 16:40:41 2008 -0700
+++ b/src/builtin.c	Thu May 29 16:40:47 2008 -0700
@@ -20,6 +20,7 @@
  * Author: David Lutterkort <dlutter at redhat.com>
  */
 
+#include <config.h>
 #include <stdio.h>
 #include <stdarg.h>
 
diff -r 15f4b0a2233f -r 9db8dee781f5 src/fa.c
--- a/src/fa.c	Thu May 29 16:40:41 2008 -0700
+++ b/src/fa.c	Thu May 29 16:40:47 2008 -0700
@@ -29,6 +29,7 @@
  * subset of what Automaton provides is implemented here.
  */
 
+#include <config.h>
 #include <limits.h>
 #include <ctype.h>
 
diff -r 15f4b0a2233f -r 9db8dee781f5 src/get.c
--- a/src/get.c	Thu May 29 16:40:41 2008 -0700
+++ b/src/get.c	Thu May 29 16:40:47 2008 -0700
@@ -19,6 +19,8 @@
  *
  * Author: David Lutterkort <dlutter at redhat.com>
  */
+
+#include <config.h>
 
 #include <regex.h>
 #include <stdarg.h>
diff -r 15f4b0a2233f -r 9db8dee781f5 src/hash.c
--- a/src/hash.c	Thu May 29 16:40:41 2008 -0700
+++ b/src/hash.c	Thu May 29 16:40:47 2008 -0700
@@ -21,6 +21,8 @@
  *            David Lutterkort <dlutter at redhat.com>
  *
  */
+
+#include <config.h>
 
 #include <stdlib.h>
 #include <stddef.h>
diff -r 15f4b0a2233f -r 9db8dee781f5 src/internal.c
--- a/src/internal.c	Thu May 29 16:40:41 2008 -0700
+++ b/src/internal.c	Thu May 29 16:40:47 2008 -0700
@@ -19,6 +19,8 @@
  *
  * Author: David Lutterkort <dlutter at redhat.com>
  */
+
+#include <config.h>
 
 #include <ctype.h>
 #include <stdarg.h>
diff -r 15f4b0a2233f -r 9db8dee781f5 src/lens.c
--- a/src/lens.c	Thu May 29 16:40:41 2008 -0700
+++ b/src/lens.c	Thu May 29 16:40:47 2008 -0700
@@ -19,6 +19,8 @@
  *
  * Author: David Lutterkort <dlutter at redhat.com>
  */
+
+#include <config.h>
 
 #include "lens.h"
 #include "memory.h"
diff -r 15f4b0a2233f -r 9db8dee781f5 src/lexer.l
--- a/src/lexer.l	Thu May 29 16:40:41 2008 -0700
+++ b/src/lexer.l	Thu May 29 16:40:47 2008 -0700
@@ -6,6 +6,8 @@
 %option outfile="lex.yy.c" prefix="augl_"
 
 %{
+#include <config.h>
+
 #include "syntax.h"
 
 typedef struct info YYLTYPE;
diff -r 15f4b0a2233f -r 9db8dee781f5 src/memory.c
--- a/src/memory.c	Thu May 29 16:40:41 2008 -0700
+++ b/src/memory.c	Thu May 29 16:40:47 2008 -0700
@@ -18,6 +18,8 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
  *
  */
+
+#include <config.h>
 
 #include <stdlib.h>
 #include <stddef.h>
diff -r 15f4b0a2233f -r 9db8dee781f5 src/parser.y
--- a/src/parser.y	Thu May 29 16:40:41 2008 -0700
+++ b/src/parser.y	Thu May 29 16:40:47 2008 -0700
@@ -1,4 +1,6 @@
 %{
+
+#include <config.h>
 
 #include "internal.h"
 #include "syntax.h"
diff -r 15f4b0a2233f -r 9db8dee781f5 src/put.c
--- a/src/put.c	Thu May 29 16:40:41 2008 -0700
+++ b/src/put.c	Thu May 29 16:40:47 2008 -0700
@@ -19,6 +19,8 @@
  *
  * Author: David Lutterkort <dlutter at redhat.com>
  */
+
+#include <config.h>
 
 #include <stdarg.h>
 #include "syntax.h"
diff -r 15f4b0a2233f -r 9db8dee781f5 src/regexp.c
--- a/src/regexp.c	Thu May 29 16:40:41 2008 -0700
+++ b/src/regexp.c	Thu May 29 16:40:47 2008 -0700
@@ -19,6 +19,8 @@
  *
  * Author: David Lutterkort <dlutter at redhat.com>
  */
+
+#include <config.h>
 
 #include "syntax.h"
 #include "memory.h"
diff -r 15f4b0a2233f -r 9db8dee781f5 src/syntax.c
--- a/src/syntax.c	Thu May 29 16:40:41 2008 -0700
+++ b/src/syntax.c	Thu May 29 16:40:47 2008 -0700
@@ -19,6 +19,8 @@
  *
  * Author: David Lutterkort <dlutter at redhat.com>
  */
+
+#include <config.h>
 
 #include <assert.h>
 #include <stdarg.h>
diff -r 15f4b0a2233f -r 9db8dee781f5 src/transform.c
--- a/src/transform.c	Thu May 29 16:40:41 2008 -0700
+++ b/src/transform.c	Thu May 29 16:40:47 2008 -0700
@@ -19,6 +19,8 @@
  *
  * Author: David Lutterkort <dlutter at redhat.com>
  */
+
+#include <config.h>
 
 #include <fnmatch.h>
 #include <glob.h>
diff -r 15f4b0a2233f -r 9db8dee781f5 tests/cutest.c
--- a/tests/cutest.c	Thu May 29 16:40:41 2008 -0700
+++ b/tests/cutest.c	Thu May 29 16:40:47 2008 -0700
@@ -25,6 +25,8 @@
  *
  * 3. This notice may not be removed or altered from any source distribution.
  */
+
+#include <config.h>
 
 #include <assert.h>
 #include <setjmp.h>
diff -r 15f4b0a2233f -r 9db8dee781f5 tests/fatest.c
--- a/tests/fatest.c	Thu May 29 16:40:41 2008 -0700
+++ b/tests/fatest.c	Thu May 29 16:40:47 2008 -0700
@@ -19,6 +19,8 @@
  *
  * Author: David Lutterkort <dlutter at redhat.com>
  */
+
+#include <config.h>
 
 #include "fa.h"
 #include "cutest.h"




More information about the augeas-devel mailing list