wireshark_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
+if HAVE_WIRESHARK_CPP
+nodist_EXTRA_wireshark_SOURCES = dummy.cpp
+endif
+
if ENABLE_STATIC
tshark_LDFLAGS = -Wl,-static -all-static
else
# 2.32.0: 24 Mar 2012
# 2.34.0: 24 Sep 2012
+have_wireshark_cpp="false"
if test "$have_gtk" = "no" ; then
#
# We don't have GTK+.
#
wireshark_bin="wireshark\$(EXEEXT)"
wireshark_ui_lib="ui/qt/libqtui.a"
+ # Give automake a hint that it needs to use c++ linking.
+ have_wireshark_cpp="true"
wireshark_man="wireshark.1"
wireshark_SUBDIRS="codecs ui/qt"
else
wireshark_bin="wireshark\$(EXEEXT)"
wireshark_ui_lib="ui/gtk/libgtkui.a"
wireshark_man="wireshark.1"
- wireshark_SUBDIRS="codecs ui/gtk"
+ wireshark_SUBDIRS="codecs ui/gtk"
# Don't use GLIB_CFLAGS
AM_PATH_GLIB_2_0(2.14.0, , AC_MSG_ERROR(GLib 2.14 or later distribution not found.), gthread gmodule)
AC_SUBST(wireshark_bin)
AC_SUBST(wireshark_ui_lib)
AC_SUBST(wireshark_man)
+AM_CONDITIONAL(HAVE_WIRESHARK_CPP, test "$have_wireshark_cpp" = "true")
# Enable/disable tshark