@rawshark_bin@
EXTRA_PROGRAMS = wireshark tshark capinfos editcap mergecap dftest \
- randpkt text2pcap dumpcap reordercap rawshark
+ randpkt text2pcap dumpcap reordercap rawshark \
+ wireshark_c wireshark_cxx
#
# Wireshark configuration files are put in $(pkgdatadir).
wireshark_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
-if HAVE_WIRESHARK_CPP
# Ideally we could trigger automatic c++ linking here with
# nodist_EXTRA_wireshark_SOURCES = dummy.cpp
-# Unfortunately that check is done by automake and not configure
-# c++ linking for Wireshark at all times.
-wireshark_LDFLAGS += -lstdc++
+# Unfortunately that check is done by automake and not configure.
+# We do the following to try to avoid c++ linking for Wireshark at
+# all times.
+nodist_EXTRA_wireshark_cxx_SOURCES = dummy.cpp
+wireshark_c_CFLAGS = $(wireshark_CFLAGS)
+wireshark_c_LDFLAGS = $(wireshark_LDFLAGS)
+wireshark_cxx_CFLAGS = $(wireshark_CFLAGS)
+wireshark_cxx_LDFLAGS = $(wireshark_LDFLAGS)
+
+if HAVE_WIRESHARK_CXX
+wireshark_LINK = $(wireshark_cxx_LINK)
+else
+wireshark_LINK = $(wireshark_c_LINK)
endif
if ENABLE_STATIC
# 2.32.0: 24 Mar 2012
# 2.34.0: 24 Sep 2012
-have_wireshark_cpp="false"
+have_wireshark_cxx="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"
+ have_wireshark_cxx="true"
wireshark_man="wireshark.1"
wireshark_SUBDIRS="codecs ui/qt"
else
AC_SUBST(wireshark_bin)
AC_SUBST(wireshark_ui_lib)
AC_SUBST(wireshark_man)
-AM_CONDITIONAL(HAVE_WIRESHARK_CPP, test "$have_wireshark_cpp" = "true")
+AM_CONDITIONAL(HAVE_WIRESHARK_CXX, test "$have_wireshark_cxx" = "true")
# Enable/disable tshark