summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore2
-rw-r--r--configure.ac2
-rw-r--r--lib/dep.c4
-rw-r--r--lib/initd-list.c3
-rw-r--r--lib/initd.c3
-rw-r--r--lib/parse.c4
-rw-r--r--lib/prov.c4
-rw-r--r--lib/str.c4
-rw-r--r--lib/strarg.c3
-rw-r--r--test/tdep.c3
-rw-r--r--test/tinitd-list.c3
-rw-r--r--test/tinitd.c3
-rw-r--r--test/tparse.c3
-rw-r--r--test/tstr.c3
-rw-r--r--test/tstrarg.c3
15 files changed, 43 insertions, 4 deletions
diff --git a/.gitignore b/.gitignore
index ee63fa7..df14775 100644
--- a/.gitignore
+++ b/.gitignore
@@ -9,7 +9,9 @@ Makefile.in
Makefile
aclocal.m4
config.cache
+config.h*
config.log
config.status
configure
libtool
+stamp-h*
diff --git a/configure.ac b/configure.ac
index 000849d..2994e77 100644
--- a/configure.ac
+++ b/configure.ac
@@ -7,6 +7,8 @@ AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [:])
AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [:])
AC_PROG_LIBTOOL
+AC_CONFIG_HEADERS([config.h])
+
if test "x$GCC" = xyes; then
CFLAGS="$CFLAGS -Wall"
fi
diff --git a/lib/dep.c b/lib/dep.c
index 3a2fdf2..a6b79f2 100644
--- a/lib/dep.c
+++ b/lib/dep.c
@@ -1,5 +1,7 @@
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
#define _GNU_SOURCE
-
#include <stdlib.h>
#include <string.h>
#include <error.h>
diff --git a/lib/initd-list.c b/lib/initd-list.c
index 737f83d..5217aa1 100644
--- a/lib/initd-list.c
+++ b/lib/initd-list.c
@@ -1,3 +1,6 @@
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
#include <stdlib.h>
#include <error.h>
#include <errno.h>
diff --git a/lib/initd.c b/lib/initd.c
index 6371238..05e9fcf 100644
--- a/lib/initd.c
+++ b/lib/initd.c
@@ -1,3 +1,6 @@
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
#include <stdlib.h>
#include <string.h>
#include <error.h>
diff --git a/lib/parse.c b/lib/parse.c
index d115ed3..dc0169f 100644
--- a/lib/parse.c
+++ b/lib/parse.c
@@ -1,7 +1,9 @@
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
-
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/lib/prov.c b/lib/prov.c
index c022acd..22123f9 100644
--- a/lib/prov.c
+++ b/lib/prov.c
@@ -1,5 +1,7 @@
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
#define _GNU_SOURCE
-
#include <stdlib.h>
#include <string.h>
#include <error.h>
diff --git a/lib/str.c b/lib/str.c
index 8269632..43e450f 100644
--- a/lib/str.c
+++ b/lib/str.c
@@ -1,5 +1,7 @@
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
#define _GNU_SOURCE
-
#include <string.h>
#include <error.h>
#include <errno.h>
diff --git a/lib/strarg.c b/lib/strarg.c
index 3ad3767..9963501 100644
--- a/lib/strarg.c
+++ b/lib/strarg.c
@@ -1,3 +1,6 @@
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
#include <stdlib.h>
#include <error.h>
#include <errno.h>
diff --git a/test/tdep.c b/test/tdep.c
index 3cc0c86..b88919e 100644
--- a/test/tdep.c
+++ b/test/tdep.c
@@ -1,3 +1,6 @@
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
#include <stdio.h>
#include <string.h>
#include "dep.h"
diff --git a/test/tinitd-list.c b/test/tinitd-list.c
index 4609889..3c5ec80 100644
--- a/test/tinitd-list.c
+++ b/test/tinitd-list.c
@@ -1,3 +1,6 @@
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
#include <stdio.h>
#include <stdlib.h>
#include "initd.h"
diff --git a/test/tinitd.c b/test/tinitd.c
index 4a7b088..399c0b3 100644
--- a/test/tinitd.c
+++ b/test/tinitd.c
@@ -1,3 +1,6 @@
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
#include <stdio.h>
#include <string.h>
#include "initd.h"
diff --git a/test/tparse.c b/test/tparse.c
index ecf1d3a..7f8a067 100644
--- a/test/tparse.c
+++ b/test/tparse.c
@@ -1,3 +1,6 @@
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
#include <stdlib.h>
#include <stdio.h>
#include "initd.h"
diff --git a/test/tstr.c b/test/tstr.c
index 0e544db..a200b8c 100644
--- a/test/tstr.c
+++ b/test/tstr.c
@@ -1,3 +1,6 @@
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
#include <stdio.h>
#include <string.h>
#include "str.h"
diff --git a/test/tstrarg.c b/test/tstrarg.c
index 6a99693..2945536 100644
--- a/test/tstrarg.c
+++ b/test/tstrarg.c
@@ -1,3 +1,6 @@
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
#include <stdlib.h>
#include <stdio.h>
#include "str.h"