SUBDIRS+=pgsql
endif
+ifeq (x@HAVE_PCAP_H@,x)
+else
+SUBDIRS+=pcap
+endif
+
# Normally You should not need to change anything below
all: recurse ulogd
# Names of the plugins to be compiled
-ULOGD_SL:=BASE OPRINT PWSNIFF LOGEMU PCAP LOCALTIME
+ULOGD_SL:=BASE OPRINT PWSNIFF LOGEMU LOCALTIME
# mysql output support
#ULOGD_SL+=MYSQL
dnl Checks for libraries.
AC_CHECK_LIB(dl, dlopen)
+AC_CHECK_HEADERS(pcap.h)
dnl Checks for header files.
AC_HEADER_DIRENT
AC_SUBST(EXTRA_MYSQL_DEF)
AC_SUBST(DATABASE_DRIVERS)
+AC_SUBST(HAVE_PCAP_H)
AM_CONDITIONAL(HAVE_MYSQL, test x$mysqldir != x)
AM_CONDITIONAL(HAVE_PGSQL, test x$pgsqldir != x)
-AC_OUTPUT(extensions/Makefile doc/Makefile conffile/Makefile libipulog/Makefile mysql/Makefile pgsql/Makefile Makefile Rules.make)
+AC_OUTPUT(extensions/Makefile doc/Makefile conffile/Makefile libipulog/Makefile mysql/Makefile pgsql/Makefile pcap/Makefile Makefile Rules.make)
--- /dev/null
+#
+
+# Normally You should not need to change anything below
+#
+include @top_srcdir@/Rules.make
+
+CFLAGS+=-I@top_srcdir@ -I@top_srcdir@/libipulog/include -I@top_srcdir@/conffile
+SH_CFLAGS:=$(CFLAGS) -fPIC
+
+SHARED_LIBS=ulogd_PCAP.so
+
+all: $(SHARED_LIBS)
+
+distrib:
+
+$(SHARED_LIBS): %.so: %_sh.o
+ ld -shared -o $@ $<
+
+%_sh.o: %.c
+ $(CC) $(SH_CFLAGS) -o $@ -c $<
+
+clean:
+ rm -f $(SHARED_LIBS) *.o
+
+distclean:
+ rm -f Makefile
+
+install: all
+ @INSTALL@ -m 755 -d $(DESTDIR)$(ULOGD_LIB_PATH)
+ @INSTALL@ -m 755 *.so $(DESTDIR)$(ULOGD_LIB_PATH)
-/* ulogd_PCAP.c, Version $Revision: 1.9 $
+/* ulogd_PCAP.c, Version $Revision: 1.1 $
*
* ulogd output target for writing pcap-style files (like tcpdump)
*
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
- * $Id: ulogd_LOGEMU.c,v 1.9 2002/04/27 19:45:51 laforge Exp $
+ * $Id: ulogd_PCAP.c,v 1.1 2002/06/13 12:55:21 laforge Exp $
*
*/