Remove autotools build system.
authorDario Lombardo <lomato@gmail.com>
Sun, 15 Apr 2018 21:40:36 +0000 (23:40 +0200)
committerAnders Broman <a.broman58@gmail.com>
Wed, 18 Apr 2018 03:46:17 +0000 (03:46 +0000)
It has been replaced by cmake.

Change-Id: I83a5eddb8645dbbf6bca9f026066d2e995d8e87a
Reviewed-on: https://code.wireshark.org/review/26969
Petri-Dish: Dario Lombardo <lomato@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
186 files changed:
.editorconfig
.gitignore
.travis.yml
Makefile.am [deleted file]
Makefile.am.inc [deleted file]
acinclude.m4 [deleted file]
autogen.sh [deleted file]
capchild/Makefile.am [deleted file]
caputils/Makefile.am [deleted file]
codecs/Makefile.am [deleted file]
configure.ac [deleted file]
debian/control
debian/patches/05_note-README-when-running-as-root.patch [deleted file]
debian/patches/06_release-version.patch [deleted file]
debian/patches/series
diameter/dictionary.xml
doc/Makefile.am [deleted file]
doc/README.dissector
doc/README.idl2wrs
doc/README.plugins
doc/README.wslua
doc/plugins.example/Makefile.am [deleted file]
docbook/Makefile.am [deleted file]
docbook/wsdg_src/WSDG_chapter_dissection.asciidoc
docbook/wsdg_src/WSDG_chapter_sources.asciidoc
docbook/wsdg_src/WSDG_chapter_userinterface.asciidoc
epan/Makefile.am [deleted file]
epan/crypt/Makefile.am [deleted file]
epan/dfilter/Makefile.am [deleted file]
epan/dissectors/Makefile.am [deleted file]
epan/dissectors/asn1/Custom.make [deleted file]
epan/dissectors/asn1/HI2Operations/Makefile.am [deleted file]
epan/dissectors/asn1/Makefile.am [deleted file]
epan/dissectors/asn1/acp133/Makefile.am [deleted file]
epan/dissectors/asn1/acse/Makefile.am [deleted file]
epan/dissectors/asn1/ansi_map/Makefile.am [deleted file]
epan/dissectors/asn1/ansi_tcap/Makefile.am [deleted file]
epan/dissectors/asn1/atn-cm/Makefile.am [deleted file]
epan/dissectors/asn1/atn-cpdlc/Makefile.am [deleted file]
epan/dissectors/asn1/atn-ulcs/Makefile.am [deleted file]
epan/dissectors/asn1/c1222/Makefile.am [deleted file]
epan/dissectors/asn1/camel/Makefile.am [deleted file]
epan/dissectors/asn1/cdt/Makefile.am [deleted file]
epan/dissectors/asn1/charging_ase/Makefile.am [deleted file]
epan/dissectors/asn1/cmip/Makefile.am [deleted file]
epan/dissectors/asn1/cmp/Makefile.am [deleted file]
epan/dissectors/asn1/cms/Makefile.am [deleted file]
epan/dissectors/asn1/credssp/Makefile.am [deleted file]
epan/dissectors/asn1/crmf/Makefile.am [deleted file]
epan/dissectors/asn1/dap/Makefile.am [deleted file]
epan/dissectors/asn1/disp/Makefile.am [deleted file]
epan/dissectors/asn1/dop/Makefile.am [deleted file]
epan/dissectors/asn1/dsp/Makefile.am [deleted file]
epan/dissectors/asn1/ess/Makefile.am [deleted file]
epan/dissectors/asn1/f1ap/Makefile.am [deleted file]
epan/dissectors/asn1/ftam/Makefile.am [deleted file]
epan/dissectors/asn1/goose/Makefile.am [deleted file]
epan/dissectors/asn1/gprscdr/Makefile.am [deleted file]
epan/dissectors/asn1/gsm_map/Makefile.am [deleted file]
epan/dissectors/asn1/h225/Makefile.am [deleted file]
epan/dissectors/asn1/h235/Makefile.am [deleted file]
epan/dissectors/asn1/h245/Makefile.am [deleted file]
epan/dissectors/asn1/h248/Makefile.am [deleted file]
epan/dissectors/asn1/h282/Makefile.am [deleted file]
epan/dissectors/asn1/h283/Makefile.am [deleted file]
epan/dissectors/asn1/h323/Makefile.am [deleted file]
epan/dissectors/asn1/h450-ros/Makefile.am [deleted file]
epan/dissectors/asn1/h450/Makefile.am [deleted file]
epan/dissectors/asn1/h460/Makefile.am [deleted file]
epan/dissectors/asn1/h501/Makefile.am [deleted file]
epan/dissectors/asn1/hnbap/Makefile.am [deleted file]
epan/dissectors/asn1/idmp/Makefile.am [deleted file]
epan/dissectors/asn1/ilp/Makefile.am [deleted file]
epan/dissectors/asn1/inap/Makefile.am [deleted file]
epan/dissectors/asn1/isdn-sup/Makefile.am [deleted file]
epan/dissectors/asn1/kerberos/Makefile.am [deleted file]
epan/dissectors/asn1/lcsap/Makefile.am [deleted file]
epan/dissectors/asn1/ldap/Makefile.am [deleted file]
epan/dissectors/asn1/logotypecertextn/Makefile.am [deleted file]
epan/dissectors/asn1/lpp/Makefile.am [deleted file]
epan/dissectors/asn1/lppa/Makefile.am [deleted file]
epan/dissectors/asn1/lppe/Makefile.am [deleted file]
epan/dissectors/asn1/lte-rrc/Makefile.am [deleted file]
epan/dissectors/asn1/m2ap/Makefile.am [deleted file]
epan/dissectors/asn1/m3ap/Makefile.am [deleted file]
epan/dissectors/asn1/mms/Makefile.am [deleted file]
epan/dissectors/asn1/mpeg-audio/Makefile.am [deleted file]
epan/dissectors/asn1/mpeg-pes/Makefile.am [deleted file]
epan/dissectors/asn1/mudurl/Makefile.am [deleted file]
epan/dissectors/asn1/nbap/Makefile.am [deleted file]
epan/dissectors/asn1/novell_pkis/Makefile.am [deleted file]
epan/dissectors/asn1/nr-rrc/Makefile.am [deleted file]
epan/dissectors/asn1/ns_cert_exts/Makefile.am [deleted file]
epan/dissectors/asn1/ocsp/Makefile.am [deleted file]
epan/dissectors/asn1/p1/Makefile.am [deleted file]
epan/dissectors/asn1/p22/Makefile.am [deleted file]
epan/dissectors/asn1/p7/Makefile.am [deleted file]
epan/dissectors/asn1/p772/Makefile.am [deleted file]
epan/dissectors/asn1/pcap/Makefile.am [deleted file]
epan/dissectors/asn1/pkcs1/Makefile.am [deleted file]
epan/dissectors/asn1/pkcs12/Makefile.am [deleted file]
epan/dissectors/asn1/pkinit/Makefile.am [deleted file]
epan/dissectors/asn1/pkix1explicit/Makefile.am [deleted file]
epan/dissectors/asn1/pkix1implicit/Makefile.am [deleted file]
epan/dissectors/asn1/pkixac/Makefile.am [deleted file]
epan/dissectors/asn1/pkixproxy/Makefile.am [deleted file]
epan/dissectors/asn1/pkixqualified/Makefile.am [deleted file]
epan/dissectors/asn1/pkixtsp/Makefile.am [deleted file]
epan/dissectors/asn1/pres/Makefile.am [deleted file]
epan/dissectors/asn1/q932-ros/Makefile.am [deleted file]
epan/dissectors/asn1/q932/Makefile.am [deleted file]
epan/dissectors/asn1/qsig/Makefile.am [deleted file]
epan/dissectors/asn1/ranap/Makefile.am [deleted file]
epan/dissectors/asn1/rnsap/Makefile.am [deleted file]
epan/dissectors/asn1/ros/Makefile.am [deleted file]
epan/dissectors/asn1/rrc/Makefile.am [deleted file]
epan/dissectors/asn1/rrlp/Makefile.am [deleted file]
epan/dissectors/asn1/rtse/Makefile.am [deleted file]
epan/dissectors/asn1/rua/Makefile.am [deleted file]
epan/dissectors/asn1/s1ap/Makefile.am [deleted file]
epan/dissectors/asn1/sabp/Makefile.am [deleted file]
epan/dissectors/asn1/sbc-ap/Makefile.am [deleted file]
epan/dissectors/asn1/smrse/Makefile.am [deleted file]
epan/dissectors/asn1/snmp/Makefile.am [deleted file]
epan/dissectors/asn1/spnego/Makefile.am [deleted file]
epan/dissectors/asn1/sv/Makefile.am [deleted file]
epan/dissectors/asn1/t124/Makefile.am [deleted file]
epan/dissectors/asn1/t125/Makefile.am [deleted file]
epan/dissectors/asn1/t38/Makefile.am [deleted file]
epan/dissectors/asn1/tcap/Makefile.am [deleted file]
epan/dissectors/asn1/tetra/Makefile.am [deleted file]
epan/dissectors/asn1/ulp/Makefile.am [deleted file]
epan/dissectors/asn1/wlancertextn/Makefile.am [deleted file]
epan/dissectors/asn1/x2ap/Makefile.am [deleted file]
epan/dissectors/asn1/x509af/Makefile.am [deleted file]
epan/dissectors/asn1/x509ce/Makefile.am [deleted file]
epan/dissectors/asn1/x509if/Makefile.am [deleted file]
epan/dissectors/asn1/x509sat/Makefile.am [deleted file]
epan/dissectors/dcerpc/Makefile.am [deleted file]
epan/ftypes/Makefile.am [deleted file]
epan/wmem/Makefile.am [deleted file]
epan/wslua/Makefile.am [deleted file]
epan/wslua/taps
extcap/Makefile.am [deleted file]
help/Makefile.am [deleted file]
make-version.pl
packaging/Makefile.am [deleted file]
packaging/macosx/Makefile.am [deleted file]
packaging/nsis/Makefile.am [deleted file]
packaging/rpm/Makefile.am [deleted file]
packaging/rpm/SPECS/Makefile.am [deleted file]
packaging/rpm/SPECS/wireshark.spec.in
packaging/rpm/wireshark.spec.in
packaging/wix/Makefile.am [deleted file]
plugins/Makefile.am [deleted file]
plugins/Makefile.am.inc [deleted file]
plugins/codecs/Makefile.am.inc [deleted file]
plugins/codecs/l16_mono/Makefile.am [deleted file]
plugins/epan/Makefile.am.inc [deleted file]
plugins/epan/ethercat/Makefile.am [deleted file]
plugins/epan/gryphon/Makefile.am [deleted file]
plugins/epan/irda/Makefile.am [deleted file]
plugins/epan/mate/Makefile.am [deleted file]
plugins/epan/opcua/Makefile.am [deleted file]
plugins/epan/pluginifdemo/Makefile.am [deleted file]
plugins/epan/profinet/Makefile.am [deleted file]
plugins/epan/stats_tree/Makefile.am [deleted file]
plugins/epan/transum/Makefile.am [deleted file]
plugins/epan/unistim/Makefile.am [deleted file]
plugins/epan/wimax/Makefile.am [deleted file]
plugins/epan/wimaxasncp/Makefile.am [deleted file]
plugins/epan/wimaxmacphy/Makefile.am [deleted file]
plugins/wiretap/Makefile.am.inc [deleted file]
plugins/wiretap/usbdump/Makefile.am [deleted file]
randpkt_core/Makefile.am [deleted file]
tools/Makefile.am [deleted file]
tools/asn2deb
tools/idl2deb
tools/lemon/Makefile.am [deleted file]
ui/Makefile.am [deleted file]
ui/cli/Makefile.am [deleted file]
ui/qt/Makefile.am [deleted file]
wiretap/Makefile.am [deleted file]
wiretap/README.developer
writecap/Makefile.am [deleted file]
wsutil/Makefile.am [deleted file]

index 6d83a185fba1fc378617ea8b8cf3d15934467041..291994504963d3482cebb68b572cfca731bde533 100644 (file)
@@ -16,7 +16,6 @@ trim_trailing_whitespace = true
 insert_final_newline = true
 
 # Autotools, Make
-[{Makefile.am,Makefile}]
 indent_style = tab
 indent_size = 8
 
index bda33a3724c0995d55f7c90b0b02bf3665cae8cd..3cdf3afecde4051d15f402d3946d62e261523100 100644 (file)
@@ -57,59 +57,6 @@ wiretap/version_info.c
 wireshark-tap-register.c
 ui/make-taps
 
-# Generated makefile system #
-#############################
-.dirstamp
-aclocal.m4
-androiddump
-autom4te.cache
-capinfos
-captype
-ciscodump
-compile
-config.h
-config.h.in
-config.cache
-config.log
-config.status
-configure
-depcomp
-dftest
-dumpcap
-editcap
-exntest
-fuzzshark
-install-sh
-libtool
-libtool.m4
-lt~obsolete.m4
-ltmain.sh
-ltoptions.m4
-ltsugar.m4
-ltversion.m4
-Makefile
-Makefile.in
-mergecap
-missing
-mmdbresolve
-oids_test
-randpkt
-randpktdump
-rawshark
-reordercap
-reassemble_test
-sharkd
-sshdump
-stamp-h1
-text2pcap
-tfshark
-tshark
-tvbtest
-udpdump
-wireshark
-wmem_test
-ylwrap
-
 # CMake #
 ##################
 CMakeCache.txt
@@ -131,15 +78,6 @@ epan/dissectors/asn1/*/*-stamp
 epan/dissectors/pidl/*-stamp
 epan/dissectors/dcerpc/*-stamp
 
-
-# Generated dir #
-##################
-.deps
-.libs
-packaging/rpm/RPMS
-packaging/rpm/SRPMS
-
-
 # Doc #
 ########
 *.html
index 4e260908872db2393622dce25aa1c1f0b23705f0..7cbed6d65bc28ea4a6b3a1ceed6cb28b51970fe6 100644 (file)
@@ -8,21 +8,13 @@ compiler:
   - clang
   - gcc
 env:
- - BUILD_CMAKE=yes
- - BUILD_CMAKE=yes CMAKE_OPTS="-DBUILD_wireshark_gtk=ON"
- - BUILD_CMAKE=yes CMAKE_OPTS="-DENABLE_PCAP=OFF"
- - BUILD_CMAKE=no AUTOTOOLS_OPTS="--with-gtk=3"
+ - CMAKE_OPTS="-DENABLE_PCAP=ON"
+ - CMAKE_OPTS="-DENABLE_PCAP=OFF"
 matrix:
   exclude:
   # Exclude gcc build (Need some work) with osx
   - os: osx
     compiler: gcc
-  # Exclude autotools build (missing libtool...) with osx
-  - os: osx
-    env: BUILD_CMAKE=no AUTOTOOLS_OPTS="--with-gtk=3"
-  # Exclude build with GTK+3
-  - os: osx
-    env: BUILD_CMAKE=yes CMAKE_OPTS="-DBUILD_wireshark_gtk=ON"
 before_install:
   - echo $TRAVIS_OS_NAME
   - $CC --version
@@ -38,6 +30,8 @@ before_install:
   - $CC --version
 before_script:
   - sudo gem install asciidoctor
-  - if [ ${BUILD_CMAKE} == "yes" ]; then mkdir build && cd build && cmake ${CMAKE_OPTS} ..; else ./autogen.sh && ./configure ${AUTOTOOLS_OPTS} ; fi
+  - mkdir build
+  - cd build
+  - cmake ${CMAKE_OPTS} ..
 script:
   - make
diff --git a/Makefile.am b/Makefile.am
deleted file mode 100644 (file)
index eed3dd2..0000000
+++ /dev/null
@@ -1,998 +0,0 @@
-# Makefile.am
-# Automake file for Wireshark
-#
-# Wireshark - Network traffic analyzer
-# By Gerald Combs <gerald@wireshark.org>
-# Copyright 1998 Gerald Combs
-#
-# This program is free software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program 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 General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-
-include ./Makefile.am.inc
-
-AM_DISTCHECK_CONFIGURE_FLAGS=@GUI_CONFIGURE_FLAGS@
-# Make sure to keep ACLOCAL_AMFLAGS in Makefile.am and AC_CONFIG_MACRO_DIRS
-# in configure.ac in sync, otherwise there will be an error running autogen.sh.
-ACLOCAL_AMFLAGS = -I m4
-
-# Common headers
-COMMONCPPFLAGS =
-
-AM_CPPFLAGS = $(INCLUDEDIRS) $(WS_CPPFLAGS) $(COMMONCPPFLAGS)
-
-bin_PROGRAMS = \
-       @capinfos_bin@          \
-       @captype_bin@           \
-       @dumpcap_bin@           \
-       @editcap_bin@           \
-       @mergecap_bin@          \
-       @mmdbresolve_bin@       \
-       @randpkt_bin@           \
-       @rawshark_bin@          \
-       @reordercap_bin@        \
-       @sharkd_bin@            \
-       @text2pcap_bin@         \
-       @tfshark_bin@           \
-       @tshark_bin@            \
-       @wireshark_bin@
-
-noinst_PROGRAMS = \
-       @dftest_bin@            \
-       @fuzzshark_bin@
-
-EXTRA_PROGRAMS = wireshark tshark tfshark capinfos captype \
-       editcap mergecap dftest randpkt text2pcap dumpcap reordercap \
-       mmdbresolve rawshark sharkd fuzzshark
-
-#
-# Wireshark configuration files are put in $(pkgdatadir).
-#
-dist_pkgdata_DATA = COPYING manuf services cfilters colorfilters dfilters \
-       smi_modules pdml2html.xsl enterprises.tsv wka
-
-pkgconfigdir = $(libdir)/pkgconfig
-pkgconfig_DATA = wireshark.pc
-
-#
-# Install global profiles in the "profiles" subdirectory
-#
-profilesdir = $(pkgdatadir)
-nobase_dist_profiles_DATA = \
-       profiles/Bluetooth/colorfilters \
-       profiles/Bluetooth/preferences \
-       profiles/Classic/colorfilters
-
-#
-# Install the Diameter DTD and XML files in the "diameter" subdirectory
-# of that directory.
-#
-diameterdir = $(pkgdatadir)/diameter
-include diameter/Custom.make
-dist_diameter_DATA = $(_CUSTOM_diameter_xml_files_) \
-       diameter/chargecontrol.xml \
-       diameter/Cisco.xml \
-       diameter/CiscoSystems.xml \
-       diameter/Custom.xml \
-       diameter/dictionary.dtd \
-       diameter/dictionary.xml \
-       diameter/eap.xml \
-       diameter/Ericsson.xml \
-       diameter/etsie2e4.xml \
-       diameter/Inovar.xml \
-       diameter/Juniper.xml \
-       diameter/mobileipv4.xml \
-       diameter/mobileipv6.xml \
-       diameter/nasreq.xml \
-       diameter/sip.xml \
-       diameter/Starent.xml \
-       diameter/sunping.xml \
-       diameter/TGPP.xml \
-       diameter/TGPP2.xml \
-       diameter/Vodafone.xml \
-       diameter/AlcatelLucent.xml \
-       diameter/Nokia.xml \
-       diameter/NokiaSolutionsAndNetworks.xml \
-       diameter/HP.xml \
-       diameter/Huawei.xml \
-       diameter/Oracle.xml \
-       diameter/VerizonWireless.xml
-
-#
-# Install the DTDs directory files in the "dtds" subdirectory
-# of that directory
-#
-dtdsdir = $(pkgdatadir)/dtds
-dist_dtds_DATA = \
-       dtds/dc.dtd \
-       dtds/itunes.dtd \
-       dtds/mscml.dtd \
-       dtds/pocsettings.dtd \
-       dtds/presence.dtd \
-       dtds/reginfo.dtd \
-       dtds/rlmi.dtd \
-       dtds/rss.dtd \
-       dtds/smil.dtd \
-       dtds/xcap-caps.dtd \
-       dtds/xcap-error.dtd \
-       dtds/watcherinfo.dtd
-
-#
-# Install the RADIUS directory files in the "radius" subdirectory
-# of that directory.
-#
-radiusdir = $(pkgdatadir)/radius
-include radius/Custom.make
-dist_radius_DATA = $(_CUSTOM_radius_dict_) \
-       radius/README.radius_dictionary \
-       radius/custom.includes \
-       radius/dictionary \
-       radius/dictionary.3com \
-       radius/dictionary.3gpp \
-       radius/dictionary.3gpp2 \
-       radius/dictionary.acc \
-       radius/dictionary.acme \
-       radius/dictionary.actelis \
-       radius/dictionary.aerohive \
-       radius/dictionary.airespace \
-       radius/dictionary.alcatel \
-       radius/dictionary.alcatel-lucent.aaa \
-       radius/dictionary.alcatel.esam \
-       radius/dictionary.alcatel.sr \
-       radius/dictionary.alteon \
-       radius/dictionary.altiga \
-       radius/dictionary.alvarion \
-       radius/dictionary.alvarion.wimax.v2_2 \
-       radius/dictionary.apc \
-       radius/dictionary.aptis \
-       radius/dictionary.arbor \
-       radius/dictionary.aruba \
-       radius/dictionary.ascend \
-       radius/dictionary.asn \
-       radius/dictionary.audiocodes \
-       radius/dictionary.avaya \
-       radius/dictionary.azaire \
-       radius/dictionary.bay \
-       radius/dictionary.bintec \
-       radius/dictionary.bluecoat \
-       radius/dictionary.bristol \
-       radius/dictionary.broadsoft \
-       radius/dictionary.brocade \
-       radius/dictionary.bskyb \
-       radius/dictionary.bt \
-       radius/dictionary.cablelabs \
-       radius/dictionary.cabletron \
-       radius/dictionary.camiant \
-       radius/dictionary.chillispot \
-       radius/dictionary.cisco \
-       radius/dictionary.cisco.asa \
-       radius/dictionary.cisco.bbsm \
-       radius/dictionary.cisco.vpn3000 \
-       radius/dictionary.cisco.vpn5000 \
-       radius/dictionary.citrix \
-       radius/dictionary.clavister \
-       radius/dictionary.cnergee \
-       radius/dictionary.colubris \
-       radius/dictionary.columbia_university \
-       radius/dictionary.compat \
-       radius/dictionary.compatible \
-       radius/dictionary.cosine \
-       radius/dictionary.dante \
-       radius/dictionary.dellemc \
-       radius/dictionary.dhcp \
-       radius/dictionary.digium \
-       radius/dictionary.dlink \
-       radius/dictionary.dragonwave \
-       radius/dictionary.efficientip \
-       radius/dictionary.eltex \
-       radius/dictionary.epygi \
-       radius/dictionary.equallogic \
-       radius/dictionary.ericsson \
-       radius/dictionary.ericsson.ab \
-       radius/dictionary.ericsson.packet.core.networks \
-       radius/dictionary.extreme \
-       radius/dictionary.f5 \
-       radius/dictionary.fdxtended \
-       radius/dictionary.fortinet \
-       radius/dictionary.foundry \
-       radius/dictionary.freedhcp \
-       radius/dictionary.freeradius \
-       radius/dictionary.freeradius.internal \
-       radius/dictionary.freeswitch \
-       radius/dictionary.gandalf \
-       radius/dictionary.garderos \
-       radius/dictionary.gemtek \
-       radius/dictionary.h3c \
-       radius/dictionary.hp \
-       radius/dictionary.huawei \
-       radius/dictionary.iana \
-       radius/dictionary.iea \
-       radius/dictionary.infoblox \
-       radius/dictionary.infonet \
-       radius/dictionary.ipunplugged \
-       radius/dictionary.issanni \
-       radius/dictionary.itk \
-       radius/dictionary.jradius \
-       radius/dictionary.juniper \
-       radius/dictionary.karlnet \
-       radius/dictionary.kineto \
-       radius/dictionary.lancom \
-       radius/dictionary.livingston \
-       radius/dictionary.localweb \
-       radius/dictionary.lucent \
-       radius/dictionary.manzara \
-       radius/dictionary.meinberg \
-       radius/dictionary.merit \
-       radius/dictionary.meru \
-       radius/dictionary.microsemi \
-       radius/dictionary.microsoft \
-       radius/dictionary.mikrotik \
-       radius/dictionary.motorola \
-       radius/dictionary.motorola.wimax \
-       radius/dictionary.navini \
-       radius/dictionary.netscreen \
-       radius/dictionary.networkphysics \
-       radius/dictionary.nexans \
-       radius/dictionary.nokia \
-       radius/dictionary.nokia.conflict \
-       radius/dictionary.nomadix \
-       radius/dictionary.nortel \
-       radius/dictionary.ntua \
-       radius/dictionary.openser \
-       radius/dictionary.packeteer \
-       radius/dictionary.paloalto \
-       radius/dictionary.patton \
-       radius/dictionary.perle \
-       radius/dictionary.propel \
-       radius/dictionary.prosoft \
-       radius/dictionary.proxim \
-       radius/dictionary.purewave \
-       radius/dictionary.quiconnect \
-       radius/dictionary.quintum \
-       radius/dictionary.redcreek \
-       radius/dictionary.rfc2865 \
-       radius/dictionary.rfc2866 \
-       radius/dictionary.rfc2867 \
-       radius/dictionary.rfc2868 \
-       radius/dictionary.rfc2869 \
-       radius/dictionary.rfc3162 \
-       radius/dictionary.rfc3576 \
-       radius/dictionary.rfc3580 \
-       radius/dictionary.rfc4072 \
-       radius/dictionary.rfc4372 \
-       radius/dictionary.rfc4603 \
-       radius/dictionary.rfc4675 \
-       radius/dictionary.rfc4679 \
-       radius/dictionary.rfc4818 \
-       radius/dictionary.rfc4849 \
-       radius/dictionary.rfc5090 \
-       radius/dictionary.rfc5176 \
-       radius/dictionary.rfc5447 \
-       radius/dictionary.rfc5580 \
-       radius/dictionary.rfc5607 \
-       radius/dictionary.rfc5904 \
-       radius/dictionary.rfc6519 \
-       radius/dictionary.rfc6572 \
-       radius/dictionary.rfc6677 \
-       radius/dictionary.rfc6911 \
-       radius/dictionary.rfc6929 \
-       radius/dictionary.rfc6930 \
-       radius/dictionary.rfc7055 \
-       radius/dictionary.rfc7155 \
-       radius/dictionary.rfc7268 \
-       radius/dictionary.rfc7499 \
-       radius/dictionary.rfc7930 \
-       radius/dictionary.riverbed \
-       radius/dictionary.riverstone \
-       radius/dictionary.roaringpenguin \
-       radius/dictionary.ruckus \
-       radius/dictionary.ruggedcom \
-       radius/dictionary.sangoma \
-       radius/dictionary.sg \
-       radius/dictionary.shasta \
-       radius/dictionary.shiva \
-       radius/dictionary.siemens \
-       radius/dictionary.slipstream \
-       radius/dictionary.sofaware \
-       radius/dictionary.sonicwall \
-       radius/dictionary.springtide \
-       radius/dictionary.starent \
-       radius/dictionary.starent.vsa1 \
-       radius/dictionary.surfnet \
-       radius/dictionary.symbol \
-       radius/dictionary.t_systems_nova \
-       radius/dictionary.telebit \
-       radius/dictionary.telkom \
-       radius/dictionary.terena \
-       radius/dictionary.trapeze \
-       radius/dictionary.travelping \
-       radius/dictionary.tropos \
-       radius/dictionary.ukerna \
-       radius/dictionary.unisphere \
-       radius/dictionary.unix \
-       radius/dictionary.usr \
-       radius/dictionary.utstarcom \
-       radius/dictionary.valemount \
-       radius/dictionary.versanet \
-       radius/dictionary.vqp \
-       radius/dictionary.walabi \
-       radius/dictionary.waverider \
-       radius/dictionary.wichorus \
-       radius/dictionary.wimax \
-       radius/dictionary.wimax.alvarion \
-       radius/dictionary.wimax.wichorus \
-       radius/dictionary.wispr \
-       radius/dictionary.xedia \
-       radius/dictionary.xylan \
-       radius/dictionary.yubico \
-       radius/dictionary.zeus \
-       radius/dictionary.zte \
-       radius/dictionary.zyxel
-
-#
-# Install the tpncp directory files in the "tpncp" subdirectory
-# of that directory
-#
-tpncpdir = $(pkgdatadir)/tpncp
-dist_tpncp_DATA = \
-       tpncp/tpncp.dat
-
-#
-# Install the wimaxasncp directory files in the "wimaxasncp" subdirectory
-# of that directory
-#
-wimaxasncpdir = $(pkgdatadir)/wimaxasncp
-dist_wimaxasncp_DATA = \
-       wimaxasncp/dictionary.xml \
-       wimaxasncp/dictionary.dtd
-
-# "BUILT_SOURCES" are built before any "make all" or "make check" targets.
-BUILT_HEADER_FILES = \
-       version.h
-
-BUILT_C_FILES =
-
-BUILT_SOURCES =        $(BUILT_C_FILES) $(BUILT_HEADER_FILES)
-
-# Header files generated from source files.
-GENERATED_HEADER_FILES = \
-       text2pcap-scanner_lex.h \
-       $(BUILT_HEADER_FILES)
-
-# C source files generated from source files.
-GENERATED_C_FILES =
-
-# All the generated files.
-GENERATED_FILES = $(GENERATED_C_FILES) $(GENERATED_HEADER_FILES)
-
-# sources common for wireshark, tshark, and rawshark
-SHARK_COMMON_SRC = \
-       cfile.c                 \
-       file_packet_provider.c  \
-       frame_tvbuff.c          \
-       sync_pipe_write.c       \
-       extcap.c                \
-       extcap_parser.c
-
-# wireshark specifics
-WIRESHARK_COMMON_SRC = \
-       $(SHARK_COMMON_SRC)     \
-       capture_info.c          \
-       capture_opts.c          \
-       file.c                  \
-       fileset.c               \
-       version_info.c
-
-EPAN_EXTRA_LIBS = \
-       @C_ARES_LIBS@                   \
-       @KRB5_LIBS@                     \
-       @LIBGCRYPT_LIBS@                \
-       @LIBGNUTLS_LIBS@                \
-       @LIBSMI_LIBS@
-
-# Libraries and plugin flags with which to link wireshark.
-wireshark_common_ldadd = \
-       capchild/libcapchild.a          \
-       caputils/libcaputils.a          \
-       ui/libui.a                      \
-       ui/libui_generated.a            \
-       codecs/libwscodecs.la           \
-       wiretap/libwiretap.la           \
-       epan/libwireshark.la            \
-       wsutil/libwsutil.la             \
-       @PCAP_LIBS@                     \
-       $(EPAN_EXTRA_LIBS)              \
-       @LIBNL_LIBS@
-
-if HAVE_Qt
-wireshark_SOURCES = $(WIRESHARK_COMMON_SRC) wireshark-qt.cpp
-
-wireshark_CPPFLAGS = $(AM_CPPFLAGS) $(GLIB_CFLAGS) $(Qt_CFLAGS)
-
-wireshark_LDFLAGS = $(AM_LDFLAGS) $(Qt_LDFLAGS)
-
-wireshark_LDADD = \
-       ui/qt/libqtui.a                 \
-       $(wireshark_common_ldadd)       \
-       $(GLIB_LIBS)                    \
-       $(Qt_LIBS)
-
-if HAVE_SPEEXDSP
-wireshark_LDADD += $(SPEEXDSP_LIBS)
-endif
-endif  # HAVE_Qt
-
-fuzzshark_SOURCES = \
-       tools/oss-fuzzshark/fuzzshark.c \
-       tools/oss-fuzzshark/StandaloneFuzzTargetMain.c \
-       version_info.c
-
-fuzzshark_CPPFLAGS = $(AM_CPPFLAGS) $(GLIB_CFLAGS)
-
-fuzzshark_LDFLAGS = $(AM_LDFLAGS)
-
-fuzzshark_LDADD = \
-       wiretap/libwiretap.la           \
-       epan/libwireshark.la            \
-       wsutil/libwsutil.la             \
-       @GLIB_LIBS@                     \
-       ${EPAN_EXTRA_LIBS}
-
-tshark_SOURCES = \
-       $(SHARK_COMMON_SRC)     \
-       capture_opts.c          \
-       tshark.c                \
-       version_info.c
-
-tshark_CPPFLAGS = $(AM_CPPFLAGS) $(GLIB_CFLAGS)
-
-tshark_LDFLAGS = $(AM_LDFLAGS)
-
-# Libraries and plugin flags with which to link tshark.
-tshark_LDADD = \
-       capchild/libcapchild.a          \
-       caputils/libcaputils.a          \
-       ui/cli/libcliui.a               \
-       ui/libui.a                      \
-       wiretap/libwiretap.la           \
-       epan/libwireshark.la            \
-       wsutil/libwsutil.la             \
-       @GLIB_LIBS@                     \
-       @PCAP_LIBS@                     \
-       ${EPAN_EXTRA_LIBS}
-
-tfshark_SOURCES = \
-       $(SHARK_COMMON_SRC)     \
-       tfshark.c               \
-       version_info.c
-
-tfshark_CPPFLAGS = $(AM_CPPFLAGS) $(GLIB_CFLAGS)
-
-tfshark_LDFLAGS = $(AM_LDFLAGS)
-
-# Libraries and plugin flags with which to link tfshark.
-tfshark_LDADD = \
-       ui/cli/libcliui.a               \
-       ui/libui.a                      \
-       wiretap/libwiretap.la           \
-       epan/libwireshark.la            \
-       wsutil/libwsutil.la             \
-       @GLIB_LIBS@                     \
-       @PCAP_LIBS@                     \
-       ${EPAN_EXTRA_LIBS}
-
-rawshark_SOURCES = \
-       $(SHARK_COMMON_SRC)     \
-       rawshark.c              \
-       version_info.c
-
-rawshark_CPPFLAGS = $(AM_CPPFLAGS) $(GLIB_CFLAGS)
-
-rawshark_LDFLAGS = $(AM_LDFLAGS)
-
-# Libraries and plugin flags with which to link rawshark.
-rawshark_LDADD = \
-       caputils/libcaputils.a          \
-       ui/libui.a                      \
-       wiretap/libwiretap.la           \
-       epan/libwireshark.la            \
-       wsutil/libwsutil.la             \
-       @GLIB_LIBS@                     \
-       @PCAP_LIBS@                     \
-       ${EPAN_EXTRA_LIBS}
-
-mmdbresolve_SOURCES = mmdbresolve.c
-mmdbresolve_CPPFLAGS = $(AM_CPPFLAGS)
-mmdbresolve_LDFLAGS = $(AM_LDFLAGS)
-mmdbresolve_LDADD = @MAXMINDDB_LIBS@
-
-sharkd_SOURCES = \
-       $(SHARK_COMMON_SRC)     \
-       sharkd.c                \
-       sharkd.h                \
-       sharkd_daemon.c         \
-       sharkd_session.c        \
-       version_info.c
-
-sharkd_CPPFLAGS = $(AM_CPPFLAGS) $(GLIB_CFLAGS)
-
-if HAVE_SPEEXDSP
-sharkd_CPPFLAGS += $(SPEEXDSP_CFLAGS)
-endif
-
-sharkd_LDFLAGS = $(AM_LDFLAGS)
-
-# Libraries and plugin flags with which to link sharkd.
-sharkd_LDADD = \
-       ui/cli/libcliui.a               \
-       ui/libui.a                      \
-       codecs/libwscodecs.la           \
-       wiretap/libwiretap.la           \
-       epan/libwireshark.la            \
-       wsutil/libwsutil.la             \
-       @GLIB_LIBS@                     \
-       @PCAP_LIBS@                     \
-       ${EPAN_EXTRA_LIBS}
-
-if HAVE_SPEEXDSP
-sharkd_LDADD += $(SPEEXDSP_LIBS)
-endif
-
-text2pcap_SOURCES = \
-       text2pcap.c             \
-       text2pcap-scanner.l     \
-       version_info.c
-
-text2pcap_CPPFLAGS = $(AM_CPPFLAGS) $(GLIB_CFLAGS)
-
-text2pcap_CFLAGS = $(AM_CFLAGS)
-
-# Libraries with which to link text2pcap.
-text2pcap_LDADD = \
-       writecap/libwritecap.a          \
-       wsutil/libwsutil.la             \
-       @GLIB_LIBS@
-
-mergecap_SOURCES = \
-       mergecap.c      \
-       version_info.c
-
-mergecap_CPPFLAGS = $(AM_CPPFLAGS) $(GLIB_CFLAGS)
-
-# Libraries with which to link mergecap.
-mergecap_LDADD = \
-       ui/libui.a                      \
-       wiretap/libwiretap.la           \
-       wsutil/libwsutil.la             \
-       @GLIB_LIBS@
-
-capinfos_SOURCES = \
-       capinfos.c      \
-       version_info.c
-
-capinfos_CPPFLAGS = $(AM_CPPFLAGS) $(GLIB_CFLAGS)
-
-# Libraries with which to link capinfos.
-capinfos_LDADD = \
-       ui/libui.a                      \
-       wiretap/libwiretap.la           \
-       wsutil/libwsutil.la             \
-       @GLIB_LIBS@                     \
-       @LIBGCRYPT_LIBS@
-
-captype_SOURCES = \
-       captype.c       \
-       version_info.c
-
-captype_CPPFLAGS = $(AM_CPPFLAGS) $(GLIB_CFLAGS)
-
-# Libraries with which to link captype.
-captype_LDADD = \
-       ui/libui.a                      \
-       wiretap/libwiretap.la           \
-       wsutil/libwsutil.la             \
-       @GLIB_LIBS@
-
-editcap_SOURCES = \
-       editcap.c       \
-       version_info.c
-
-editcap_CPPFLAGS = $(AM_CPPFLAGS) $(GLIB_CFLAGS)
-
-# Libraries with which to link editcap.
-editcap_LDADD = \
-       ui/libui.a                      \
-       wiretap/libwiretap.la           \
-       wsutil/libwsutil.la             \
-       @GLIB_LIBS@                     \
-       @LIBGCRYPT_LIBS@
-
-reordercap_SOURCES = \
-       reordercap.c    \
-       version_info.c
-
-reordercap_CPPFLAGS = $(AM_CPPFLAGS) $(GLIB_CFLAGS)
-
-# Libraries with which to link reordercap.
-reordercap_LDADD = \
-       ui/libui.a                      \
-       wiretap/libwiretap.la           \
-       wsutil/libwsutil.la             \
-       @GLIB_LIBS@
-
-randpkt_SOURCES = \
-       randpkt.c       \
-       version_info.c
-
-randpkt_CPPFLAGS = $(AM_CPPFLAGS) $(GLIB_CFLAGS)
-
-# Libraries with which to link randpkt.
-randpkt_LDADD = \
-       randpkt_core/librandpkt_core.a  \
-       ui/libui.a                      \
-       wiretap/libwiretap.la           \
-       wsutil/libwsutil.la             \
-       @GLIB_LIBS@                     \
-       @PCAP_LIBS@                     \
-       @C_ARES_LIBS@
-
-dftest_SOURCES = \
-       dftest.c
-
-dftest_CPPFLAGS = $(AM_CPPFLAGS) $(GLIB_CFLAGS)
-
-# Libraries and plugin flags with which to link dftest.
-dftest_LDADD = \
-       ui/libui.a                      \
-       wiretap/libwiretap.la           \
-       wsutil/libwsutil.la             \
-       epan/libwireshark.la            \
-       @GLIB_LIBS@                     \
-       @PCAP_LIBS@                     \
-       ${EPAN_EXTRA_LIBS}
-
-dumpcap_SOURCES = \
-       capture_opts.c                  \
-       capture_stop_conditions.c       \
-       conditions.c                    \
-       dumpcap.c                       \
-       ringbuffer.c                    \
-       sync_pipe_write.c               \
-       version_info.c
-
-dumpcap_CPPFLAGS = $(AM_CPPFLAGS) $(GLIB_CFLAGS)
-
-dumpcap_CFLAGS = $(AM_CFLAGS) $(PIE_CFLAGS)
-
-dumpcap_LDFLAGS = $(AM_LDFLAGS) $(PIE_LDFLAGS)
-
-# Libraries with which to link dumpcap.
-dumpcap_LDADD = \
-       caputils/libcaputils.a          \
-       ui/libui.a                      \
-       writecap/libwritecap.a          \
-       wsutil/libwsutil.la             \
-       @GLIB_LIBS@                     \
-       @PCAP_LIBS@                     \
-       @LIBCAP_LIBS@                   \
-       @LIBNL_LIBS@
-
-pkginclude_HEADERS = \
-       cfile.h                 \
-       file.h                  \
-       globals.h               \
-       log.h                   \
-       ws_attributes.h         \
-       ws_compiler_tests.h     \
-       ws_diag_control.h       \
-       ws_symbol_export.h
-
-# this target needed for distribution only
-noinst_HEADERS = \
-       tools/oss-fuzzshark/FuzzerInterface.h \
-       capture_info.h          \
-       capture_opts.h          \
-       capture_stop_conditions.h       \
-       conditions.h            \
-       extcap.h                \
-       extcap_parser.h         \
-       fileset.h               \
-       frame_tvbuff.h          \
-       ringbuffer.h            \
-       sync_pipe.h             \
-       version_info.h
-
-#
-# Build the version string
-#
-# FORCE is the portable version of .PHONY
-FORCE:
-
-version.h: FORCE
-       $(AM_V_PERL)$(PERL) $(srcdir)/make-version.pl $(srcdir)
-
-#
-# Build shell scripts by doing variable substitution.
-# Taken from autoconf 2.13.
-#
-editsh = sed -e 's,@''SHELL''@,$(SHELL),g'
-
-SUFFIXES = .sh
-.sh:
-       rm -f $@ $@.tmp
-       $(editsh) $< > $@.tmp && chmod +x $@.tmp && mv $@.tmp $@
-
-services:
-       $(PYTHON) $(srcdir)/tools/make-services.py
-
-CLEANFILES = \
-       doxygen-core.tag        \
-       vgcore.*
-
-DISTCLEANFILES = \
-       version.h
-
-MAINTAINERCLEANFILES = \
-       $(GENERATED_FILES)
-
-EXTRA_DIST = \
-       .editorconfig           \
-       .mailmap                \
-       INSTALL.configure       \
-       Makefile.am.inc         \
-       README.aix              \
-       README.bsd              \
-       README.DECT             \
-       README.hpux             \
-       README.linux            \
-       README.macos            \
-       README.md               \
-       README.windows          \
-       abi-descriptor.template \
-       autogen.sh              \
-       cfilters                \
-       colorfilters            \
-       debian                  \
-       dfilters                \
-       doxygen_global.cfg      \
-       doxygen.cfg.in          \
-       enterprises.tsv         \
-       fix                     \
-       idl                     \
-       image                   \
-       m4                      \
-       macosx-support-lib-patches      \
-       make-version.pl         \
-       manuf                   \
-       manuf.tmpl              \
-       pdml2html.xsl           \
-       smi_modules             \
-       text2pcap-scanner.l     \
-       text2pcap.h             \
-       services                \
-       wireshark.desktop       \
-       wireshark-mime-package.xml      \
-       wireshark.appdata.xml   \
-       wireshark.pc.in         \
-       wka                     \
-       CMakeLists.txt          \
-       CMakeListsCustom.txt.example    \
-       cmakeconfig.h.in        \
-       CMakeOptions.txt        \
-       ConfigureChecks.cmake   \
-       cmake
-
-install-exec-hook:
-if HAVE_DUMPCAP_GROUP
-       chgrp $(DUMPCAP_GROUP) $(DESTDIR)$(bindir)/dumpcap
-endif
-if SETCAP_INSTALL
-       $(SETCAP) cap_net_raw,cap_net_admin+ep $(DESTDIR)$(bindir)/dumpcap
-       chmod o-rws $(DESTDIR)$(bindir)/dumpcap
-else
-if SETUID_INSTALL
-       chmod o-rws $(DESTDIR)$(bindir)/dumpcap
-       chmod +s $(DESTDIR)$(bindir)/dumpcap
-endif
-endif
-
-
-if HAVE_PLUGINS
-if !ENABLE_STATIC
-plugins_subdir = plugins
-endif
-endif
-
-extcap_subdir = extcap
-
-DIST_SUBDIRS = \
-       capchild        \
-       caputils        \
-       codecs          \
-       doc             \
-       docbook         \
-       epan            \
-       ui              \
-       ui/cli          \
-       ui/qt           \
-       help            \
-       packaging       \
-       plugins         \
-       randpkt_core    \
-       tools           \
-       wiretap         \
-       writecap        \
-       wsutil          \
-       extcap
-
-SUBDIRS = \
-       tools                   \
-       wsutil                  \
-       writecap                \
-       wiretap                 \
-       epan                    \
-       capchild                \
-       caputils                \
-       $(plugins_subdir)       \
-       help                    \
-       ui                      \
-       codecs                  \
-       @wireshark_SUBDIRS@     \
-       ui/cli                  \
-       randpkt_core            \
-       $(extcap_subdir)        \
-       .                       \
-       doc                     \
-       docbook
-
-help/faq.txt: $(srcdir)/help/faq.py
-       $(AM_V_GEN)(cd help ; \
-       $(MAKE) faq.txt ;)
-
-libtool: $(LIBTOOL_DEPS)
-       $(SHELL) ./config.status --recheck
-
-
-#
-# Install icons and other desktop files for (for use with GNOME, KDE, or
-# any other freedesktop.org-compliant desktops).
-#
-# We use $(datadir).  If the desktop doesn't look for them there,
-# the desktop is broken; the latest XDG Base Directory Specification
-# can be consulted at
-#
-#    http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
-#
-# We neither need nor want any of this if we're not building Wireshark
-# (that being the only desktop app).
-#
-install-data-local:
-if BUILDING_WIRESHARK
-       $(MKDIR_P) $(DESTDIR)$(datadir)/mime/packages
-       $(INSTALL_DATA) $(srcdir)/wireshark-mime-package.xml $(DESTDIR)$(datadir)/mime/packages/wireshark.xml
-       $(MKDIR_P) $(DESTDIR)$(datadir)/appdata
-       $(INSTALL_DATA) $(srcdir)/wireshark.appdata.xml $(DESTDIR)$(datadir)/appdata/wireshark.appdata.xml
-       $(MKDIR_P) $(DESTDIR)$(datadir)/applications
-       $(INSTALL_DATA) $(srcdir)/wireshark.desktop $(DESTDIR)$(datadir)/applications
-       for size in 16 24 32 48 64 128 256; \
-       do \
-               $(MKDIR_P) $(DESTDIR)$(datadir)/icons/hicolor/$${size}x$${size}/apps ; \
-               $(INSTALL_DATA) $(srcdir)/image/wsicon$${size}.png $(DESTDIR)$(datadir)/icons/hicolor/$${size}x$${size}/apps/wireshark.png ; \
-               $(MKDIR_P) $(DESTDIR)$(datadir)/icons/hicolor/$${size}x$${size}/mimetypes ; \
-               $(INSTALL_DATA) $(srcdir)/image/WiresharkDoc-$${size}.png $(DESTDIR)$(datadir)/icons/hicolor/$${size}x$${size}/mimetypes/application-wireshark-doc.png ; \
-       done
-       $(MKDIR_P) $(DESTDIR)$(datadir)/icons/hicolor/scalable/apps
-       $(INSTALL_DATA) $(srcdir)/image/wsicon.svg $(DESTDIR)$(datadir)/icons/hicolor/scalable/apps/wireshark.svg
-endif
-
-uninstall-local:
-if BUILDING_WIRESHARK
-       rm -f $(DESTDIR)$(datadir)/appdata/wireshark.appdata.xml
-       rm -f $(DESTDIR)$(datadir)/applications/wireshark.desktop
-       rm -f $(DESTDIR)$(datadir)/mime/packages/wireshark.xml
-       for size in 16 24 32 48 64 128 256; \
-       do \
-               rm -f $(DESTDIR)$(datadir)/icons/hicolor/$${size}x$${size}/apps/wireshark.png ; \
-               rm -f $(DESTDIR)$(datadir)/icons/hicolor/$${size}x$${size}/mimetypes/application-wireshark-doc.png ; \
-       done
-       rm -f $(DESTDIR)$(datadir)/icons/hicolor/scalable/apps/wireshark.svg
-endif
-
-install-data-hook: update-databases-and-caches-install
-uninstall-hook: update-databases-and-caches-uninstall
-
-#
-# ldconfig may be needed to update a shared library cache.
-#
-# update-desktop-database and update-mime-database may be needed on
-# freedesktop.org desktops.
-#
-# Only ldconfig may be needed if we're not building Wireshark
-# (that being the only desktop app).
-#
-update-databases-and-caches-common:
-       @echo "-------------------------------------------------------------------------------"
-       @echo "You may need to run \"ldconfig\" as root"
-if BUILDING_WIRESHARK
-       @echo "You may need to run \"update-desktop-database $(datadir)/applications\""
-       @echo "You may need to run \"update-mime-database $(datadir)/mime\""
-endif
-       @echo "-------------------------------------------------------------------------------"
-
-update-databases-and-caches-install: update-databases-and-caches-common
-
-update-databases-and-caches-uninstall: update-databases-and-caches-common
-
-rpm-package: dist
-       $(MAKE) -C packaging/rpm
-
-test-programs:
-       cd epan && $(MAKE) $@
-
-checkapi_local:
-       $(PERL) $(top_srcdir)/tools/checkAPIs.pl -build \
-       -sourcedir=$(srcdir) \
-       $(TSHARK_TAP_SRC)
-
-checkapi: checkapi_local
-       cd wiretap && $(MAKE) checkapi
-       cd codecs && $(MAKE) checkapi
-       cd capchild && $(MAKE) checkapi
-       cd caputils && $(MAKE) checkapi
-       cd ui && $(MAKE) checkapi
-       cd ui/cli && $(MAKE) checkapi
-       cd epan && $(MAKE) checkapi
-       cd epan/crypt && $(MAKE) checkapi
-       cd epan/dfilter && $(MAKE) checkapi
-       cd epan/ftypes && $(MAKE) checkapi
-       cd epan/wmem && $(MAKE) checkapi
-       cd epan/wslua && $(MAKE) checkapi
-       cd epan/dissectors && $(MAKE) checkapi
-       cd plugins && $(MAKE) checkapi
-       cd randpkt_core && $(MAKE) checkapi
-       cd writecap && $(MAKE) checkapi
-       cd wsutil && $(MAKE) checkapi
-
-# --external-sources requires 0.4.0 or later.
-shellcheck:
-       cd $(top_srcdir) && \
-       $(SHELLCHECK) --external-sources \
-         tools/fuzz-test.sh \
-         tools/randpkt-test.sh \
-         tools/test-captures.sh \
-         tools/valgrind-wireshark.sh
-
-wsar_html: doxygen.cfg doxygen_global.cfg FORCE
-if HAVE_DOXYGEN
-       rm -rf wsar_html
-       cd epan && $(MAKE) $@
-       cd capchild && $(MAKE) $@
-       cd caputils && $(MAKE) $@
-       cd randpkt_core && $(MAKE) $@
-       cd ui && $(MAKE) $@
-       (umask 022 ; $(DOXYGEN) doxygen.cfg)
-endif
-
-wsar-zip: wsar_html
-if HAVE_DOXYGEN
-       rm -f wsar_html.zip
-       zip -rq wsar_html.zip wsar_html
-endif
-
-# Update AUTHORS file with entries from git shortlog
-gen-authors:
-       cd $(top_srcdir) && $(PERL) tools/generate_authors.pl AUTHORS.src > AUTHORS
-
-dist-hook:
-       printf "git_description=%s\n" "$$(git -C $(top_srcdir) describe --match 'v[1-9]*')" \
-               > $(top_distdir)/version.conf
diff --git a/Makefile.am.inc b/Makefile.am.inc
deleted file mode 100644 (file)
index eaec6dd..0000000
+++ /dev/null
@@ -1,78 +0,0 @@
-# Makefile.am.inc
-# Include file for Makefile.am files to get additional rules
-#
-# Wireshark - Network traffic analyzer
-# By Gerald Combs <gerald@wireshark.org>
-# Copyright 1998 Gerald Combs
-#
-# This program is free software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program 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 General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-
-AUTOMAKE_OPTIONS = -Wno-portability
-
-lemon_srcdir = $(top_srcdir)/tools/lemon
-lemon_builddir = $(top_builddir)/tools/lemon
-LEMON = $(lemon_builddir)/lemon$(EXEEXT)
-$(LEMON):
-       cd $(lemon_builddir) && $(MAKE)
-
-INCLUDEDIRS = -I$(top_srcdir)
-
-#AM_CPPFLAGS = $(INCLUDEDIRS) $(WS_CPPFLAGS)
-
-AM_CFLAGS = $(WERROR) $(WS_CFLAGS)
-
-DIRTY_CFLAGS = $(WS_CFLAGS)
-
-AM_CXXFLAGS = $(WERROR) $(WS_CXXFLAGS)
-
-DIRTY_CXXFLAGS = $(WS_CXXFLAGS)
-
-AM_LDFLAGS = $(WS_LDFLAGS)
-
-AM_V_PERL = $(am__v_PERL_@AM_V@)
-am__v_PERL_ = $(am__v_PERL_@AM_DEFAULT_V@)
-am__v_PERL_0 = @echo "  PERL    " $@;
-
-AM_V_AWK = $(am__v_AWK_@AM_V@)
-am__v_AWK_ = $(am__v_AWK_@AM_DEFAULT_V@)
-am__v_AWK_0 = @echo "  AWK     " $@;
-
-AM_V_LEMON = $(am__v_LEMON_@AM_V@)
-am__v_LEMON_ = $(am__v_LEMON_@AM_DEFAULT_V@)
-am__v_LEMON_0 = @echo "  LEMON   " $@;
-
-AM_V_LEX = $(am__v_LEX_@AM_V@)
-am__v_LEX_ = $(am__v_LEX_@AM_DEFAULT_V@)
-am__v_LEX_0 = @echo "  LEX     " $@;
-
-AM_V_SED = $(am__v_SED_@AM_V@)
-am__v_SED_ = $(am__v_SED_@AM_DEFAULT_V@)
-am__v_SED_0 = @echo "  SED     " $@;
-
-AM_V_LN_S = $(am__v_LN_S_@AM_V@)
-am__v_LN_S_ = $(am__v_LN_S_@AM_DEFAULT_V@)
-am__v_LN_S_0 = @echo "  LN_S    " $@;
-
-# _PYTHON is a reserved automake keyword
-AM_V_python = $(am__v_python_@AM_V@)
-am__v_python_ = $(am__v_python_@AM_DEFAULT_V@)
-am__v_python_0 = @echo "  PYTHON  " $@;
-
-AM_V_YACC = $(am__v_YACC_@AM_V@)
-am__v_YACC_ = $(am__v_YACC_@AM_DEFAULT_V@)
-am__v_YACC_0 = @echo "  YACC    " $@;
-
-.l.c:
-       $(AM_V_LEX)$(LEX) -o$@ --header-file=$(@:.c=_lex.h) $<
diff --git a/acinclude.m4 b/acinclude.m4
deleted file mode 100644 (file)
index 1a45266..0000000
+++ /dev/null
@@ -1,2017 +0,0 @@
-dnl Macros that test for specific features.
-dnl This file is part of the Autoconf packaging for Wireshark.
-dnl Copyright (C) 1998-2000 by Gerald Combs.
-dnl
-dnl SPDX-License-Identifier: GPL-2.0-or-later
-dnl
-dnl As a special exception, the Free Software Foundation gives unlimited
-dnl permission to copy, distribute and modify the configure scripts that
-dnl are the output of Autoconf.  You need not follow the terms of the GNU
-dnl General Public License when using or distributing such scripts, even
-dnl though portions of the text of Autoconf appear in them.  The GNU
-dnl General Public License (GPL) does govern all other use of the material
-dnl that constitutes the Autoconf program.
-dnl
-dnl Certain portions of the Autoconf source text are designed to be copied
-dnl (in certain cases, depending on the input) into the output of
-dnl Autoconf.  We call these the "data" portions.  The rest of the Autoconf
-dnl source text consists of comments plus executable code that decides which
-dnl of the data portions to output in any given case.  We call these
-dnl comments and executable code the "non-data" portions.  Autoconf never
-dnl copies any of the non-data portions into its output.
-dnl
-dnl This special exception to the GPL applies to versions of Autoconf
-dnl released by the Free Software Foundation.  When you make and
-dnl distribute a modified version of Autoconf, you may extend this special
-dnl exception to the GPL to apply to your modified version as well, *unless*
-dnl your modified version has the potential to copy into its output some
-dnl of the text that was the non-data portion of the version that you started
-dnl with.  (In other words, unless your change moves or copies text from
-dnl the non-data portions to the data portions.)  If your modification has
-dnl such potential, you must delete any notice of this special exception
-dnl to the GPL from your modified version.
-dnl
-dnl Written by David MacKenzie, with help from
-dnl Franc,ois Pinard, Karl Berry, Richard Pixley, Ian Lance Taylor,
-dnl Roland McGrath, Noah Friedman, david d zuhn, and many others.
-
-#
-# AC_WIRESHARK_ADD_DASH_L
-#
-# Add to the variable specified as the first argument a "-L" flag for the
-# directory specified as the second argument, and, on Solaris, add a
-# "-R" flag for it as well.
-#
-# XXX - IRIX, and other OSes, may require some flag equivalent to
-# "-R" here.
-#
-AC_DEFUN([AC_WIRESHARK_ADD_DASH_L],
-[AX_APPEND_FLAG(-L$2, $1)
-case "$host_os" in
-  solaris*)
-    AX_APPEND_FLAG(-R$2, $1)
-  ;;
-esac
-])
-
-#
-# AC_WIRESHARK_PUSH_FLAGS
-#
-# Push our flags to CFLAGS/etc.
-#
-AC_DEFUN([AC_WIRESHARK_PUSH_FLAGS],
-[
-  ac_ws_CPPLAGS_saved="$CPPFLAGS"
-  ac_ws_CFLAGS_saved="$CFLAGS"
-  ac_ws_CXXFLAGS_saved="$CXXFLAGS"
-  ac_ws_LDFLAGS_saved="$LDFLAGS"
-  CPPFLAGS="$WS_CPPFLAGS $CPPFLAGS"
-  CFLAGS="$WS_CFLAGS $CFLAGS"
-  CXXFLAGS="$WS_CXXFLAGS $CXXFLAGS"
-  LDFLAGS="$WS_LDFLAGS $LDFLAGS"
-])
-
-#
-# AC_WIRESHARK_POP_FLAGS
-#
-# Restore user build flags.
-#
-AC_DEFUN([AC_WIRESHARK_POP_FLAGS],
-[
-  CPPFLAGS="$ac_ws_CPPLAGS_saved"
-  CFLAGS="$ac_ws_CFLAGS_saved"
-  CXXFLAGS="$ac_ws_CXXFLAGS_saved"
-  LDFLAGS="$ac_ws_LDFLAGS_saved"
-])
-
-
-#
-# AC_WIRESHARK_BREAKLOOP_TRY_LINK
-#
-AC_DEFUN([AC_WIRESHARK_PCAP_BREAKLOOP_TRY_LINK],
-[
-  AC_LINK_IFELSE(
-  [
-      AC_LANG_SOURCE(
-      [[
-#      include <pcap.h>
-       int main(void)
-       {
-         pcap_t  *pct = NULL;
-         pcap_breakloop(pct);
-         return 0;
-       }
-      ]])
-  ],
-  [
-    ws_breakloop_compiled=yes
-  ],
-  [
-    ws_breakloop_compiled=no
-  ])
-])
-
-
-
-#
-# AC_WIRESHARK_PCAP_CHECK
-#
-AC_DEFUN([AC_WIRESHARK_PCAP_CHECK],
-[
-       AC_WIRESHARK_PUSH_FLAGS
-       ws_ac_save_LIBS="$LIBS"
-
-       if test -z "$pcap_dir"
-       then
-         # Pcap header checks
-         # XXX need to set a var AC_CHECK_HEADER(pcap.h,,)
-
-         #
-         # The user didn't specify a directory in which libpcap resides.
-         # First, look for a pcap-config script.
-         #
-         AC_PATH_TOOL(PCAP_CONFIG, pcap-config)
-
-         if test -n "$PCAP_CONFIG" ; then
-           #
-           # Found it.
-           #
-           # Now check whether it's the libpcap 1.0 version, which
-           # put a space after "-L" - on some platforms, that doesn't
-           # work.
-           #
-           AC_MSG_CHECKING(for broken pcap-config)
-           case "`\"$PCAP_CONFIG\" --libs`" in
-
-           "-L "*)
-             #
-             # Space after -L.  Pretend pcap-config doesn't exist.
-             #
-             AC_MSG_RESULT(yes)
-             PCAP_CONFIG=""
-             ;;
-
-           *)
-             #
-             # No space after -L.
-             #
-             AC_MSG_RESULT(no)
-             ;;
-           esac
-         fi
-         if test -n "$PCAP_CONFIG" ; then
-           #
-           # Found it, and it's usable; use it to get the include flags
-           # for libpcap.
-           #
-           PCAP_CFLAGS="`\"$PCAP_CONFIG\" --cflags`"
-           #
-           # We have pcap-config; we assume that means we have libpcap
-           # installed and that pcap-config will tell us whatever
-           # libraries libpcap needs.
-           #
-           if test x$enable_static = xyes; then
-             PCAP_LIBS="`\"$PCAP_CONFIG\" --libs --static`"
-           else
-             PCAP_LIBS="`\"$PCAP_CONFIG\" --libs`"
-           fi
-         else
-           #
-           # Didn't find it; we have to look for libpcap ourselves.
-           # We assume that the current library search path will work,
-           # but we may have to look for the header in a "pcap"
-           # subdirectory of "/usr/include" or "/usr/local/include",
-           # as some systems apparently put "pcap.h" in a "pcap"
-           # subdirectory without also providing a "pcap.h" in the top-level
-           # include directory, and we also check "$prefix/include" - and
-           # "$prefix/include/pcap", in case $prefix is set to
-           # "/usr/include" or "/usr/local/include".
-           #
-           PCAP_CFLAGS=""
-           PCAP_LIBS="-lpcap"
-
-           AC_MSG_CHECKING(for extraneous pcap header directories)
-           found_pcap_dir=""
-           pcap_dir_list="/usr/local/include/pcap /usr/include/pcap $prefix/include/pcap $prefix/include"
-           for pcap_dir in $pcap_dir_list
-           do
-             if test -d $pcap_dir ; then
-               if test x$pcap_dir != x/usr/include -a x$pcap_dir != x/usr/local/include ; then
-                   PCAP_CFLAGS="-I$pcap_dir"
-               fi
-               found_pcap_dir=" $found_pcap_dir -I$pcap_dir"
-               break
-             fi
-           done
-
-           if test "$found_pcap_dir" != "" ; then
-             AC_MSG_RESULT(found --$found_pcap_dir added to CFLAGS)
-           else
-             AC_MSG_RESULT(not found)
-           fi
-         fi
-       else
-         #
-         # The user specified a directory in which libpcap resides,
-         # so add the "include" subdirectory of that directory to
-         # the include file search path and the "lib" subdirectory
-         # of that directory to the library search path.
-         #
-         # XXX - if there's also a libpcap in a directory that's
-         # already in CPPFLAGS or LDFLAGS, this won't make us find
-         # the version in the specified directory, as the compiler
-         # and/or linker will search that other directory before it
-         # searches the specified directory.
-         #
-         PCAP_CFLAGS="-I$pcap_dir/include"
-         #
-         # XXX - This doesn't use AC_WIRESHARK_ADD_DASH_L
-         #
-         PCAP_LIBS="-L$pcap_dir/lib -lpcap"
-       fi
-
-       CFLAGS="$PCAP_CFLAGS $CFLAGS"
-       LIBS="$PCAP_LIBS $LIBS"
-
-       # Pcap header check
-       AC_CHECK_HEADER(pcap.h,
-         [
-             AC_DEFINE(HAVE_LIBPCAP, 1, [Define to use libpcap library])
-         ],
-         [
-             AC_MSG_ERROR([[Header file pcap.h not found; if you installed libpcap
-from source, did you also do \"make install-incl\", and if you installed a
-binary package of libpcap, is there also a developer's package of libpcap,
-and did you also install that package?]])
-         ])
-
-       #
-       # Check to see if we find "pcap_open_live" in "-lpcap".
-       # Also check for various additional libraries that libpcap might
-       # require.
-       #
-       AC_CHECK_LIB(pcap, pcap_open_live,
-         [
-         ],
-         [
-           ac_wireshark_extras_found=no
-           ac_save_LIBS="$LIBS"
-           for extras in "-lcfg -lodm" "-lpfring"
-           do
-             AC_MSG_CHECKING([for pcap_open_live in -lpcap with $extras])
-             LIBS="-lpcap $extras $ac_save_LIBS"
-             #
-             # XXX - can't we use AC_CHECK_LIB here?
-             #
-             AC_TRY_LINK(
-               [
-#      include <pcap.h>
-               ],
-               [
-       pcap_open_live(NULL, 0, 0, 0, NULL);
-               ],
-               [
-                 ac_wireshark_extras_found=yes
-                 AC_MSG_RESULT([yes])
-                 PCAP_LIBS="$PCAP_LIBS $extras"
-               ],
-               [
-                 AC_MSG_RESULT([no])
-               ])
-               if test x$ac_wireshark_extras_found = xyes
-               then
-                 break
-               fi
-           done
-           if test x$ac_wireshark_extras_found = xno
-           then
-             AC_MSG_ERROR([Can't link with library libpcap.])
-           fi
-           LIBS=$ac_save_LIBS
-         ])
-       AC_SUBST(PCAP_CFLAGS)
-       AC_SUBST(PCAP_LIBS)
-
-       #
-       # Check whether various variables and functions are defined by
-       # libpcap.
-       #
-       AC_CHECK_FUNCS(pcap_open_dead pcap_freecode)
-       AC_CHECK_FUNCS(pcap_open)
-       if test $ac_cv_func_pcap_open = "yes" ; then
-         AC_DEFINE(HAVE_PCAP_REMOTE, 1,
-            [Define to 1 if you have libpcap/WinPcap remote capturing support])
-
-         #
-         # XXX - this *should* be checked for independently of checking
-         # for pcap_open(), as you might have pcap_setsampling() without
-         # remote capture support.
-         #
-         # However, 1) the sampling options are treated as remote options
-         # in the GUI and and 2) having pcap_setsampling() doesn't mean
-         # you have sampling support.  libpcap needs a way to indicate
-         # whether a given device supports sampling, and the GUI should
-         # be changed to decouple them.
-         #
-         # (Actually, libpcap needs a general mechanism to offer options
-         # for particular devices, and Wireshark needs to use that
-         # mechanism.  The former is a work in progress.)
-         #
-         # (Note: another work in progress is support for remote
-         # capturing using pcap_create()/pcap_activate(), which we
-         # also need to support once it's available.)
-         #
-         AC_CHECK_FUNCS(pcap_setsampling)
-       fi
-
-       #
-       # pcap_breakloop may be present in the library but not declared
-       # in the pcap.h header file.  If it's not declared in the header
-       # file, attempts to use it will get warnings, and, if we're
-       # building with warnings treated as errors, that warning will
-       # cause compilation to fail.
-       #
-       # We are therefore first testing whether the function is present
-       # and then, if we're compiling with warnings as errors, testing
-       # whether it is usable.  It is usable if it compiles without
-       # a -Wimplicit warning (the "compile with warnings as errors"
-       # option requires GCC). If it is not usable, we fail and tell
-       # the user that the pcap.h header needs to be updated.
-       #
-       # Ceteris paribus, this should only happen with Mac OS X 10.3[.x] which
-       # can have an up-to-date pcap library without the corresponding pcap
-       # header.
-       #
-       # However, it might also happen on some others OSes with some erroneous
-       # system manipulations where multiple versions of libpcap might co-exist
-       # e.g. hand made symbolic link from libpcap.so -> libpcap.so.0.8 but
-       # having the pcap header version 0.7.
-       #
-       AC_MSG_CHECKING([whether pcap_breakloop is present])
-       ac_CFLAGS_saved="$CFLAGS"
-       AC_WIRESHARK_PCAP_BREAKLOOP_TRY_LINK
-       if test "x$ws_breakloop_compiled" = "xyes"; then
-         AC_MSG_RESULT(yes)
-         AC_DEFINE(HAVE_PCAP_BREAKLOOP, 1, [Define if pcap_breakloop is known])
-         if test "x$with_warnings_as_errors" = "xyes"; then
-           AC_MSG_CHECKING([whether pcap_breakloop is usable])
-           CFLAGS="$CFLAGS -Werror -Wimplicit"
-           AC_WIRESHARK_PCAP_BREAKLOOP_TRY_LINK
-           if test "x$ws_breakloop_compiled" = "xyes"; then
-             AC_MSG_RESULT(yes)
-           else
-             AC_MSG_RESULT(no)
-             AC_MSG_ERROR(
-[Your pcap library is more recent than your pcap header.
-As you are building with compiler warnings treated as errors, Wireshark
-won't be able to use functions not declared in that header.
-If you wish to build with compiler warnings treated as errors, You should
-install a newer version of the header file.])
-           fi
-           CFLAGS="$ac_CFLAGS_saved"
-         fi
-       else
-         AC_MSG_RESULT(no)
-       fi
-
-       #
-       # Later versions of Mac OS X 10.3[.x] ship a pcap.h that
-       # doesn't define pcap_if_t but ship an 0.8[.x] libpcap,
-       # so the library has "pcap_findalldevs()", but pcap.h
-       # doesn't define "pcap_if_t" so you can't actually *use*
-       # "pcap_findalldevs()".
-       #
-       # That even appears to be true of systems shipped with
-       # 10.3.4, so it doesn't appear only to be a case of
-       # Software Update not updating header files.
-       #
-       # (You can work around this by installing the 0.8 header
-       # files.)
-       #
-       AC_CACHE_CHECK([whether pcap_findalldevs is present and usable],
-         [ac_cv_func_pcap_findalldevs],
-         [
-           AC_LINK_IFELSE(
-             [
-               AC_LANG_SOURCE(
-                 [[
-                   #include <pcap.h>
-                   int main()
-                   {
-                     pcap_if_t *devpointer;
-                     char errbuf[1];
-
-                     pcap_findalldevs(&devpointer, errbuf);
-                   }
-                 ]])
-             ],
-             [
-               ac_cv_func_pcap_findalldevs=yes
-             ],
-             [
-               ac_cv_func_pcap_findalldevs=no
-             ])
-         ])
-       #
-       # Don't check for other new routines that showed up after
-       # "pcap_findalldevs()" if we don't have a usable
-       # "pcap_findalldevs()", so we don't end up using them if the
-       # "pcap.h" is crufty and old and doesn't declare them.
-       #
-       if test $ac_cv_func_pcap_findalldevs = "yes" ; then
-         AC_DEFINE(HAVE_PCAP_FINDALLDEVS, 1,
-          [Define to 1 if you have the `pcap_findalldevs' function and a pcap.h that declares pcap_if_t.])
-         AC_CHECK_FUNCS(pcap_datalink_val_to_name pcap_datalink_name_to_val)
-         AC_CHECK_FUNCS(pcap_datalink_val_to_description)
-         AC_CHECK_FUNCS(pcap_list_datalinks pcap_set_datalink pcap_lib_version)
-         AC_CHECK_FUNCS(pcap_get_selectable_fd pcap_free_datalinks)
-         AC_CHECK_FUNC(pcap_create,
-         [
-           AC_DEFINE(HAVE_PCAP_CREATE, 1,
-            [Define to 1 if you have the `pcap_create' function.])
-           AC_DEFINE(CAN_SET_CAPTURE_BUFFER_SIZE, 1,
-            [Define to 1 if the capture buffer size can be set.])
-         ])
-         AC_CHECK_FUNCS(bpf_image pcap_set_tstamp_precision pcap_set_tstamp_type)
-       fi
-
-       AC_WIRESHARK_POP_FLAGS
-       LIBS="$ws_ac_save_LIBS"
-])
-
-#
-# AC_WIRESHARK_ZLIB_CHECK
-#
-AC_DEFUN([AC_WIRESHARK_ZLIB_CHECK],
-[
-       AC_WIRESHARK_PUSH_FLAGS
-
-       if test "x$zlib_dir" != "x"
-       then
-         #
-         # The user specified a directory in which zlib resides,
-         # so add the "include" subdirectory of that directory to
-         # the include file search path and the "lib" subdirectory
-         # of that directory to the library search path.
-         #
-         # XXX - if there's also a zlib in a directory that's
-         # already in CPPFLAGS or LDFLAGS, this won't make us find
-         # the version in the specified directory, as the compiler
-         # and/or linker will search that other directory before it
-         # searches the specified directory.
-         #
-         CPPFLAGS="$CPPFLAGS -I$zlib_dir/include"
-         AC_WIRESHARK_ADD_DASH_L(LDFLAGS, $zlib_dir/lib)
-       fi
-
-       #
-       # Make sure we have "zlib.h".  If we don't, it means we probably
-       # don't have zlib, so don't use it.
-       #
-       AC_CHECK_HEADER(zlib.h,,
-         [
-           if test "x$zlib_dir" != "x"
-           then
-             #
-             # The user used "--with-zlib=" to specify a directory
-             # containing zlib, but we didn't find the header file
-             # there; that either means they didn't specify the
-             # right directory or are confused about whether zlib
-             # is, in fact, installed.  Report the error and give up.
-             #
-             AC_MSG_ERROR([zlib header not found in directory specified in --with-zlib])
-           else
-             if test "x$want_zlib" = "xyes"
-             then
-               #
-               # The user tried to force us to use the library, but we
-               # couldn't find the header file; report an error.
-               #
-               AC_MSG_ERROR(Header file zlib.h not found.)
-             else
-               #
-               # We couldn't find the header file; don't use the
-               # library, as it's probably not present.
-               #
-               want_zlib=no
-             fi
-           fi
-         ])
-
-       if test "x$want_zlib" != "xno"
-       then
-               #
-               # Well, we at least have the zlib header file.
-               #
-               # We link with zlib to support uncompression of
-               # gzipped network traffic, e.g. in an HTTP request
-               # or response body.
-               #
-               # Check for inflate() in zlib, to make sure the
-               # zlib library is usable.  For example, on at
-               # least some versions of Fedora, if you have a
-               # 64-bit machine, have both the 32-bit and 64-bit
-               # versions of the run-time zlib package installed,
-               # and have only the *32-bit* version of the zlib
-               # development package installed, it'll find the
-               # header, and think it can use zlib, and will use
-               # it in subsequent tests, but it'll try and link
-               # 64-bit test programs with the 32-bit library,
-               # causing those tests to falsely fail.  Hilarity
-               # ensues.
-               #
-               if test "x$zlib_dir" != "x"
-               then
-                 WS_CPPFLAGS="$WS_CPPFLAGS -I$zlib_dir/include"
-                 AC_WIRESHARK_ADD_DASH_L(WS_LDFLAGS, $zlib_dir/lib)
-               fi
-               AC_DEFINE(HAVE_ZLIB, 1, [Define to use zlib library])
-               #
-               # Check for "inflate()" in zlib to make sure we can
-               # link with it.
-               #
-               AC_CHECK_LIB(z, inflate,,
-                   AC_MSG_ERROR([zlib.h found but linking with -lz failed to find inflate(); do you have the right developer package installed (32-bit vs. 64-bit)?]))
-
-               #
-               # Check for "inflatePrime()" in zlib, which we need
-               # in order to read compressed capture files.
-               #
-               AC_CHECK_FUNCS(inflatePrime)
-
-               if test "x$ac_cv_func_inflatePrime" = "xyes" ; then
-                       #
-                       # Now check for "inflatePrime()" in zlib when
-                       # linking with the linker flags for GTK+
-                       # applications; people often grab XFree86 source
-                       # and build and install it on their systems,
-                       # and they appear sometimes to misconfigure
-                       # XFree86 so that, even on systems with zlib,
-                       # it assumes there is no zlib, so the XFree86
-                       # build process builds and installs its
-                       # own zlib in the X11 library directory.
-                       #
-                       # The zlib in at least some versions of XFree86
-                       # is an older version that may lack "inflatePrime()",
-                       # and that's the zlib with which Wireshark gets
-                       # linked, so the build of Wireshark fails.
-                       #
-                       AC_MSG_CHECKING([for inflatePrime missing when linking with X11])
-                       AC_TRY_LINK_FUNC(inflatePrime, AC_MSG_RESULT(no),
-                         [
-                           AC_MSG_RESULT(yes)
-                           AC_MSG_ERROR(old zlib found when linking with X11 - get rid of old zlib.)
-                         ])
-               fi
-       fi
-
-       AC_WIRESHARK_POP_FLAGS
-])
-
-#
-# AC_WIRESHARK_LIBLUA_CHECK
-#
-# Sets $have_lua to yes or no.
-# If it's yes, it also sets $LUA_CFLAGS and $LUA_LIBS.
-AC_DEFUN([AC_WIRESHARK_LIBLUA_CHECK],[
-
-       AC_WIRESHARK_PUSH_FLAGS
-
-       if test "x$want_lua_dir" = "x"
-       then
-               # The user didn't tell us where to find Lua.  Let's go look for it.
-
-               # First, try the standard (pkg-config) way.
-               # Unfortunately Lua's pkg-config file isn't standardly named.
-               # Some distributions allow installation of multiple versions of
-               # Lua at the same time.  On such systems each version has its
-               # own package name.
-               #
-               # We use a for loop instead of giving all the package names to
-               # PKG_CHECK_MODULES because doing the latter doesn't appear to
-               # work reliably (some package names are not searched for).
-               for pkg in "lua < 5.3" lua5.2 lua-5.2 lua52 lua5.1 lua-5.1 lua51 lua5.0 lua-5.0 lua50
-               do
-                       AC_MSG_CHECKING(if you have $pkg)
-                       PKG_CHECK_EXISTS($pkg,
-                       [
-                        AC_MSG_RESULT(yes)
-                        have_lua=yes
-                       ],
-                       [
-                        AC_MSG_RESULT(no)
-                       ])
-
-                       if test "x$have_lua" = "xyes"
-                       then
-                               PKG_WIRESHARK_CHECK_SYSTEM_MODULES(LUA, $pkg)
-                               CPPFLAGS="$LUA_CFLAGS $CPPFLAGS"
-                               AC_CHECK_HEADERS(lua.h lualib.h lauxlib.h)
-                               break
-                       fi
-               done
-       fi
-
-       if test "x$have_lua" != "xyes"
-       then
-               # We don't have pkg-config or the user specified the path to
-               # Lua (in $want_lua_dir).
-               # Let's look for the header file.
-
-               AC_MSG_CHECKING(for the location of lua.h)
-               if test "x$want_lua_dir" = "x"
-               then
-                       # The user didn't tell us where to look so we'll look in some
-                       # standard locations.
-                       want_lua_dir="/usr/local /usr $prefix"
-               fi
-               for dir in $want_lua_dir
-               do
-                       if test -r "$dir/include/lua.h"
-                       then
-                               header_dir="$dir/include"
-                               lua_dir=$dir
-                               break
-                       fi
-
-                       for ver in 5.2 52 5.1 51 5.0 50
-                       do
-                               if test -r "$dir/include/lua$ver/lua.h"
-                               then
-                                       header_dir="$dir/include/lua$ver"
-                                       lua_dir=$dir
-                                       break
-                               fi
-                       done
-               done
-
-               if test "x$header_dir" = "x"
-               then
-                       have_lua=no
-                       AC_MSG_RESULT(not found)
-               else
-                       AC_MSG_RESULT($header_dir)
-
-                       AC_MSG_CHECKING(the Lua version)
-                       lua_ver=`$AWK AS_ESCAPE('/LUA_VERSION_NUM/ { print $NF; }' $header_dir/lua.h | sed 's/0/./')`
-
-                       if test "x$lua_ver" = "x5.3"
-                       then
-                               # Wireshark doesn't compile with Lua 5.3 today
-                               AC_MSG_RESULT($lua_ver - disabling Lua support)
-                               have_lua=no
-                       else
-                               AC_MSG_RESULT($lua_ver)
-
-                               CPPFLAGS="$CPPFLAGS -I$header_dir"
-                               AC_CHECK_HEADERS(lua.h lualib.h lauxlib.h, ,
-                               [
-                                       have_lua=no
-                               ])
-                       fi
-
-                       if test "x$have_lua" = "x"
-                       then
-                               # Set LUA_CFLAGS
-                               LUA_CFLAGS="-I$header_dir"
-
-                               # We have the header files and they work.  Now let's check if we
-                               # have the library and it works.
-                               #
-                               # XXX - if there's also a liblua in a directory that's
-                               # already in CPPFLAGS or LDFLAGS, this won't make us find
-                               # the version in the specified directory, as the compiler
-                               # and/or linker will search that other directory before it
-                               # searches the specified directory.
-                               #
-                               # XXX - lib64?
-                               LDFLAGS="-L$lua_dir/lib $LDFLAGS"
-                               AC_SEARCH_LIBS(luaL_openlibs, [lua-${lua_ver} lua${lua_ver} lua],
-                               [
-                                       LUA_LIBS="-L$lua_dir/lib $ac_cv_search_luaL_openlibs -lm"
-                                       have_lua=yes
-                               ],[
-                                       # Try again with -ldl
-
-                                       # Tell autoconf we don't want to use the cached result
-                                       unset ac_cv_search_luaL_openlibs
-
-                                       AC_SEARCH_LIBS(luaL_openlibs, [lua-${lua_ver} lua${lua_ver} lua],
-                                       [
-                                               LUA_LIBS="-L$lua_dir/lib $ac_cv_search_luaL_openlibs -lm -ldl"
-                                               have_lua=yes
-                                       ],[
-                                               have_lua=no
-                                       ], -lm -ldl)
-                               ], -lm)
-                       fi
-               fi
-       fi
-
-       AC_WIRESHARK_POP_FLAGS
-])
-
-#
-# AC_WIRESHARK_C_ARES_CHECK
-#
-AC_DEFUN([AC_WIRESHARK_C_ARES_CHECK],
-[
-       want_c_ares=defaultyes
-
-       if test "x$want_c_ares" = "xdefaultyes"; then
-               want_c_ares=yes
-       fi
-
-       if test "x$want_c_ares" = "xyes"; then
-               AC_CHECK_LIB(cares, ares_init,
-                 [
-                   #
-                   # Make sure we have c-ares 1.5 or later; we don't
-                   # support the older API.
-                   #
-                   AC_MSG_CHECKING([whether we have c-ares 1.5 or later])
-                   AC_TRY_COMPILE(
-                     [
-#include <ares.h>
-#include <ares_version.h>
-                     ],
-                     [
-#if ((ARES_VERSION_MAJOR < 1) || \
-    (1 == ARES_VERSION_MAJOR == 1 && ARES_VERSION_MINOR < 5))
-#error You lose
-#else
-                       return 0;
-#endif
-                     ],
-                     [
-                       AC_MSG_RESULT([yes])
-                       C_ARES_LIBS=-lcares
-                       AC_DEFINE(HAVE_C_ARES, 1, [Define to use c-ares library])
-                       have_good_c_ares=yes
-                     ],
-                     [
-                       AC_MSG_RESULT([no])
-                       AC_MSG_ERROR([Pre-1.5 versions of c-ares aren't supported])
-                     ])
-                 ])
-       else
-               AC_MSG_RESULT(not required)
-       fi
-])
-
-
-#
-# AC_WIRESHARK_LIBCAP_CHECK
-#
-AC_DEFUN([AC_WIRESHARK_LIBCAP_CHECK],
-[
-       want_libcap=defaultyes
-
-       if test "x$want_libcap" = "xdefaultyes"; then
-               want_libcap=yes
-       fi
-
-       if test "x$want_libcap" = "xyes"; then
-               AC_CHECK_LIB(cap, cap_set_flag,
-                 [
-                   LIBCAP_LIBS=-lcap
-                   AC_DEFINE(HAVE_LIBCAP, 1, [Define to use the libcap library])
-                   have_good_libcap=yes
-                 ],,
-               )
-       else
-               AC_MSG_RESULT(not required)
-       fi
-])
-
-
-#
-# AC_WIRESHARK_KRB5_CHECK
-#
-AC_DEFUN([AC_WIRESHARK_KRB5_CHECK],
-[
-       AC_WIRESHARK_PUSH_FLAGS
-       wireshark_save_LIBS="$LIBS"
-
-       if test "x$krb5_dir" != "x"
-       then
-         #
-         # The user specified a directory in which kerberos resides,
-         # so add the "include" subdirectory of that directory to
-         # the include file search path and the "lib" subdirectory
-         # of that directory to the library search path.
-         #
-         # XXX - if there's also a kerberos in a directory that's
-         # already in CPPFLAGS or LDFLAGS, this won't make us find
-         # the version in the specified directory, as the compiler
-         # and/or linker will search that other directory before it
-         # searches the specified directory.
-         #
-         KRB5_CFLAGS="-I$krb5_dir/include"
-         ac_heimdal_version=`grep heimdal $krb5_dir/include/krb5.h | head -n 1 | sed 's/^.*heimdal.*$/HEIMDAL/'`
-         # MIT Kerberos moved krb5.h to krb5/krb5.h starting with release 1.5
-         ac_mit_version_olddir=`grep 'Massachusetts' $krb5_dir/include/krb5.h | head -n 1 | sed 's/^.*Massachusetts.*$/MIT/'`
-         ac_mit_version_newdir=`grep 'Massachusetts' $krb5_dir/include/krb5/krb5.h | head -n 1 | sed 's/^.*Massachusetts.*$/MIT/'`
-         ac_krb5_version="$ac_heimdal_version$ac_mit_version_olddir$ac_mit_version_newdir"
-         if test "x$ac_krb5_version" = "xHEIMDAL"
-         then
-             KRB5_LIBS="-L$krb5_dir/lib -lkrb5 -lasn1 -lcrypto -lroken -lcrypt"
-         else
-             KRB5_LIBS="-L$krb5_dir/lib -lkrb5 -lk5crypto -lcom_err"
-         fi
-         if test "x$ac_krb5_version" = "xMIT"
-         then
-           AC_DEFINE(HAVE_MIT_KERBEROS, 1, [Define to use MIT kerberos])
-         fi
-       else
-         AC_PATH_TOOL(KRB5_CONFIG, krb5-config)
-         if test -x "$KRB5_CONFIG"
-         then
-           KRB5_CFLAGS=`"$KRB5_CONFIG" --cflags`
-           KRB5_LIBS=`"$KRB5_CONFIG" --libs`
-           ac_krb5_version=`"$KRB5_CONFIG" --version | head -n 1 | sed -e 's/^.*heimdal.*$/HEIMDAL/' -e 's/^Kerberos .*$/MIT/' -e 's/^Solaris Kerberos .*$/MIT/'`
-         fi
-       fi
-       #
-       # If -lcrypto is in KRB5_LIBS, we require it to build
-       # with Heimdal/MIT.  We don't want to built with it by
-       # default, due to annoying license incompatibilities
-       # between the OpenSSL license and the GPL.
-       #
-       case "$KRB5_LIBS" in
-       *-lcrypto*)
-         if test "x$with_krb5_crypto_openssl" != "xyes"
-           then
-             AC_MSG_ERROR([Kerberos library requires -lcrypto, so you must specify --with-krb5-crypto-openssl])
-           fi
-           ;;
-       esac
-
-       CPPFLAGS="$CPPFLAGS $KRB5_CFLAGS"
-
-       #
-       # Make sure we have "krb5.h".  If we don't, it means we probably
-       # don't have kerberos, so don't use it.
-       #
-       AC_CHECK_HEADER(krb5.h,,
-         [
-           if test "x$krb5_dir" != "x"
-           then
-             #
-             # The user used "--with-krb5=" to specify a directory
-             # containing kerberos, but we didn't find the header file
-             # there; that either means they didn't specify the
-             # right directory or are confused about whether kerberos
-             # is, in fact, installed.  Report the error and give up.
-             #
-             AC_MSG_ERROR([kerberos header not found in directory specified in --with-krb5])
-           else
-             if test "x$want_krb5" = "xyes"
-             then
-               #
-               # The user tried to force us to use the library, but we
-               # couldn't find the header file; report an error.
-               #
-               AC_MSG_ERROR(Header file krb5.h not found.)
-             else
-               #
-               # We couldn't find the header file; don't use the
-               # library, as it's probably not present.
-               #
-               KRB5_CFLAGS=""
-               KRB5_LIBS=""
-               want_krb5=no
-               AC_MSG_RESULT(No Heimdal or MIT header found - disabling dissection for some kerberos data in packet decoding)
-             fi
-           fi
-         ])
-
-       if test "x$want_krb5" != "xno"
-       then
-           #
-           # Well, we at least have the krb5 header file.
-           # Check whether this is Heimdal or MIT.
-           #
-           AC_MSG_CHECKING(whether the Kerberos library is Heimdal or MIT)
-           if test "x$ac_krb5_version" = "xHEIMDAL" -o "x$ac_krb5_version" = "xMIT"
-           then
-               #
-               # Yes.
-               # Check whether we have krb5_kt_resolve - and whether
-               # we need to link with -lresolv when linking with
-               # the Kerberos library.
-               #
-               AC_MSG_RESULT($ac_krb5_version)
-               found_krb5_kt_resolve=no
-               for extras in "" "-lresolv"
-               do
-                   LIBS="$KRB5_LIBS $extras $wireshark_save_LIBS"
-                   if test -z "$extras"
-                   then
-                       AC_MSG_CHECKING([whether $ac_krb5_version includes krb5_kt_resolve])
-                   else
-                       AC_MSG_CHECKING([whether $ac_krb5_version includes krb5_kt_resolve (linking with $extras)])
-                   fi
-                   AC_TRY_LINK(
-                       [
-#      include <krb5.h>
-                       ],
-                       [
-                           krb5_kt_resolve(0, 0, 0);
-                       ],
-                       [
-                           #
-                           # We found "krb5_kt_resolve()".
-                           #
-                           AC_MSG_RESULT(yes)
-                           if test -n "$extras"; then
-                             KRB5_LIBS="$KRB5_LIBS $extras"
-                           fi
-                           AC_DEFINE(HAVE_KERBEROS, 1, [Define to use kerberos])
-                           if test "x$ac_krb5_version" = "xHEIMDAL"
-                           then
-                               AC_DEFINE(HAVE_HEIMDAL_KERBEROS, 1, [Define to use heimdal kerberos])
-                           elif test "x$ac_krb5_version" = "xMIT"
-                           then
-                               AC_DEFINE(HAVE_MIT_KERBEROS, 1, [Define to use MIT kerberos])
-                           fi
-                           found_krb5_kt_resolve=yes
-                           break
-                       ],
-                       [
-                           AC_MSG_RESULT(no)
-                       ])
-               done
-               if test "$found_krb5_kt_resolve" = no
-               then
-                   #
-                   # We didn't find "krb5_kt_resolve()" in the
-                   # Kerberos library, even when we tried linking
-                   # with -lresolv; we can't link with kerberos.
-                   #
-                   if test "x$want_krb5" = "xyes"
-                   then
-                       #
-                       # The user tried to force us to use the library,
-                       # but we can't do so; report an error.
-                       #
-                       AC_MSG_ERROR(Usable $ac_krb5_version not found)
-                   else
-                       #
-                       # Don't use
-                       #
-                       AC_MSG_RESULT(Usable $ac_krb5_version not found - disabling dissection for some kerberos data in packet decoding)
-                       KRB5_CFLAGS=""
-                       KRB5_LIBS=""
-                       want_krb5=no
-                   fi
-               else
-                   #
-                   # We can link with Kerberos; see whether krb5.h
-                   # defines KEYTYPE_ARCFOUR_56 (where "defines" means
-                   # "as a #define or as an enum member).
-                   #
-                   AC_MSG_CHECKING([whether krb5.h defines KEYTYPE_ARCFOUR_56])
-                   AC_COMPILE_IFELSE(
-                     [
-                       AC_LANG_SOURCE(
-                         [[
-                           #include <krb5.h>
-                           #include <stdio.h>
-
-                           int main()
-                           {
-                             printf("%u\n", KEYTYPE_ARCFOUR_56);
-                           }
-                         ]])
-                     ],
-                     [
-                       AC_MSG_RESULT(yes)
-                       AC_DEFINE(HAVE_KEYTYPE_ARCFOUR_56, 1, [Define if krb5.h defines KEYTYPE_ARCFOUR_56])
-                     ],
-                     [
-                       AC_MSG_RESULT(no)
-                     ])
-               fi
-           else
-               #
-               # It's not Heimdal or MIT.
-               #
-               AC_MSG_RESULT(no)
-               if test "x$want_krb5" = "xyes"
-               then
-                   #
-                   # The user tried to force us to use the library,
-                   # but we can't do so; report an error.
-                   #
-                   AC_MSG_ERROR(Kerberos not found)
-               else
-                   #
-                   # Don't use.
-                   #
-                   AC_MSG_RESULT(Kerberos not found - disabling dissection for some kerberos data in packet decoding)
-                   KRB5_CFLAGS=""
-                   KRB5_LIBS=""
-                   want_krb5=no
-               fi
-           fi
-       else
-           #
-           # The user asked us not to use Kerberos, or they didn't
-           # say whether they wanted us to use it but we found
-           # that we couldn't.
-           #
-           KRB5_CFLAGS=""
-           KRB5_LIBS=""
-           want_krb5=no
-       fi
-       AC_SUBST(KRB5_CFLAGS)
-       AC_SUBST(KRB5_LIBS)
-
-       LIBS="$wireshark_save_LIBS"
-       AC_WIRESHARK_POP_FLAGS
-])
-
-#
-# AC_WIRESHARK_MAXMINDDB_CHECK
-#
-AC_DEFUN([AC_WIRESHARK_MAXMINDDB_CHECK],
-[
-       want_maxminddb=defaultyes
-
-       if test "x$want_maxminddb" = "xdefaultyes"; then
-               want_maxminddb=yes
-       fi
-
-       if test "x$want_maxminddb" = "xyes"; then
-               AC_CHECK_LIB(maxminddb, MMDB_open,
-                 [
-                   MAXMINDDB_LIBS=-lmaxminddb
-                   AC_DEFINE(HAVE_MAXMINDDB, 1, [Define to use MaxMind DB library])
-                   have_good_maxminddb=yes
-                 ],,
-               )
-       else
-               AC_MSG_RESULT(not required)
-       fi
-])
-
-#
-# AC_WIRESHARK_LIBSSH_CHECK
-#
-AC_DEFUN([AC_WIRESHARK_LIBSSH_CHECK],
-[
-       want_libssh=defaultyes
-
-       if test "x$want_libssh" = "xdefaultyes"; then
-               want_libssh=yes
-       fi
-
-       if test "x$want_libssh" = "xyes"; then
-               AC_CHECK_LIB(ssh, ssh_new,
-                 [
-                   LIBSSH_LIBS=-lssh
-                       AC_DEFINE(HAVE_LIBSSH, 1, [Define to use libssh library])
-                       have_good_libssh=yes
-                 ],,
-               )
-               AC_MSG_CHECKING([whether libssh >= 0.6.0 for sshdump, ciscodump])
-               PKG_CHECK_EXISTS([libssh >= 0.6.0],
-                 [
-                  AC_MSG_RESULT(yes)
-                  AC_DEFINE(HAVE_LIBSSH_POINTSIX, 1, [Defined if libssh >= 0.6.0])
-                  have_libssh_pointsix=yes
-                 ],
-                 [AC_MSG_RESULT(no)]
-               )
-               if test "x$have_libssh_pointsix" = "xyes"; then
-                       # ssh_userauth_agent exists only >= 0.6.0, but not on Windows
-                       # so check explicitly
-                       AC_CHECK_LIB(ssh, ssh_userauth_agent,
-                         [
-                           AC_DEFINE(HAVE_SSH_USERAUTH_AGENT, 1, [Libssh library has ssh_userauth_agent])
-                           have_ssh_userauth_agent=yes
-                         ],,
-                       )
-               fi
-       else
-               AC_MSG_RESULT(not required)
-       fi
-])
-
-#
-# AC_WIRESHARK_NGHTTP2_CHECK
-#
-AC_DEFUN([AC_WIRESHARK_NGHTTP2_CHECK],
-[
-       want_nghttp2=defaultyes
-
-       if test "x$want_nghttp2" = "xdefaultyes"; then
-               want_nghttp2=yes
-       fi
-
-       if test "x$want_nghttp2" = "xyes"; then
-               AC_CHECK_LIB(nghttp2, nghttp2_hd_inflate_new,
-                       [
-                               AC_CHECK_HEADERS(nghttp2/nghttp2.h,
-                                       [
-                                               NGHTTP2_LIBS=-lnghttp2
-                                               AC_DEFINE(HAVE_NGHTTP2, 1, [Define to use nghttp2 library])
-                                               have_good_nghttp2=yes
-                                       ],,
-                               )
-                       ],,
-               )
-       else
-               AC_MSG_RESULT(not required)
-       fi
-])
-
-#AC_WIRESHARK_LDFLAGS_CHECK
-#
-# $1 : ldflag(s) to test
-#
-# We attempt to compile and link a test program with the specified linker
-# flag. The defined flag is added to LDFLAGS only if the link succeeds.
-#
-AC_DEFUN([AC_WIRESHARK_LDFLAGS_CHECK],
-[LD_OPTION="$1"
-AC_MSG_CHECKING(whether we can add $LD_OPTION to LDFLAGS)
-AC_WIRESHARK_PUSH_FLAGS
-LDFLAGS="$LDFLAGS $LD_OPTION"
-can_add_to_ldflags=""
-AC_LINK_IFELSE(
-  [
-    AC_LANG_SOURCE([[int main() { return 0; }]])
-  ],
-  [
-    AC_MSG_RESULT(yes)
-    AX_APPEND_FLAG([$LD_OPTION], [WS_LDFLAGS])
-    can_add_to_ldflags=yes
-  ],
-  [
-    AC_MSG_RESULT(no)
-    can_add_to_ldflags=no
-  ])
-  AC_WIRESHARK_POP_FLAGS
-])
-
-dnl
-dnl Check whether, if you pass an unknown warning option to the
-dnl compiler, it fails or just prints a warning message and succeeds.
-dnl Set ac_wireshark_unknown_warning_option_error to the appropriate flag
-dnl to force an error if it would otherwise just print a warning message
-dnl and succeed.
-dnl
-AC_DEFUN([AC_WIRESHARK_CHECK_UNKNOWN_WARNING_OPTION_ERROR],
-    [
-       AC_MSG_CHECKING([whether the compiler fails when given an unknown warning option])
-       AC_WIRESHARK_PUSH_FLAGS
-       CFLAGS="$CFLAGS -Wxyzzy-this-will-never-succeed-xyzzy"
-       AC_TRY_COMPILE(
-           [],
-           [return 0],
-           [
-               AC_MSG_RESULT([no, adding -Werror=unknown-warning-option])
-               #
-               # We're assuming this is clang, where
-               # -Werror=unknown-warning-option is the appropriate
-               # option to force the compiler to fail.
-               #
-               ac_wireshark_unknown_warning_option_error="-Werror=unknown-warning-option"
-           ],
-           [
-               AC_MSG_RESULT([yes])
-           ])
-       AC_WIRESHARK_POP_FLAGS
-    ])
-
-dnl
-dnl Check whether, if you pass a valid-for-C-but-not-C++ option to the
-dnl compiler, it fails or just prints a warning message and succeeds.
-dnl Set ac_wireshark_non_cxx_warning_option_error to the appropriate flag
-dnl to force an error if it would otherwise just print a warning message
-dnl and succeed.
-dnl
-AC_DEFUN([AC_WIRESHARK_CHECK_NON_CXX_WARNING_OPTION_ERROR],
-    [
-       AC_MSG_CHECKING([whether the compiler fails when given an warning option not supported for C++])
-       #
-       # Some C+ compilers warn about -Wmissing-prototypes, and some warn
-       # about -Wmissing-declarations.  Check both.
-       #
-       AC_LANG_PUSH(C++)
-       AC_WIRESHARK_PUSH_FLAGS
-       save_CXXFLAGS="$CXXFLAGS"
-       for flag in -Wmissing-prototypes -Wmissing-declarations; do
-           CXXFLAGS="$save_CXXFLAGS $flag"
-           AC_TRY_COMPILE(
-               [],
-               [return 0],
-               [
-                   #
-                   # We're assuming this is g++, where -Werror is the
-                   # appropriate option to force the compiler to fail.
-                   # Check whether it fails with -Werror.
-                   #
-                   # NOTE: it's important to put -Werror *before*
-                   # the flag, otherwise, when it sees the flag,
-                   # it doesn't yet know that warnings should be
-                   # treated as errors, and doesn't treat the
-                   # "that's C-only" warning as an error.
-                   #
-                   CXXFLAGS="$save_CXXFLAGS -Werror $flag"
-                   AC_TRY_COMPILE(
-                       [],
-                       [return 0],
-                       [
-                           #
-                           # No, so this option is actually OK
-                           # with our C++ compiler.
-                           #
-                           # (We need an empty command here to
-                           # prevent some versions of autoconf
-                           # from generating a script with an
-                           # empty "then" clause for an if statement.)
-                           #
-                           :
-                       ],
-                       [
-                           #
-                           # Yes, so we need -Werror for the tests.
-                           #
-                           ac_wireshark_non_cxx_warning_option_error="-Werror"
-                           break
-                       ])
-               ])
-       done
-       AC_WIRESHARK_POP_FLAGS
-       AC_LANG_POP
-       if test x$ac_wireshark_non_cxx_warning_option_error = x; then
-           AC_MSG_RESULT([yes])
-       else
-           AC_MSG_RESULT([no, adding -Werror])
-       fi
-    ])
-
-#
-# AC_WIRESHARK_COMPILER_FLAGS_CHECK
-#
-# $1 : flags to test
-# $2 : if supplied, C for C-only flags, CXX for C++-only flags
-# $3 : if supplied, a program to try to compile with the flag
-#      and, if the compile fails when -Werror is turned on,
-#      we don't add the flag - used for warning flags that
-#      issue incorrect or non-useful warnings with some
-#      compiler versions
-# $4 : must be supplied if $3 is supplied - a message describing
-#      for what the test program is testing
-#
-# The macro first determines if the compiler supports GCC-style flags.
-# Then it attempts to compile with the defined cflags.  The defined
-# flags are added to WS_CHECKED_CFLAGS only if the compilation succeeds.
-# CFLAGS remains unchanged. can_add_to_cflags is set to "no" when the
-# flag is checked but unavailable. (Like-wise for CXXFLAGS.)
-#
-# We do this because not all such options are necessarily supported by
-# the version of the particular compiler we're using.
-#
-AC_DEFUN([AC_WIRESHARK_COMPILER_FLAGS_CHECK],
-[GCC_OPTION="$1"
-can_add_to_cflags=""
-can_add_to_cxxflags=""
-if test "x$ac_supports_gcc_flags" = "xyes" ; then
-  if test "$2" != CXX ; then
-    #
-    # Not C++-only; if this can be added to the C compiler flags, add them.
-    #
-    # If the option begins with "-W", add
-    # $ac_wireshark_unknown_warning_option_error to make sure that
-    # we'll get an error if it's an unknown warning option; not all
-    # compilers treat unknown warning options as errors (I'm looking at
-    # you, clang).
-    #
-    # If the option begins with "-f" or "-m", add -Werror to make sure
-    # that we'll get an error if we get "argument unused during compilation"
-    # warnings, as those will either cause a failure for files compiled
-    # with -Werror or annoying noise for files compiled without it.
-    # (Yeah, you, clang.)
-    #
-    AC_MSG_CHECKING(whether we can add $GCC_OPTION to CFLAGS)
-    AC_WIRESHARK_PUSH_FLAGS
-    if expr "x$GCC_OPTION" : "x-W.*" >/dev/null
-    then
-      CFLAGS="$CFLAGS $ac_wireshark_unknown_warning_option_error $GCC_OPTION"
-    elif expr "x$GCC_OPTION" : "x-f.*" >/dev/null
-    then
-      CFLAGS="$CFLAGS -Werror $GCC_OPTION"
-    elif expr "x$GCC_OPTION" : "x-m.*" >/dev/null
-    then
-      CFLAGS="$CFLAGS -Werror $GCC_OPTION"
-    else
-      CFLAGS="$CFLAGS $GCC_OPTION"
-    fi
-    AC_COMPILE_IFELSE(
-      [
-        AC_LANG_SOURCE([[int foo;]])
-      ],
-      [
-        AC_MSG_RESULT(yes)
-        can_add_to_cflags=yes
-        #
-        # OK, do we have a test program?  If so, check
-        # whether it fails with this option and -Werror,
-        # and, if so, don't include it.
-        #
-        # We test arg 4 here because arg 3 is a program which
-        # could contain quotes (breaking the comparison).
-        #
-        if test "x$4" != "x" ; then
-          CFLAGS="$CFLAGS -Werror"
-          AC_MSG_CHECKING(whether $GCC_OPTION $4)
-          AC_COMPILE_IFELSE(
-            [AC_LANG_SOURCE($3)],
-            [
-              AC_MSG_RESULT(no)
-              #
-              # Remove "force an error for a warning" options, if we
-              # added them, by setting CFLAGS to the saved value plus
-              # just the new option.
-              #
-              AX_APPEND_FLAG([$GCC_OPTION], [WS_CFLAGS])
-              if test "$CC" = "$CC_FOR_BUILD"; then
-                #
-                # We're building the build tools with the same compiler
-                # with which we're building Wireshark, so add the flags
-                # to the flags for that compiler as well.
-                #
-                AX_APPEND_FLAG([$GCC_OPTION], [WS_CFLAGS_FOR_BUILD])
-              fi
-            ],
-            [
-              AC_MSG_RESULT(yes)
-            ])
-        else
-          #
-          # Remove "force an error for a warning" options, if we
-          # added them, by setting CFLAGS to the saved value plus
-          # just the new option.
-          #
-          AX_APPEND_FLAG([$GCC_OPTION], [WS_CFLAGS])
-          if test "$CC" = "$CC_FOR_BUILD"; then
-            #
-            # We're building the build tools with the same compiler
-            # with which we're building Wireshark, so add the flags
-            # to the flags for that compiler as well.
-            #
-            AX_APPEND_FLAG([$GCC_OPTION], [WS_CFLAGS_FOR_BUILD])
-          fi
-        fi
-      ],
-      [
-        AC_MSG_RESULT(no)
-        can_add_to_cflags=no
-      ])
-      AC_WIRESHARK_POP_FLAGS
-  fi
-  #
-  # Did we find a C++ compiler?
-  #
-  if test "x$CXX" != "x" ; then
-    #
-    # Yes.  Is this option only for the C compiler?
-    #
-    if test "$2" != C ; then
-      #
-      # Not C-only; if this option can be added to the C++ compiler
-      # options, add it.
-      #
-      # If the option begins with "-W", add
-      # $ac_wireshark_unknown_warning_option_error, as per the above, and
-      # also add $ac_wireshark_non_cxx_warning_option_error, because at
-      # lease some versions of g++ whine about -Wmissing-prototypes, the
-      # fact that at least one of those versions refuses to warn about
-      # function declarations without an earlier declaration nonwithstanding;
-      # perhaps there's a reason not to warn about that with C++ even though
-      # warning about it can be a Good Idea with C, but it's not obvious to
-      # me).
-      #
-      # If the option begins with "-f" or "-m", add -Werror to make sure
-      # that we'll get an error if we get "argument unused during compilation"
-      # warnings, as those will either cause a failure for files compiled
-      # with -Werror or annoying noise for files compiled without it.
-      # (Yeah, you, clang++.)
-      #
-      AC_MSG_CHECKING(whether we can add $GCC_OPTION to CXXFLAGS)
-      AC_WIRESHARK_PUSH_FLAGS
-      if expr "x$GCC_OPTION" : "x-W.*" >/dev/null
-      then
-        CXXFLAGS="$CXXFLAGS $ac_wireshark_unknown_warning_option_error $ac_wireshark_non_cxx_warning_option_error $GCC_OPTION"
-      elif expr "x$GCC_OPTION" : "x-f.*" >/dev/null
-      then
-        CXXFLAGS="$CXXFLAGS -Werror $GCC_OPTION"
-      elif expr "x$GCC_OPTION" : "x-m.*" >/dev/null
-      then
-        CXXFLAGS="$CXXFLAGS -Werror $GCC_OPTION"
-      else
-        CXXFLAGS="$CXXFLAGS $GCC_OPTION"
-      fi
-      AC_LANG_PUSH([C++])
-      AC_COMPILE_IFELSE(
-        [
-          AC_LANG_SOURCE([[int foo;]])
-        ],
-        [
-          AC_MSG_RESULT(yes)
-          can_add_to_cxxflags=yes
-          #
-          # OK, do we have a test program?  If so, check
-          # whether it fails with this option and -Werror,
-          # and, if so, don't include it.
-          #
-          # We test arg 4 here because arg 3 is a program which
-          # could contain quotes (breaking the comparison).
-          #
-          if test "x$4" != "x" ; then
-            CXXFLAGS="$CXXFLAGS -Werror"
-            AC_MSG_CHECKING(whether $GCC_OPTION $4)
-            AC_COMPILE_IFELSE(
-              [AC_LANG_SOURCE($3)],
-              [
-                AC_MSG_RESULT(no)
-                #
-                # Remove "force an error for a warning" options, if we
-                # added them, by setting CXXFLAGS to the saved value plus
-                # just the new option.
-                #
-                AX_APPEND_FLAG([$GCC_OPTION], [WS_CXXFLAGS])
-              ],
-              [
-                AC_MSG_RESULT(yes)
-              ])
-          else
-            #
-            # Remove "force an error for a warning" options, if we
-            # added them, by setting CXXFLAGS to the saved value plus
-            # just the new option.
-            #
-            AX_APPEND_FLAG([$GCC_OPTION], [WS_CXXFLAGS])
-          fi
-        ],
-        [
-          AC_MSG_RESULT(no)
-          can_add_to_cxxflags=no
-        ])
-      AC_WIRESHARK_POP_FLAGS
-      AC_LANG_POP([C++])
-    fi
-    if test "(" "$can_add_to_cflags" = "yes" -a "$can_add_to_cxxflags" = "no" ")" \
-         -o "(" "$can_add_to_cflags" = "no" -a "$can_add_to_cxxflags" = "yes" ")"
-    then
-      #
-      # Confusingly, some C++ compilers like -Wmissing-prototypes but
-      # don't like -Wmissing-declarations and others like
-      # -Wmissing-declarations but don't like -Wmissing-prototypes,
-      # the fact that the corresponding C compiler likes both.  Don't
-      # warn about them.
-      #
-      if test "(" x$GCC_OPTION != x-Wmissing-prototypes ")" \
-           -a "(" x$GCC_OPTION != x-Wmissing-declarations ")"
-      then
-         AC_MSG_WARN([$CC and $CXX appear to be a mismatched pair])
-      fi
-    fi
-  fi
-fi
-])
-
-# AC_WIRESHARK_GCC_FORTIFY_SOURCE_CHECK
-#
-# Checks if '-D_FORTIFY_SOURCE=...' is OK to use in CPPFLAGS.
-#  Use '-D_FORTIFY_SOURCE=...' in CPPFLAGS only if the GCC 'optimization level' is > 0.
-#  The use of '-D_FORTIFY_SOURCE=...' will cause a warning with at least some versions
-#    of glibc if the  GCC "optimization level" is 0 (default or -O or -O0)
-#    when using GCC to compile a source file which references the macro definition.
-#
-# See: http://gcc.gnu.org/ml/gcc-patches/2004-09/msg02055.html
-# See: http://sourceware.org/bugzilla/show_bug.cgi?id=13979
-#
-#   We'll use '-D_FORTIFY_SOURCE=2' only if there's no warning; Among other things this means
-#    that the  use of '-D_FORTIFY_SOURCE=2' with '-Werror' and '-O0' won't cause
-#    the compiler to stop on error.
-#   Assumption: CFLAGS already contains whatever optimization option including none) is
-#    to be used.
-#
-
-AC_DEFUN([AC_WIRESHARK_GCC_FORTIFY_SOURCE_CHECK],
-[
-if test "x$GCC" = "xyes" -o "x$CC" = "xclang" ; then
-  AC_MSG_CHECKING([whether -D_FORTIFY_SOURCE=2 can be used (without generating a warning)])
-  AC_WIRESHARK_PUSH_FLAGS
-  CFLAGS="$CFLAGS -Werror"
-  CPPFLAGS="$CPPFLAGS -D_FORTIFY_SOURCE=2"
-  AC_COMPILE_IFELSE([
-    AC_LANG_SOURCE([[
-                  #include <stdio.h>
-                      int foo;
-                  ]])],
-                  [
-                    AC_MSG_RESULT(yes)
-                    AX_APPEND_FLAG([-D_FORTIFY_SOURCE=2], [WS_CPPFLAGS])
-                  ],
-                  [
-                    AC_MSG_RESULT(no)
-                  ])
-  AC_WIRESHARK_POP_FLAGS
-fi
-])
-
-#
-# AC_WIRESHARK_GCC_SYSTEM_INCLUDE
-#
-# Replace -I include flag for -isystem in FLAGS argument
-#
-AC_DEFUN([AC_WIRESHARK_GCC_SYSTEM_INCLUDE],
-[
-       if test "x$GCC" = "xyes" -o "x$CC" = "xclang" ; then
-               $1=`echo " $$1" \
-                       | sed -e 's/  *-I *\// -isystem\//g' -e 's/^ *//'`
-       fi
-])
-
-#
-# PKG_WIRESHARK_CHECK_SYSTEM_MODULES
-#
-AC_DEFUN([PKG_WIRESHARK_CHECK_SYSTEM_MODULES],
-[
-       PKG_CHECK_MODULES($@)
-       AC_WIRESHARK_GCC_SYSTEM_INCLUDE($1_CFLAGS)
-])
-
-# Based on AM_PATH_GTK in gtk-2.0.m4.
-
-dnl AC_WIRESHARK_QT_MODULE_CHECK_WITH_QT_VERSION([MODULE, MINIMUM-VERSION,
-dnl     REQUESTED-MAJOR_VERSION, [ACTION-IF-FOUND, [ACTION-IF-NOT-FOUND]]])
-dnl Test for a particular Qt module, for a particular Qt major version,
-dnl and, if we find it add the flags and libraries for it to Qt_CFLAGS
-dnl and Qt_LIBS.
-dnl
-AC_DEFUN([AC_WIRESHARK_QT_MODULE_CHECK_WITH_QT_VERSION],
-[
-       case "$3" in
-
-       5)
-               #
-               # Check for Qt 5.
-               #
-               modprefix="Qt5"
-               #
-               # Version of the module we're checking for.
-               # Default to 5.2.0.
-               #
-               min_qt_version=5.2.0
-               ;;
-
-       *)
-               AC_MSG_ERROR([Qt version $3 is not a known Qt version])
-               ;;
-       esac
-
-       pkg_config_module="${modprefix}$1"
-       AC_MSG_CHECKING(for $pkg_config_module - version >= $min_qt_version)
-       if $PKG_CONFIG --atleast-version $min_qt_version $pkg_config_module; then
-               mod_version=`$PKG_CONFIG --modversion $pkg_config_module`
-               AC_MSG_RESULT(yes (version $mod_version))
-               mod_cflags=`$PKG_CONFIG --cflags $pkg_config_module`
-               AC_WIRESHARK_GCC_SYSTEM_INCLUDE(mod_cflags)
-               Qt_CFLAGS="$Qt_CFLAGS $mod_cflags"
-               Qt_LIBS="$Qt_LIBS `$PKG_CONFIG --libs $pkg_config_module`"
-               # Run Action-If-Found
-               ifelse([$4], , :, [$4])
-       else
-               AC_MSG_RESULT(no)
-               # Run Action-If-Not-Found
-               ifelse([$5], , :, [$5])
-       fi
-])
-
-dnl AC_WIRESHARK_QT_MODULE_CHECK([MODULE, MINIMUM-VERSION,
-dnl     REQUESTED-MAJOR_VERSION, [ACTION-IF-FOUND, [ACTION-IF-NOT-FOUND]]])
-dnl Test for a particular Qt module and add the flags and libraries
-dnl for it to Qt_CFLAGS and Qt_LIBS.
-dnl
-AC_DEFUN([AC_WIRESHARK_QT_MODULE_CHECK],
-[
-       #
-       # Prior to Qt 5, modules were named QtXXX.
-       # In Qt 5, they're named Qt5XXX.
-       # This will need to change to handle future major Qt releases.
-       #
-       case "$3" in
-
-       yes|5)
-               #
-               # Check for all versions of Qt we support.
-               # Try the Qt 5 version first.
-               #
-               versions="5"
-               ;;
-
-       *)
-               AC_MSG_ERROR([$3 is not a known Qt option])
-               ;;
-       esac
-
-       for version in $versions
-       do
-               AC_WIRESHARK_QT_MODULE_CHECK_WITH_QT_VERSION($1, $2,
-                   $version, [foundit=yes], [foundit=no])
-               if test "x$foundit" = "xyes"; then
-                       break
-               fi
-       done
-
-       if test "x$foundit" = "xyes"; then
-               # Remember which version of Qt we found
-               qt_version=$version
-               # Run Action-If-Found
-               ifelse([$4], , :, [$4])
-       else
-               # Run Action-If-Not-Found
-               ifelse([$5], , :, [$5])
-       fi
-])
-
-AC_DEFUN([AC_WIRESHARK_QT_ADD_PIC_IF_NEEDED],
-[
-    AC_LANG_PUSH([C++])
-       AC_WIRESHARK_PUSH_FLAGS
-       CPPFLAGS="$CPPFLAGS $Qt_CFLAGS"
-       AC_MSG_CHECKING([whether Qt works without -fPIC])
-       AC_PREPROC_IFELSE(
-               [AC_LANG_SOURCE([[#include <QtCore>]])],
-               [AC_MSG_RESULT(yes)],
-               [
-                       AC_MSG_RESULT(no)
-                       AC_MSG_CHECKING([whether Qt works with -fPIC])
-                       CPPFLAGS="$CPPFLAGS -fPIC"
-                       AC_PREPROC_IFELSE(
-                               [AC_LANG_SOURCE([[#include <QtCore>]])],
-                               [
-                                       AC_MSG_RESULT(yes)
-                                       Qt_CFLAGS="$Qt_CFLAGS -fPIC"
-                               ],
-                               [
-                                       AC_MSG_RESULT(no)
-                                       AC_MSG_ERROR(Couldn't compile Qt without -fPIC nor with -fPIC)
-                               ])
-               ])
-       AC_WIRESHARK_POP_FLAGS
-    AC_LANG_POP([C++])
-])
-
-dnl AC_WIRESHARK_QT_CHECK([MINIMUM-VERSION, REQUESTED-MAJOR_VERSION,
-dnl     [ACTION-IF-FOUND, [ACTION-IF-NOT-FOUND]]])
-dnl Test for Qt and define Qt_CFLAGS and Qt_LIBS.
-dnl
-AC_DEFUN([AC_WIRESHARK_QT_CHECK],
-[
-       qt_version_to_check="$2"
-
-       #
-       # Check for the Core module; if we don't have that,
-       # we don't have Qt.  If we *do* have it, we know what
-       # version it is, so only check for that version of
-       # other modules.
-       #
-       AC_WIRESHARK_QT_MODULE_CHECK(Core, $1, $qt_version_to_check,
-           [
-             qt_version_to_check=$qt_version
-             QT_VERSION=$mod_version
-             QT_VERSION_MAJOR=`echo "$QT_VERSION" | cut -f1 -d.`
-             QT_VERSION_MINOR=`echo "$QT_VERSION" | cut -f2 -d.`
-             QT_VERSION_MICRO=`echo "$QT_VERSION" | cut -f3 -d.`
-
-             # Qt 5.7 and later requires C++11
-             AS_IF([test $QT_VERSION_MAJOR -eq 5 -a $QT_VERSION_MINOR -ge 7],
-               [AS_IF([test "$HAVE_CXX11" -eq 0], [AC_MSG_ERROR([Qt 5.7 and later requires C++11])])])
-
-           ],
-           [no_qt=yes])
-
-       if test x"$no_qt" = x ; then
-               #
-               # We need the Gui module as well.
-               #
-               AC_WIRESHARK_QT_MODULE_CHECK(Gui, $1, $qt_version_to_check, ,
-                   [no_qt=yes])
-       fi
-
-       if test x"$no_qt" = x ; then
-               #
-               # Qt 5.0 appears to move the widgets out of Qt GUI
-               # to Qt Widgets; look for the Widgets module, but
-               # don't fail if we don't have it.
-               #
-               AC_WIRESHARK_QT_MODULE_CHECK(Widgets, $1, $qt_version_to_check)
-
-               #
-               # Qt 5.0 also appears to move the printing support into
-               # the Qt PrintSupport module.
-               #
-               AC_WIRESHARK_QT_MODULE_CHECK(PrintSupport, $1, $qt_version_to_check)
-
-               #
-               # Qt 5.0 added multimedia in the Qt
-               # Multimedia module.
-               #
-               have_qt_multimedia_lib=no
-               AC_WIRESHARK_QT_MODULE_CHECK(Multimedia, $1, $qt_version_to_check,
-                       have_qt_multimedia_lib=yes
-                       AC_DEFINE(QT_MULTIMEDIA_LIB, 1, [Define if we have QtMultimedia]))
-
-               #
-               # While we're at it, look for QtMacExtras.  (Presumably
-               # if we're not building for macOS, it won't be present.)
-               #
-               # XXX - is there anything in QtX11Extras or QtWinExtras
-               # that we should be using?
-               #
-               AC_WIRESHARK_QT_MODULE_CHECK(MacExtras, $1, $qt_version_to_check,
-                       AC_DEFINE(QT_MACEXTRAS_LIB, 1, [Define if we have QtMacExtras]))
-
-               AC_WIRESHARK_QT_ADD_PIC_IF_NEEDED
-
-               # Run Action-If-Found
-               ifelse([$3], , :, [$3])
-       else
-               # Run Action-If-Not-Found
-               ifelse([$4], , :, [$4])
-       fi
-
-])
-
-dnl AC_WIRESHARK_QT_TOOL_CHECK([TOOLPATHVAR, TOOL, REQUESTED-MAJOR_VERSION])
-dnl Test for a particular Qt tool for some specific version of Qt
-dnl
-AC_DEFUN([AC_WIRESHARK_QT_TOOL_CHECK],
-[
-       #
-       # At least in some versions of Debian/Ubuntu, and perhaps
-       # other OSes, the Qt build tools are just links to a
-       # program called "qtchooser", and even if you want to
-       # build with Qt 5, running the tool might give you the
-       # Qt 4 version of the tool unless you run the tool with
-       # a -qt=5 argument.
-       #
-       # So we look for qtchooser and, if we find it, use the
-       # -qt={version} argument, otherwise we look for particular
-       # tool versions using tool name suffixes.
-       #
-       AC_PATH_PROG(QTCHOOSER, qtchooser)
-       if test ! -z "$QTCHOOSER"; then
-               #
-               # We found qtchooser; we assume that means that
-               # the tool is linked to qtchooser, so that we
-               # can run it with the -qt={version} flag to get
-               # the appropriate version of the tool.
-               #
-               AC_PATH_PROG($1, $2)
-               if test "x$$1" = x; then
-                       #
-                       # We can't build Qt Wireshark without that
-                       # tool..
-                       #
-                       AC_MSG_ERROR(I couldn't find $2; make sure it's installed and in your path)
-               fi
-
-               #
-               # Add the -qt={version} argument to it.
-               #
-               $1="$$1 -qt=$qt_version"
-       else
-               #
-               # Annoyingly, on some Linux distros (e.g. Debian)
-               # the Qt 5 tools have no suffix and the Qt 4 tools
-               # have suffix -qt4. On other distros (e.g. openSUSE)
-               # the Qt 5 tools have suffix -qt5 and the Qt 4 tools
-               # have no suffix.
-               #
-               # So we check for the tool first with the -qtN suffix
-               # and then with no suffix.
-               #
-               AC_PATH_PROGS($1, [$2-qt$qt_version $2])
-               if test "x$$1" = x; then
-                       #
-                       # We can't build Qt Wireshark without that
-                       # tool..
-                       #
-                       AC_MSG_ERROR(I couldn't find $2-qt$qt_version or $2; make sure it's installed and in your path)
-               fi
-       fi
-])
-
-AC_DEFUN([AC_WIRESHARK_QT_TOOL_CHECK_LRELEASE],
-[
-  AC_WIRESHARK_QT_TOOL_CHECK(LRELEASE, lrelease, $2)
-  AC_MSG_CHECKING(whether lrelease -version works)
-  lrelease_version=`$LRELEASE -version 2>&AS_MESSAGE_LOG_FD`
-  AS_IF([test $? -ne 0],
-    [
-      AC_MSG_RESULT(no)
-      AC_MSG_ERROR([$LRELEASE -version returned non-zero exit status])
-    ])
-  AC_MSG_RESULT([ok, $lrelease_version])
-])
-
-#
-# AC_WIRESHARK_LZ4_CHECK
-#
-AC_DEFUN([AC_WIRESHARK_LZ4_CHECK],
-[
-       AC_WIRESHARK_PUSH_FLAGS
-
-       if test "x$lz4_dir" != "x"
-       then
-         #
-         # The user specified a directory in which lz4 resides,
-         # so add the "include" subdirectory of that directory to
-         # the include file search path and the "lib" subdirectory
-         # of that directory to the library search path.
-         #
-         # XXX - if there's also a lz4 in a directory that's
-         # already in CPPFLAGS or LDFLAGS, this won't make us find
-         # the version in the specified directory, as the compiler
-         # and/or linker will search that other directory before it
-         # searches the specified directory.
-         #
-         LZ4_CFLAGS="-I$lz4_dir/include"
-       fi
-
-       #
-       # Make sure we have "lz4.h".  If we don't, it means we probably
-       # don't have lz4, so don't use it.
-       #
-       AC_CHECK_HEADER(lz4.h,,
-         [
-           if test "x$lz4_dir" != "x"
-           then
-             #
-             # The user used "--with-lz4=" to specify a directory
-             # containing lz4, but we didn't find the header file
-             # there; that either means they didn't specify the
-             # right directory or are confused about whether lz4
-             # is, in fact, installed.  Report the error and give up.
-             #
-             AC_MSG_ERROR([lz4 header not found in directory specified in --with-lz4])
-           else
-             if test "x$want_lz4" = "xyes"
-             then
-               #
-               # The user tried to force us to use the library, but we
-               # couldn't find the header file; report an error.
-               #
-               AC_MSG_ERROR(Header file lz4.h not found.)
-             else
-               #
-               # We couldn't find the header file; don't use the
-               # library, as it's probably not present.
-               #
-               want_lz4=no
-             fi
-           fi
-         ])
-
-       if test "x$want_lz4" != "xno"
-       then
-               #
-               # Well, we at least have the lz4 header file.
-               # We link with lz4 to support uncompression of
-               # CQL traffic.
-               #
-               LZ4_LIBS="-llz4"
-               ac_save_LIBS="$LIBS"
-               LIBS="$LZ4_LIBS $LIBS"
-               AC_DEFINE(HAVE_LZ4, 1, [Define to use lz4 library])
-               #
-               # Check for "LZ4_decompress_safe()" in lz4, which we need
-               # in order to read compressed capture files.
-               #
-               AC_CHECK_FUNCS(LZ4_decompress_safe)
-               #
-               # Check for (optional) lz4frame.h
-               #
-               AC_CHECK_HEADERS(lz4frame.h)
-               LIBS="$ac_save_LIBS"
-       fi
-
-       AC_WIRESHARK_POP_FLAGS
-])
-
-#
-# AC_WIRESHARK_SNAPPY_CHECK
-#
-AC_DEFUN([AC_WIRESHARK_SNAPPY_CHECK],
-[
-       AC_WIRESHARK_PUSH_FLAGS
-
-       if test "x$snappy_dir" != "x"
-       then
-         #
-         # The user specified a directory in which snappy resides,
-         # so add the "include" subdirectory of that directory to
-         # the include file search path and the "lib" subdirectory
-         # of that directory to the library search path.
-         #
-         # XXX - if there's also a snappy in a directory that's
-         # already in CPPFLAGS or LDFLAGS, this won't make us find
-         # the version in the specified directory, as the compiler
-         # and/or linker will search that other directory before it
-         # searches the specified directory.
-         #
-         SNAPPY_CFLAGS="-I$snappy_dir/include"
-       fi
-
-       #
-       # Make sure we have "snappy-c.h".  If we don't, it means we probably
-       # don't have snappy, so don't use it.
-       #
-       AC_CHECK_HEADER(snappy-c.h,,
-         [
-           if test "x$snappy_dir" != "x"
-           then
-             #
-             # The user used "--with-snappy=" to specify a directory
-             # containing snappy, but we didn't find the header file
-             # there; that either means they didn't specify the
-             # right directory or are confused about whether snappy
-             # is, in fact, installed.  Report the error and give up.
-             #
-             AC_MSG_ERROR([snappy-c.header not found in directory specified in --with-snappy])
-           else
-             if test "x$want_snappy" = "xyes"
-             then
-               #
-               # The user tried to force us to use the library, but we
-               # couldn't find the header file; report an error.
-               #
-               AC_MSG_ERROR(Header file snappy-c.h not found.)
-             else
-               #
-               # We couldn't find the header file; don't use the
-               # library, as it's probably not present.
-               #
-               want_snappy=no
-             fi
-           fi
-         ])
-
-       if test "x$want_snappy" != "xno"
-       then
-               #
-               # Well, we at least have the snappy-c.header file.
-               # We link with snappy to support uncompression of
-               # compressed CQL traffic.
-               #
-               SNAPPY_LIBS=-lsnappy
-               ac_save_LIBS="$LIBS"
-               LIBS="$SNAPPY_LIBS $LIBS"
-               AC_DEFINE(HAVE_SNAPPY, 1, [Define to use snappy library])
-               #
-               # Check for "snappy_uncompress()" in snappy, which we need
-               # in order to read compressed capture files.
-               #
-               AC_CHECK_FUNCS(snappy_uncompress)
-               LIBS="$ac_save_LIBS"
-       fi
-
-       AC_WIRESHARK_POP_FLAGS
-])
-
-#
-# AC_WIRESHARK_BCG729_CHECK
-#
-AC_DEFUN([AC_WIRESHARK_BCG729_CHECK],
-[
-       want_bcg729=defaultyes
-
-       if test "x$want_bcg729" = "xdefaultyes"; then
-               want_bcg729=yes
-       fi
-
-       if test "x$want_bcg729" = "xyes"; then
-               AC_CHECK_LIB(bcg729, bcg729Decoder,
-                       [
-                               AC_CHECK_HEADERS(bcg729/decoder.h,
-                                       [
-                                               BCG729_LIBS=-lbcg729
-                                               AC_DEFINE(HAVE_BCG729, 1, [Define to use bcg729 library])
-                                               have_good_bcg729=yes
-                                       ],,
-                               )
-                       ],,
-               )
-       else
-               AC_MSG_RESULT(not required)
-       fi
-])
diff --git a/autogen.sh b/autogen.sh
deleted file mode 100755 (executable)
index 2923cb9..0000000
+++ /dev/null
@@ -1,140 +0,0 @@
-#!/bin/sh
-#
-# Run this to generate all the initial makefiles.
-#
-# Copyright 2014 The Wireshark Authors
-#
-# Wireshark - Network traffic analyzer
-# By Gerald Combs <gerald@wireshark.org>
-# Copyright 1998 Gerald Combs
-#
-# SPDX-License-Identifier: GPL-2.0-or-later
-
-DIE=true
-PROJECT="Wireshark"
-
-# If you are going to use the non-default name for automake becase your OS
-# installation has multiple versions, you need to call both aclocal and automake
-# with that version number, as they come from the same package.
-#AM_VERSION='-1.8'
-
-ACLOCAL=aclocal$AM_VERSION
-AUTOHEADER=autoheader
-AUTOMAKE=automake$AM_VERSION
-AUTOCONF=autoconf
-PKG_CONFIG=pkg-config
-
-# Check for python. Python did not support --version before version 2.5.
-# Until we require a version > 2.5, we should use -V.
-PYVER=`exec python -V 2>&1 | sed 's/Python *//'`
-# If "python" isn't found, try "python3"
-if test "$PYVER" = "exec: python: not found"
-then
-    PYVER=`exec python3 -V 2>&1 | sed 's/Python *//'`
-fi
-case "$PYVER" in
-2*|3*)
-  ;;
-*)
-  cat >&2 <<_EOF_
-
-       You must have Python in order to compile $PROJECT.
-       Download the appropriate package for your distribution/OS,
-       or get the source tarball at http://www.python.org/
-_EOF_
-  DIE="exit 1"
-esac
-
-ACVER=`$AUTOCONF --version | grep '^autoconf' | sed 's/.*) *//'`
-case "$ACVER" in
-'' | 0.* | 1.* | 2.[0-5]* | 2.6[0123]* )
-  cat >&2 <<_EOF_
-
-       You must have autoconf 2.64 or later installed to compile $PROJECT.
-       Download the appropriate package for your distribution/OS,
-       or get the source tarball at ftp://ftp.gnu.org/pub/gnu/autoconf/
-_EOF_
-  DIE="exit 1"
-  ;;
-esac
-
-
-AMVER=`$AUTOMAKE --version | grep '^automake' | sed 's/.*) *//'`
-case "$AMVER" in
-1.11* | 1.1[2-9]*)
-  ;;
-
-*)
-
-  cat >&2 <<_EOF_
-
-       You must have automake 1.11 or later installed to compile $PROJECT.
-       Download the appropriate package for your distribution/OS,
-       or get the source tarball at ftp://ftp.gnu.org/pub/gnu/automake/
-_EOF_
-  DIE="exit 1"
-  ;;
-esac
-
-
-#
-# Apple's Developer Tools have a "libtool" that has nothing to do with
-# the GNU libtool; they call the latter "glibtool".  They also call
-# libtoolize "glibtoolize".
-#
-# Check for "glibtool" first.
-#
-LTVER=`glibtool --version 2>/dev/null | grep ' libtool)' | \
-    sed 's/.*libtool) \([0-9][0-9.]*\)[^ ]* .*/\1/'`
-if test -z "$LTVER"
-then
-       LTVER=`libtool --version | grep ' libtool)' | \
-           sed 's/.*) \([0-9][0-9.]*\)[^ ]* .*/\1/' `
-       LIBTOOLIZE=libtoolize
-else
-       LIBTOOLIZE=glibtoolize
-fi
-case "$LTVER" in
-'' | 0.* | 1.* | 2.2 )
-
-  cat >&2 <<_EOF_
-
-       You must have libtool 2.2.2 or later installed to compile $PROJECT.
-       Download the appropriate package for your distribution/OS,
-       or get the source tarball at ftp://ftp.gnu.org/pub/gnu/libtool/
-_EOF_
-  DIE="exit 1"
-  ;;
-esac
-
-#
-# XXX - is there some minimum version for which we should be checking?
-#
-PCVER=`pkg-config --version`
-if test -z "$PCVER"; then
-  cat >&2 <<_EOF_
-
-       You must have pkg-config installed to compile $PROJECT.
-       Download the appropriate package for your distribution/OS,
-       or get the source tarball at http://pkgconfig.freedesktop.org/releases/
-_EOF_
-  DIE="exit 1"
-fi
-
-$DIE
-
-LTARGS=" --copy --force"
-echo $LIBTOOLIZE $LTARGS
-$LIBTOOLIZE $LTARGS || exit 1
-aclocal_flags="-I m4"
-aclocalinclude="$ACLOCAL_FLAGS $aclocal_flags";
-echo $ACLOCAL $aclocalinclude
-$ACLOCAL $aclocalinclude || exit 1
-echo $AUTOHEADER
-$AUTOHEADER || exit 1
-echo $AUTOMAKE --add-missing --gnu $am_opt
-$AUTOMAKE --add-missing --gnu $am_opt || exit 1
-echo $AUTOCONF
-$AUTOCONF || exit 1
-
-echo "Now type \"./configure [options]\" and \"make\" to compile $PROJECT."
diff --git a/capchild/Makefile.am b/capchild/Makefile.am
deleted file mode 100644 (file)
index 981c797..0000000
+++ /dev/null
@@ -1,64 +0,0 @@
-# Makefile.am
-# Automake file for the "talking to dumpcap" routines for Wireshark
-#
-# Wireshark - Network traffic analyzer
-# By Gerald Combs <gerald@wireshark.org>
-# Copyright 1998 Gerald Combs
-#
-# This program is free software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program 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 General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-
-include $(top_srcdir)/Makefile.am.inc
-
-AM_CPPFLAGS = $(INCLUDEDIRS) $(WS_CPPFLAGS) $(GLIB_CFLAGS) $(PCAP_CFLAGS)
-
-noinst_LIBRARIES = libcapchild.a
-
-# All sources that should be put in the source distribution tarball
-libcapchild_a_SOURCES = \
-       capture_ifinfo.c        \
-       capture_sync.c          \
-       capture_session.h       \
-       capture_sync.h
-
-libcapchild_a_DEPENDENCIES =
-
-EXTRA_DIST = \
-       CMakeLists.txt                  \
-       doxygen.cfg.in
-
-CLEANFILES = \
-       doxygen-capchild.tag
-
-doxygen:
-if HAVE_DOXYGEN
-       $(DOXYGEN) doxygen.cfg
-endif          # HAVE_DOXYGEN
-
-wsar_html: doxygen.cfg ../doxygen_global.cfg
-if HAVE_DOXYGEN
-       (umask 022 ; $(DOXYGEN) doxygen.cfg)
-endif
-
-checkapi: checkapi-base checkapi-todo
-
-checkapi-base:
-       $(PERL) $(top_srcdir)/tools/checkAPIs.pl -g deprecated-gtk -build \
-       -sourcedir=$(srcdir) \
-       $(libcapchild_a_SOURCES)
-
-checkapi-todo:
-       $(PERL) $(top_srcdir)/tools/checkAPIs.pl -M -g deprecated-gtk-todo -build \
-       -sourcedir=$(srcdir) \
-       $(libcapchild_a_SOURCES)
diff --git a/caputils/Makefile.am b/caputils/Makefile.am
deleted file mode 100644 (file)
index c1ab82f..0000000
+++ /dev/null
@@ -1,90 +0,0 @@
-# Makefile.am
-# Automake file for the "capture utilities" routines for Wireshark
-#
-# Wireshark - Network traffic analyzer
-# By Gerald Combs <gerald@wireshark.org>
-# Copyright 1998 Gerald Combs
-#
-# This program is free software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program 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 General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-
-include $(top_srcdir)/Makefile.am.inc
-
-AM_CPPFLAGS = $(INCLUDEDIRS) $(WS_CPPFLAGS) $(GLIB_CFLAGS) $(PCAP_CFLAGS) \
-               $(LIBNL_CFLAGS)
-
-noinst_LIBRARIES = libcaputils.a
-
-# All sources that should be put in the source distribution tarball
-libcaputils_a_SOURCES = \
-       capture_ifinfo.h                \
-       capture-pcap-util.h             \
-       capture-pcap-util.c             \
-       capture-pcap-util-unix.c        \
-       capture-pcap-util-int.h         \
-       capture-wpcap.h                 \
-       capture_wpcap_packet.h          \
-       iface_monitor.c                 \
-       iface_monitor.h                 \
-       ws80211_utils.c                 \
-       ws80211_utils.h
-
-#
-# This is used to build dumpcap, and dumpcap is, if possible, built as
-# a position-independent executable (for address space layout randomization,
-# as it might be running with extra privileges), so this library needs
-# to be built that way as well.
-#
-libcaputils_a_CFLAGS = $(AM_CFLAGS) $(PIE_CFLAGS)
-
-libcaputils_a_DEPENDENCIES =
-
-CLEANFILES = \
-       doxygen-caputils.tag
-
-EXTRA_DIST = \
-       .editorconfig           \
-       airpcap.h               \
-       airpcap_loader.c        \
-       airpcap_loader.h        \
-       capture_win_ifnames.c   \
-       capture_win_ifnames.h   \
-       capture-wpcap.c         \
-       capture-wpcap.h         \
-       capture_wpcap_packet.c  \
-       capture_wpcap_packet.h  \
-       CMakeLists.txt          \
-       doxygen.cfg.in
-
-doxygen:
-if HAVE_DOXYGEN
-       $(DOXYGEN) doxygen.cfg
-endif          # HAVE_DOXYGEN
-
-wsar_html: doxygen.cfg ../doxygen_global.cfg
-if HAVE_DOXYGEN
-       (umask 022 ; $(DOXYGEN) doxygen.cfg)
-endif
-
-checkapi: checkapi-base checkapi-todo
-
-checkapi-base:
-       $(PERL) $(top_srcdir)/tools/checkAPIs.pl -g deprecated-gtk -build \
-       -sourcedir=$(srcdir) \
-       $(libcaputils_a_SOURCES)
-
-checkapi-todo:
-       $(PERL) $(top_srcdir)/tools/checkAPIs.pl -M -g deprecated-gtk-todo -build \
-       -sourcedir=$(srcdir) \
-       $(libcaputils_a_SOURCES)
diff --git a/codecs/Makefile.am b/codecs/Makefile.am
deleted file mode 100644 (file)
index afb6e53..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-# Makefile.am
-# Automake file for the libwscodec library for Wireshark
-#
-# Wireshark - Network traffic analyzer
-# By Gerald Combs <gerald@wireshark.org>
-# Copyright 1998 Gerald Combs
-#
-# This program is free software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program 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 General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-
-include $(top_srcdir)/Makefile.am.inc
-
-AM_CPPFLAGS = -DWS_BUILD_DLL $(INCLUDEDIRS) $(WS_CPPFLAGS) \
-       $(GLIB_CFLAGS) $(SBC_CFLAGS)
-
-lib_LTLIBRARIES = libwscodecs.la
-
-# All sources that should be put in the source distribution tarball
-libwscodecs_la_SOURCES = \
-       codecs.c                \
-       G711a/G711adecode.c     \
-       G711u/G711udecode.c
-
-if HAVE_SBC
-libwscodecs_la_SOURCES += sbc/sbc.c
-endif
-
-if HAVE_SPANDSP
-libwscodecs_la_SOURCES += G722/G722decode.c G726/G726decode.c
-endif
-
-if HAVE_BCG729
-libwscodecs_la_SOURCES += G729/G729decode.c
-endif
-
-if !HAVE_SPEEXDSP
-libwscodecs_la_SOURCES += speex/resample.c
-endif
-
-# http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
-libwscodecs_la_LDFLAGS = -version-info 0:0:0 @LDFLAGS_SHAREDLIB@
-
-libwscodecs_la_LIBADD = $(top_builddir)/wsutil/libwsutil.la $(GLIB_LIBS) \
-       $(SBC_LIBS) $(SPANDSP_LIBS) $(BCG729_LIBS)
-
-libwscodecs_la_DEPENDENCIES = $(top_builddir)/wsutil/libwsutil.la
-
-subpkgincludedir = $(pkgincludedir)/codecs
-
-subpkginclude_HEADERS = \
-       codecs.h
-
-noinst_HEADERS = \
-       G711a/G711adecode.h \
-       G711a/G711atable.h \
-       G711u/G711udecode.h \
-       G711u/G711utable.h \
-       G722/G722decode.h \
-       G726/G726decode.h \
-       G729/G729decode.h \
-       sbc/sbc_private.h \
-       speex/arch.h \
-       speex/speex_resampler.h \
-       speex/stack_alloc.h
-
-EXTRA_DIST = \
-       CMakeLists.txt                  \
-       speex/README.txt
-
-checkapi:
-       $(PERL) $(top_srcdir)/tools/checkAPIs.pl -g abort -g termoutput -build \
-       -sourcedir=$(srcdir) \
-       $(libwscodecs_la_SOURCES)
diff --git a/configure.ac b/configure.ac
deleted file mode 100644 (file)
index da473be..0000000
+++ /dev/null
@@ -1,2832 +0,0 @@
-#
-# Autoconf script for Wireshark
-#
-
-#
-# Define variables for the components of the Wireshark version number.
-#
-m4_define([version_major], [2])
-m4_define([version_minor], [9])
-m4_define([version_micro], [0])
-dnl Updated by make-version.pl
-m4_define([version_extra], [])
-m4_define([version_micro_extra], m4_join([], version_micro, version_extra))
-
-AC_INIT(Wireshark, [version_major.version_minor.version_micro_extra], http://bugs.wireshark.org/, , http://www.wireshark.org/)
-CONFIG_ARGS="$*"
-AC_SUBST(CONFIG_ARGS)
-
-VERSION_RELEASE="version_major.version_minor"
-AC_SUBST(VERSION_RELEASE)
-AC_DEFINE_UNQUOTED([VERSION_RELEASE], ["$VERSION_RELEASE"], [Wireshark feature release version (X.Y)])
-
-# Minimum autoconf version we require.
-AC_PREREQ(2.64)
-# Variable expansion doesn't work in AC_PREREQ()
-AC_MIN_VERSION=2.64
-AC_SUBST(AC_MIN_VERSION)
-
-dnl Make sure to keep ACLOCAL_AMFLAGS in Makefile.am and AC_CONFIG_MACRO_DIRS
-dnl in configure.ac in sync, otherwise there will be an error running autogen.sh.
-m4_ifdef([AC_CONFIG_MACRO_DIRS],[AC_CONFIG_MACRO_DIRS([m4])])
-
-dnl Check for CPU / vendor / OS
-dnl The user is encouraged to use either `AC_CANONICAL_BUILD', or
-dnl `AC_CANONICAL_HOST', or `AC_CANONICAL_TARGET', depending on the
-dnl needs.  Using `AC_CANONICAL_TARGET' is enough to run the two other
-dnl macros.
-dnl
-dnl As nothing in the Wireshark is itself a build tool (we are not,
-dnl for example, a compiler that generates machine code), we probably
-dnl don't need AC_CANONICAL_TARGET, so, in theory, we should be able
-dnl to use AC_CANONICAL_BUILD and AC_CANONICAL_HOST - or perhaps just
-dnl AC_CANONICAL_HOST - instead.  Note that we do have tools, such as
-dnl lemon, that need to be built for the build machine, not for the
-dnl host machine, so we might need both.
-dnl
-dnl This has to be done *after* AC_INIT, otherwise autogen.sh fails.
-
-dnl AC_CANONICAL_BUILD
-dnl AC_CANONICAL_HOST
-AC_CANONICAL_TARGET
-
-AM_INIT_AUTOMAKE([1.11 tar-ustar dist-xz no-dist-gzip subdir-objects foreign])
-
-# Enable silent builds by default. Verbose builds can be enabled with "./configure
-# --enable-silent-rules ..." or "make V=1 ..."
-AM_SILENT_RULES([yes])
-
-# Make Wireshark's version available in config.h
-AC_DEFINE(VERSION_MAJOR, version_major, [Wireshark's major version])
-AC_DEFINE(VERSION_MINOR, version_minor, [Wireshark's minor version])
-AC_DEFINE(VERSION_MICRO, version_micro, [Wireshark's micro version])
-
-AC_DEFINE_UNQUOTED(VERSION_FLAVOR,
-       ["${WIRESHARK_VERSION_FLAVOR:-"Development Build"}"], [Wireshark's package flavor])
-
-LT_PREREQ([2.2.2])
-LT_INIT([disable-static])
-AC_SUBST([LIBTOOL_DEPS])
-
-AC_CONFIG_LIBOBJ_DIR([wsutil])
-
-#
-# Checks for programs used in the main build process.
-#
-# See doc/README.developer for allowed C99 features
-#
-AC_PROG_CC_C99
-if test "$ac_cv_prog_cc_c99" = "no"
-then
-       AC_MSG_ERROR([The C compiler does not support C99])
-fi
-AC_PROG_CPP
-
-AC_PROG_CXX
-if test ! -z "$CXX"; then
-       #
-       # OK, we found something AC_LANG_CXX thinks is a C++ compiler,
-       # but is it one?
-       #
-       # Some UN*Xes have, by default, a case-insensitive file
-       # system, and AC_PROG_CXX looks for, among other things,
-       # "CC" as a C++ compiler, and, if you have a case-insensitive
-       # file system and a C compiler named "cc" (both true, by
-       # default, on macOS), AC_PROG_CXX may end up thinking it's
-       # the C++ compiler.
-       #
-       # So we check by feeding the purported C++ compiler a
-       # program using C++ features (iostream).
-       #
-       AC_MSG_CHECKING(whether $CXX is a C++ compiler)
-       AC_LANG_PUSH([C++])
-       AC_LINK_IFELSE([AC_LANG_PROGRAM(
-       [
-#include <iostream>
-       ],
-       [
-       std::cout << "Hello World! ";
-       return 0;
-       ])],
-               [AC_MSG_RESULT(yes)],
-               [
-                       AC_MSG_RESULT(no)
-                       CXX=""
-               ])
-       AC_LANG_POP([C++])
-fi
-
-# Qt 5.7 or later requires C++11
-AS_IF([test -n "$CXX"],
-       [AX_CXX_COMPILE_STDCXX([11], [noext], [optional])])
-
-# Set CC_FOR_BUILD (the *local* gcc to use for building e.g. lemon)
-if test "x$cross_compiling" = xno -a -z "$CC_FOR_BUILD"; then
-       CC_FOR_BUILD="$CC"
-fi
-AX_PROG_CC_FOR_BUILD
-
-#
-# Check for versions of "sed" inadequate to handle, in libtool, a list
-# of object files as large as the list in Wireshark.
-#
-AC_PROG_SED
-
-AC_PROG_LN_S
-AC_PROG_MKDIR_P
-
-AC_PATH_PROG(PERL, perl)
-
-# Check for Python.
-AC_PATH_PROGS(PYTHON, python python3)
-if test ! -z "$PYTHON"; then
-       #
-       # OK, we found Python; is it Python 2.5 or later?
-       # Note: we don't use named components for sys.version_info to get
-       # the major version number, as named components for version_info
-       # were apparently introduced in Python 2.7.
-       #
-       AC_MSG_CHECKING([whether $PYTHON is Python 2.5 or later])
-       python_major_version=`$PYTHON -c 'import sys; print (sys.version_info[[0]])'`
-       python_minor_version=`$PYTHON -c 'import sys; print (sys.version_info[[1]])'`
-       if test "$python_major_version" -eq 2 -a "$python_minor_version" -lt 5 ; then
-               AC_MSG_RESULT(no)
-               AC_MSG_WARN([Building with Python $python_major_version.$python_minor_version may not work])
-       else
-               AC_MSG_RESULT(yes)
-       fi
-else
-       AC_MSG_ERROR(I couldn't find python; make sure it's installed and in your path)
-fi
-
-dnl
-dnl Check for yacc/lex. Distribution tarballs include generated source,
-dnl in which case these tools are not a mandatory requirement to build.
-dnl
-AC_PROG_YACC
-AS_IF([test "x$YACC" = xyacc], [AS_UNSET(YACC)])
-AS_IF([test -z "$YACC" -a ! -f $srcdir/wiretap/ascend.c],
-       [AC_MSG_ERROR([I couldn't find bison or byacc; make sure it's installed and in your path])])
-AM_MISSING_PROG(YACC, bison)
-AC_PROG_LEX
-AS_IF([test "x$LEX" != xflex], [AS_UNSET(LEX)])
-AS_IF([test -z "$LEX" -a ! -f $srcdir/wiretap/ascend_scanner.c],
-       [AC_MSG_ERROR([I couldn't find flex; make sure it's installed and in your path])])
-AM_MISSING_PROG(LEX, flex)
-
-AC_PATH_PROG(POD2MAN, pod2man)
-if test "x$POD2MAN" = x
-then
-       #
-       # The alternative is not to build the man pages....
-       #
-       AC_MSG_ERROR(I couldn't find pod2man; make sure it's installed and in your path)
-fi
-AC_PATH_PROG(POD2HTML, pod2html)
-if test "x$POD2HTML" = x
-then
-       #
-       # The alternative is not to build the HTML man pages....
-       #
-       AC_MSG_ERROR(I couldn't find pod2html; make sure it's installed and in your path)
-fi
-
-#
-# Set "ac_supports_gcc_flags" if the compiler is known to support GCC-style
-# flags such as -pedantic, -W warning flags and -f feature flags.  Currently,
-# we assume GCC and clang do; other compilers should be added here.
-#
-# This is done to avoid getting tripped up by compilers that support
-# those flags but give them a different meaning.
-#
-if test "x$GCC" = "xyes" -o "x$CC" = "xclang" ; then
-       ac_supports_gcc_flags=yes
-fi
-
-# Check for doxygen
-AC_PATH_PROG(DOXYGEN, doxygen)
-AC_CHECK_PROG(HAVE_DOXYGEN, doxygen, "yes", "no")
-AM_CONDITIONAL(HAVE_DOXYGEN, test x$HAVE_DOXYGEN = xyes)
-
-#
-# Check for pkg-config and set PKG_CONFIG accordingly.
-#
-# This is referenced via AC_REQUIRE([PKG_PROG_PKG_CONFIG] in some macros
-# like PKG_CHECK_MODULES. If the first call to such a macro is under an
-# "if" statement, it's safer to call PKG_PROG_PKG_CONFIG directly, see
-# the comments in acolocal.m4
-#
-# We want version 0.7 or better.  (XXX - explain why. Is that just
-# because our Qt tests were originally based on AM_PATH_GTK, and *it*
-# requires 0.7 or better?)
-#
-PKG_PROG_PKG_CONFIG(0.7)
-if test -z "$PKG_CONFIG"; then
-       AC_MSG_ERROR(I couldn't find pkg-config; make sure it's installed and in your path)
-fi
-
-#
-# Try to arrange for large file support.
-#
-AC_SYS_LARGEFILE
-
-#
-# Check if we need to link with libm
-#
-AC_SEARCH_LIBS([cos], [m])
-
-#
-# Check for C99 math functions.
-#
-AC_CHECK_FUNCS([floorl lrint])
-
-#
-# Check if we need to link with -lnsl and -lsocket
-#
-AX_LIB_SOCKET_NSL
-
-#
-# GUI toolkit options
-#
-AC_ARG_WITH([qt],
-  AC_HELP_STRING( [--with-qt=@<:@yes/no@:>@],
-                 [use Qt @<:@default=yes, if available@:>@]),
-  with_qt="$withval", with_qt="yes")
-
-# GnuTLS
-# Version 3.0 switched from LGPLv2.1+ to LGPLv3+, then switched back to
-# LGPLv2.1+ in version 3.1.10.
-# GnuTLS depends on GMP which switched from LGPLv2.1+ to LGPLv3+ in
-# version 4.2.2, the switched to LGPLv3+ / GPLv2+ in version 6.0.0.
-
-tls_message="no"
-want_gnutls="if_available"
-AC_ARG_WITH([gnutls],
-  AC_HELP_STRING( [--with-gnutls=@<:@yes/no@:>@],
-                 [use GnuTLS library @<:@default=yes, if available@:>@]),
-  [ with_gnutls="$withval"; want_gnutls="yes" ], with_gnutls="yes")
-
-if test "x$with_gnutls" = "xyes"; then
-  have_license_compatible_gnutls="no"
-  PKG_CHECK_MODULES([LIBGNUTLS], [gnutls >= 3.1.10 ],
-    [ have_license_compatible_gnutls="yes" ], [ echo "GnuTLS >= 3.1.10 not found " ]
-  )
-
-  if test "x$have_license_compatible_gnutls" != "xyes"; then
-    PKG_CHECK_MODULES([LIBGNUTLS], [gnutls >= 2.12.0 gnutls < 3],
-      [ have_license_compatible_gnutls="yes" ] , [ echo "GnuTLS >= 2.12.0, < 3.0 not found " ]
-    )
-  fi
-
-  if test "x$have_license_compatible_gnutls" != "xyes"; then
-    if test "x$want_gnutls" = "xyes"; then
-      AC_MSG_ERROR([GnuTLS crypto library was requested, but is not installed for development])
-    else
-      AS_ECHO(["GnuTLS with compatible license not found, disabling SSL decryption"])
-    fi
-  else
-    AC_DEFINE(HAVE_LIBGNUTLS, 1, [Define to use GnuTLS library])
-    tls_message="yes"
-  fi
-fi
-
-# libgrypt (for decryption, MAC, etc. functionality).
-AM_PATH_LIBGCRYPT(1.4.2, [ ] , [
-  AC_MSG_ERROR([[libgcrypt not installed for development; install libgcrypt, including any development package, for your system]])
-])
-
-AC_ARG_WITH(libnl,
-  AC_HELP_STRING([--with-libnl@<:@=VERSION@:>@],
-                [use libnl (force version VERSION, if supplied) @<:@default: yes, if available@:>@]),
-[
-       if test "x$withval" = "xno"
-       then
-               want_libnl=no
-       elif test "x$withval" = "xyes"
-       then
-               want_libnl=yes
-               libnl_version=any
-       elif test "x$withval" = "x1"
-       then
-               want_libnl=yes
-               libnl_version=1
-       elif test "x$withval" = "x2"
-       then
-               want_libnl=yes
-               libnl_version=2
-       elif test "x$withval" = "x3"
-       then
-               want_libnl=yes
-               libnl_version=3
-       else
-               AC_MSG_ERROR(["$withval" is not a valid argument to --with-libnl])
-       fi
-],[
-       #
-       # Use libnl if it's present, otherwise don't.
-       #
-       want_libnl=ifavailable
-       libnl_version=any
-])
-#
-# Libnl is Linux-specific.
-#
-libnl_message="no"
-case "$host_os" in
-linux*)
-       AC_MSG_CHECKING(whether to use libnl for various network interface purposes)
-
-       if test x$want_libnl = "xno"; then
-               AC_MSG_RESULT(no)
-       else
-               AC_MSG_RESULT(yes)
-               #
-               # Test for specific libnl versions only if no version
-               # was specified by the user or if the version in question
-               # was requested by the user.
-               #
-               if test x$libnl_version = "xany" -o x$libnl_version = "x3"; then
-                       PKG_CHECK_EXISTS([libnl-3.0 libnl-route-3.0 libnl-genl-3.0], [have_libnl3=yes], [have_libnl3=no])
-               fi
-               if test x$libnl_version = "xany" -o x$libnl_version = "x2"; then
-                       PKG_CHECK_EXISTS([libnl-2.0], [have_libnl2=yes], [have_libnl2=no])
-               fi
-               if test x$libnl_version = "xany" -o x$libnl_version = "x1"; then
-                       PKG_CHECK_EXISTS([libnl-1], [have_libnl1=yes], [have_libnl1=no])
-               fi
-               if (test "${have_libnl3}" = "yes"); then
-                       PKG_WIRESHARK_CHECK_SYSTEM_MODULES([LIBNL], [libnl-3.0 libnl-route-3.0 libnl-genl-3.0])
-                       AC_DEFINE(HAVE_LIBNL, 1, [Enable libnl support])
-                       AC_DEFINE(HAVE_LIBNL3, 1, [libnl version 3])
-                       libnl_message="yes (v3)"
-               elif (test "${have_libnl2}" = "yes"); then
-                       PKG_WIRESHARK_CHECK_SYSTEM_MODULES([LIBNL], [libnl-2.0])
-                       AC_DEFINE(HAVE_LIBNL, 1, [Enable libnl support])
-                       AC_DEFINE(HAVE_LIBNL2, 1, [libnl version 2])
-                       libnl_message="yes (v2)"
-               elif (test "${have_libnl1}" = "yes"); then
-                       PKG_WIRESHARK_CHECK_SYSTEM_MODULES([LIBNL], [libnl-1])
-                       AC_DEFINE(HAVE_LIBNL, 1, [Enable libnl support])
-                       AC_DEFINE(HAVE_LIBNL1, 1, [libnl version 1])
-                       libnl_message="yes (v1)"
-               else
-                       if test x$want_libnl = "xyes"; then
-                               case "$libnl_version" in
-
-                               any)
-                                       AC_MSG_ERROR("I couldn't find libnl even though you manually enabled it.")
-                                       ;;
-
-                               *)
-                                       AC_MSG_ERROR("I couldn't find libnl version $libnl_version even though you manually enabled it.")
-                                       ;;
-                               esac
-                       fi
-               fi
-       fi
-
-       AC_MSG_CHECKING([if nl80211.h is new enough])
-         AC_TRY_COMPILE([#include <linux/nl80211.h>],
-           [int x = NL80211_FREQUENCY_ATTR_MAX_TX_POWER;
-            x |= NL80211_ATTR_SUPPORTED_IFTYPES;
-            x |= NL80211_ATTR_SUPPORTED_COMMANDS;
-            x |= NL80211_ATTR_WIPHY_FREQ;
-            x |= NL80211_CHAN_NO_HT;
-            (void)x;],
-           [AC_MSG_RESULT(yes) AC_DEFINE(HAVE_NL80211, 1, [nl80211.h is new enough])],
-           [AC_MSG_RESULT(no)])
-
-       AC_MSG_CHECKING([for NL80211_SET_CHANNEL])
-         AC_TRY_COMPILE([#include <linux/nl80211.h>],
-           [enum nl80211_commands x = NL80211_CMD_SET_CHANNEL;],
-           [AC_MSG_RESULT(yes) AC_DEFINE(HAVE_NL80211_CMD_SET_CHANNEL, 1, [SET_CHANNEL is supported])],
-           [AC_MSG_RESULT(no)])
-
-       AC_MSG_CHECKING([for NL80211_SPLIT_WIPHY_DUMP])
-         AC_TRY_COMPILE([#include <linux/nl80211.h>],
-           [enum nl80211_protocol_features x = NL80211_PROTOCOL_FEATURE_SPLIT_WIPHY_DUMP;],
-           [AC_MSG_RESULT(yes) AC_DEFINE(HAVE_NL80211_SPLIT_WIPHY_DUMP, 1, [SPLIT_WIPHY_DUMP is supported])],
-           [AC_MSG_RESULT(no)])
-
-       AC_MSG_CHECKING([for NL80211_VHT_CAPABILITY])
-         AC_TRY_COMPILE([#include <linux/nl80211.h>],
-           [enum nl80211_attrs x = NL80211_ATTR_VHT_CAPABILITY;],
-           [AC_MSG_RESULT(yes) AC_DEFINE(HAVE_NL80211_VHT_CAPABILITY, 1, [VHT_CAPABILITY is supported])],
-           [AC_MSG_RESULT(no)])
-       ;;
-
-*)
-       if test x$want_libnl != "xno" -a x$want_libnl != "xifavailable"; then
-               AC_MSG_WARN([libnl is Linux-specific, ignoring --with-libnl])
-       fi
-esac
-
-#
-# Check if we should build the Wireshark User's Guide
-#
-AC_ARG_ENABLE(guides,
-  AC_HELP_STRING( [--disable-guides],
-                 [Don't build the Wireshark User's Guide]),
-                 [want_wsug=$enableval], [want_wsug=if_available])
-
-#
-# Check for programs used when building DocBook documentation.
-#
-have_wsug=yes
-AC_PATH_PROGS(ASCIIDOCTOR, [asciidoctorj asciidoctor])
-AC_CHECK_PROGS(HAVE_ASCIIDOCTOR, [asciidoctorj asciidoctor], "yes", "no")
-AM_CONDITIONAL(HAVE_ASCIIDOCTOR, test x$HAVE_ASCIIDOCTOR = xyes)
-AS_IF([test ! -x "$ASCIIDOCTOR"],
-       [
-         AS_IF([test "x$want_wsug" = xyes],
-               [AC_MSG_ERROR([Asciidoctor not found. This is required to build the release notes and guides])])
-         have_wsug=no
-       ])
-AC_PATH_PROG(XSLTPROC, xsltproc, xsltproc)
-AS_IF([test ! -x "$XSLTPROC"],
-       [
-         AS_IF([test "x$want_wsug" = xyes],
-               [AC_MSG_ERROR([xlstproc not found but required to build the Wireshark User's Guide])])
-         have_wsug=no
-       ])
-
-AM_CONDITIONAL(BUILD_USER_GUIDE, [test "x$have_wsug" = xyes -a "x$want_wsug" != xno])
-
-# RPM
-AC_CHECK_PROGS(RPMBUILD, [rpmbuild], [rpmbuild])
-
-# Shellcheck
-AC_CHECK_PROG(SHELLCHECK, shellcheck)
-
-#
-# Check compiler vendor. For GCC this will be 'gnu' and for Clang 'clang'.
-#
-AX_COMPILER_VENDOR
-if test "x$CXX" != "x" ; then
-       AC_LANG_PUSH(C++)
-       AX_COMPILER_VENDOR
-       AC_LANG_POP
-fi
-
-#
-# Some compilers have to be told to fail when passed an unknown -W flag;
-# make sure we do that.
-#
-AC_WIRESHARK_CHECK_UNKNOWN_WARNING_OPTION_ERROR
-
-#
-# Some C++ compilers have to be told to fail when passed a -W flag that
-# they don't think should apply to C++; make sure we do that.
-#
-AC_WIRESHARK_CHECK_NON_CXX_WARNING_OPTION_ERROR
-
-#
-# The following are for C and C++
-#
-AC_WIRESHARK_COMPILER_FLAGS_CHECK(-Wall)
-AC_WIRESHARK_COMPILER_FLAGS_CHECK(-Wextra)
-AC_WIRESHARK_COMPILER_FLAGS_CHECK(-Wendif-labels)
-AC_WIRESHARK_COMPILER_FLAGS_CHECK(-Wpointer-arith)
-AC_WIRESHARK_COMPILER_FLAGS_CHECK(-Wformat-security)
-AC_WIRESHARK_COMPILER_FLAGS_CHECK(-fwrapv)
-AC_WIRESHARK_COMPILER_FLAGS_CHECK(-fno-strict-overflow)
-AC_WIRESHARK_COMPILER_FLAGS_CHECK(-fno-delete-null-pointer-checks)
-AC_WIRESHARK_COMPILER_FLAGS_CHECK(-Wvla)
-AC_WIRESHARK_COMPILER_FLAGS_CHECK(-Waddress)
-AC_WIRESHARK_COMPILER_FLAGS_CHECK(-Wattributes)
-AC_WIRESHARK_COMPILER_FLAGS_CHECK(-Wdiv-by-zero)
-AC_WIRESHARK_COMPILER_FLAGS_CHECK(-Wignored-qualifiers)
-AC_WIRESHARK_COMPILER_FLAGS_CHECK(-Wpragmas)
-AC_WIRESHARK_COMPILER_FLAGS_CHECK(-Wno-overlength-strings)
-AC_WIRESHARK_COMPILER_FLAGS_CHECK(-Wno-long-long)
-AC_WIRESHARK_COMPILER_FLAGS_CHECK(-Wheader-guard)
-AC_WIRESHARK_COMPILER_FLAGS_CHECK(-Wcomma)
-
-#
-# The following are C only, not C++
-#
-AC_WIRESHARK_COMPILER_FLAGS_CHECK(-Wc++-compat, C)
-AC_WIRESHARK_COMPILER_FLAGS_CHECK(-Wunused-const-variable, C)
-
-#
-# XXX - OK for C++?
-#
-# Make sure -Wshadow doesn't complain about variables in function and
-# function pointer declarations shadowing other variables; if not, don't
-# turn it on, as some versions of GCC (including the one in at least
-# some Xcode versions that came with Mac OS X 10.5) complain about
-# that.
-#
-AC_WIRESHARK_COMPILER_FLAGS_CHECK(-Wshadow, C,
-  [
-extern int bar(int a);
-extern int foo(int);
-
-int
-foo(int a)
-{
-       int (*fptr)(int a) = bar;
-
-       return fptr(a) * 2;
-}
-  ],
-  [warns about variables in function declarations shadowing other variables])
-
-AC_WIRESHARK_COMPILER_FLAGS_CHECK(-Wno-pointer-sign, C)
-AC_WIRESHARK_COMPILER_FLAGS_CHECK(-Wold-style-definition, C)
-AC_WIRESHARK_COMPILER_FLAGS_CHECK(-Wstrict-prototypes, C)
-
-# Unfortunately some versions of gcc generate logical-op warnings when strchr()
-# is given a constant string.
-# gcc versions 4.3.2 and 4.4.5 are known to have the problem.
-AC_WIRESHARK_COMPILER_FLAGS_CHECK(-Wlogical-op, C,
-  [
-#include <string.h>
-
-int foo(const char *, int);
-int bar(void);
-
-int
-foo(const char *sep, int c)
-{
-       if (strchr (sep, c) != NULL)
-               return 1;
-       else
-               return 0;
-}
-
-int
-bar(void)
-{
-       return foo("<", 'a');
-}
-  ],
-  [generates warnings from strchr()])
-
-AC_WIRESHARK_COMPILER_FLAGS_CHECK(-Wjump-misses-init, C)
-# The Qt headers generate a ton of shortening errors on 64-bit systems
-# so only enable this for C for now.
-AC_WIRESHARK_COMPILER_FLAGS_CHECK(-Wshorten-64-to-32, C)
-
-#
-# Implicit function declarations are an error in C++ and most
-# likely a programming error in C. Turn -Wimplicit-int and
-# -Wimplicit-function-declaration into an error by default.
-#
-AC_WIRESHARK_COMPILER_FLAGS_CHECK(-Werror=implicit, C)
-
-# Clang only. Avoid "argument unused during compilation" warnings
-# (for example, when getting the -gsplit-dwarf option or
-# when combining -fwrapv with -fno-strict-overflow)
-if test x"$ax_cv_c_compiler_vendor" = xclang; then
-       AC_WIRESHARK_COMPILER_FLAGS_CHECK(-Qunused-arguments, C)
-fi
-if test x"$ax_cv_cxx_compiler_vendor" = xclang; then
-       AC_WIRESHARK_COMPILER_FLAGS_CHECK(-Qunused-arguments, CXX)
-fi
-
-#
-# Use the faster pre gcc 4.5 floating point precision if available.
-#
-AC_WIRESHARK_COMPILER_FLAGS_CHECK(-fexcess-precision=fast)
-
-#
-# Try to have the compiler default to hiding symbols, so that only
-# symbols explicitly exported with WS_DLL_PUBLIC will be visible
-# outside (shared) libraries; that way, more UN*X builds will catch
-# failures to export symbols, rather than having that fail only on
-# Windows.
-#
-# GCC and GCC-compatible compilers
-#
-AC_WIRESHARK_COMPILER_FLAGS_CHECK(-fvisibility=hidden)
-if test "x$can_add_to_cflags" = "xno"
-then
-       #
-       # Sun^WOracle C.
-       #
-       AC_WIRESHARK_COMPILER_FLAGS_CHECK(-xldscope=hidden)
-       if test "x$can_add_to_cflags" = "xno"
-       then
-               # TODO add other ways of hiding symbols
-               AC_MSG_WARN(Compiler will export all symbols from shared libraries)
-       fi
-fi
-
-#
-# Try to add some additional checks to CFLAGS.
-# These are not enabled by default, because the warnings they produce
-# are very hard or impossible to eliminate.
-#
-AC_ARG_ENABLE(extra-compiler-warnings,
-  AC_HELP_STRING( [--enable-extra-compiler-warnings],
-                 [do additional compiler warnings @<:@default=no@:>@]),
-[
-       wireshark_extra_flags=$enableval
-       if test $enableval != no
-       then
-               #
-               # The following are for C and C++
-               #
-               AC_WIRESHARK_COMPILER_FLAGS_CHECK(-Wpedantic)
-               #
-               # As we use variadic macros, we don't want warnings
-               # about them, even with -Wpedantic.
-               #
-               AC_WIRESHARK_COMPILER_FLAGS_CHECK(-Wno-variadic-macros)
-               #
-               # Various code blocks this one.
-               #
-               AC_WIRESHARK_COMPILER_FLAGS_CHECK(-Woverflow)
-               AC_WIRESHARK_COMPILER_FLAGS_CHECK(-fstrict-overflow -Wstrict-overflow=4)
-               #
-               # Due to various places where APIs we don't control
-               # require us to cast away constness, we can probably
-               # never enable this one with -Werror.
-               #
-               AC_WIRESHARK_COMPILER_FLAGS_CHECK(-Wcast-qual)
-               #
-               # Some generated ASN.1 dissectors block this one;
-               # multiple function declarations for the same
-               # function are being generated.
-               #
-               AC_WIRESHARK_COMPILER_FLAGS_CHECK(-Wredundant-decls)
-               #
-               # Some loops are safe, but it's hard to convince the
-               # compiler of that.
-               #
-               AC_WIRESHARK_COMPILER_FLAGS_CHECK(-Wunsafe-loop-optimizations)
-               #
-               # All the registration functions block these for now.
-               #
-               AC_WIRESHARK_COMPILER_FLAGS_CHECK(-Wmissing-prototypes)
-               AC_WIRESHARK_COMPILER_FLAGS_CHECK(-Wmissing-declarations)
-               #
-               # A bunch of "that might not work on SPARC" code blocks
-               # this one for now; some of it is code that *will* work
-               # on SPARC, such as casts of "struct sockaddr *" to
-               # "struct sockaddr_in *", which are required by some
-               # APIs such as getifaddrs().
-               #
-               AC_WIRESHARK_COMPILER_FLAGS_CHECK(-Wcast-align)
-               #
-               # Works only with Clang
-               #
-               AC_WIRESHARK_COMPILER_FLAGS_CHECK(-Wunreachable-code)
-               #
-               # Works only with Clang but generates a lot of warnings
-               # (about glib library not using Doxygen)
-               #
-               AC_WIRESHARK_COMPILER_FLAGS_CHECK(-Wdocumentation)
-               #
-               # Works only with GCC 7
-               #
-               AC_WIRESHARK_COMPILER_FLAGS_CHECK(-Wduplicated-branches)
-
-               #
-               # The following are C only, not C++
-               #
-               # Due to various places where APIs we don't control
-               # require us to cast away constness, we can probably
-               # never enable this one with -Werror.
-               #
-               AC_WIRESHARK_COMPILER_FLAGS_CHECK(-Wbad-function-cast, C)
-       fi
-])
-
-# Try to add ASAN address analyze.
-# Only needed for analyse
-#
-AC_ARG_ENABLE(asan,
-  AC_HELP_STRING( [--enable-asan],
-                 [Enable AddressSanitizer (ASAN) for debugging (degrades performance)@<:@default=no@:>@]),
-[
-       #
-       # With Clang >= 3.5 Leak detection is enable by default
-       # and no yet all leak is fixed...
-       # use ASAN_OPTIONS=detect_leaks=0 to disable detect_leaks
-       #
-       # XXX shouldn't this also be added to LDFLAGS?
-       AC_WIRESHARK_COMPILER_FLAGS_CHECK(-fsanitize=address)
-
-       # Disable ASAN for build-time tools, e.g. lemon
-       WS_CFLAGS_saved="$WS_CFLAGS"
-       WS_LDFLAGS_saved="$WS_LDFLAGS"
-       AC_WIRESHARK_COMPILER_FLAGS_CHECK(-fno-sanitize=all, C)
-       if test "x$can_add_to_cflags" = "xyes"
-       then
-               NO_SANITIZE_CFLAGS="-fno-sanitize=all"
-               NO_SANITIZE_LDFLAGS="-fno-sanitize=all"
-       fi
-       WS_CFLAGS="$WS_CFLAGS_saved"
-       WS_LDFLAGS="$WS_LDFLAGS_saved"
-
-])
-AC_SUBST(NO_SANITIZE_CFLAGS)
-AC_SUBST(NO_SANITIZE_LDFLAGS)
-
-# Try to enable ThreadSanitizer.
-#
-AC_ARG_ENABLE(tsan,
-  AC_HELP_STRING( [--enable-tsan],
-                 [Enable ThreadSanitizer (TSan) for debugging@<:@default=no@:>@]),
-[
-       #
-       # Available since Clang >= 3.2 and GCC >= 4.8
-       #
-       AC_WIRESHARK_COMPILER_FLAGS_CHECK(-fsanitize=thread)
-       AC_WIRESHARK_LDFLAGS_CHECK(-fsanitize=thread)
-
-])
-
-# Try to enable UndefinedBehaviorSanitizer.
-#
-AC_ARG_ENABLE(ubsan,
-  AC_HELP_STRING( [--enable-ubsan],
-                 [Enable UndefinedBehaviorSanitizer (UBSan) for debugging@<:@default=no@:>@]),
-[
-       #
-       # Available since Clang >= 3.3 and GCC >= 4.9
-       #
-       # XXX shouldn't this also be added to LDFLAGS?
-       AC_WIRESHARK_COMPILER_FLAGS_CHECK(-fsanitize=undefined)
-
-])
-
-# Add check hf conflict..
-#
-AC_ARG_ENABLE(checkhf-conflict,
-  AC_HELP_STRING( [--enable-checkhf-conflict],
-                 [Enable hf conflict check for debugging (start-up may be slower)@<:@default=no@:>@]),
-[
-       AC_DEFINE(ENABLE_CHECK_FILTER, 1, [Enable hf conflict check])
-])
-
-AC_WIRESHARK_LDFLAGS_CHECK([-Wl,--as-needed])
-###AC_WIRESHARK_LDFLAGS_CHECK([-Wl,-M])
-###AC_WIRESHARK_LDFLAGS_CHECK([-Wl,--cref])
-# AC_WIRESHARK_LDFLAGS_CHECK([-flto])
-# AC_WIRESHARK_LDFLAGS_CHECK([-fwhopr])
-# AC_WIRESHARK_LDFLAGS_CHECK([-fwhole-program])
-
-#
-# Put -fPIE in PIE_CFLAGS and -pie in PIE_LDFLAGS if we can use them,
-# so that we can build dumpcap PIE - it may run with elevated
-# privileges, and using PIE means the OS can run it at random locations
-# in the address space to make attacks more difficult.
-#
-
-WS_CFLAGS_saved="$WS_CFLAGS"
-WS_LDFLAGS_saved="$WS_LDFLAGS"
-AC_WIRESHARK_COMPILER_FLAGS_CHECK(-fPIE, C)
-if test "x$can_add_to_cflags" = "xyes"
-then
-       AC_WIRESHARK_LDFLAGS_CHECK([-fPIE -pie])
-       if test "x$can_add_to_ldflags" = "xyes"
-       then
-               # We can use PIE
-               PIE_CFLAGS="-fPIE"
-               PIE_LDFLAGS="-pie"
-       fi
-fi
-WS_CFLAGS="$WS_CFLAGS_saved"
-WS_LDFLAGS="$WS_LDFLAGS_saved"
-AC_SUBST(PIE_CFLAGS)
-AC_SUBST(PIE_LDFLAGS)
-
-WS_CFLAGS_saved="$WS_CFLAGS"
-AC_WIRESHARK_COMPILER_FLAGS_CHECK(-msse4.2, C)
-if test "x$can_add_to_cflags" = "xyes"
-then
-       #
-       # The compiler supports -msse4.2; use that to enable SSE 4.2.
-       #
-       # We only want to apply -msse4.2 to
-       # wsutil/ws_mempbrk_sse42.c, as the SSE4.2 code there
-       # is run only if the hardware supports it, but other
-       # code would do no such checks.
-       #
-       ac_sse4_2_flag=-msse4.2
-else
-       #
-       # Try -xarch=sse4_2; that's the flag for Sun's compiler.
-       #
-       AC_WIRESHARK_COMPILER_FLAGS_CHECK(-xarch=sse4_2, C)
-       if test "x$can_add_to_cflags" = "xyes"
-       then
-               #
-               # The compiler supports -xarch=sse4_2; use that to
-               # enable SSE 4.2.
-               ac_sse4_2_flag=-xarch=sse4_2
-       fi
-fi
-WS_CFLAGS="$WS_CFLAGS_saved"
-
-if test "x$ac_sse4_2_flag" != x; then
-       #
-       # OK, we have a compiler flag to enable SSE 4.2.
-       #
-       # Make sure we have the necessary headers for the SSE4.2 intrinsics
-       # and that we can use them.
-       #
-       # First, check whether we have emmintrin.h and can use it
-       # *without* the SSE 4.2 flag.
-       #
-       AC_MSG_CHECKING([whether there is emmintrin.h header and we can use it])
-       AC_TRY_COMPILE(
-               [#include <emmintrin.h>],
-               [return 0;],
-               [
-                       emmintrin_h_works=yes
-                       AC_MSG_RESULT([yes])
-               ],
-               [
-                       emmintrin_h_works=no
-                       AC_MSG_RESULT([no])
-               ]
-       )
-
-       #
-       # OK, if that works, see whether we have nmmintrin.h and
-       # can use it *with* the SSE 4.2 flag.
-       #
-       if test "x$emmintrin_h_works" = "xyes"; then
-               #
-               # Add the SSE4.2 flags to the beginning of CFLAGS,
-               # in case the user explicitly specified -mno-sse4.2
-               # (or in case Gentoo's build tools did so); if they
-               # did so, we only want this to work if we can use
-               # the #pragma to override that for ws_mempbrk_sse42.c,
-               # and putting it at the beginning means that the
-               # CFLAGS setting in the environment will come later
-               # and override it.
-               #
-               AC_MSG_CHECKING([whether there is nmmintrin.h header and we can use it])
-               saved_CFLAGS="$CFLAGS"
-               CFLAGS="$ac_sse4_2_flag $WS_CFLAGS $CFLAGS"
-               AC_TRY_COMPILE(
-                       [#include <nmmintrin.h>],
-                       [return 0;],
-                       [
-                               have_sse42=yes
-                               AC_DEFINE(HAVE_SSE4_2, 1, [Support SSSE4.2 (Streaming SIMD Extensions 4.2) instructions])
-                               CFLAGS_SSE42="$ac_sse4_2_flag"
-                               AC_MSG_RESULT([yes])
-                       ],
-                       [
-                               have_sse42=no
-                               AC_MSG_RESULT([no])
-                       ]
-               )
-               CFLAGS="$saved_CFLAGS"
-       else
-               have_sse42=no
-       fi
-else
-       have_sse42=no
-fi
-dnl build libwsutil_sse42 only if there is SSE4.2
-AM_CONDITIONAL(SSE42_SUPPORTED, test "x$have_sse42" = "xyes")
-AC_SUBST(CFLAGS_SSE42)
-
-# If we're running GCC or CLang, use FORTIFY_SOURCE=2
-#  (only if the GCC 'optimization level' > 0).
-#
-# See: http://gcc.gnu.org/ml/gcc-patches/2004-09/msg02055.html
-# See: http://sourceware.org/bugzilla/show_bug.cgi?id=13979
-#
-# Note: FORTIFY_SOURCE is only effective for gcc optimization level > 0 (-O1, etc)
-AC_WIRESHARK_GCC_FORTIFY_SOURCE_CHECK
-
-#
-# If the compiler supports GCC-style flags, enable a barrier "stop on
-# warning".
-# This barrier is set for a very large part of the code. However, it is
-# typically not set for "generated" code  (flex, ans2wrs, idl2wrs, ...)
-#
-warnings_as_errors_default="yes"
-AC_MSG_CHECKING(whether we should treat compiler warnings as errors)
-AC_ARG_ENABLE(warnings-as-errors,
-  AC_HELP_STRING( [--enable-warnings-as-errors],
-                 [treat warnings as errors (only for GCC or clang) @<:@default=yes, unless extra compiler warnings are enabled@:>@]),
-[
-  if test "x$ac_supports_gcc_flags" = "xyes" -a "x$enableval" = "xyes"; then
-    with_warnings_as_errors="yes"
-    AC_MSG_RESULT(yes)
-  else
-    with_warnings_as_errors="no"
-    AC_MSG_RESULT(no)
-  fi
-],
-[
-  if test "x$ac_supports_gcc_flags" = "xyes" -a "x$wireshark_extra_flags" = "x" -a "x$warnings_as_errors_default" = "xyes"; then
-    with_warnings_as_errors="yes"
-    AC_MSG_RESULT(yes)
-  else
-    with_warnings_as_errors="no"
-    AC_MSG_RESULT(no)
-  fi
-])
-
-AS_IF([test "x$with_warnings_as_errors" = "xyes"], [WERROR="-Werror"], [WERROR=""])
-AC_SUBST(WERROR)
-AM_CONDITIONAL(HAVE_WARNINGS_AS_ERRORS, [test "x$with_warnings_as_errors" = "xyes"])
-
-#
-# Add any platform-specific compiler flags needed.
-#
-AC_MSG_CHECKING(for platform-specific compiler flags)
-if test "x$GCC" = "xyes" ; then
-       #
-       # GCC - do any platform-specific tweaking necessary.
-       #
-       case "$host_os" in
-       solaris*)
-               # the X11 headers don't automatically include prototype info
-               # and a lot don't include the return type
-               WS_CPPFLAGS="$WS_CPPFLAGS -DFUNCPROTO=15"
-               WS_CFLAGS="$WS_CFLAGS -Wno-return-type"
-               WS_CXXFLAGS="$WS_CXXFLAGS -Wno-return-type"
-               AC_MSG_RESULT(GCC on Solaris - added -Wno-return-type -DFUNCPROTO=15)
-               ;;
-       *)
-               AC_MSG_RESULT(none needed)
-               ;;
-       esac
-else
-       #
-       # Not GCC - assume it's the vendor's compiler.
-       #
-       case "$host_os" in
-       hpux*)
-               #
-               # AC_PROG_CC_STDC should already have added whatever
-               # flags are necessary for ISO C - C99 if available,
-               # otherwise C89 - with extensions.
-               #
-               # Add +O2, for optimization, as suggested by Jost Martin.
-               # XXX - works with "-g"?
-               #
-               # +O2 is supported both by the C and C++ compiler.
-               #
-               # Add -Wp,-H200000 to handle some large #defines we
-               # have; that flag is not necessary for the C++
-               # compiler unless the "legacy" C++ preprocessor is
-               # being used (+legacy_cpp).  We don't want the
-               # legacy preprocessor if it's not the default,
-               # so we just add -Wp,-H200000 to the C flags.
-               # (If there are older versions of aC++ that only
-               # support the legacy preprocessor, and require
-               # that we boost the table size, we'd have to check
-               # whether -Wp,-H200000 is supported by the C++
-               # compiler and add it only if it is.)
-               #
-               WS_CFLAGS="+O2 -Wp,-H200000 $WS_CFLAGS"
-               if test "$CC" = "$CC_FOR_BUILD"; then
-                       #
-                       # We're building the build tools with the same
-                       # compiler as the one with which we're building
-                       # Wireshark, so add the flags to the flags for
-                       # that compiler as well.
-                       #
-                       CFLAGS_FOR_BUILD="-Ae +O2 -Wp,-H200000 $CFLAGS"
-               fi
-               WS_CXXFLAGS="+O2 $WS_CXXFLAGS"
-               AC_MSG_RESULT(HP C/C++ compiler - added +O2 -Wp,-H200000)
-               ;;
-       solaris*)
-               #
-               # Crank up the warning level.
-               #
-               WS_CFLAGS="$WS_CFLAGS -v"
-               WS_CXXFLAGS="$WS_CXXFLAGS +w2"
-               ;;
-       *)
-               AC_MSG_RESULT(none needed)
-               ;;
-       esac
-fi
-
-#
-# Add any platform-specific linker flags needed.
-#
-AC_MSG_CHECKING(for platform-specific linker flags)
-case "$host_os" in
-aix*)
-       #
-       # If this is GCC or Clang, Add -Wl,-bbigtoc for big libraries.
-       # XXX - what if we're using xlc?  Is that necessary?  The
-       # xlc 7.0 manual says "Specifying -qpic=large has the same
-       # effect as passing -bbigtoc to ld"; do we need to tell xlc,
-       # when it's compiling, to generate different code for a large
-       # TOC, or is that just a linker flag?  For that matter, do we
-       # have to tell GCC or Clang to generate different code for a
-       # large TOC?
-       #
-       if test "x$GCC" = "xyes" -o "x$CC" = "xclang" ; then
-               LDFLAGS_BIGSHAREDLIB="-Wl,-bbigtoc"
-               AC_MSG_RESULT([AIX linker with GCC or Clang - added -Wl,-bbigtoc to large shared library linker flags and -Wl,-headerpad_max_install_names -Wl,-search_paths_first and -Wl,-headerpad_max_install_names to all linker flags])
-       fi
-       ;;
-darwin*)
-       #
-       # Add -Wl,-single_module to the LDFLAGS used with shared
-       # libraries, to fix some error that show up in some cases;
-       # some Apple documentation recommends it for most shared
-       # libraries.
-       #
-       LDFLAGS_SHAREDLIB="-Wl,-single_module"
-       #
-       # Add -Wl,-headerpad_max_install_names to the LDFLAGS, as
-       # code-signing issues is running out of padding space.
-       #
-       # Add -Wl,-search_paths_first to make sure that if we search
-       # directories A and B, in that order, for a given library, a
-       # non-shared version in directory A, rather than a shared
-       # version in directory B, is chosen (so we can use
-       # --with-pcap=/usr/local to force all programs to be linked
-       # with a static version installed in /usr/local/lib rather than
-       # the system version in /usr/lib).
-       #
-       WS_LDFLAGS="-Wl,-headerpad_max_install_names -Wl,-search_paths_first $WS_LDFLAGS"
-       AC_MSG_RESULT([Apple linker - added -Wl,-single_module to shared library linker flags and -Wl,-headerpad_max_install_names -Wl,-search_paths_first and -Wl,-headerpad_max_install_names to all linker flags])
-       ;;
-cygwin*)
-       #
-       # Shared libraries in cygwin/Win32 must never contain
-       # undefined symbols.
-       #
-       WS_LDFLAGS="$WS_LDFLAGS -no-undefined"
-       AC_MSG_RESULT(Cygwin GNU ld - added -no-undefined)
-       ;;
-*)
-       AC_MSG_RESULT(none needed)
-       ;;
-esac
-AC_SUBST(LDFLAGS_BIGSHAREDLIB)
-AC_SUBST(LDFLAGS_SHAREDLIB)
-
-#
-# If we're running Solaris, and LD_LIBRARY_PATH is defined, add it as a
-# link directory.
-#
-case "$host_os" in
-  solaris*)
-    AC_MSG_CHECKING(for LD_LIBRARY_PATH, since you appear to be running Solaris)
-    if test x$LD_LIBRARY_PATH != x ; then
-      LIBS="$LIBS -R$LD_LIBRARY_PATH"
-      AC_MSG_RESULT(yes -- added LD_LIBRARY_PATH to run-time linker path)
-    else
-      AC_MSG_RESULT(no -- this may be a problem in a few seconds)
-    fi
-  ;;
-esac
-
-# Enable/disable wireshark
-AC_ARG_ENABLE(wireshark,
-  AC_HELP_STRING( [--enable-wireshark],
-                 [build the Wireshark GUI using Qt5 @<:@default=yes@:>@]),
-    enable_wireshark=$enableval,enable_wireshark=yes)
-AM_CONDITIONAL(BUILDING_WIRESHARK, test x$enable_wireshark = xyes)
-
-GLIB_MIN_VERSION=2.32.0
-AC_SUBST(GLIB_MIN_VERSION)
-# GLib checks; we require GLib $GLIB_MIN_VERSION or later, and require gmodule
-# support, as we need that for dynamically loading plugins.
-#
-# Release dates for GLib versions:
-# 2.14.0: 03 Aug 2007
-# 2.16.0: 10 Mar 2008
-# 2.18.0: 02 Sep 2008
-# 2.20.0: 13 Mar 2009
-# 2.22.0: 22 Sep 2009
-# 2.24.0: 28 Mar 2010
-# 2.26.0: 27 Sep 2010
-# 2.28.0: 08 Feb 2011
-# 2.30.0: 27 Sep 2011
-# 2.32.0: 24 Mar 2012
-# 2.34.0: 24 Sep 2012
-# 2.36.0: 25 Mar 2013
-# 2.38.0: 23 Sep 2013
-# 2.40.0: 24 Mar 2014
-# 2.42.0: 22 Sep 2014
-# 2.44.0: 23 Mar 2014
-# 2.46.0: 25 Sep 2015
-
-PKG_WIRESHARK_CHECK_SYSTEM_MODULES([GLIB],
-       [glib-2.0 >= $GLIB_MIN_VERSION gthread-2.0 >= $GLIB_MIN_VERSION gmodule-2.0 >= $GLIB_MIN_VERSION],
-       [GLIB_VERSION=`$PKG_CONFIG --modversion glib-2.0`],
-       [AC_MSG_ERROR([GLib $GLIB_MIN_VERSION or later not found.])])
-
-# Error out if a glib header other than a "top level" header
-#  (glib.h, glib-object.h, gio.h) or certain other headers( e.g.,gmodule.h)
-#  is used.
-AX_APPEND_FLAG([-DG_DISABLE_SINGLE_INCLUDES], [GLIB_CONFIG])
-
-# Error out on the usage of deprecated glib functions
-AX_APPEND_FLAG([-DG_DISABLE_DEPRECATED], [GLIB_CONFIG])
-
-GLIB_CFLAGS="$GLIB_CONFIG $GLIB_CFLAGS"
-AC_SUBST(GLIB_CFLAGS)
-AC_SUBST(GLIB_LIBS)
-
-QT_MIN_VERSION=5.2.0
-AC_SUBST(QT_MIN_VERSION)
-# Qt checks. We require Qt $QT_MIN_VERSION or later.
-#
-# We only do those if we're going to be building Wireshark;
-# otherwise, we don't have any GUI to build, so we don't use
-# Qt.
-#
-# We don't add $Qt_LIBS to LIBS, because we don't want to
-# force all programs to be built with Qt.
-#
-# For a list of library versions and their support across different platforms,
-# see https://wiki.wireshark.org/Development/Support_library_version_tracking
-
-have_qt=no
-if test "x$enable_wireshark" = "xyes"; then
-       if test "x$with_qt" != "xno"; then
-               #
-               # Qt was specified; make sure we have a C++ compiler.
-               #
-               if test -z "$CXX"; then
-                       AC_MSG_ERROR(Need a working C++ compiler to build Wireshark with Qt)
-               fi
-
-               #
-               # Now make sure we have Qt and, if so, add the flags
-               # for it to CFLAGS and CXXFLAGS.
-               #
-               AC_WIRESHARK_QT_CHECK($QT_MIN_VERSION, "$with_qt",
-               [
-                       AC_SUBST(Qt_CFLAGS)
-                       AC_SUBST(Qt_LIBS)
-                       have_qt=yes
-                       GUI_CONFIGURE_FLAGS="$GUI_CONFIGURE_FLAGS --with-qt"
-
-                       #
-                       # We're building with Qt, so we need the Qt build
-                       # tools in order to build the Wireshark GUI.
-                       # We've found a particular major version of Qt,
-                       # and we want that version's build tools; for
-                       # example, the Qt 4 version of uic produces files
-                       # that include Qt headers with paths that work
-                       # with Qt 4 but not Qt 5, so we can't use the
-                       # Qt 4 version of uic if we're building with Qt 5.
-                       AC_WIRESHARK_QT_TOOL_CHECK(UIC, uic, "$qt_version")
-                       AC_SUBST(UIC)
-                       AC_WIRESHARK_QT_TOOL_CHECK(MOC, moc, "$qt_version")
-                       AC_SUBST(MOC)
-                       AC_WIRESHARK_QT_TOOL_CHECK(RCC, rcc, "$qt_version")
-                       AC_SUBST(RCC)
-                       AC_WIRESHARK_QT_TOOL_CHECK_LRELEASE("$qt_version")
-                       AC_SUBST(LRELEASE)
-
-                       #
-                       # On Darwin, make sure we're using Qt5 or later.
-                       # If so, find where the Qt frameworks are located
-                       # and add that to the rpath, just in case this is
-                       # Qt 5.5 or later and the frameworks have an
-                       # install name that begins with @rpath and aren't
-                       # installed in a frameworks directory that's
-                       # searched by default.
-                       #
-                       case "$host_os" in
-                       darwin*)
-                               Qt_LDFLAGS="-Wl,-rpath,"`$PKG_CONFIG --libs Qt${qt_version}Core | sed -e 's/-F//' -e 's/ -framework.*//'`
-                               ;;
-                       esac
-                       AC_SUBST(Qt_LDFLAGS)
-
-                       if test -z "${MOC_OPTIONS+1}"
-                       then
-                               # Squelch moc verbose "nothing to do" output
-                               MOC_OPTIONS="-nn"
-                       fi
-                       AC_SUBST(MOC_OPTIONS)
-               ],
-               [
-                       case "$with_qt" in
-
-                       unspecified)
-                               #
-                               # They didn't explicitly ask for Qt,
-                               # so just don't build with it.
-                               #
-                               ;;
-
-                       yes)
-                               case "$host_os" in
-                               darwin*)
-                                       #
-                                       # This is probably macOS, and the
-                                       # problem could be that this is a
-                                       # later version of Qt that doesn't
-                                       # install .pc files on macOS, so
-                                       # pkg-config can't find it.
-                                       #
-                                       AC_MSG_ERROR([Qt is not installed or may not work with the configure script; try using CMake, instead])
-                                       ;;
-
-                               *)
-                                       #
-                                       # Qt might be installed, but only
-                                       # for use by applications, not
-                                       # for development.
-                                       #
-                                       AC_MSG_ERROR([Qt is not installed for development])
-                                       ;;
-                               esac
-                               ;;
-
-                       4)
-                               case "$host_os" in
-                               darwin*)
-                                       #
-                                       # See above.
-                                       #
-                                       AC_MSG_ERROR([Qt 4 is not installed or may not work with the configure script; try using CMake, instead])
-                                       ;;
-
-                               *)
-                                       #
-                                       # See above.
-                                       #
-                                       AC_MSG_ERROR([Qt 4 is not installed for development])
-                                       ;;
-                               esac
-                               ;;
-
-                       5)
-                               case "$host_os" in
-                               darwin*)
-                                       #
-                                       # See above.
-                                       #
-                                       AC_MSG_ERROR([Qt 5 is not installed or may not work with the configure script; try using CMake, instead])
-                                       ;;
-
-                               *)
-                                       #
-                                       # See above.
-                                       #
-                                       AC_MSG_ERROR([Qt 5 is not installed for development])
-                                       ;;
-                               esac
-                               ;;
-                       esac
-               ])
-       fi
-fi
-
-AC_SUBST(GUI_CONFIGURE_FLAGS)
-
-if test "$have_qt" = "yes" ; then
-       # We have Qt.
-
-       wireshark_bin="wireshark\$(EXEEXT)"
-       wireshark_man="wireshark.1"
-       wireshark_SUBDIRS="ui/qt"
-else
-       # We do not have Qt.
-       #
-       # If they didn't explicitly say "--disable-wireshark",
-       # fail (so that, unless they explicitly indicated that
-       # they don't want Wireshark, we stop so they know they
-       # won't be getting Wireshark unless they fix the Qt
-       # problem).
-       #
-       if test "x$enable_wireshark" = "xyes"; then
-               if test "$with_qt" != "no" ; then
-                       case "$host_os" in
-                       darwin*)
-                               #
-                               # This is probably macOS, and the
-                               # problem could be that this is a
-                               # later version of Qt that doesn't
-                               # install .pc files on macOS, so
-                               # pkg-config can't find it.
-                               #
-                               AC_MSG_ERROR([Qt was not installed for development, or Qt is installed but doesn't work with the configure script, so Wireshark can't be compiled; try using CMake, instead])
-                               ;;
-
-                       *)
-                               #
-                               # Qt might be installed, but only
-                               # for use by applications, not
-                               # for development.
-                               #
-                               AC_MSG_ERROR([Qt was not installed for development, so Wireshark can't be compiled])
-                               ;;
-                       esac
-               else
-                       AC_MSG_ERROR([Qt was not requested so Wireshark can't be compiled])
-               fi
-       fi
-       wireshark_bin=""
-       wireshark_man=""
-       wireshark_SUBDIRS=""
-fi
-
-#
-# If we have <dlfcn.h>, check whether we have dladdr.
-#
-if test "$ac_cv_header_dlfcn_h" = "yes"
-then
-       #
-       # Use GLib compiler flags and linker flags; GLib's gmodule
-       # stuff uses the dl APIs if available, so it might know
-       # what flags are needed.
-       #
-       ac_save_CFLAGS="$CFLAGS"
-       ac_save_LIBS="$LIBS"
-       CFLAGS="$WS_CFLAGS $GLIB_CFLAGS $CFLAGS"
-       LIBS="$LIBS $GLIB_LIBS"
-       AC_CHECK_FUNCS(dladdr)
-       if test x$ac_cv_func_dladdr = xno
-       then
-               #
-               # OK, try it with -ldl, in case you need that to get
-               # dladdr().  For some reason, on Linux, that's not
-               # part of the GLib flags; perhaps GLib itself is
-               # linked with libdl, so that you can link with
-               # Glib and it'll pull libdl in itself.
-               #
-               LIBS="$LIBS -ldl"
-               AC_CHECK_FUNCS(dladdr)
-       fi
-       CFLAGS="$ac_save_CFLAGS"
-       LIBS="$ac_save_LIBS"
-fi
-
-AC_SUBST(wireshark_bin)
-AC_SUBST(wireshark_man)
-AC_SUBST(wireshark_SUBDIRS)
-AM_CONDITIONAL(HAVE_Qt, test "$have_qt" = "yes")
-
-# Enable/disable tshark
-AC_ARG_ENABLE(tshark,
-  AC_HELP_STRING( [--enable-tshark],
-                 [build tshark @<:@default=yes@:>@]),
-    tshark=$enableval,enable_tshark=yes)
-
-if test "x$enable_tshark" = "xyes" ; then
-       tshark_bin="tshark\$(EXEEXT)"
-       tshark_man="tshark.1"
-       wiresharkfilter_man="wireshark-filter.4"
-else
-       tshark_bin=""
-       tshark_man=""
-fi
-AC_SUBST(tshark_bin)
-AC_SUBST(tshark_man)
-
-# Enable/disable editcap
-
-AC_ARG_ENABLE(editcap,
-  AC_HELP_STRING( [--enable-editcap],
-                 [build editcap @<:@default=yes@:>@]),
-    enable_editcap=$enableval,enable_editcap=yes)
-
-if test "x$enable_editcap" = "xyes" ; then
-       editcap_bin="editcap\$(EXEEXT)"
-       editcap_man="editcap.1"
-else
-       editcap_bin=""
-       editcap_man=""
-fi
-AC_SUBST(editcap_bin)
-AC_SUBST(editcap_man)
-
-
-# Enabling/disabling of dumpcap is done later (after we know if we have PCAP
-# or not)
-
-# Enable/disable capinfos
-
-AC_ARG_ENABLE(capinfos,
-  AC_HELP_STRING( [--enable-capinfos],
-                 [build capinfos @<:@default=yes@:>@]),
-    enable_capinfos=$enableval,enable_capinfos=yes)
-
-if test "x$enable_capinfos" = "xyes" ; then
-       capinfos_bin="capinfos\$(EXEEXT)"
-       capinfos_man="capinfos.1"
-else
-       capinfos_bin=""
-       capinfos_man=""
-fi
-AC_SUBST(capinfos_bin)
-AC_SUBST(capinfos_man)
-
-# Enable/disable captype
-
-AC_ARG_ENABLE(captype,
-  AC_HELP_STRING( [--enable-captype],
-                 [build captype @<:@default=yes@:>@]),
-    enable_captype=$enableval,enable_captype=yes)
-
-if test "x$enable_captype" = "xyes" ; then
-       captype_bin="captype\$(EXEEXT)"
-       captype_man="captype.1"
-else
-       captype_bin=""
-       captype_man=""
-fi
-AC_SUBST(captype_bin)
-AC_SUBST(captype_man)
-
-# Enable/disable mergecap
-
-AC_ARG_ENABLE(mergecap,
-  AC_HELP_STRING( [--enable-mergecap],
-                 [build mergecap @<:@default=yes@:>@]),
-    enable_mergecap=$enableval,enable_mergecap=yes)
-
-if test "x$enable_mergecap" = "xyes" ; then
-       mergecap_bin="mergecap\$(EXEEXT)"
-       mergecap_man="mergecap.1"
-else
-       mergecap_bin=""
-       mergecap_man=""
-fi
-AC_SUBST(mergecap_bin)
-AC_SUBST(mergecap_man)
-
-# Enable/disable reordercap
-
-AC_ARG_ENABLE(reordercap,
-  AC_HELP_STRING( [--enable-reordercap],
-                 [build reordercap @<:@default=yes@:>@]),
-    enable_reordercap=$enableval,enable_reordercap=yes)
-
-if test "x$enable_reordercap" = "xyes" ; then
-       reordercap_bin="reordercap\$(EXEEXT)"
-       reordercap_man="reordercap.1"
-else
-       reordercap_bin=""
-       reordercap_man=""
-fi
-AC_SUBST(reordercap_bin)
-AC_SUBST(reordercap_man)
-
-# Enable/disable text2pcap
-
-AC_ARG_ENABLE(text2pcap,
-  AC_HELP_STRING( [--enable-text2pcap],
-                 [build text2pcap @<:@default=yes@:>@]),
-    text2pcap=$enableval,enable_text2pcap=yes)
-
-if test "x$enable_text2pcap" = "xyes" ; then
-       text2pcap_bin="text2pcap\$(EXEEXT)"
-       text2pcap_man="text2pcap.1"
-else
-       text2pcap_bin=""
-       text2pcap_man=""
-fi
-AC_SUBST(text2pcap_bin)
-AC_SUBST(text2pcap_man)
-
-# Enable/disable dftest
-
-AC_ARG_ENABLE(dftest,
-  AC_HELP_STRING( [--enable-dftest],
-                 [build dftest @<:@default=yes@:>@]),
-    enable_dftest=$enableval,enable_dftest=yes)
-
-if test "x$enable_dftest" = "xyes" ; then
-       dftest_bin="dftest\$(EXEEXT)"
-       dftest_man="dftest.1"
-else
-       dftest_bin=""
-       dftest_man=""
-fi
-AC_SUBST(dftest_bin)
-AC_SUBST(dftest_man)
-
-# Enable/disable randpkt
-
-AC_ARG_ENABLE(randpkt,
-  AC_HELP_STRING( [--enable-randpkt],
-                 [build randpkt @<:@default=yes@:>@]),
-    enable_randpkt=$enableval,enable_randpkt=yes)
-
-if test "x$enable_randpkt" = "xyes" ; then
-       randpkt_bin="randpkt\$(EXEEXT)"
-       randpkt_man="randpkt.1"
-else
-       randpkt_bin=""
-       randpkt_man=""
-fi
-AC_SUBST(randpkt_bin)
-AC_SUBST(randpkt_man)
-
-AC_SUBST(wiresharkfilter_man)
-
-dnl pcap check
-AC_MSG_CHECKING(whether to use libpcap for packet capture)
-
-AC_ARG_WITH(pcap,
-  AC_HELP_STRING( [--with-pcap@<:@=DIR@:>@],
-                 [use libpcap for packet capturing @<:@default=yes@:>@]),
-[
-       if test $withval = no
-       then
-               want_pcap=no
-       elif test $withval = yes
-       then
-               want_pcap=yes
-       else
-               want_pcap=yes
-               pcap_dir=$withval
-       fi
-],[
-       want_pcap=yes
-       pcap_dir=
-])
-if test "x$want_pcap" = "xno" ; then
-       AC_MSG_RESULT(no)
-else
-       AC_MSG_RESULT(yes)
-       AC_WIRESHARK_PCAP_CHECK
-fi
-
-dnl dumpcap check
-AC_MSG_CHECKING(whether to build dumpcap)
-
-AC_ARG_ENABLE(dumpcap,
-  AC_HELP_STRING( [--enable-dumpcap],
-                 [build dumpcap @<:@default=yes@:>@]),
-    enable_dumpcap=$enableval,enable_dumpcap=yes)
-
-if test "x$enable_dumpcap" = "xyes" ; then
-       if test "x$want_pcap" = "xno" ; then
-               enable_dumpcap=no
-               AC_MSG_RESULT(pcap not installed for development - disabling dumpcap)
-       else
-               AC_MSG_RESULT(yes)
-       fi
-else
-       AC_MSG_RESULT(no)
-fi
-
-if test "x$enable_dumpcap" = "xyes" ; then
-       dumpcap_bin="dumpcap\$(EXEEXT)"
-       dumpcap_man="dumpcap.1"
-else
-       dumpcap_bin=""
-       dumpcap_man=""
-fi
-AC_SUBST(dumpcap_bin)
-AC_SUBST(dumpcap_man)
-
-# Enable/disable rawshark
-
-dnl rawshark check
-AC_MSG_CHECKING(whether to build rawshark)
-
-AC_ARG_ENABLE(rawshark,
-  AC_HELP_STRING( [--enable-rawshark],
-                 [build rawshark @<:@default=yes@:>@]),
-    rawshark=$enableval,enable_rawshark=yes)
-
-if test "x$enable_rawshark" = "xyes" ; then
-       if test "x$want_pcap" = "xno" ; then
-               enable_rawshark=no
-               AC_MSG_RESULT(pcap not installed for development - disabling rawshark)
-       else
-               AC_MSG_RESULT(yes)
-       fi
-else
-       AC_MSG_RESULT(no)
-fi
-
-if test "x$enable_rawshark" = "xyes" ; then
-       rawshark_bin="rawshark\$(EXEEXT)"
-       rawshark_man="rawshark.1"
-else
-       rawshark_bin=""
-       rawshark_man=""
-fi
-AC_SUBST(rawshark_bin)
-AC_SUBST(rawshark_man)
-
-# Enable/disable sharkd
-AC_ARG_ENABLE(sharkd,
-  AC_HELP_STRING( [--enable-sharkd],
-                 [build sharkd @<:@default=yes@:>@]),
-    sharkd=$enableval,enable_sharkd=yes)
-
-if test "x$enable_sharkd" = "xyes" ; then
-       sharkd_bin="sharkd\$(EXEEXT)"
-else
-       sharkd_bin=""
-fi
-AC_SUBST(sharkd_bin)
-
-# Enable/disable tfshark
-AC_ARG_ENABLE(tfshark,
-  AC_HELP_STRING( [--enable-tfshark],
-                 [build tfshark (Experimental) @<:@default=no@:>@]),
-    tfshark=$enableval,enable_tfshark=no)
-
-if test "x$enable_tfshark" = "xyes" ; then
-       tfshark_bin="tfshark\$(EXEEXT)"
-       tfshark_man="tfshark.1"
-       wiresharkfilter_man="wireshark-filter.4"
-else
-       tfshark_bin=""
-       tfshark_man=""
-fi
-AC_SUBST(tfshark_bin)
-AC_SUBST(tfshark_man)
-
-# Enable/disable fuzzshark
-AC_ARG_ENABLE(fuzzshark,
-  AC_HELP_STRING( [--enable-fuzzshark],
-                 [build fuzzshark @<:@default=yes@:>@]),
-    fuzzshark=$enableval,enable_fuzzshark=yes)
-
-if test "x$enable_fuzzshark" = "xyes" ; then
-       fuzzshark_bin="fuzzshark\$(EXEEXT)"
-else
-       fuzzshark_bin=""
-fi
-AC_SUBST(fuzzshark_bin)
-
-
-dnl Use pcapng by default
-AC_ARG_ENABLE(pcap-ng-default,
-  AC_HELP_STRING( [--enable-pcap-ng-default],
-                 [use the pcapng file format by default instead of pcap @<:@default=yes@:>@]),
-    enable_pcap_ng_default=$enableval,enable_pcap_ng_default=yes)
-if test x$enable_pcap_ng_default = xyes; then
-       AC_DEFINE(PCAP_NG_DEFAULT, 1, [Support for pcapng])
-fi
-
-dnl zlib check
-AC_MSG_CHECKING(whether to use zlib for gzip compression and decompression)
-
-AC_ARG_WITH(zlib,
-  AC_HELP_STRING([--with-zlib@<:@=DIR@:>@],
-                [use zlib (located in directory DIR, if supplied) for gzip compression and decompression @<:@default=yes, if available@:>@]),
-[
-       if test "x$withval" = "xno"
-       then
-               want_zlib=no
-       elif test "x$withval" = "xyes"
-       then
-               want_zlib=yes
-       else
-               want_zlib=yes
-               zlib_dir="$withval"
-       fi
-],[
-       #
-       # Use zlib if it's present, otherwise don't.
-       #
-       want_zlib=ifavailable
-       zlib_dir=
-])
-if test "x$want_zlib" = "xno" ; then
-       AC_MSG_RESULT(no)
-else
-       AC_MSG_RESULT(yes)
-       AC_WIRESHARK_ZLIB_CHECK
-       if test "x$want_zlib" = "xno" ; then
-               AC_MSG_RESULT(zlib not found - disabling gzip compression and decompression)
-       else
-               if test "x$ac_cv_func_inflatePrime" = "xno" ; then
-                       AC_MSG_RESULT(inflatePrime not found in zlib - disabling gzipped capture file support)
-               fi
-       fi
-fi
-
-dnl lz4 check
-LZ4_LIBS=''
-AC_MSG_CHECKING(whether to use lz4 compression and decompression)
-
-AC_ARG_WITH(lz4,
-  AC_HELP_STRING([--with-lz4@<:@=DIR@:>@],
-                [use lz4 (located in directory DIR, if supplied) for lz4 compression and decompression @<:@default=yes, if available@:>@]),
-[
-       if test "x$withval" = "xno"
-       then
-               want_lz4=no
-       elif test "x$withval" = "xyes"
-       then
-               want_lz4=yes
-       else
-               want_lz4=yes
-               lz4_dir="$withval"
-       fi
-],[
-       #
-       # Use lz4 if it's present, otherwise don't.
-       #
-       want_lz4=ifavailable
-       lz4_dir=
-])
-have_lz4=no
-if test "x$want_lz4" = "xno" ; then
-       AC_MSG_RESULT(no)
-else
-       AC_MSG_RESULT(yes)
-       AC_WIRESHARK_LZ4_CHECK
-       if test "x$want_lz4" = "xno" ; then
-               AC_MSG_RESULT(lz4 not found - disabling lz4 compression and decompression)
-       else
-               if test "x$ac_cv_func_LZ4_decompress_safe" = "xno" ; then
-                       AC_MSG_RESULT(LZ4_decompress_safe not found in lz4 - disabling cql lz4 decompression)
-               else
-                       have_lz4=yes
-               fi
-       fi
-fi
-AC_SUBST(LZ4_LIBS)
-
-dnl snappy check
-SNAPPY_LIBS=''
-AC_MSG_CHECKING(whether to use snappy compression and decompression)
-
-AC_ARG_WITH(snappy,
-  AC_HELP_STRING([--with-snappy@<:@=DIR@:>@],
-                [use snappy (located in directory DIR, if supplied) for snappy compression and decompression @<:@default=yes, if available@:>@]),
-[
-       if test "x$withval" = "xno"
-       then
-               want_snappy=no
-       elif test "x$withval" = "xyes"
-       then
-               want_snappy=yes
-       else
-               want_snappy=yes
-               snappy_dir="$withval"
-       fi
-],[
-       #
-       # Use snappy if it's present, otherwise don't.
-       #
-       want_snappy=ifavailable
-       snappy_dir=
-])
-have_snappy=no
-if test "x$want_snappy" = "xno" ; then
-       AC_MSG_RESULT(no)
-else
-       AC_MSG_RESULT(yes)
-       AC_WIRESHARK_SNAPPY_CHECK
-       if test "x$want_snappy" = "xno" ; then
-               AC_MSG_RESULT(snappy not found - disabling snappy compression and decompression)
-       else
-               if test "x$ac_cv_func_snappy_uncompress" = "xno" ; then
-                       AC_MSG_RESULT(snappy_uncompress not found in snappy - disabling cql snappy decompression)
-               else
-                       have_snappy=yes
-               fi
-       fi
-fi
-AC_SUBST(SNAPPY_LIBS)
-
-dnl Lua check
-AC_ARG_WITH(lua,
-  AC_HELP_STRING( [--with-lua@<:@=DIR@:>@],
-                 [use liblua (located in directory DIR, if supplied) for the Lua scripting plugin @<:@default=yes, if available@:>@]),
-[
-       if test $withval = no
-       then
-               want_lua=no
-       elif test $withval = yes
-       then
-               want_lua=yes
-       else
-               want_lua=yes
-               want_lua_dir=$withval
-       fi
-],[
-       # By default use Lua if we can find it
-       want_lua=ifavailable
-       lua_dir=
-])
-if test "x$want_lua" != "xno" ; then
-       AC_WIRESHARK_LIBLUA_CHECK
-
-       if test "x$want_lua" = "xyes" -a "x$have_lua" = "xno"
-       then
-               AC_MSG_ERROR([Lua support was requested, but is not installed for development])
-       fi
-fi
-if test "x$have_lua" = "xyes"
-then
-       AC_DEFINE(HAVE_LUA, 1, [Define to use Lua])
-fi
-AM_CONDITIONAL(HAVE_LIBLUA, test x$have_lua = xyes)
-AC_SUBST(LUA_LIBS)
-AC_SUBST(LUA_CFLAGS)
-
-dnl Check if dumpcap should be installed with filesystem capabilities
-AC_PATH_PROG(SETCAP, setcap)
-AC_ARG_ENABLE(setcap-install,
-  AC_HELP_STRING( [--enable-setcap-install],
-                 [install dumpcap with cap_net_admin and cap_net_raw @<:@default=no@:>@]),
-    enable_setcap_install=$enableval,enable_setcap_install=no)
-
-AC_MSG_CHECKING(whether to install dumpcap with cap_net_admin and cap_net_raw capabilities)
-if test "x$enable_setcap_install" = "xno" ; then
-       AC_MSG_RESULT(no)
-else
-       if test "x$SETCAP" = "x" ; then
-               AC_MSG_RESULT(setcap not found)
-               AC_MSG_ERROR([Setcap install was requested, but setcap was not found])
-       elif test "x$enable_dumpcap" = "xno" ; then
-               AC_MSG_RESULT(dumpcap disabled)
-               AC_MSG_ERROR([Setcap install works only with dumpcap, but dumpcap is disabled])
-       else
-               AC_MSG_RESULT(yes)
-       fi
-fi
-
-AM_CONDITIONAL(SETCAP_INSTALL, test x$enable_setcap_install = xyes)
-
-dnl Check if dumpcap should be installed setuid
-AC_ARG_ENABLE(setuid-install,
-  AC_HELP_STRING( [--enable-setuid-install],
-                 [install dumpcap as setuid @<:@default=no@:>@]),
-    enable_setuid_install=$enableval,enable_setuid_install=no)
-
-AC_MSG_CHECKING(whether to install dumpcap setuid)
-if test "x$enable_setuid_install" = "xno" ; then
-       AC_MSG_RESULT(no)
-else
-       if test "x$enable_setcap_install" = "xyes" ; then
-               enable_setuid_install=no
-               AC_MSG_RESULT(setcap and setuid both selected)
-               AC_MSG_ERROR(You must choose one of setcap install and setuid install)
-       elif test "x$enable_dumpcap" = "xno" ; then
-               AC_MSG_RESULT(dumpcap disabled)
-               AC_MSG_ERROR([Setuid install works only with dumpcap, but dumpcap is disabled])
-       else
-               AC_MSG_RESULT(yes)
-       fi
-fi
-
-AM_CONDITIONAL(SETUID_INSTALL, test x$enable_setuid_install = xyes)
-AC_CHECK_FUNCS(setresuid setresgid)
-
-dnl ...but our Network Operations group is named "no"!
-DUMPCAP_GROUP=''
-AC_ARG_WITH(dumpcap-group,
-  AC_HELP_STRING( [--with-dumpcap-group=GROUP],
-                 [restrict dumpcap to GROUP]),
-[
-  if test "x$withval" = "xyes"; then
-      AC_MSG_ERROR([No dumpcap group specified.])
-  elif test "x$withval" != "xno"; then
-      if test "x$enable_dumpcap" = "xno" ; then
-         AC_MSG_ERROR(dumpcap group install works only with dumpcap but dumpcap is disabled)
-      fi
-      AC_MSG_RESULT($withval)
-      DUMPCAP_GROUP="$withval"
-  fi
-])
-AC_SUBST(DUMPCAP_GROUP)
-AM_CONDITIONAL(HAVE_DUMPCAP_GROUP, test x$DUMPCAP_GROUP != x)
-
-dnl libcap (not libpcap) check
-LIBCAP_LIBS=''
-AC_MSG_CHECKING(whether to use the libcap capabilities library)
-
-AC_ARG_WITH(libcap,
-  AC_HELP_STRING( [--with-libcap@<:@=DIR@:>@],
-                 [use libcap (located in directory DIR, if supplied) for POSIX.1e capabilities management @<:@default=yes, if present@:>@]),
-[
-if   test "x$withval" = "xno";  then
-       want_libcap=no
-elif test "x$withval" = "xyes"; then
-       want_libcap=yes
-elif test -d "$withval"; then
-       want_libcap=yes
-       AC_WIRESHARK_ADD_DASH_L(WS_LDFLAGS, ${withval}/lib)
-fi
-])
-if test "x$with_libcap" = "xno" ; then
-       AC_MSG_RESULT(no)
-else
-       AC_MSG_RESULT(yes)
-       AC_WIRESHARK_LIBCAP_CHECK
-fi
-AC_SUBST(LIBCAP_LIBS)
-
-dnl Checks for header files.
-dnl Some of these may not be needed: http://hacks.owlfolio.org/header-survey/
-dnl Note, however, that, whilst this script is generally run only on UN*Xes:
-dnl
-dnl     1) we also support building on and for Windows and not all of those
-dnl       headers are present on Windows, so the code has to check a
-dnl       #define *anyway* to determine whether to include the header
-dnl       file
-dnl
-dnl and
-dnl
-dnl     2) this might also be run on Windows with a sufficiently UNIXy
-dnl       environment such as Cygwin (although Wireshark should be built
-dnl       natively rather than using Cygwin).
-dnl
-AC_CHECK_HEADERS(fcntl.h getopt.h grp.h inttypes.h netdb.h pwd.h unistd.h)
-AC_CHECK_HEADERS(sys/ioctl.h sys/param.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/time.h sys/types.h sys/utsname.h sys/wait.h)
-AC_CHECK_HEADERS(netinet/in.h)
-AC_CHECK_HEADERS(arpa/inet.h)
-AC_CHECK_HEADERS(ifaddrs.h)
-
-#
-# On Linux, check for some additional headers, which we need as a
-# workaround for a bonding driver bug and for libpcap's current lack
-# of its own workaround for that bug.
-#
-case "$host_os" in
-linux*)
-       AC_CHECK_HEADERS(linux/sockios.h linux/if_bonding.h,,,[#include <sys/socket.h>])
-       ;;
-esac
-
-dnl kerberos check
-AC_MSG_CHECKING(whether to use Kerberos library)
-
-AC_ARG_WITH(krb5,
-  AC_HELP_STRING( [--with-krb5@<:@=DIR@:>@],
-                 [use Kerberos library (located in directory DIR, if supplied) to use in Kerberos dissection @<:@default=yes@:>@]),
-[
-       if test $withval = no
-       then
-               want_krb5=no
-       elif test $withval = yes
-       then
-               want_krb5=yes
-       else
-               want_krb5=yes
-               krb5_dir=$withval
-       fi
-],[
-       #
-       # Use Kerberos library if available, otherwise don't.
-       #
-       want_krb5=ifavailable
-       krb5_dir=
-])
-if test "x$want_krb5" = "xno" ; then
-       AC_MSG_RESULT(no)
-else
-       AC_MSG_RESULT(yes)
-       AC_WIRESHARK_KRB5_CHECK
-fi
-
-dnl
-dnl We use GnuTLS for SSL decryption but some builds of Kerberos require
-dnl linking with OpenSSL. We don't want to build with it by default due to
-dnl annoying license incompatibilities between the OpenSSL license and the GPL,
-dnl so we require an explicit option to configure.
-dnl
-AC_ARG_WITH(krb5-crypto-openssl,
-  AC_HELP_STRING( [--with-krb5-crypto-openssl],
-                 [Allow linking with OpenSSL for Kerberos crypto backend @<:@default=no@:>@]))
-
-dnl c-ares Check
-C_ARES_LIBS=''
-AC_MSG_CHECKING(whether to use the c-ares library if available)
-
-AC_ARG_WITH(c-ares,
-  AC_HELP_STRING( [--with-c-ares@<:@=DIR@:>@],
-                 [use c-ares (located in directory DIR, if supplied) @<:@default=yes, if present@:>@]),
-[
-if   test "x$withval" = "xno";  then
-       want_c_ares=no
-elif test "x$withval" = "xyes"; then
-       want_c_ares=yes
-elif test -d "$withval"; then
-       want_c_ares=yes
-       AC_WIRESHARK_ADD_DASH_L(WS_LDFLAGS, ${withval}/lib)
-fi
-])
-if test "x$want_c_ares" = "xno" ; then
-       AC_MSG_RESULT(no)
-else
-       AC_MSG_RESULT(yes)
-       AC_WIRESHARK_C_ARES_CHECK
-fi
-AC_SUBST(C_ARES_LIBS)
-
-dnl MaxMind DB Check
-MAXMINDDB_LIBS=''
-AC_MSG_CHECKING(whether to use the MaxMind DB IP address mapping library if available)
-
-AC_ARG_WITH(maxminddb,
-  AC_HELP_STRING( [--with-maxminddb@<:@=DIR@:>@],
-                 [use MaxMind DB (located in directory DIR, if supplied) @<:@default=yes, if present@:>@]),
-[
-if   test "x$withval" = "xno";  then
-       want_maxminddb=no
-elif test "x$withval" = "xyes"; then
-       want_maxminddb=yes
-elif test -d "$withval"; then
-       want_maxminddb=yes
-       AC_WIRESHARK_ADD_DASH_L(WS_LDFLAGS, ${withval}/lib)
-fi
-])
-if test "x$want_maxminddb" = "xno"; then
-       AC_MSG_RESULT(no)
-else
-       AC_MSG_RESULT(yes)
-       AC_WIRESHARK_MAXMINDDB_CHECK
-fi
-AC_SUBST(MAXMINDDB_LIBS)
-
-if test "x$have_good_maxminddb" = "xyes" ; then
-       mmdbresolve_bin="mmdbresolve\$(EXEEXT)"
-       mmdbresolve_man="mmdbresolve.1"
-else
-       mmdbresolve_bin=""
-       mmdbresolve_man=""
-fi
-AC_SUBST(mmdbresolve_bin)
-AC_SUBST(mmdbresolve_man)
-
-dnl LIBSSH Check
-LIBSSH=''
-AC_MSG_CHECKING(whether to use the libssh library if available)
-
-AC_ARG_WITH(libssh,
-  AC_HELP_STRING( [--with-libssh@<:@=DIR@:>@],
-                 [use libssh (located in directory DIR, if supplied) @<:@default=yes, if present@:>@]),
-[
-if   test "x$withval" = "xno";  then
-       want_libssh=no
-elif test "x$withval" = "xyes"; then
-       want_libssh=yes
-elif test -d "$withval"; then
-       want_libssh=yes
-       AC_WIRESHARK_ADD_DASH_L(WS_LDFLAGS, ${withval}/lib)
-fi
-])
-if test "x$want_libssh" = "xno"; then
-       AC_MSG_RESULT(no)
-else
-       AC_MSG_RESULT(yes)
-       AC_WIRESHARK_LIBSSH_CHECK
-fi
-AC_SUBST(LIBSSH_LIBS)
-
-dnl nghttp2 Check
-NGHTTP2_LIBS=''
-AC_MSG_CHECKING(whether to use the nghttp2 HPACK library if available)
-
-AC_ARG_WITH(nghttp2,
-  AC_HELP_STRING( [--with-nghttp2@<:@=DIR@:>@],
-                 [use nghttp2 (located in directory DIR, if supplied) @<:@default=yes, if present@:>@]),
-[
-if   test "x$withval" = "xno";  then
-       want_nghttp2=no
-elif test "x$withval" = "xyes"; then
-       want_nghttp2=yes
-elif test -d "$withval"; then
-       want_nghttp2=yes
-       AC_WIRESHARK_ADD_DASH_L(WS_LDFLAGS, ${withval}/lib)
-fi
-])
-if test "x$want_nghttp2" = "xno"; then
-       AC_MSG_RESULT(no)
-else
-       AC_MSG_RESULT(yes)
-       AC_WIRESHARK_NGHTTP2_CHECK
-fi
-AC_SUBST(NGHTTP2_LIBS)
-
-dnl Checks for typedefs, structures, and compiler characteristics.
-# AC_C_CONST
-
-# Check how we can get the time zone abbreviation
-AC_STRUCT_TIMEZONE
-
-# We need to know whether "struct stat" has an "st_flags" member
-# for file_user_immutable().
-
-AC_CHECK_MEMBERS([struct stat.st_flags])
-
-# We need to know whether "struct stat" has an "st_birthtime" member
-# or an "__st_birthtime" member for the file set dialog.
-
-AC_CHECK_MEMBERS([struct stat.st_birthtime])
-AC_CHECK_MEMBERS([struct stat.__st_birthtime])
-
-# We need to know whether "struct sockaddr" has an "sa_len" member
-# for get_interface_list().
-
-AC_CHECK_MEMBERS([struct sockaddr.sa_len],,,
-                 [#ifdef HAVE_SYS_TYPES_H
-                  #include <sys/types.h>
-                  #endif
-                  #ifdef HAVE_SYS_SOCKET_H
-                  #include <sys/socket.h>
-                  #endif])
-
-AC_REPLACE_FUNCS(getopt_long)
-if test "x$ac_cv_func_getopt_long" = xyes; then
-  #
-  # The OS has getopt_long(), so it might have optreset.  Do we have it?
-  #
-  AC_CACHE_CHECK([whether optreset is defined], ac_cv_have_optreset,
-    AC_LINK_IFELSE([AC_LANG_SOURCE([[extern int optreset;return optreset;]])],
-        ac_cv_have_optreset=yes, ac_cv_have_optreset=no))
-  if test "$ac_cv_have_optreset" = yes ; then
-    AC_DEFINE(HAVE_OPTRESET, 1, [Define to 1 if you have the optreset variable])
-  fi
-else
-  #
-  # The OS doesn't have getopt_long(), so we're using the GNU libc
-  # version that we have in wsutil.  It doesn't have optreset, so we
-  # don't need to check for it.
-  #
-  # However, it uses alloca(), so we may need to include alloca.h;
-  # check for it.
-  #
-  AC_CHECK_HEADERS(alloca.h)
-fi
-
-AC_REPLACE_FUNCS(strptime)
-
-AC_CHECK_FUNCS(mkstemps)
-AC_CHECK_FUNCS(issetugid)
-AC_CHECK_FUNCS(sysconf)
-AC_CHECK_FUNCS(getifaddrs)
-AC_CHECK_FUNC(getexecname)
-
-#
-# Check for SpeexDSP (http://www.speex.org)
-#
-AS_IF([test "x$have_qt_multimedia_lib" = xyes],
-       [PKG_CHECK_MODULES(SPEEXDSP, speexdsp, [have_speexdsp=yes], [have_speexdsp=no])])
-AS_IF([test "x$have_speexdsp" = xyes],
-       [AC_DEFINE(HAVE_SPEEXDSP, 1, [Define to 1 if you have SpeexDSP])])
-AM_CONDITIONAL(HAVE_SPEEXDSP, [test "x$have_speexdsp" = "xyes"])
-
-# Check Bluetooth SBC codec for RTP Player
-# git://git.kernel.org/pub/scm/bluetooth/sbc.git
-AC_ARG_WITH([sbc],
-  AC_HELP_STRING( [--with-sbc=@<:@yes/no@:>@],
-                 [use SBC codec to play Bluetooth A2DP stream @<:@default=yes, if available@:>@]),
-  with_sbc="$withval"; want_sbc="yes", with_sbc="yes")
-
-PKG_CHECK_MODULES(SBC, sbc >= 1.0, [have_sbc=yes], [have_sbc=no])
-if test "x$with_sbc" != "xno"; then
-    if (test "${have_sbc}" = "yes"); then
-       AC_DEFINE(HAVE_SBC, 1, [Define to support playing SBC by standalone BlueZ SBC library])
-    elif test "x$want_sbc" = "xyes"; then
-       # Error out if the user explicitly requested the sbc library
-       AC_MSG_ERROR([SBC codec library was requested, but is not installed for development])
-    fi
-else
-    have_sbc=no
-fi
-AM_CONDITIONAL(HAVE_SBC, test "x$have_sbc" = "xyes")
-
-#`
-# Check SpanDSP library for RTP Player
-# http://www.soft-switch.org/
-AC_ARG_WITH([spandsp],
-  AC_HELP_STRING( [--with-spandsp=@<:@yes/no@:>@],
-                 [use SpanDSP to play G.722/G.726 codecs @<:@default=yes, if available@:>@]),
-  with_spandsp="$withval"; want_spandsp="yes", with_spandsp="yes")
-
-PKG_CHECK_MODULES(SPANDSP, spandsp, [have_spandsp=yes], [have_spandsp=no])
-if test "x$with_spandsp" != "xno"; then
-    if (test "${have_spandsp}" = "yes"); then
-        AC_DEFINE(HAVE_SPANDSP, 1, [Define if you have the SpanDSP library])
-    elif test "x$want_spandsp" = "xyes"; then
-        # Error out if the user explicitly requested the SpanDSP library
-        AC_MSG_ERROR([SpanDSP library was requested, but is not installed for development])
-    fi
-else
-    have_spandsp=no
-fi
-AM_CONDITIONAL(HAVE_SPANDSP, test "x$have_spandsp" = "xyes")
-
-#`
-# Check bcg729 library for RTP Player
-# https://www.linphone.org/technical-corner/bcg729/overview
-dnl bcg729 Check
-BCG729_LIBS=''
-AC_MSG_CHECKING(whether to use the bcg729 library if available)
-
-AC_ARG_WITH([bcg729],
-  AC_HELP_STRING( [--with-bcg729=@<:@=DIR@:>@],
-                 [use bcg729 to play G.729 codec(located in directory DIR, if supplied) @<:@default=yes, if present@:>@]),
-[
-if   test "x$withval" = "xno";  then
-       want_bcg729=no
-elif test "x$withval" = "xyes"; then
-       want_bcg729=yes
-elif test -d "$withval"; then
-       want_bcg729=yes
-       AC_WIRESHARK_ADD_DASH_L(WS_LDFLAGS, ${withval}/lib)
-fi
-])
-if test "x$want_bcg729" = "xno"; then
-       AC_MSG_RESULT(no)
-else
-       AC_MSG_RESULT(yes)
-       AC_WIRESHARK_BCG729_CHECK
-fi
-AC_SUBST(BCG729_LIBS)
-AM_CONDITIONAL(HAVE_BCG729, test "x$have_good_bcg729" = "xyes")
-
-#`
-# Libxml2 check
-AC_ARG_WITH(libxml2,
-  AC_HELP_STRING([--with-libxml2=@<:@yes/no@:>@],
-                [Libxml2 is a XML C parser, which can be used for handling XML configuration in dissectors @<:@default=yes, if available@:>@]),
-  with_libxml2="$withval"; want_libxml2="yes", with_libxml2="yes")
-
-PKG_CHECK_MODULES(LIBXML2, libxml-2.0, [have_libxml2=yes], [have_libxml2=no])
-if test "x$with_libxml2" != "xno"; then
-    if (test "${have_libxml2}" = "yes"); then
-        AC_DEFINE(HAVE_LIBXML2, 1, [Define if you have libxml2])
-    elif test "x$want_libxml2" = "xyes"; then
-        # Error out if the user explicitly requested libxml2
-        AC_MSG_ERROR([Libxml2 was requested, but is not installed for development])
-    fi
-else
-    have_libxml2=no
-fi
-AM_CONDITIONAL(HAVE_LIBXML2, test "x$have_libxml2" = "xyes")
-
-#
-# Libsmi check
-#
-AC_ARG_WITH(libsmi,
-  AC_HELP_STRING([--with-libsmi=@<:@yes/no@:>@],
-                [use libsmi MIB/PIB library @<:@default=yes, if available@:>@]),
-                [], [with_libsmi="if_available"])
-
-have_libsmi=no
-if test "x$with_libsmi" != "xno"; then
-       PKG_CHECK_MODULES(LIBSMI, libsmi,
-               [have_libsmi=yes
-                AC_DEFINE(HAVE_LIBSMI, 1, [Define if you have libsmi])
-               ],
-               [if test "x$with_libsmi" = "xyes"; then
-                       # Error out if the user explicitly requested libsmi
-                       AC_MSG_ERROR([Libsmi was requested, but is not installed for development])
-                fi
-               ]
-       )
-fi
-
-dnl
-dnl check whether plugins should be enabled
-dnl
-AC_ARG_ENABLE(plugins,
-  AC_HELP_STRING( [--enable-plugins],
-                 [support plugins (if available on your platform) @<:@default=yes@:>@]),
-                 [have_plugins=$enableval], [have_plugins=yes])
-
-AM_CONDITIONAL(HAVE_PLUGINS, test "x$have_plugins" = "xyes")
-if test x$have_plugins = xyes
-then
-  AC_DEFINE(HAVE_PLUGINS, 1, [Define if plugins are enabled])
-fi
-dnl we don't wish to expand ${libdir} yet
-plugindir="\${libdir}/wireshark/plugins/$VERSION_RELEASE"
-AC_SUBST(plugindir)
-
-#
-# The plugin dissectors reside in ./plugins/PROTO/
-#
-PLUGIN_LIBS=""
-AC_SUBST(PLUGIN_LIBS)
-
-dnl
-dnl check whether extcap programs should be enabled and, if they should be,
-dnl check for extcap directory - stolen from Amanda's configure.ac
-dnl
-dnl we don't wish to expand ${libdir} yet
-extcapdir="\${libdir}/wireshark/extcap"
-extcap_man="extcap.4"
-
-AC_SUBST(extcap_man)
-AC_SUBST(extcapdir)
-
-dnl androiddump check
-AC_MSG_CHECKING(whether to build androiddump)
-
-AC_ARG_ENABLE(androiddump,
-  AC_HELP_STRING( [--enable-androiddump],
-                 [build androiddump @<:@default=yes@:>@]),
-    androiddump=$enableval,enable_androiddump=yes)
-
-if test "x$enable_androiddump" = "xyes" ; then
-       AC_MSG_RESULT(yes)
-else
-       AC_MSG_RESULT(no)
-fi
-
-AC_ARG_ENABLE(androiddump_use_libpcap,
-  AC_HELP_STRING( [--enable-androiddump-use-libpcap],
-                 [build androiddump using libpcap @<:@default=no@:>@]),
-    androiddump_use_libpcap=$enableval,enable_androiddump_use_libpcap=no)
-
-if test "x$enable_androiddump" = "xyes" -a "x$enable_androiddump_use_libpcap" = "xyes" ; then
-       AC_DEFINE(ANDROIDDUMP_USE_LIBPCAP, 1, [Androiddump will use Libpcap])
-fi
-
-if test "x$enable_androiddump" = "xyes" ; then
-       androiddump_bin="androiddump\$(EXEEXT)"
-       androiddump_man="androiddump.1"
-else
-       androiddump_bin=""
-       androiddump_man=""
-fi
-AC_SUBST(androiddump_bin)
-AC_SUBST(androiddump_man)
-
-dnl sshdump check
-AC_MSG_CHECKING(whether to build sshdump)
-
-AC_ARG_ENABLE(sshdump,
-       AC_HELP_STRING( [--enable-sshdump],
-               [build sshdump @<:@default=yes@:>@]),
-       [],[enable_sshdump=yes])
-
-if test "x$have_libssh_pointsix" != xyes; then
-       AC_MSG_RESULT([no, libssh >= 0.6.0 not installed for development])
-       enable_sshdump=no
-elif test "x$enable_sshdump" = "xyes" ; then
-       AC_MSG_RESULT(yes)
-else
-       AC_MSG_RESULT(no)
-fi
-
-if test "x$enable_sshdump" = "xyes" ; then
-       sshdump_bin="sshdump\$(EXEEXT)"
-       sshdump_man="sshdump.1"
-else
-       sshdump_bin=""
-       sshdump_man=""
-fi
-AC_SUBST(sshdump_bin)
-AC_SUBST(sshdump_man)
-
-dnl ciscodump check
-AC_MSG_CHECKING(whether to build ciscodump)
-
-AC_ARG_ENABLE(ciscodump,
-       AC_HELP_STRING( [--enable-ciscodump],
-               [build ciscodump @<:@default=yes@:>@]),
-       [],[enable_ciscodump=yes])
-
-if test "x$have_libssh_pointsix" != xyes; then
-       AC_MSG_RESULT([no, libssh >= 0.6.0 not installed for development])
-       enable_ciscodump=no
-elif test "x$enable_ciscodump" = "xyes" ; then
-       AC_MSG_RESULT(yes)
-else
-       AC_MSG_RESULT(no)
-fi
-
-if test "x$enable_ciscodump" = "xyes" ; then
-       ciscodump_bin="ciscodump\$(EXEEXT)"
-       ciscodump_man="ciscodump.1"
-else
-       ciscodump_bin=""
-       ciscodump_man=""
-fi
-AC_SUBST(ciscodump_bin)
-AC_SUBST(ciscodump_man)
-
-dnl randpktdump check
-AC_MSG_CHECKING(whether to build randpktdump)
-
-AC_ARG_ENABLE(randpktdump,
-       AC_HELP_STRING( [--enable-randpktdump],
-               [build randpktdump @<:@default=yes@:>@]),
-       randpktdump=$enableval,enable_randpktdump=yes)
-
-if test "x$enable_randpktdump" = "xyes" ; then
-       AC_MSG_RESULT(yes)
-else
-       AC_MSG_RESULT(no)
-fi
-
-if test "x$enable_randpktdump" = "xyes" ; then
-       randpktdump_bin="randpktdump\$(EXEEXT)"
-       randpktdump_man="randpktdump.1"
-else
-       randpktdump_bin=""
-       randpktdump_man=""
-fi
-AC_SUBST(randpktdump_bin)
-AC_SUBST(randpktdump_man)
-
-dnl udpdump check
-AC_MSG_CHECKING(whether to build udpdump)
-
-AC_ARG_ENABLE(udpdump,
-       AC_HELP_STRING( [--enable-udpdump],
-               [build udpdump @<:@default=yes@:>@]),
-       [],[enable_udpdump=yes])
-
-if test "x$enable_udpdump" = "xyes" ; then
-       AC_MSG_RESULT(yes)
-else
-       AC_MSG_RESULT(no)
-fi
-
-if test "x$enable_udpdump" = "xyes" ; then
-       udpdump_bin="udpdump\$(EXEEXT)"
-       udpdump_man="udpdump.1"
-else
-       udpdump_bin=""
-       udpdump_man=""
-fi
-AC_SUBST(udpdump_bin)
-AC_SUBST(udpdump_man)
-
-AM_CONDITIONAL(ENABLE_STATIC, test x$enable_static = xyes)
-if test x$enable_static = xyes
-then
-  AC_DEFINE(ENABLE_STATIC, 1, [Link Wireshark libraries statically])
-fi
-
-# Gather which GUI we're building for rpmbuild
-if test "x$have_qt" = "xyes" ; then
-       RPMBUILD_WITH_ARGS="$RPMBUILD_WITH_ARGS --with qt5"
-else
-       RPMBUILD_WITH_ARGS="$RPMBUILD_WITH_ARGS --without qt --without qt5"
-fi
-if test "x$have_lua" = "xyes" ; then
-       RPMBUILD_WITH_ARGS="$RPMBUILD_WITH_ARGS --with lua"
-else
-       RPMBUILD_WITH_ARGS="$RPMBUILD_WITH_ARGS --without lua"
-fi
-AC_SUBST(RPMBUILD_WITH_ARGS)
-AC_SUBST(RPM_VERSION, version_major.version_minor.version_micro)
-
-AC_SUBST(WS_CPPFLAGS)
-AC_SUBST(WS_CFLAGS)
-AC_SUBST(WS_CXXFLAGS)
-AC_SUBST(WS_LDFLAGS)
-
-AC_SUBST(WS_CFLAGS_FOR_BUILD)
-
-AH_BOTTOM([#include <ws_diag_control.h>])
-
-dnl Save the cacheable configure results to config.cache before recursing
-AC_CACHE_SAVE
-
-m4_sinclude(plugins/Custom.m4) dnl
-m4_ifndef(_CUSTOM_PLUGIN_CONFIG_FILES_, m4_define(_CUSTOM_PLUGIN_CONFIG_FILES_)) dnl
-
-sinclude(epan/dissectors/asn1/Custom.m4) dnl
-ifdef(_CUSTOM_ASN1_AC_OUTPUT_,, define(_CUSTOM_ASN1_AC_OUTPUT_, )) dnl
-
-AC_CONFIG_HEADERS([config.h])
-
-AC_CONFIG_FILES(
-  Makefile
-  doxygen.cfg
-  epan/dissectors/asn1/Makefile
-  wireshark.pc
-  _CUSTOM_ASN1_AC_OUTPUT_
-  epan/dissectors/asn1/acp133/Makefile
-  epan/dissectors/asn1/acse/Makefile
-  epan/dissectors/asn1/ansi_map/Makefile
-  epan/dissectors/asn1/ansi_tcap/Makefile
-  epan/dissectors/asn1/atn-cm/Makefile
-  epan/dissectors/asn1/atn-cpdlc/Makefile
-  epan/dissectors/asn1/atn-ulcs/Makefile
-  epan/dissectors/asn1/c1222/Makefile
-  epan/dissectors/asn1/camel/Makefile
-  epan/dissectors/asn1/cdt/Makefile
-  epan/dissectors/asn1/charging_ase/Makefile
-  epan/dissectors/asn1/cmip/Makefile
-  epan/dissectors/asn1/cmp/Makefile
-  epan/dissectors/asn1/crmf/Makefile
-  epan/dissectors/asn1/cms/Makefile
-  epan/dissectors/asn1/credssp/Makefile
-  epan/dissectors/asn1/dap/Makefile
-  epan/dissectors/asn1/disp/Makefile
-  epan/dissectors/asn1/dop/Makefile
-  epan/dissectors/asn1/dsp/Makefile
-  epan/dissectors/asn1/ess/Makefile
-  epan/dissectors/asn1/f1ap/Makefile
-  epan/dissectors/asn1/ftam/Makefile
-  epan/dissectors/asn1/goose/Makefile
-  epan/dissectors/asn1/gprscdr/Makefile
-  epan/dissectors/asn1/gsm_map/Makefile
-  epan/dissectors/asn1/h225/Makefile
-  epan/dissectors/asn1/h235/Makefile
-  epan/dissectors/asn1/h245/Makefile
-  epan/dissectors/asn1/h248/Makefile
-  epan/dissectors/asn1/h282/Makefile
-  epan/dissectors/asn1/h283/Makefile
-  epan/dissectors/asn1/h323/Makefile
-  epan/dissectors/asn1/h450/Makefile
-  epan/dissectors/asn1/h450-ros/Makefile
-  epan/dissectors/asn1/h460/Makefile
-  epan/dissectors/asn1/h501/Makefile
-  epan/dissectors/asn1/HI2Operations/Makefile
-  epan/dissectors/asn1/hnbap/Makefile
-  epan/dissectors/asn1/idmp/Makefile
-  epan/dissectors/asn1/ilp/Makefile
-  epan/dissectors/asn1/inap/Makefile
-  epan/dissectors/asn1/isdn-sup/Makefile
-  epan/dissectors/asn1/kerberos/Makefile
-  epan/dissectors/asn1/lcsap/Makefile
-  epan/dissectors/asn1/ldap/Makefile
-  epan/dissectors/asn1/logotypecertextn/Makefile
-  epan/dissectors/asn1/lpp/Makefile
-  epan/dissectors/asn1/lppa/Makefile
-  epan/dissectors/asn1/lppe/Makefile
-  epan/dissectors/asn1/lte-rrc/Makefile
-  epan/dissectors/asn1/m2ap/Makefile
-  epan/dissectors/asn1/m3ap/Makefile
-  epan/dissectors/asn1/mms/Makefile
-  epan/dissectors/asn1/mpeg-audio/Makefile
-  epan/dissectors/asn1/mpeg-pes/Makefile
-  epan/dissectors/asn1/mudurl/Makefile
-  epan/dissectors/asn1/nbap/Makefile
-  epan/dissectors/asn1/nr-rrc/Makefile
-  epan/dissectors/asn1/ns_cert_exts/Makefile
-  epan/dissectors/asn1/novell_pkis/Makefile
-  epan/dissectors/asn1/ocsp/Makefile
-  epan/dissectors/asn1/p1/Makefile
-  epan/dissectors/asn1/p22/Makefile
-  epan/dissectors/asn1/p7/Makefile
-  epan/dissectors/asn1/p772/Makefile
-  epan/dissectors/asn1/pcap/Makefile
-  epan/dissectors/asn1/pkcs1/Makefile
-  epan/dissectors/asn1/pkcs12/Makefile
-  epan/dissectors/asn1/pkinit/Makefile
-  epan/dissectors/asn1/pkixac/Makefile
-  epan/dissectors/asn1/pkix1explicit/Makefile
-  epan/dissectors/asn1/pkix1implicit/Makefile
-  epan/dissectors/asn1/pkixproxy/Makefile
-  epan/dissectors/asn1/pkixqualified/Makefile
-  epan/dissectors/asn1/pkixtsp/Makefile
-  epan/dissectors/asn1/pres/Makefile
-  epan/dissectors/asn1/q932/Makefile
-  epan/dissectors/asn1/q932-ros/Makefile
-  epan/dissectors/asn1/qsig/Makefile
-  epan/dissectors/asn1/ranap/Makefile
-  epan/dissectors/asn1/rnsap/Makefile
-  epan/dissectors/asn1/ros/Makefile
-  epan/dissectors/asn1/rrc/Makefile
-  epan/dissectors/asn1/rrlp/Makefile
-  epan/dissectors/asn1/rtse/Makefile
-  epan/dissectors/asn1/rua/Makefile
-  epan/dissectors/asn1/s1ap/Makefile
-  epan/dissectors/asn1/sabp/Makefile
-  epan/dissectors/asn1/sbc-ap/Makefile
-  epan/dissectors/asn1/smrse/Makefile
-  epan/dissectors/asn1/snmp/Makefile
-  epan/dissectors/asn1/spnego/Makefile
-  epan/dissectors/asn1/sv/Makefile
-  epan/dissectors/asn1/t124/Makefile
-  epan/dissectors/asn1/t125/Makefile
-  epan/dissectors/asn1/t38/Makefile
-  epan/dissectors/asn1/tcap/Makefile
-  epan/dissectors/asn1/tetra/Makefile
-  epan/dissectors/asn1/ulp/Makefile
-  epan/dissectors/asn1/wlancertextn/Makefile
-  epan/dissectors/asn1/x2ap/Makefile
-  epan/dissectors/asn1/x509af/Makefile
-  epan/dissectors/asn1/x509ce/Makefile
-  epan/dissectors/asn1/x509if/Makefile
-  epan/dissectors/asn1/x509sat/Makefile
-  capchild/Makefile
-  caputils/Makefile
-  doc/Makefile
-  docbook/Makefile
-  epan/Makefile
-  epan/crypt/Makefile
-  epan/dfilter/Makefile
-  epan/dissectors/Makefile
-  epan/dissectors/dcerpc/Makefile
-  epan/ftypes/Makefile
-  epan/wmem/Makefile
-  epan/wslua/Makefile
-  extcap/Makefile
-  codecs/Makefile
-  ui/Makefile
-  ui/cli/Makefile
-  ui/qt/Makefile
-  help/Makefile
-  packaging/Makefile
-  packaging/macosx/Info.plist
-  packaging/macosx/Makefile
-  packaging/macosx/Wireshark_package.pmdoc/index.xml
-  packaging/nsis/Makefile
-  packaging/rpm/Makefile
-  packaging/rpm/SPECS/Makefile
-  packaging/rpm/SPECS/wireshark.spec
-  packaging/wix/Makefile
-  plugins/Makefile
-  plugins/epan/ethercat/Makefile
-  plugins/epan/gryphon/Makefile
-  plugins/epan/irda/Makefile
-  plugins/epan/mate/Makefile
-  plugins/epan/opcua/Makefile
-  plugins/epan/profinet/Makefile
-  plugins/epan/stats_tree/Makefile
-  plugins/epan/transum/Makefile
-  plugins/epan/unistim/Makefile
-  plugins/epan/wimax/Makefile
-  plugins/epan/wimaxasncp/Makefile
-  plugins/epan/wimaxmacphy/Makefile
-  plugins/wiretap/usbdump/Makefile
-  plugins/codecs/l16_mono/Makefile
-  _CUSTOM_PLUGIN_CONFIG_FILES_
-  randpkt_core/Makefile
-  tools/Makefile
-  tools/lemon/Makefile
-  wiretap/Makefile
-  writecap/Makefile
-  wsutil/Makefile
-)
-
-AC_OUTPUT
-
-
-# Pretty messages
-
-if test "x$have_qt" = "xyes" ; then
-       enable_wireshark_qt="yes"
-       qt_lib_message=" (with Qt$qt_version v$QT_VERSION)"
-else
-       enable_wireshark_qt="no"
-fi
-
-if test "x$enable_setcap_install" = "xyes" ; then
-       setcap_message="yes"
-else
-       setcap_message="no"
-fi
-
-if test "x$enable_setuid_install" = "xyes" ; then
-       setuid_message="yes"
-else
-       setuid_message="no"
-fi
-
-if test "x$DUMPCAP_GROUP" = "x" ; then
-       dumpcap_group_message="(none)"
-else
-       dumpcap_group_message="$DUMPCAP_GROUP"
-fi
-
-if test "x$want_zlib" = "xno" ; then
-       zlib_message="no"
-else
-       zlib_message="yes"
-fi
-
-if test "x$have_lua" = "xyes" ; then
-       lua_message="yes"
-else
-       lua_message="no"
-fi
-
-if test "x$have_qt_multimedia_lib" = "xyes" ; then
-       qt_multimedia_message="yes"
-else
-       qt_multimedia_message="no"
-fi
-
-if test "x$want_krb5" = "xno" ; then
-       krb5_message="no"
-else
-       krb5_message="yes ($ac_krb5_version)"
-fi
-
-if test "x$have_good_c_ares" = "xyes" ; then
-       c_ares_message="yes"
-else
-       c_ares_message="no (name resolution will be disabled)"
-fi
-
-if test "x$have_good_libcap" = "xyes" ; then
-       libcap_message="yes"
-else
-       libcap_message="no"
-fi
-
-if test "x$have_good_maxminddb" = "xyes" ; then
-       maxminddb_message="yes"
-else
-       maxminddb_message="no"
-fi
-
-if test "x$have_good_libssh" = "xyes" ; then
-       libssh_message="yes"
-       if test "x$have_ssh_userauth_agent" = "xno" ; then
-               ssh_userauth_agent_message=" (without ssh_userauth_agent)"
-       fi
-else
-       libssh_message="no"
-fi
-
-if test "x$have_good_nghttp2" = "xyes" ; then
-       nghttp2_message="yes"
-else
-       nghttp2_message="no"
-fi
-
-if test "x$have_good_bcg729" = "xyes" ; then
-       bcg729_message="yes"
-else
-       bcg729_message="no"
-fi
-
-if test "x$have_wsug" = xyes -a "x$want_wsug" != xno; then
-       wsug_message="yes"
-else
-       wsug_message="no"
-fi
-
-echo ""
-echo "  CPPFLAGS: $WS_CPPFLAGS $CPPFLAGS"
-echo ""
-echo "  CFLAGS: $WS_CFLAGS $CFLAGS"
-echo ""
-echo "  CXXFLAGS: $WS_CXXFLAGS $CXXFLAGS"
-echo ""
-echo "  LDFLAGS: $WS_LDFLAGS $LDFLAGS"
-echo ""
-echo "  LIBS: $LIBS"
-
-echo ""
-echo "The Wireshark package has been configured with the following options:"
-echo "                       GLib version : v$GLIB_VERSION"
-echo "                    Build wireshark : $enable_wireshark_qt$qt_lib_message"
-echo "                       Build tshark : $enable_tshark"
-echo "                      Build tfshark : $enable_tfshark"
-echo "                     Build capinfos : $enable_capinfos"
-echo "                      Build captype : $enable_captype"
-echo "                      Build editcap : $enable_editcap"
-echo "                      Build dumpcap : $enable_dumpcap"
-echo "                     Build mergecap : $enable_mergecap"
-echo "                   Build reordercap : $enable_reordercap"
-echo "                    Build text2pcap : $enable_text2pcap"
-echo "                      Build randpkt : $enable_randpkt"
-echo "                       Build dftest : $enable_dftest"
-echo "                     Build rawshark : $enable_rawshark"
-echo "                       Build sharkd : $enable_sharkd"
-echo "                    Build fuzzshark : $enable_fuzzshark"
-echo "                  Build androiddump : $enable_androiddump"
-echo "                      Build sshdump : $enable_sshdump"
-echo "                    Build ciscodump : $enable_ciscodump"
-echo "                  Build randpktdump : $enable_randpktdump"
-echo "                      Build udpdump : $enable_udpdump"
-echo "          Build MaxMind DB resolver : $maxminddb_message"
-echo "                 Build User's Guide : $wsug_message"
-echo ""
-echo "    Save files as pcapng by default : $enable_pcap_ng_default"
-echo "  Install dumpcap with capabilities : $setcap_message"
-echo "             Install dumpcap setuid : $setuid_message"
-echo "                  Use dumpcap group : $dumpcap_group_message"
-echo "                        Use plugins : $have_plugins"
-echo "                    Use Lua library : $lua_message"
-echo "                Build Qt RTP player : $qt_multimedia_message"
-echo "                   Use pcap library : $want_pcap"
-echo "                   Use zlib library : $zlib_message"
-echo "               Use kerberos library : $krb5_message"
-echo "                 Use c-ares library : $c_ares_message"
-echo "                Use SMI MIB library : $have_libsmi"
-echo "             Use GNU gcrypt library : yes"
-echo "                 Use GnuTLS library : $tls_message"
-echo "     Use POSIX capabilities library : $libcap_message"
-echo "                 Use libssh library : ${libssh_message}${ssh_userauth_agent_message}"
-echo "                     Use nl library : $libnl_message"
-echo "              Use SBC codec library : $have_sbc"
-echo "                Use SpanDSP library : $have_spandsp"
-echo "                 Use bcg729 library : $bcg729_message"
-echo "                Use libxml2 library : $have_libxml2"
-echo "                Use nghttp2 library : $nghttp2_message"
-echo "                    Use LZ4 library : $have_lz4"
-echo "                 Use Snappy library : $have_snappy"
-#echo "       Use GDK-Pixbuf with GResource: $have_gresource_pixbuf"
-
-# We're slowly migrating to CMake. The following still use or refer
-# to Autotools:
-# - .travis.yml
-# - INSTALL and INSTALL.configure
-# - README.bsd
-# - README.md
-# - doc/README.packaging
-# - doc/README.idl2wrs
-# - doc/README.plugins
-# - docbook/wsdg_src/WSDG_chapter_dissection.asciidoc
-# - docbook/wsdg_src/WSDG_chapter_sources.asciidoc
-# - docbook/wsug_src/WSUG_chapter_build_install.asciidoc
-# - tools/git-compare-abis.sh
-echo ""
-AC_MSG_NOTICE([Builds using Autotools might be removed in the future.])
index c1c0cdc457075d617419a42a4494ab4908afee31..ca71ecc7de4cd0aafc8c6931af9608ef90aa4b23 100644 (file)
@@ -85,8 +85,8 @@ Package: wireshark-dev
 Architecture: any
 Section: devel
 Depends: ${misc:Depends}, omniidl (>= 4.0.1-2), libpcap0.8-dev, libtool,
- libglib2.0-dev, ${python:Depends}, python-ply, snacc, autotools-dev, debhelper,
- cdbs, automake, autoconf, libwireshark-dev, libwiretap-dev
+ libglib2.0-dev, ${python:Depends}, python-ply, snacc, debhelper,
+ cdbs, libwireshark-dev, libwiretap-dev
 Replaces: ethereal-dev (<< 1.0.0-3)
 Conflicts: ethereal-dev (<< 1.0.0-3)
 Description: network traffic analyzer - development tools
diff --git a/debian/patches/05_note-README-when-running-as-root.patch b/debian/patches/05_note-README-when-running-as-root.patch
deleted file mode 100644 (file)
index c6baf4a..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-Description: Note about README.Debian when running wireshark as root.
-Forwarded: not-needed
-Author: Balint Reczey <balint@balintreczey.hu>
-
---- a/ui/gtk/main.c
-+++ b/ui/gtk/main.c
-@@ -1949,7 +1949,7 @@
-         "This could be dangerous.\n\n"
-         "If you're running Wireshark this way in order to perform live capture, "
-         "you may want to be aware that there is a better way documented at\n"
--        "https://wiki.wireshark.org/CaptureSetup/CapturePrivileges", cur_user, cur_group);
-+        "/usr/share/doc/wireshark-common/README.Debian", cur_user, cur_group);
-         g_free(cur_user);
-         g_free(cur_group);
-         simple_dialog_check_set(priv_warning_dialog, "Don't show this message again.");
diff --git a/debian/patches/06_release-version.patch b/debian/patches/06_release-version.patch
deleted file mode 100644 (file)
index bc806ce..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-Description: Don't regenerate svnversion.h
-Forwarded: not-needed
-Author: Balint Reczey <balint@balintreczey.hu>
-
---- a/Makefile.am
-+++ b/Makefile.am
-@@ -776,7 +776,7 @@
- # FORCE is the portable version of .PHONY
- FORCE:
--version.h: FORCE
-+version.h:
-       $(AM_V_PERL)$(PERL) $(srcdir)/make-version.pl $(srcdir)
- #
index b89567a9c1386f27be502ebb4f4c9ddd2bd79b51..0cf27e2a5e0db91a99ebbc9b68b8951da6ecbac8 100644 (file)
@@ -1,5 +1,3 @@
 04_asn2wrs_ply.patch
-05_note-README-when-running-as-root.patch
-06_release-version.patch
 09_idl2wrs.patch
 16_licence_about_location.patch
index 7d22c2eedff1859a4aff505127b3b4039d099c65..318469a5bcdacc162de026f63ad4ed203df2eea9 100644 (file)
@@ -4,8 +4,7 @@
 <?avp-proto key="Example-AVP" value="data" ?>
 
 <!DOCTYPE dictionary SYSTEM "dictionary.dtd" [
-       <!-- Any files added here need to be added to Makefile.am and
-            packaging/nsis/wireshark.nsi -->
+       <!-- Any files added here need to be added packaging/nsis/wireshark.nsi -->
 
        <!ENTITY nasreq                 SYSTEM "nasreq.xml">
        <!ENTITY eap                    SYSTEM "eap.xml">
diff --git a/doc/Makefile.am b/doc/Makefile.am
deleted file mode 100644 (file)
index c88ebc7..0000000
+++ /dev/null
@@ -1,355 +0,0 @@
-# Makefile.am
-# Automake file for Wireshark documentation
-#
-# Wireshark - Network traffic analyzer
-# By Gerald Combs <gerald@wireshark.org>
-# Copyright 1998 Gerald Combs
-#
-# SPDX-License-Identifier: GPL-2.0-or-later
-#
-
-# We include dependencies on ../config.h in order to
-# capture when $(VERSION) changes.
-
-#
-# This is a hideous hack.
-#
-# Automake needs to know into which sections to install various man
-# pages; if the names in "man_MANS" have suffixes, it can infer the
-# sections from the name (e.g., "hello.1" goes in section 1), but if
-# they don't have suffixes, it can't tell what sections to put them, and
-# it just gives up and doesn't create any rules to install them (and it
-# gives up silently, so you have no clue what's wrong).
-#
-# Therefore, we can't just set "man_MANS" to a list of variables to be
-# filled in by the configure script, as those variables don't have man
-# page section numbers.
-#
-# It turns out (although this is not documented anywhere I could find
-# in the automake Info file) that if you define, instead, variables with
-# names like "man{section}_MANS", automake will infer that the names in
-# those variables are the names of man pages to be installed in section
-# "{section}".
-#
-# So we define "man1_MANS" to contain all the section 1 man pages and
-# man4_MANS for the (one) section 4 man page.
-#
-# *However*, if "man_MANS" isn't defined at all, automake concludes that
-# there are no man pages, the fact that, say, "man1_MANS" is defined
-# nonwithstanding!  (I suspect this is the result of a mistaken attempt
-# to get people to fix their automake files not to use "MANS"; if "MANS"
-# is defined, it prints a warning and sets the exit status, but doesn't
-# exit, and then it just gives up if "man_MANS" isn't defined,
-# presumably on the theory that the only reason it wouldn't be defined
-# is because the automake file uses the obsolete "MANS" variable instead
-# of the shiny new "man_MANS" variable.)
-#
-# So we also define "man_MANS", but don't define it as anything;
-# automake will arrange that the Makefile define it as the union of all
-# the "man{section}_MANS" variables.
-#
-man1_MANS = \
-       @wireshark_man@         \
-       @tshark_man@            \
-       @text2pcap_man@         \
-       @mergecap_man@          \
-       @reordercap_man@        \
-       @capinfos_man@          \
-       @captype_man@           \
-       @editcap_man@           \
-       @dumpcap_man@           \
-       @rawshark_man@          \
-       @dftest_man@            \
-       @randpkt_man@           \
-       @androiddump_man@       \
-       @ciscodump_man@         \
-       @sshdump_man@           \
-       @randpktdump_man@       \
-       @udpdump_man@           \
-       @mmdbresolve_man@
-
-man4_MANS = \
-       @extcap_man@            \
-       @wiresharkfilter_man@
-man_MANS =
-
-# Build these in case a developer wants to read them and for the Debian
-# development package.
-# (The former arguably should be in noinst_MANS but it didn't work for me.)
-noinst_DATA = asn2deb.1 asn2deb.html idl2deb.1 idl2deb.html idl2wrs.1 idl2wrs.html
-
-pkgdata_DATA = AUTHORS-SHORT $(top_srcdir)/docbook/ws.css wireshark.html \
-       tshark.html wireshark-filter.html capinfos.html captype.html ciscodump.html \
-       editcap.html mergecap.html reordercap.html text2pcap.html dumpcap.html \
-       androiddump.html sshdump.html randpktdump.html rawshark.html dftest.html \
-       randpkt.html extcap.html udpdump.html mmdbresolve.html
-
-#
-# Build the short version of the authors file for the about dialog
-# Put a copy in the top-level directory so Help->About, when run from the
-# build directory, can find it.
-#
-AUTHORS-SHORT: $(top_srcdir)/AUTHORS $(srcdir)/make-authors-short.pl
-       $(AM_V_GEN)$(PERL) $(srcdir)/perlnoutf.pl $(srcdir)/make-authors-short.pl \
-               < $(top_srcdir)/AUTHORS > AUTHORS-SHORT && \
-               cp $@ $(top_builddir)
-
-#
-# Build the short version of the authors file with formatting codes for the
-# man page
-#
-AUTHORS-SHORT-FORMAT: AUTHORS-SHORT $(srcdir)/make-authors-format.pl
-       $(AM_V_GEN)$(PERL) $(srcdir)/perlnoutf.pl $(srcdir)/make-authors-format.pl \
-               < AUTHORS-SHORT > AUTHORS-SHORT-FORMAT
-
-wireshark.pod: $(srcdir)/wireshark.pod.template AUTHORS-SHORT-FORMAT
-       $(AM_V_GEN)cat $(srcdir)/wireshark.pod.template AUTHORS-SHORT-FORMAT > wireshark.pod
-
-AM_V_POD2MAN = $(am__v_POD2MAN_@AM_V@)
-am__v_POD2MAN_ = $(am__v_POD2MAN_@AM_DEFAULT_V@)
-am__v_POD2MAN_0 = @echo "  POD2MAN " $@;
-
-AM_V_POD2HTML = $(am__v_POD2HTML_@AM_V@)
-am__v_POD2HTML_ = $(am__v_POD2HTML_@AM_DEFAULT_V@)
-am__v_POD2HTML_0 = @echo "  POD2HTML" $@;
-
-POD_CSS_URL ?= $(top_srcdir)/docbook/ws.css
-
-.pod.1: ../config.h
-       $(AM_V_POD2MAN)$(POD2MAN)                       \
-       --center="The Wireshark Network Analyzer"       \
-       --release=$(VERSION)                            \
-       $< > $@
-
-.pod.html: ../config.h $(top_srcdir)/docbook/ws.css
-       $(AM_V_POD2HTML)$(POD2HTML)                             \
-       --title="The Wireshark Network Analyzer $(VERSION)"     \
-       --css=$(POD_CSS_URL)                                    \
-       --noindex                                               \
-       $< > $@
-
-# These rules need to stay separate because of the --section option.
-wireshark-filter.4: wireshark-filter.pod ../config.h
-       $(AM_V_POD2MAN)$(POD2MAN)                       \
-       --section=4                                     \
-       --center="The Wireshark Network Analyzer"       \
-       --release=$(VERSION)                            \
-       $(srcdir)/wireshark-filter.pod > wireshark-filter.4
-
-extcap.4: extcap.pod ../config.h
-       $(AM_V_POD2MAN)$(POD2MAN)                       \
-       --section=4                                     \
-       --center="The Wireshark Network Analyzer"       \
-       --release=$(VERSION)                            \
-       $(srcdir)/extcap.pod > extcap.4
-
-# These rules need to stay separate because each man page has a separate
-# title.  Using GNU make's pattern rules would allow these to be removed
-# but at the cost of portability.
-tshark.html: tshark.pod ../config.h $(top_srcdir)/docbook/ws.css
-       $(AM_V_POD2HTML)$(POD2HTML)                                     \
-       --title="tshark - The Wireshark Network Analyzer $(VERSION)"    \
-       --css=$(POD_CSS_URL)                                            \
-       --noindex                                                       \
-       $(srcdir)/tshark.pod > tshark.html
-
-wireshark-filter.html: wireshark-filter.pod ../config.h $(top_srcdir)/docbook/ws.css
-       $(AM_V_POD2HTML)$(POD2HTML)                                             \
-       --title="wireshark-filter - The Wireshark Network Analyzer $(VERSION)"  \
-       --css=$(POD_CSS_URL)                                                    \
-       --noindex                                                               \
-       $(srcdir)/wireshark-filter.pod > wireshark-filter.html
-
-extcap.html: extcap.pod ../config.h $(top_srcdir)/docbook/ws.css
-       $(AM_V_POD2HTML)$(POD2HTML)                                             \
-       --title="extcap - The Wireshark Network Analyzer $(VERSION)"            \
-       --css=$(POD_CSS_URL)                                                    \
-       --noindex                                                               \
-       $(srcdir)/extcap.pod > extcap.html
-
-capinfos.html: capinfos.pod ../config.h $(top_srcdir)/docbook/ws.css
-       $(AM_V_POD2HTML)$(POD2HTML)                                     \
-       --title="capinfos - The Wireshark Network Analyzer $(VERSION)"  \
-       --css=$(POD_CSS_URL)                                            \
-       --noindex                                                       \
-       $(srcdir)/capinfos.pod > capinfos.html
-
-captype.html: captype.pod ../config.h $(top_srcdir)/docbook/ws.css
-       $(AM_V_POD2HTML)$(POD2HTML)                                     \
-       --title="captype - The Wireshark Network Analyzer $(VERSION)"   \
-       --css=$(POD_CSS_URL)                                            \
-       --noindex                                                       \
-       $(srcdir)/captype.pod > captype.html
-
-editcap.html: editcap.pod ../config.h $(top_srcdir)/docbook/ws.css
-       $(AM_V_POD2HTML)$(POD2HTML)                                     \
-       --title="editcap - The Wireshark Network Analyzer $(VERSION)"   \
-       --css=$(POD_CSS_URL)                                            \
-       --noindex                                                       \
-       $(srcdir)/editcap.pod > editcap.html
-
-idl2wrs.html: idl2wrs.pod ../config.h $(top_srcdir)/docbook/ws.css
-       $(AM_V_POD2HTML)$(POD2HTML)                                     \
-       --title="idl2wrs - The Wireshark Network Analyzer $(VERSION)"   \
-       --css=$(POD_CSS_URL)                                            \
-       --noindex                                                       \
-       $(srcdir)/idl2wrs.pod > idl2wrs.html
-
-mergecap.html: mergecap.pod ../config.h $(top_srcdir)/docbook/ws.css
-       $(AM_V_POD2HTML)$(POD2HTML)                                     \
-       --title="mergecap - The Wireshark Network Analyzer $(VERSION)"  \
-       --css=$(POD_CSS_URL)                                            \
-       --noindex                                                       \
-       $(srcdir)/mergecap.pod > mergecap.html
-
-reordercap.html: reordercap.pod ../config.h $(top_srcdir)/docbook/ws.css
-       $(AM_V_POD2HTML)$(POD2HTML)                                     \
-       --title="reordercap - The Wireshark Network Analyzer $(VERSION)"        \
-       --css=$(POD_CSS_URL)                                            \
-       --noindex                                                       \
-       $(srcdir)/reordercap.pod > reordercap.html
-
-text2pcap.html: text2pcap.pod ../config.h $(top_srcdir)/docbook/ws.css
-       $(AM_V_POD2HTML)$(POD2HTML)                     \
-       --title="text2pcap - The Wireshark Network Analyzer $(VERSION)" \
-       --css=$(POD_CSS_URL)                                            \
-       --noindex                                                       \
-       $(srcdir)/text2pcap.pod > text2pcap.html
-
-dumpcap.html: dumpcap.pod ../config.h $(top_srcdir)/docbook/ws.css
-       $(AM_V_POD2HTML)$(POD2HTML)                     \
-       --title="dumpcap - The Wireshark Network Analyzer $(VERSION)"   \
-       --css=$(POD_CSS_URL)                                            \
-       --noindex                                                       \
-       $(srcdir)/dumpcap.pod > dumpcap.html
-
-androiddump.html: androiddump.pod ../config.h $(top_srcdir)/docbook/ws.css
-       $(AM_V_POD2HTML)$(POD2HTML)                     \
-       --title="androiddump - The Wireshark Network Analyzer $(VERSION)"       \
-       --css=$(POD_CSS_URL)                                            \
-       --noindex                                                       \
-       $(srcdir)/androiddump.pod > androiddump.html
-
-sshdump.html: sshdump.pod ../config.h $(top_srcdir)/docbook/ws.css
-       $(AM_V_POD2HTML)$(POD2HTML)                     \
-       --title="sshdump - The Wireshark Network Analyzer $(VERSION)"   \
-       --css=$(POD_CSS_URL)                                            \
-       --noindex                                                       \
-       $(srcdir)/sshdump.pod > sshdump.html
-
-ciscodump.html: ciscodump.pod ../config.h $(top_srcdir)/docbook/ws.css
-       $(AM_V_POD2HTML)$(POD2HTML)                     \
-       --title="ciscodump - The Wireshark Network Analyzer $(VERSION)" \
-       --css=$(POD_CSS_URL)                                            \
-       --noindex                                                       \
-       $(srcdir)/ciscodump.pod > ciscodump.html
-
-randpktdump.html: randpktdump.pod ../config.h $(top_srcdir)/docbook/ws.css
-       $(AM_V_POD2HTML)$(POD2HTML)                     \
-       --title="randpktdump - The Wireshark Network Analyzer $(VERSION)"       \
-       --css=$(POD_CSS_URL)                                            \
-       --noindex                                                       \
-       $(srcdir)/randpktdump.pod > randpktdump.html
-
-rawshark.html: rawshark.pod ../config.h $(top_srcdir)/docbook/ws.css
-       $(AM_V_POD2HTML)$(POD2HTML)                     \
-       --title="rawshark - The Wireshark Network Analyzer $(VERSION)"  \
-       --css=$(POD_CSS_URL)                                            \
-       --noindex                                                       \
-       $(srcdir)/rawshark.pod > rawshark.html
-
-dftest.html: dftest.pod ../config.h $(top_srcdir)/docbook/ws.css
-       $(AM_V_POD2HTML)$(POD2HTML)                     \
-       --title="dftest - The Wireshark Network Analyzer $(VERSION)"    \
-       --css=$(POD_CSS_URL)                                            \
-       --noindex                                                       \
-       $(srcdir)/dftest.pod > dftest.html
-
-randpkt.html: randpkt.pod ../config.h $(top_srcdir)/docbook/ws.css
-       $(AM_V_POD2HTML)$(POD2HTML)                     \
-       --title="randpkt - The Wireshark Network Analyzer $(VERSION)"   \
-       --css=$(POD_CSS_URL)                                            \
-       --noindex                                                       \
-       $(srcdir)/randpkt.pod > randpkt.html
-
-udpdump.html: udpdump.pod ../config.h $(top_srcdir)/docbook/ws.css
-       $(AM_V_POD2HTML)$(POD2HTML)                     \
-       --title="udpdump - The Wireshark Network Analyzer $(VERSION)"   \
-       --css=$(POD_CSS_URL)                                            \
-       --noindex                                                       \
-       $(srcdir)/udpdump.pod > udpdump.html
-
-mmdbresolve.html: mmdbresolve.pod ../config.h $(top_srcdir)/docbook/ws.css
-       $(AM_V_POD2HTML)$(POD2HTML)                     \
-       --title="mmdbresolve - The Wireshark Network Analyzer $(VERSION)"       \
-       --css=$(POD_CSS_URL)                                            \
-       --noindex                                                       \
-       $(srcdir)/mmdbresolve.pod > mmdbresolve.html
-
-CLEANFILES =           \
-       wireshark.pod   \
-       *.1             \
-       *.4             \
-       *.html
-
-DISTCLEANFILES =               \
-       pod2htmi.tmp            \
-       pod2htmd.tmp            \
-       AUTHORS-SHORT           \
-       ../AUTHORS-SHORT        \
-       AUTHORS-SHORT-FORMAT    \
-       *~
-
-EXTRA_DIST =                           \
-       README.capture                  \
-       README.design                   \
-       README.developer                \
-       README.display_filter           \
-       README.dissector                \
-       README.extcap                   \
-       README.heuristic                \
-       README.idl2wrs                  \
-       README.packaging                \
-       README.plugins                  \
-       README.regression               \
-       README.request_response_tracking\
-       README.stats_tree               \
-       README.tapping                  \
-       README.wmem                     \
-       README.wslua                    \
-       README.xml-output               \
-       androiddump.pod                 \
-       asn2deb.pod                     \
-       capinfos.pod                    \
-       captype.pod                     \
-       ciscodump.pod                   \
-       dftest.pod                      \
-       dumpcap.pod                     \
-       editcap.pod                     \
-       extcap.pod                      \
-       idl2deb.pod                     \
-       idl2wrs.pod                     \
-       make-authors-format.pl          \
-       make-authors-short.pl           \
-       mergecap.pod                    \
-       packet-PROTOABBREV.c            \
-       perlnoutf.pl                    \
-       plugins.example/configure.ac    \
-       plugins.example/hello.c         \
-       plugins.example/Makefile.am     \
-       plugins.example/README          \
-       randpkt.pod                     \
-       randpkt.txt                     \
-       randpktdump.pod                 \
-       rawshark.pod                    \
-       reordercap.pod                  \
-       sgml.doc.template               \
-       sshdump.pod                     \
-       text2pcap.pod                   \
-       tshark.pod                      \
-       udpdump.pod                     \
-       mmdbresolve.pod                 \
-       wireshark-filter.pod            \
-       wireshark.pod.template          \
-       CMakeLists.txt
-
index 70a6875d1b86999ef179bce4882b565fbb9bd430..1096588297af65a32a5f2b9017fef5eac8c7c7cc 100644 (file)
@@ -67,8 +67,7 @@ Usually, you will put your newly created dissector file into the directory
 epan/dissectors/, just like all the other packet-*.c files already in there.
 
 Also, please add your dissector file to the corresponding makefiles,
-described in section "1.8 Editing Makefile.am and CMakeLists.txt
-to add your dissector" below.
+described in section "1.8 Editing CMakeLists.txt to add your dissector" below.
 
 Dissectors that use the dissector registration API to register with a lower
 level protocol (this is the vast majority) don't need to define a prototype in
@@ -654,8 +653,7 @@ generated automatically; to arrange that a protocol's register routine
 be called at startup:
 
     the file containing a dissector's "register" routine must be
-    added to "DISSECTOR_SRC" in "epan/dissectors/Makefile.am"
-    (and in "epan/dissectors/CMakeLists.txt");
+    added to "DISSECTOR_SRC" in "epan/dissectors/CMakeLists.txt";
 
     the "register" routine must have a name of the form
     "proto_register_XXX";
@@ -2406,23 +2404,11 @@ This allows dissection of a packet to be expanded outside of dissector without
 having to modify the dissector directly.
 
 
-1.8 Editing Makefile.am and CMakeLists.txt to add your dissector.
+1.8 Editing CMakeLists.txt to add your dissector.
 
 To arrange that your dissector will be built as part of Wireshark, you
-must add the name of the source file for your dissector to the
-'DISSECTOR_SRC' macro in the 'Makefile.am' file in the 'epan/dissectors'
-directory.  (Note that this is for modern versions of UNIX, so there
-is no 14-character limitation on file names, and for modern versions of
-Windows, so there is no 8.3-character limitation on file names.)
-
-If your dissector also has its own header file or files, you must add
-them to the 'DISSECTOR_INCLUDES' macro in the 'Makefile.am' file in
-the 'epan/dissectors' directory, so that it's included when release source
-tarballs are built (otherwise, the source in the release tarballs won't
-compile).
-
-In addition to the above, you should add your dissector source file name
-to the DISSECTOR_SRC section of epan/dissectors/CMakeLists.txt
+must add the name of the source file for your dissector to the DISSECTOR_SRC
+section of epan/dissectors/CMakeLists.txt
 
 
 1.9 Using the git source code tree.
index 02907e82a37c877d3a29565599e516946486714e..9d3e612c2fa09c499e2f0624c388f782776bc93d 100644 (file)
@@ -96,7 +96,6 @@ steps 3 or 4 instead.
    following files to include the packet-test-idl.c
  
    cp packet-test-idl.c /dir/where/wireshark/lives/epan/dissectors/
-   edit epan/dissectors/Makefile.am
    edit epan/dissectors/CMakeLists.txt
 
 6. Run configure
index b8f716a3d250c3a5f03cf8cb68f62c2840933e29..d39d2444611e7a4b22abe663f6551cbfb539a4c2 100644 (file)
@@ -29,7 +29,6 @@ The plugin should be placed in a new plugins/epan/foo directory which should
 contain at least the following files:
 
 CMakeLists.txt
-Makefile.am
 README
 
 The README can be brief but it should provide essential information relevant
@@ -46,20 +45,7 @@ For your plugins/epan/foo/CMakeLists.txt file, see the corresponding file in
 plugins/epan/gryphon.  Replace all occurrences of "gryphon" in those files
 with "foo" and add your source files to the DISSECTOR_SRC variable.
 
-2.2 Makefile.am
-
-For your plugins/epan/foo/Makefile.am file, see the corresponding file in
-plugins/epan/gryphon.  Replace all occurrences of "gryphon" in those files
-with "foo".
-
-Your plugins/epan/foo/Makefile.am also needs to list the main source file
-which exports plugin_register() for your dissector in the
-DISSECTOR_SRC variable.  All other supporting source files should be
-listed in the DISSECTOR_SUPPORT_SRC variable.
-The header files for your dissector, if any, must be listed in the
-DISSECTOR_INCLUDES variable.
-
-2.4 plugin.rc.in
+2.2 plugin.rc.in
 
 Your plugins/epan/foo/plugin.rc.in is the Windows resource template file used
 to add the plugin specific information as resources to the DLL.
@@ -106,10 +92,7 @@ In order to be able to permanently add a plugin take the following steps.
 You will need to change the following files:
        configure.ac
        CMakeLists.txt
-       epan/Makefile.am
-       Makefile.am
        packaging/nsis/wireshark.nsi
-       plugins/Makefile.am
 
 You might also want to search your Wireshark development directory for
 occurrences of an existing plugin name, in case this document is out of
@@ -119,49 +102,7 @@ date with the current directory structure.  For example,
 
 could be used from a shell prompt.
 
-3.2.1  Changes to plugins/Makefile.am
-
-The plugins directory contains a Makefile.am.  You need to add to SUBDIRS
-(in alphabetical order) the name of your plugin:
-
-SUBDIRS = $(_CUSTOM_SUBDIRS_) \
-       ...
-       epan/ethercat \
-       epan/foo \
-       epan/gryphon \
-       epan/irda \
-
-
-3.2.2  Changes to the top level configure.ac
-
-You need to add your plugins Makefile (in alphabetical order) to the
-AC_OUTPUT rule in the configure.ac
-
-AC_OUTPUT(
-  ...
-  plugins/epan/ethercat/Makefile
-  plugins/epan/foo/Makefile
-  plugins/epan/gryphon/Makefile
-  plugins/epan/irda/Makefile
-  ...
-  ,)
-
-3.2.3  Changes to epan/Makefile.am
-
-Add the relative path of all your plugin source files (in alphbetical
-order) to plugin_src:
-
-plugin_src = \
-        ...
-       ../plugins/epan/ethercat/packet-ioraw.c \
-       ../plugins/epan/ethercat/packet-nv.c \
-       ../plugins/epan/foo/packet-foo.c \
-       ../plugins/epan/gryphon/packet-gryphon.c \
-       ../plugins/epan/irda/packet-ircomm.c \
-       ../plugins/epan/irda/packet-irda.c \
-        ...
-
-3.2.4  Changes to CMakeLists.txt
+3.2.1  Changes to CMakeLists.txt
 
 Add your plugin (in alphabetical order) to the PLUGIN_SRC_DIRS:
 
@@ -175,12 +116,12 @@ if(ENABLE_PLUGINS)
                 plugins/epan/irda
                 ...
 
-3.2.5  Changes to the installers
+3.2.2  Changes to the installers
 
 If you want to include your plugin in an installer you have to add lines
 in the NSIS installer wireshark.nsi file.
 
-3.2.5.1  Changes to packaging/nsis/wireshark.nsi
+3.2.2.1  Changes to packaging/nsis/wireshark.nsi
 
 Add the relative path of your plugin DLL (in alphbetical order) to the
 list of "File" statements in the "Dissector Plugins" section:
@@ -190,7 +131,7 @@ File "${STAGING_DIR}\plugins\${VERSION_MAJOR}.${VERSION_MINOR}\epan\foo.dll"
 File "${STAGING_DIR}\plugins\${VERSION_MAJOR}.${VERSION_MINOR}\epan\gryphon.dll"
 File "${STAGING_DIR}\plugins\${VERSION_MAJOR}.${VERSION_MINOR}\epan\irda.dll"
 
-3.2.5.2  Other installers
+3.2.2.2  Other installers
 
 The PortableApps installer copies plugins from the build directory
 and should not require configuration.
@@ -303,8 +244,6 @@ is encouraged to update their plugins as outlined below:
 
     o Remove the init function.
 
-    o Change the Makefile.am file to match the one of the DOCSIS plugin.
-
 6 How to plugin related interface options
 
 To demonstrate the functionality of the plugin interface options, a
index 738535c615895fdcde26b629e9083e443ef0a4b4..1bc10aead8568919bf615b3a48fc5b0e0fa86a1d 100644 (file)
@@ -44,10 +44,9 @@ Lua tables. (you can do so, but it's not advisable)
 Both of the perl scripts above are given the C-source files to search through
 by the make process, generated from the lists in epan/wslua/CMakeLists.txt.
 Naturally if you add new source files, you need to add them to the list in
-epan/wslua/CMakeLists.txt and epan/wslua/Makefile.am. You also have to add
-the module name into docbook/user-guide.xml and docbook/wsluarm.xml, and the
-source files into docbook/CMakeLists.txt and docbook/Makefile.am, to get
-it to be generated in the user guide.
+epan/wslua/CMakeLists.txt. You also have to add the module name into
+docbook/user-guide.xml and docbook/wsluarm.xml, and the source files into
+docbook/CMakeLists.txt, to get it to be generated in the user guide.
 
 Another Perl script is used as well, called 'make-init-lua.pl', which
 generates the init.lua script.  A large part of it deals with exposing #define
@@ -309,7 +308,7 @@ WSLUA_CONTINUE_MODULE - like WSLUA_MODULE, except used at the top of a .c file
 to continue defining classes/functions/etc. within a previously declared module
 in a previous file (i.e., one that used WSLUA_MODULE). The module name must match
 the original one, and the .c file must be listed after the original one in the
-CMakeLists.txt/Makefile.am lists in the docbook directory.
+CMakeLists.txt lists in the docbook directory.
 
 
 WSLUA_ATTRIBUTE - this is another documentation-only "macro", only used within
diff --git a/doc/plugins.example/Makefile.am b/doc/plugins.example/Makefile.am
deleted file mode 100644 (file)
index 10abf56..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-# Makefile.am
-#
-# Wireshark - Network traffic analyzer
-# By Gerald Combs <gerald@wireshark.org>
-# Copyright 1998 Gerald Combs
-#
-# SPDX-License-Identifier: GPL-2.0-or-later
-#
-
-WARNFLAGS = -Wall -Wextra
-
-plugindir := $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKG_CONFIG) --define-variable=libdir=$(libdir) --variable plugindir wireshark)
-
-epan_plugindir = $(plugindir)/epan
-
-VERSION_RELEASE := $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKG_CONFIG) --variable VERSION_RELEASE wireshark)
-
-epan_plugin_LTLIBRARIES = hello.la
-
-hello_la_SOURCES = hello.c
-
-hello_la_CPPFLAGS = -DVERSION_RELEASE=\"$(VERSION_RELEASE)\"
-
-hello_la_CFLAGS = $(WIRESHARK_CFLAGS) -fvisibility=hidden $(WARNFLAGS)
-
-hello_la_LDFLAGS = -module -avoid-version -shared
-
-hello_la_LIBADD = $(WIRESHARK_LIBS)
-
-homedir = $${HOME}/.local/lib/wireshark/plugins/$(VERSION_RELEASE)/epan
-
-install-home:
-       $(MKDIR_P) $(homedir) || exit 1; \
-       $(INSTALL) $(builddir)/.libs/hello.so $(homedir)
diff --git a/docbook/Makefile.am b/docbook/Makefile.am
deleted file mode 100644 (file)
index c190d59..0000000
+++ /dev/null
@@ -1,503 +0,0 @@
-#
-# Make the "Wireshark User Guide" and "Wireshark Developer Guide"
-# in several formats.
-# See the README.adoc file for instructions.
-#
-
-############### YOU SHOULDN'T HAVE TO EDIT ANYTHING BELOW THIS LINE! ################
-
-WSUG_FILES =   \
-       wsug_src/WSUG_app_files.asciidoc                \
-       wsug_src/WSUG_app_howitworks.asciidoc           \
-       wsug_src/WSUG_app_messages.asciidoc             \
-       wsug_src/WSUG_app_protocols.asciidoc            \
-       wsug_src/WSUG_app_tools.asciidoc                \
-       wsug_src/WSUG_chapter_advanced.asciidoc         \
-       wsug_src/WSUG_chapter_build_install.asciidoc    \
-       wsug_src/WSUG_chapter_capture.asciidoc          \
-       wsug_src/WSUG_chapter_customize.asciidoc        \
-       wsug_src/WSUG_chapter_introduction.asciidoc     \
-       wsug_src/WSUG_chapter_io.asciidoc               \
-       wsug_src/WSUG_chapter_statistics.asciidoc       \
-       wsug_src/WSUG_chapter_telephony.asciidoc        \
-       wsug_src/WSUG_chapter_troubleshoot.asciidoc     \
-       wsug_src/WSUG_chapter_use.asciidoc              \
-       wsug_src/WSUG_chapter_work.asciidoc             \
-       wsug_src/WSUG_preface.asciidoc                  \
-       ws.css
-
-WSUG_TOOLS_HELP_FILES =        \
-       wsug_src/capinfos-h.txt \
-       wsug_src/dumpcap-h.txt \
-       wsug_src/editcap-F.txt \
-       wsug_src/editcap-T.txt \
-       wsug_src/editcap-h.txt \
-       wsug_src/mergecap-h.txt \
-       wsug_src/rawshark-h.txt \
-       wsug_src/reordercap-h.txt \
-       wsug_src/text2pcap-h.txt \
-       wsug_src/tshark-h.txt
-
-WSUG_GENERATED_SOURCE = \
-       user-guide.xml
-
-WSUG_GRAPHICS =        \
-       wsug_graphics/captureOptions.png                \
-       wsug_graphics/related-ack.png                   \
-       wsug_graphics/related-dup-ack.png               \
-       wsug_graphics/related-last.png                  \
-       wsug_graphics/related-request.png               \
-       wsug_graphics/related-segment.png               \
-       wsug_graphics/related-current.png               \
-       wsug_graphics/related-first.png                 \
-       wsug_graphics/related-other.png                 \
-       wsug_graphics/related-response.png              \
-       wsug_graphics/ws-analyze-menu.png               \
-       wsug_graphics/ws-bytes-pane-tabs.png            \
-       wsug_graphics/ws-bytes-pane.png                 \
-       wsug_graphics/ws-capture-info.png               \
-       wsug_graphics/ws-capture-interfaces.png         \
-       wsug_graphics/ws-capture-interface-details.png          \
-       wsug_graphics/ws-capture-interfaces-win32.png   \
-       wsug_graphics/ws-capture-menu.png               \
-       wsug_graphics/ws-capture-options.png            \
-       wsug_graphics/ws-capture-options-compile-selected-bpfs.png      \
-       wsug_graphics/ws-capture-options-output.png                     \
-       wsug_graphics/ws-capture-options-manage-interfaces-local.png    \
-       wsug_graphics/ws-capture-options-manage-interfaces-pipes.png    \
-       wsug_graphics/ws-capture-options-manage-interfaces-remote-plus.png      \
-       wsug_graphics/ws-capture-options-manage-interfaces-remote.png   \
-       wsug_graphics/ws-capture-options-manage-interfaces.png  \
-       wsug_graphics/ws-capture-options-remote-capture.png     \
-       wsug_graphics/ws-capture-options-remote-interface.png   \
-       wsug_graphics/ws-capture-options-remote-settings.png    \
-       wsug_graphics/ws-capture-options-settings.png   \
-       wsug_graphics/ws-capture-preferences.png        \
-       wsug_graphics/ws-choose-color-rule.png          \
-       wsug_graphics/ws-coloring-fields.png            \
-       wsug_graphics/ws-coloring-rules-dialog.png      \
-       wsug_graphics/ws-column-header-popup-menu.png   \
-       wsug_graphics/ws-decode-as-show.png             \
-       wsug_graphics/ws-decode-as.png                  \
-       wsug_graphics/ws-details-pane-popup-menu.png    \
-       wsug_graphics/ws-details-pane.png               \
-       wsug_graphics/ws-display-filter-tcp.png         \
-       wsug_graphics/ws-edit-menu.png                  \
-       wsug_graphics/ws-enabled-protocols.png          \
-       wsug_graphics/ws-expert-colored-tree.png        \
-       wsug_graphics/ws-expert-column.png              \
-       wsug_graphics/ws-expert-infos.png               \
-       wsug_graphics/ws-export-objects.png             \
-       wsug_graphics/ws-export-pdml.png                \
-       wsug_graphics/ws-export-plain.png               \
-       wsug_graphics/ws-export-ps.png                  \
-       wsug_graphics/ws-export-psml.png                \
-       wsug_graphics/ws-export-selected.png            \
-       wsug_graphics/ws-file-import.png                        \
-       wsug_graphics/ws-file-menu.png                  \
-       wsug_graphics/ws-file-set-dialog.png            \
-       wsug_graphics/ws-filter-add-expression.png      \
-       wsug_graphics/ws-filter-toolbar.png             \
-       wsug_graphics/ws-filters.png                    \
-       wsug_graphics/ws-find-packet.png                \
-       wsug_graphics/ws-follow-stream.png              \
-       wsug_graphics/ws-go-menu.png                    \
-       wsug_graphics/ws-goto-packet.png                \
-       wsug_graphics/ws-gui-colors-preferences.png     \
-       wsug_graphics/ws-gui-columns-preferences.png    \
-       wsug_graphics/ws-gui-config-profiles.png        \
-       wsug_graphics/ws-gui-font-preferences.png       \
-       wsug_graphics/ws-gui-interface-options.png      \
-       wsug_graphics/ws-gui-layout-preferences.png     \
-       wsug_graphics/ws-gui-preferences.png            \
-       wsug_graphics/ws-help-menu.png                  \
-       wsug_graphics/ws-internals-menu.png                     \
-       wsug_graphics/ws-list-pane.png                  \
-       wsug_graphics/ws-logo.png                       \
-       wsug_graphics/ws-main-toolbar.png               \
-       wsug_graphics/ws-main.png                       \
-       wsug_graphics/ws-menu.png                       \
-       wsug_graphics/ws-merge-gtk24.png                \
-       wsug_graphics/ws-merge-win32.png                \
-       wsug_graphics/ws-nameresolution-preferences.png \
-       wsug_graphics/ws-open-gtk24.png                 \
-       wsug_graphics/ws-open-win32.png                 \
-       wsug_graphics/ws-packet-format.png              \
-       wsug_graphics/ws-packet-pane-popup-menu.png     \
-       wsug_graphics/ws-packet-range.png               \
-       wsug_graphics/ws-packet-selected.png            \
-       wsug_graphics/ws-packet-sep-win.png             \
-       wsug_graphics/ws-print.png                      \
-       wsug_graphics/ws-printing-preferences.png       \
-       wsug_graphics/ws-save-as-gtk24.png              \
-       wsug_graphics/ws-save-as-win32.png              \
-       wsug_graphics/ws-statistics-menu.png            \
-       wsug_graphics/ws-stats-compare.png              \
-       wsug_graphics/ws-stats-conversations.png        \
-       wsug_graphics/ws-stats-endpoints.png            \
-       wsug_graphics/ws-stats-hierarchy.png            \
-       wsug_graphics/ws-stats-iographs.png             \
-       wsug_graphics/ws-stats-srt-dcerpc-filter.png    \
-       wsug_graphics/ws-stats-srt-dcerpc.png           \
-       wsug_graphics/ws-stats-summary.png              \
-       wsug_graphics/ws-stats-lte-mac-traffic.png              \
-       wsug_graphics/ws-stats-lte-rlc-traffic.png              \
-       wsug_graphics/ws-stats-wlan-traffic.png         \
-       wsug_graphics/ws-statusbar-empty.png            \
-       wsug_graphics/ws-statusbar-filter.png           \
-       wsug_graphics/ws-statusbar-loaded.png           \
-       wsug_graphics/ws-statusbar-profile.png          \
-       wsug_graphics/ws-statusbar-selected.png         \
-       wsug_graphics/ws-tel-rtpstream-analysis.png             \
-       wsug_graphics/ws-telephony-menu.png             \
-       wsug_graphics/ws-tools-menu.png \
-       wsug_graphics/ws-time-reference.png             \
-       wsug_graphics/ws-view-menu.png                  \
-       wsug_graphics/toolbar/autoscroll_24.png                 \
-       wsug_graphics/toolbar/capture_filter_24.png             \
-       wsug_graphics/toolbar/capture_interfaces_24.png         \
-       wsug_graphics/toolbar/capture_options_24.png            \
-       wsug_graphics/toolbar/capture_restart_24.png            \
-       wsug_graphics/toolbar/capture_start_24.png              \
-       wsug_graphics/toolbar/capture_stop_24.png               \
-       wsug_graphics/toolbar/colorize_24.png                   \
-       wsug_graphics/toolbar/display_filter_24.png             \
-       wsug_graphics/toolbar/resize_columns_24.png             \
-       wsug_graphics/toolbar/stock_add_24.png                  \
-       wsug_graphics/toolbar/stock_apply_20.png                \
-       wsug_graphics/toolbar/stock_bottom_24.png               \
-       wsug_graphics/toolbar/stock_clear_24.png                \
-       wsug_graphics/toolbar/stock_close_24.png                \
-       wsug_graphics/toolbar/stock_colorselector_24.png        \
-       wsug_graphics/toolbar/stock_help_24.png                 \
-       wsug_graphics/toolbar/stock_jump_to_24.png              \
-       wsug_graphics/toolbar/stock_left_arrow_24.png           \
-       wsug_graphics/toolbar/stock_open_24.png                 \
-       wsug_graphics/toolbar/stock_preferences_24.png          \
-       wsug_graphics/toolbar/stock_print_24.png                \
-       wsug_graphics/toolbar/stock_properties_24.png           \
-       wsug_graphics/toolbar/stock_refresh_24.png              \
-       wsug_graphics/toolbar/stock_right_arrow_24.png          \
-       wsug_graphics/toolbar/stock_save_24.png                 \
-       wsug_graphics/toolbar/stock_save_as_24.png              \
-       wsug_graphics/toolbar/stock_search_24.png               \
-       wsug_graphics/toolbar/stock_stop_24.png                 \
-       wsug_graphics/toolbar/stock_top_24.png                  \
-       wsug_graphics/toolbar/stock_zoom_1_24.png               \
-       wsug_graphics/toolbar/stock_zoom_in_24.png              \
-       wsug_graphics/toolbar/stock_zoom_out_24.png
-
-WSDG_FILES =   \
-       wsdg_src/WSDG_chapter_build_intro.asciidoc      \
-       wsdg_src/WSDG_chapter_capture.asciidoc          \
-       wsdg_src/WSDG_chapter_dissection.asciidoc       \
-       wsdg_src/WSDG_chapter_env_intro.asciidoc        \
-       wsdg_src/WSDG_chapter_libraries.asciidoc        \
-       wsdg_src/WSDG_chapter_quick_setup.asciidoc      \
-       wsdg_src/WSDG_chapter_sources.asciidoc          \
-       wsdg_src/WSDG_chapter_tools.asciidoc            \
-       wsdg_src/WSDG_chapter_userinterface.asciidoc    \
-       wsdg_src/WSDG_chapter_works.asciidoc            \
-       wsdg_src/WSDG_preface.asciidoc                  \
-       wsluarm.asciidoc                                \
-       ws.css
-
-WSDG_GENERATED_SOURCE = \
-       developer-guide.xml
-
-WSDG_GRAPHICS =        \
-       wsdg_graphics/ws-capture-sync.dia       \
-       wsdg_graphics/ws-capture-sync.png       \
-       wsdg_graphics/ws-capture_internals.dia  \
-       wsdg_graphics/ws-capture_internals.png  \
-       wsdg_graphics/ws-function-blocks.dia    \
-       wsdg_graphics/ws-function-blocks.png    \
-       wsdg_graphics/ws-logo.png               \
-       wsdg_graphics/toolbar/dummy.dummy
-
-COMMON_FILES = \
-       common_src/GPL_appendix.asciidoc        \
-       common_src/typographic_conventions.asciidoc
-
-COMMON_GRAPHICS = \
-       common_graphics/note.svg        \
-       common_graphics/tip.svg         \
-       common_graphics/warning.svg
-
-# user-guide.xml must be first in the list (to match $<)
-WSUG_DIST =    \
-       user-guide.asciidoc     \
-       attributes.asciidoc     \
-       custom_layer_chm.xsl    \
-       custom_layer_single_html.xsl    \
-       $(WSUG_FILES)           \
-       $(WSUG_TOOLS_HELP_FILES)        \
-       $(WSUG_GRAPHICS)        \
-       $(COMMON_FILES)         \
-       $(COMMON_GRAPHICS)
-
-WSUG_SOURCE = $(WSUG_GENERATED_SOURCE) $(WSUG_DIST)
-
-# developer-guide.asciidoc must be first in the list (to match $<)
-WSDG_DIST =    \
-       developer-guide.asciidoc        \
-       attributes.asciidoc     \
-       custom_layer_chm.xsl    \
-       custom_layer_single_html.xsl    \
-       $(WSDG_FILES)           \
-       $(WSDG_GRAPHICS)        \
-       $(COMMON_FILES)         \
-       $(COMMON_GRAPHICS)
-
-WSDG_SOURCE = $(WSDG_GENERATED_SOURCE) $(WSDG_DIST)
-
-RELEASE_NOTES_SOURCE = \
-       release-notes.asciidoc
-
-CLEANFILES =   \
-       *.chm                   \
-       *.fo                    \
-       *.hhc                   \
-       *.hhp                   \
-       *.pdf                   \
-       $(WSDG_GENERATED_SOURCE) \
-       $(WSUG_GENERATED_SOURCE) \
-       wsdg_chm                \
-       wsdg_html.zip           \
-       wsdg_html_chunked.zip   \
-       wsug_chm                \
-       wsug_html.zip           \
-       wsug_html_chunked.zip   \
-       htmlhelp.*              \
-       release_notes_chm       \
-       release-notes.html      \
-       release-notes.txt       \
-       user-guide.zip          \
-       wsluarm
-
-CLEANDIRS =    \
-       wsdg_html               \
-       wsdg_html_chunked       \
-       wsug_html               \
-       wsug_html_chunked       \
-       wsluarm_src
-
-# Note: file order here MATTERS!
-# new WSLUA_MODULE files must come right before any WSLUA_CONTINUE_MODULE
-# files for the same module
-WSLUA_MODULES = \
-       $(top_srcdir)/epan/wslua/wslua_dumper.c \
-       $(top_srcdir)/epan/wslua/wslua_field.c \
-       $(top_srcdir)/epan/wslua/wslua_gui.c \
-       $(top_srcdir)/epan/wslua/wslua_listener.c \
-       $(top_srcdir)/epan/wslua/wslua_pinfo.c \
-       $(top_srcdir)/epan/wslua/wslua_address.c \
-       $(top_srcdir)/epan/wslua/wslua_column.c \
-       $(top_srcdir)/epan/wslua/wslua_nstime.c \
-       $(top_srcdir)/epan/wslua/wslua_proto.c \
-       $(top_srcdir)/epan/wslua/wslua_dissector.c \
-       $(top_srcdir)/epan/wslua/wslua_pref.c \
-       $(top_srcdir)/epan/wslua/wslua_proto_expert.c \
-       $(top_srcdir)/epan/wslua/wslua_proto_field.c \
-       $(top_srcdir)/epan/wslua/wslua_int64.c \
-       $(top_srcdir)/epan/wslua/wslua_struct.c \
-       $(top_srcdir)/epan/wslua/wslua_tree.c \
-       $(top_srcdir)/epan/wslua/wslua_tvb.c \
-       $(top_srcdir)/epan/wslua/wslua_byte_array.c \
-       $(top_srcdir)/epan/wslua/wslua_file.c \
-       $(top_srcdir)/epan/wslua/wslua_file_handler.c \
-       $(top_srcdir)/epan/wslua/wslua_frame_info.c \
-       $(top_srcdir)/epan/wslua/wslua_capture_info.c \
-       $(top_srcdir)/epan/wslua/wslua_dir.c \
-       $(top_srcdir)/epan/wslua/wslua_util.c
-
-COMMON_XSLTPROC_ARGS = \
-       --stringparam use.id.as.filename 1 \
-       --stringparam admon.graphics 1 \
-       --stringparam admon.graphics.extension .svg \
-       --stringparam section.autolabel 1 \
-       --stringparam section.label.includes.component.label 1 \
-       --stringparam html.stylesheet ws.css
-
-WSUG_XSLTPROC_ARGS = \
-       --stringparam admon.graphics.path wsug_graphics/
-
-WSDG_XSLTPROC_ARGS = \
-       --stringparam admon.graphics.path wsdg_graphics/
-
-SINGLE_XSLTPROC_ARGS = \
-       --nonet custom_layer_single_html.xsl
-
-CHUNKED_XSLTPROC_ARGS = \
-       --stringparam chunker.output.encoding UTF-8 \
-       --nonet http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl
-
-HTMLHELP_XSLTPROC_ARGS = \
-       --nonet custom_layer_chm.xsl
-#      --nonet http://docbook.sourceforge.net/release/xsl/current/htmlhelp/htmlhelp.xsl
-
-ASCIIDOCTOR_COMMON_ARGS = \
-       --require $(srcdir)/asciidoctor-macros/commaize-block.rb \
-       --require $(srcdir)/asciidoctor-macros/cve_idlink-inline-macro.rb \
-       --require $(srcdir)/asciidoctor-macros/ws_buglink-inline-macro.rb \
-       --require $(srcdir)/asciidoctor-macros/ws_salink-inline-macro.rb
-
-ASCIIDOCTOR_COMMON_COMMAND = TZ=UTC ASCIIDOCTORJ_OPTS="-Xmx800m ${ASCIIDOCTORJ_OPTS}" \
-       $(ASCIIDOCTOR) \
-       $(ASCIIDOCTOR_COMMON_ARGS)
-
-.asciidoc.pdf:
-       $(ASCIIDOCTOR_COMMON_COMMAND) --backend pdf --out-file $@ $<
-
-.asciidoc.xml:
-       $(ASCIIDOCTOR_COMMON_COMMAND) --backend docbook --out-file $@ $<
-
-docbook_all_local_targets =
-if BUILD_USER_GUIDE
-docbook_all_local_targets += wsug_html_chunked
-
-all-local: $(docbook_all_local_targets)
-
-all-html: wsug wsdg release_notes
-
-all-pdf: wsug_pdf wsdg_pdf
-
-# Wireshark User Guide
-wsug: wsug_html_chunked wsug_html
-
-wsug_pdf: wsug user-guide.pdf
-
-user-guide.xml: user-guide.asciidoc $(WSUG_FILES)
-
-user-guide.pdf: user-guide.asciidoc $(WSUG_FILES)
-endif
-
-# create html single page file
-if BUILD_USER_GUIDE
-wsug_html: wsug_html/index.html
-endif
-
-wsug_html/index.html: user-guide.xml
-       @ echo --- WSUG - HTML SINGLE PAGE ---
-       mkdir -p wsug_html/wsug_graphics/toolbar
-       cp $(srcdir)/wsug_graphics/*.* wsug_html/wsug_graphics
-       cp $(srcdir)/common_graphics/*.* wsug_html/wsug_graphics
-       cp $(srcdir)/wsug_graphics/toolbar/* wsug_html/wsug_graphics/toolbar
-       cp $(srcdir)/ws.css wsug_html
-       $(XSLTPROC) --stringparam base.dir wsug_html/ $(COMMON_XSLTPROC_ARGS) \
-               $(WSUG_XSLTPROC_ARGS) $(SINGLE_XSLTPROC_ARGS) $< > $@
-       -chmod -R og+rX wsug_html
-
-# create html chunked page files
-if BUILD_USER_GUIDE
-wsug_html_chunked: wsug_html_chunked/index.html
-endif
-
-wsug_html_chunked/index.html: user-guide.xml
-       @ echo --- WSUG - HTML CHUNKED ---
-       mkdir -p wsug_html_chunked/wsug_graphics/toolbar
-       cp $(srcdir)/wsug_graphics/*.* wsug_html_chunked/wsug_graphics
-       cp $(srcdir)/common_graphics/*.* wsug_html_chunked/wsug_graphics
-       cp $(srcdir)/wsug_graphics/toolbar/* wsug_html_chunked/wsug_graphics/toolbar
-       cp $(srcdir)/ws.css wsug_html_chunked
-       $(XSLTPROC) --stringparam base.dir wsug_html_chunked/ $(COMMON_XSLTPROC_ARGS) \
-                   $(WSUG_XSLTPROC_ARGS) $(CHUNKED_XSLTPROC_ARGS) $<
-       -chmod -R og+rX wsug_html_chunked
-
-wsluarm: make-wsluarm.pl $(WSLUA_MODULES)
-       mkdir -p wsluarm_src
-       $(PERL) $(srcdir)/make-wsluarm.pl $(WSLUA_MODULES)
-       touch wsluarm
-
-
-# Wireshark Developer Guide
-wsdg: wsdg_html_chunked wsdg_html
-
-if BUILD_USER_GUIDE
-wsdg_pdf: developer-guide.pdf
-endif
-
-developer-guide.xml: developer-guide.asciidoc $(WSDG_FILES) wsluarm
-
-developer-guide.pdf: developer-guide.asciidoc $(WSDG_FILES) wsluarm
-
-# create html single page file
-if BUILD_USER_GUIDE
-wsdg_html: wsdg_html/index.html
-endif
-
-wsdg_html/index.html: developer-guide.xml
-       @ echo --- WSDG - HTML SINGLE PAGE ---
-       mkdir -p wsdg_html/wsdg_graphics/toolbar
-       cp $(srcdir)/wsdg_graphics/*.* wsdg_html/wsdg_graphics
-       cp $(srcdir)/common_graphics/*.* wsdg_html/wsdg_graphics
-       cp $(srcdir)/wsdg_graphics/toolbar/* wsdg_html/wsdg_graphics/toolbar/
-       cp $(srcdir)/ws.css wsdg_html
-       $(XSLTPROC) --stringparam base.dir wsdg_html/ $(COMMON_XSLTPROC_ARGS) \
-               --path .:wsluarm_src \
-               $(WSDG_XSLTPROC_ARGS) $(SINGLE_XSLTPROC_ARGS) $< > $@
-       -chmod -R og+rX wsdg_html
-
-# create html chunked page files
-if BUILD_USER_GUIDE
-wsdg_html_chunked: developer-guide.xml wsdg_html_chunked/index.html
-endif
-
-wsdg_html_chunked/index.html: developer-guide.xml
-       @ echo --- WSDG - HTML CHUNKED ---
-       mkdir -p wsdg_html_chunked/wsdg_graphics/toolbar
-       cp $(srcdir)/wsdg_graphics/*.* wsdg_html_chunked/wsdg_graphics
-       cp $(srcdir)/common_graphics/*.* wsdg_html_chunked/wsdg_graphics
-       cp $(srcdir)/wsdg_graphics/toolbar/* wsdg_html_chunked/wsdg_graphics/toolbar/
-       cp $(srcdir)/ws.css wsdg_html_chunked
-       $(XSLTPROC) --stringparam base.dir wsdg_html_chunked/ $(COMMON_XSLTPROC_ARGS) \
-               --path .:wsluarm_src \
-               $(WSDG_XSLTPROC_ARGS) $(CHUNKED_XSLTPROC_ARGS) $<
-       -chmod -R og+rX wsdg_html_chunked
-
-# Release notes
-if HAVE_ASCIIDOCTOR
-release_note_deps = release-notes.html
-release_note_deps += release-notes.txt
-endif
-release_notes: $(release_note_deps)
-
-# create html single page file
-release-notes.html: $(RELEASE_NOTES_SOURCE)
-       @ echo --- RELEASE NOTES - HTML ---
-       $(ASCIIDOCTOR_COMMON_COMMAND) \
-               --backend html \
-               --out-file $(builddir)/release-notes.html \
-               $(srcdir)/release-notes.asciidoc
-
-# create txt single page file (through HTML)
-release-notes.txt: release-notes.html
-       @ echo --- RELEASE NOTES - TXT ---
-       $(PYTHON) $(srcdir)/tools/html2text.py \
-               $(builddir)/release-notes.html \
-               > $(builddir)/release-notes.txt
-
-news: release-notes.txt
-       cp release-notes.txt ../NEWS
-       -cp release-notes.txt $(top_srcdir)/NEWS
-
-install-data-local:
-if BUILD_USER_GUIDE
-       $(MKDIR_P) $(DESTDIR)$(docdir)/guides
-       cp -rf $(builddir)/wsug_html_chunked $(DESTDIR)$(docdir)/guides
-endif
-