@dftest_bin@ \
@dumpcap_bin@ \
@reordercap_bin@ \
- @rawshark_bin@
+ @rawshark_bin@ \
+ @echld_test_bin@
+
EXTRA_PROGRAMS = wireshark tshark capinfos editcap mergecap dftest \
- randpkt text2pcap dumpcap reordercap rawshark wireshark_cxx
+ randpkt text2pcap dumpcap reordercap rawshark wireshark_cxx echld_test
+
+
#
# Wireshark configuration files are put in $(pkgdatadir).
@LIBSMI_LDFLAGS@
dftest_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
+echld_test_LDADD = \
+ epan/libwireshark.la \
+ echld/libechld.la \
+ wsutil/libwsutil.la \
+ @GLIB_LIBS@ -lm \
+ @PCAP_LIBS@ \
+ @SOCKET_LIBS@ \
+ @NSL_LIBS@ \
+ @C_ARES_LIBS@ \
+ @ADNS_LIBS@
+
+echld_test_CFLAGS = $(AM_CLEAN_CFLAGS)
+
+
# Libraries with which to link dumpcap.
dumpcap_LDADD = \
wsutil/libwsutil.la \
endif
-DIST_SUBDIRS = asn1 codecs doc epan ui ui/cli ui/gtk ui/qt help packaging plugins tools wiretap wsutil docbook
+DIST_SUBDIRS = asn1 codecs doc epan echld ui ui/cli ui/gtk ui/qt help packaging plugins tools wiretap wsutil docbook
if HAVE_PLUGINS
-SUBDIRS = tools wsutil wiretap epan plugins packaging help ui @wireshark_SUBDIRS@ ui/cli . doc
+SDIRS = tools wsutil wiretap epan plugins packaging help ui @wireshark_SUBDIRS@ ui/cli . doc
+else
+SDIRS = tools wsutil wiretap epan packaging help ui @wireshark_SUBDIRS@ ui/cli . doc
+endif
+
+if HAVE_ECHLD
+SUBDIRS = echld $(SDIRS)
else
-SUBDIRS = tools wsutil wiretap epan packaging help ui @wireshark_SUBDIRS@ ui/cli . doc
+SUBDIRS = $(SDIRS)
endif
help/faq.txt: $(srcdir)/help/faq.py
AC_SUBST(editcap_bin)
AC_SUBST(editcap_man)
+
+
+# Enable/disable echld
+
+AC_ARG_WITH(echld,
+ AC_HELP_STRING( [--with-echld],
+ [support echld]),
+[
+ if test "x$withval" = "xno"; then
+ have_echld="no"
+ else
+ have_echld="$withval"
+ fi
+])
+AM_CONDITIONAL(HAVE_ECHLD, test "x$have_echld" = "xyes")
+if test "x$have_echld" = xyes
+then
+ AC_DEFINE(HAVE_ECHLD, 1, [Define if echld is enabled])
+ echld_test_bin="echld_test\$(EXEEXT)"
+else
+ have_echld="no"
+ echld_test_bin=""
+fi
+AC_SUBST(echld_test_bin)
+
+
# Enabling/disabling of dumpcap is done later (after we know if we have PCAP
# or not)
tools/lemon/Makefile
wiretap/Makefile
wsutil/Makefile
+ echld/Makefile
_CUSTOM_AC_OUTPUT_
,)
dnl AC_CONFIG_FILES([tools/setuid-root.pl], [chmod +x tools/setuid-root.pl])
echo " Build randpkt : $enable_randpkt"
echo " Build dftest : $enable_dftest"
echo " Build rawshark : $enable_rawshark"
+echo " Build echld : $have_echld"
echo ""
echo " Save files as pcap-ng by default : $enable_pcap_ng_default"
echo " Install dumpcap with capabilities : $setcap_message"