summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2005-05-06 16:37:33 +0000
committerLennart Poettering <lennart@poettering.net>2005-05-06 16:37:33 +0000
commiteca309458f9521a2e3276dc11a1792d5f2e227e4 (patch)
tree18d75f9654a9558ce96025c06baf171b9bc5c0ce
parent876fead3c8984cf985cca439bfb4c7d31c01ccc9 (diff)
add config.h inclusion to all *.c files
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@55 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
-rw-r--r--configure.ac19
-rw-r--r--libavahi-core/address.c25
-rw-r--r--libavahi-core/announce.c4
-rw-r--r--libavahi-core/avahi-test.c4
-rw-r--r--libavahi-core/cache.c4
-rw-r--r--libavahi-core/dns-test.c4
-rw-r--r--libavahi-core/dns.c4
-rw-r--r--libavahi-core/domain-test.c4
-rw-r--r--libavahi-core/iface.c4
-rw-r--r--libavahi-core/netlink.c4
-rw-r--r--libavahi-core/prioq-test.c4
-rw-r--r--libavahi-core/prioq.c4
-rw-r--r--libavahi-core/psched.c4
-rw-r--r--libavahi-core/rr.c4
-rw-r--r--libavahi-core/server.c4
-rw-r--r--libavahi-core/socket.c4
-rw-r--r--libavahi-core/strlst-test.c4
-rw-r--r--libavahi-core/strlst.c4
-rw-r--r--libavahi-core/subscribe.c4
-rw-r--r--libavahi-core/timeeventq.c4
-rw-r--r--libavahi-core/util.c4
21 files changed, 120 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index ca0f216..40373df 100644
--- a/configure.ac
+++ b/configure.ac
@@ -35,10 +35,29 @@ fi
# Checks for programs.
AC_PROG_CC
+AC_PROG_CPP
+AC_PROG_INSTALL
+AC_PROG_LN_S
+AC_PROG_MAKE_SET
# libtool stuff
AC_PROG_LIBTOOL
+# Checks for header files.
+AC_HEADER_STDC
+AC_CHECK_HEADERS([arpa/inet.h fcntl.h inttypes.h limits.h netinet/in.h stdlib.h string.h sys/ioctl.h sys/socket.h sys/time.h unistd.h])
+
+# Checks for typedefs, structures, and compiler characteristics.
+AC_C_CONST
+AC_TYPE_SIZE_T
+AC_HEADER_TIME
+
+# Checks for library functions.
+AC_FUNC_MEMCMP
+AC_FUNC_SELECT_ARGTYPES
+AC_CHECK_FUNCS([gethostname memset select socket strchr strcspn strerror uname])
+
+# Check for GLIB 2.0
PKG_CHECK_MODULES(GLIB20, [ glib-2.0 >= 2.4.0 ])
AC_SUBST(GLIB20_CFLAGS)
AC_SUBST(GLIB20_LIBS)
diff --git a/libavahi-core/address.c b/libavahi-core/address.c
index e5f8866..34f8581 100644
--- a/libavahi-core/address.c
+++ b/libavahi-core/address.c
@@ -1,3 +1,28 @@
+/* $Id$ */
+
+/***
+ This file is part of avahi.
+
+ avahi is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation; either version 2.1 of the
+ License, or (at your option) any later version.
+
+ avahi is distributed in the hope that it will be useful, but WITHOUT
+ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+ or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
+ Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with avahi; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
+ USA.
+***/
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <sys/types.h>
#include <sys/socket.h>
#include <arpa/inet.h>
diff --git a/libavahi-core/announce.c b/libavahi-core/announce.c
index 3673ca2..dbad6c7 100644
--- a/libavahi-core/announce.c
+++ b/libavahi-core/announce.c
@@ -19,6 +19,10 @@
USA.
***/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "announce.h"
#include "util.h"
diff --git a/libavahi-core/avahi-test.c b/libavahi-core/avahi-test.c
index 260c6aa..1de97a0 100644
--- a/libavahi-core/avahi-test.c
+++ b/libavahi-core/avahi-test.c
@@ -19,6 +19,10 @@
USA.
***/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
diff --git a/libavahi-core/cache.c b/libavahi-core/cache.c
index 28d0d88..0307b8e 100644
--- a/libavahi-core/cache.c
+++ b/libavahi-core/cache.c
@@ -19,6 +19,10 @@
USA.
***/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <string.h>
#include "util.h"
diff --git a/libavahi-core/dns-test.c b/libavahi-core/dns-test.c
index 0d4500a..e0680c2 100644
--- a/libavahi-core/dns-test.c
+++ b/libavahi-core/dns-test.c
@@ -19,6 +19,10 @@
USA.
***/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "dns.h"
#include "util.h"
diff --git a/libavahi-core/dns.c b/libavahi-core/dns.c
index 99c6f73..cc1463a 100644
--- a/libavahi-core/dns.c
+++ b/libavahi-core/dns.c
@@ -19,6 +19,10 @@
USA.
***/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <netinet/in.h>
#include <stdlib.h>
diff --git a/libavahi-core/domain-test.c b/libavahi-core/domain-test.c
index 9a4a85a..7f6bd7b 100644
--- a/libavahi-core/domain-test.c
+++ b/libavahi-core/domain-test.c
@@ -19,6 +19,10 @@
USA.
***/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "util.h"
int main(int argc, char *argv[]) {
diff --git a/libavahi-core/iface.c b/libavahi-core/iface.c
index 2095e42..13ffcef 100644
--- a/libavahi-core/iface.c
+++ b/libavahi-core/iface.c
@@ -19,6 +19,10 @@
USA.
***/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <string.h>
#include <sys/socket.h>
#include <asm/types.h>
diff --git a/libavahi-core/netlink.c b/libavahi-core/netlink.c
index bd81829..92ed436 100644
--- a/libavahi-core/netlink.c
+++ b/libavahi-core/netlink.c
@@ -19,6 +19,10 @@
USA.
***/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <unistd.h>
#include <errno.h>
#include <string.h>
diff --git a/libavahi-core/prioq-test.c b/libavahi-core/prioq-test.c
index 160458d..28c734b 100644
--- a/libavahi-core/prioq-test.c
+++ b/libavahi-core/prioq-test.c
@@ -19,6 +19,10 @@
USA.
***/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <time.h>
#include <stdlib.h>
#include <stdio.h>
diff --git a/libavahi-core/prioq.c b/libavahi-core/prioq.c
index ad5948e..7e57ae5 100644
--- a/libavahi-core/prioq.c
+++ b/libavahi-core/prioq.c
@@ -19,6 +19,10 @@
USA.
***/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "prioq.h"
AvahiPrioQueue* avahi_prio_queue_new(gint (*compare) (gconstpointer a, gconstpointer b)) {
diff --git a/libavahi-core/psched.c b/libavahi-core/psched.c
index 03b065b..249e279 100644
--- a/libavahi-core/psched.c
+++ b/libavahi-core/psched.c
@@ -19,6 +19,10 @@
USA.
***/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <string.h>
#include "util.h"
diff --git a/libavahi-core/rr.c b/libavahi-core/rr.c
index ca339b2..cbc39a5 100644
--- a/libavahi-core/rr.c
+++ b/libavahi-core/rr.c
@@ -19,6 +19,10 @@
USA.
***/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <string.h>
#include <stdio.h>
#include <sys/types.h>
diff --git a/libavahi-core/server.c b/libavahi-core/server.c
index bc9b9ca..033622d 100644
--- a/libavahi-core/server.c
+++ b/libavahi-core/server.c
@@ -19,6 +19,10 @@
USA.
***/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <sys/socket.h>
#include <arpa/inet.h>
#include <string.h>
diff --git a/libavahi-core/socket.c b/libavahi-core/socket.c
index 59357ab..e59c78a 100644
--- a/libavahi-core/socket.c
+++ b/libavahi-core/socket.c
@@ -19,6 +19,10 @@
USA.
***/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <inttypes.h>
#include <errno.h>
#include <string.h>
diff --git a/libavahi-core/strlst-test.c b/libavahi-core/strlst-test.c
index 6a9bbf6..ebbf194 100644
--- a/libavahi-core/strlst-test.c
+++ b/libavahi-core/strlst-test.c
@@ -19,6 +19,10 @@
USA.
***/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <glib.h>
#include <stdio.h>
diff --git a/libavahi-core/strlst.c b/libavahi-core/strlst.c
index 94ff4db..ef9fa3e 100644
--- a/libavahi-core/strlst.c
+++ b/libavahi-core/strlst.c
@@ -19,6 +19,10 @@
USA.
***/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <string.h>
#include <stdarg.h>
diff --git a/libavahi-core/subscribe.c b/libavahi-core/subscribe.c
index df8ee05..00d3385 100644
--- a/libavahi-core/subscribe.c
+++ b/libavahi-core/subscribe.c
@@ -19,6 +19,10 @@
USA.
***/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "subscribe.h"
#include "util.h"
diff --git a/libavahi-core/timeeventq.c b/libavahi-core/timeeventq.c
index 8ac1108..efce7b7 100644
--- a/libavahi-core/timeeventq.c
+++ b/libavahi-core/timeeventq.c
@@ -19,6 +19,10 @@
USA.
***/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "timeeventq.h"
#include "util.h"
diff --git a/libavahi-core/util.c b/libavahi-core/util.c
index 77afb78..fa97eec 100644
--- a/libavahi-core/util.c
+++ b/libavahi-core/util.c
@@ -19,6 +19,10 @@
USA.
***/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <string.h>
#include <unistd.h>
#include <fcntl.h>