7 dnl Check for CPU / vendor / OS
8 dnl The user is encouraged to use either `AC_CANONICAL_BUILD', or
9 dnl `AC_CANONICAL_HOST', or `AC_CANONICAL_TARGET', depending on the
10 dnl needs. Using `AC_CANONICAL_TARGET' is enough to run the two other
14 dnl AC_CANONICAL_BUILD
17 AM_INIT_AUTOMAKE(wireshark, 0.99.8)
21 dnl Checks for programs.
24 dnl Work around libtool bug (fixed in the version 1.5a?)
25 AC_DEFUN([AC_PROVIDE_AC_LIBTOOL_DLOPEN], )
30 AC_PATH_PROG(PERL, perl)
31 AC_PATH_PROG(POD2MAN, pod2man)
32 if test "x$POD2MAN" = x
35 # The alternative is not to build the man pages....
37 AC_MSG_ERROR(I couldn't find pod2man; make sure it's installed and in your path)
39 AC_PATH_PROG(POD2HTML, pod2html)
40 if test "x$POD2HTML" = x
43 # The alternative is not to build the HTML man pages....
45 AC_MSG_ERROR(I couldn't find pod2html; make sure it's installed and in your path)
47 AC_PATH_PROG(HTML_VIEWER, xdg-open)
48 if test "x$HTML_VIEWER" = x
50 AC_PATH_PROG(HTML_VIEWER, htmlview)
51 if test "x$HTML_VIEWER" = x
53 AC_DEFINE_UNQUOTED(HTML_VIEWER, "mozilla", [HTML viewer, e.g. mozilla])
55 AC_DEFINE_UNQUOTED(HTML_VIEWER, "htmlview", [HTML viewer, e.g. mozilla])
58 AC_DEFINE_UNQUOTED(HTML_VIEWER, "xdg-open", [HTML viewer, e.g. mozilla])
61 AC_PATH_PROG(LEX, flex)
62 AC_PATH_PROG(PYTHON, python)
73 if test "x$CC_FOR_BUILD" = x
77 AC_SUBST(CC_FOR_BUILD)
80 AC_PATH_PROG(DOXYGEN, doxygen)
81 AC_CHECK_PROG(HAVE_DOXYGEN, doxygen, "yes", "no")
82 AM_CONDITIONAL(HAVE_DOXYGEN, test x$HAVE_DOXYGEN = xyes)
87 AC_HELP_STRING( [--with-gnutls=@<:@yes/no@:>@],
88 [use gnutls library @<:@default=yes@:>@]),
89 with_gnutls="$withval", with_gnutls="yes")
90 if test "x$with_gnutls" = "xyes"; then
91 AM_PATH_LIBGNUTLS(1.0.0,
93 echo "gnuTLS found, enabling ssl decryption"
94 AC_DEFINE(HAVE_LIBGNUTLS, 1, [Define to use gnutls library])
98 if test x$libgnutls_config_prefix != x ; then
99 AC_MSG_ERROR([[gnuTLS not found; install gnuTLS-devel package for your system]])
101 echo echo "gnuTLS not found, disabling ssl decryption"
110 AC_ARG_WITH([gcrypt],
111 AC_HELP_STRING( [--with-gcrypt=@<:@yes/no@:>@],
112 [use gcrypt library @<:@default=yes@:>@]),
113 with_gcrypt="$withval", with_gcrypt="yes")
114 if test "x$with_gcrypt" = "xyes"; then
115 AM_PATH_LIBGCRYPT(1.1.42,
117 echo "libgcrypt found, enabling ipsec decryption"
118 AC_DEFINE(HAVE_LIBGCRYPT, 1, [Define to use libgcrypt])
122 if test x$libgcrypt_config_prefix != x ; then
123 AC_MSG_ERROR([[libgcrypt not found; install libgcrypt-devel package for your system]])
125 echo "libgcrypt not found, disabling ipsec decryption"
133 # FIXME: currently the path argument to with-libsmi is being ignored
137 AC_PATH_PROG(XSLTPROC, xsltproc)
138 AC_CHECK_PROG(HAVE_XSLTPROC, xsltproc, "yes", "no")
139 AM_CONDITIONAL(HAVE_XSLTPROC, test x$HAVE_XSLTPROC = xyes)
142 AC_PATH_PROG(XMLLINT, xmllint)
143 AC_CHECK_PROG(HAVE_XMLLINT, xmllint, "yes", "no")
144 AM_CONDITIONAL(HAVE_XMLLINT, test x$HAVE_XMLLINT = xyes)
146 # Check for fop (translate .fo to e.g. pdf)
147 AC_PATH_PROG(FOP, fop)
148 AC_CHECK_PROG(HAVE_FOP, fop, "yes", "no")
149 AM_CONDITIONAL(HAVE_FOP, test x$HAVE_FOP = xyes)
151 # Check for hhc (html help compiler)
152 AC_PATH_PROG(HHC, hhc.exe)
153 AC_CHECK_PROG(HAVE_HHC, hhc.exe, "yes", "no")
154 AM_CONDITIONAL(HAVE_HHC, test x$HAVE_HHC = xyes)
156 # Check for packaging utilities
157 # For now, we check to see if the various packaging utilites are in our
158 # path. I'm too lazy to write code to go hunt for them. - Gerald
159 AC_CHECK_PROG(HAVE_PKGPROTO, pkgproto, "yes", "no")
160 AC_CHECK_PROG(HAVE_PKGMK, pkgmk, "yes", "no")
161 AC_CHECK_PROG(HAVE_PKGTRANS, pkgtrans, "yes", "no")
163 if test x$HAVE_PKGPROTO = xyes -a x$HAVE_PKGMK = xyes \
164 -a x$HAVE_PKGTRANS = xyes ; then
165 HAVE_SVR4_PACKAGING=yes
167 HAVE_SVR4_PACKAGING=no
169 AC_SUBST(HAVE_SVR4_PACKAGING)
171 AC_WIRESHARK_RPM_CHECK
175 # Try to add some additional gcc checks to CFLAGS
177 AC_ARG_ENABLE(extra-gcc-checks,
178 AC_HELP_STRING( [--enable-extra-gcc-checks],
179 [Do additional -W checks in GCC. @<:@default=no@:>@]),
181 wireshark_extra_gcc_flags=$enableval
182 if test $enableval != no
184 AC_WIRESHARK_GCC_CFLAGS_CHECK(-pedantic)
185 AC_WIRESHARK_GCC_CFLAGS_CHECK(-Wno-long-long)
186 AC_WIRESHARK_GCC_CFLAGS_CHECK(-Wbad-function-cast)
187 AC_WIRESHARK_GCC_CFLAGS_CHECK(-Wcast-qual)
188 AC_WIRESHARK_GCC_CFLAGS_CHECK(-Wwrite-strings)
189 AC_WIRESHARK_GCC_CFLAGS_CHECK(-Wshorten-64-to-32)
190 AC_WIRESHARK_GCC_CFLAGS_CHECK(-Wstrict-prototypes)
191 AC_WIRESHARK_GCC_CFLAGS_CHECK(-Wmissing-declarations)
192 #Temporarily put cast-align here waiting eradication of 'cast
193 #increases required alignment of target type' on the Solaris
195 AC_WIRESHARK_GCC_CFLAGS_CHECK(-Wcast-align)
198 AC_WIRESHARK_GCC_CFLAGS_CHECK(-Wall -W)
199 AC_WIRESHARK_GCC_CFLAGS_CHECK(-Wdeclaration-after-statement)
200 AC_WIRESHARK_GCC_CFLAGS_CHECK(-Wendif-labels)
201 AC_WIRESHARK_GCC_CFLAGS_CHECK(-Wpointer-arith)
202 AC_WIRESHARK_GCC_CFLAGS_CHECK(-Wno-pointer-sign)
205 # If we're running gcc add '-D_U_="__attribute__((unused))"' to CFLAGS as well,
206 # so we can use _U_ to flag unused function arguments and not get warnings
207 # about them. Otherwise, add '-D_U_=""', so that _U_ used to flag an unused
208 # function argument will compile with non-GCC compilers.
210 if test "x$GCC" = "xyes" ; then
211 CFLAGS="-D_U_=\"__attribute__((unused))\" $CFLAGS"
213 CFLAGS="-D_U_=\"\" $CFLAGS"
217 # If we're running gcc, will enable a barrier "stop on warning".
218 # This barrier is set for a very large part of the code. However, it is
219 # typically not set for "generated" code (lex, ans2wrs, idl2wrs, ...)
221 warnings_as_errors_default="yes"
222 AC_MSG_CHECKING(whether we should treat compiler warnings as errors)
223 AC_ARG_ENABLE(warnings-as-errors,
224 AC_HELP_STRING( [--enable-warnings-as-errors],
225 [Treat warnings as errors (only for gcc). @<:@default=yes@:>@]),
227 if test "x$GCC" = "xyes" -a "x$enableval" == "xyes" -a "x$wireshark_extra_gcc_flags" != "xyes"; then
228 with_warnings_as_errors="yes"
231 with_warnings_as_errors="no"
235 if test "x$GCC" = "xyes" -a "x$wireshark_extra_gcc_flags" = "x" -a "x$warnings_as_errors_default" = "xyes"; then
236 with_warnings_as_errors="yes"
239 with_warnings_as_errors="no"
243 AM_CONDITIONAL(HAVE_WARNINGS_AS_ERRORS, test "x$with_warnings_as_errors" = "xyes")
246 # Add any platform-specific compiler flags needed.
248 AC_MSG_CHECKING(for platform-specific compiler flags)
249 if test "x$GCC" = "xyes" ; then
251 # GCC - do any platform-specific tweaking necessary.
255 # the X11 headers don't automatically include prototype info
256 # and a lot don't include the return type
257 CFLAGS="$CFLAGS -Wno-return-type -DFUNCPROTO=15"
258 AC_MSG_RESULT(GCC on Solaris - added -Wno-return-type -DFUNCPROTO=15)
262 # See comments above about Apple's lovely C compiler.
264 CFLAGS="-no-cpp-precomp $CFLAGS"
265 AC_MSG_RESULT(Apple GCC - added -no-cpp-precomp)
268 AC_MSG_RESULT(none needed)
273 # Not GCC - assume it's the vendor's compiler.
278 # HP's ANSI C compiler; flags suggested by Jost Martin.
279 # "-Ae" for ANSI C plus extensions such as "long long".
280 # "+O2", for optimization. XXX - works with "-g"?
282 CFLAGS="-Ae +O2 $CFLAGS"
283 AC_MSG_RESULT(HP ANSI C compiler - added -Ae +O2)
287 # It may be called "cc", but it's really a GCC derivative
288 # with a problematic special precompiler and precompiled
289 # headers; turn off the special precompiler, as some
290 # apparently-legal code won't compile with its precompiled
293 CFLAGS="-no-cpp-precomp $CFLAGS"
294 AC_MSG_RESULT(Apple GCC - added -no-cpp-precomp)
297 AC_MSG_RESULT(none needed)
303 # Add any platform-specific linker flags needed.
305 AC_MSG_CHECKING(for platform-specific linker flags)
309 # Add -Wl,-single_module to the LDFLAGS used with shared
310 # libraries, to fix some error that show up in some cases;
311 # some Apple documentation recommends it for most shared
314 LDFLAGS_SHAREDLIB="-Wl,-single_module"
316 # Add -Wl,-search_paths_first to make sure that if we search
317 # directories A and B, in that order, for a given library, a
318 # non-shared version in directory A, rather than a shared
319 # version in directory B, is chosen (so we can use
320 # --with-pcap=/usr/local to force all programs to be linked
321 # with a static version installed in /usr/local/lib rather than
322 # the system version in /usr/lib).
324 LDFLAGS="-Wl,-search_paths_first $LDFLAGS"
325 AC_MSG_RESULT([Apple linker - added -Wl,-single_module and -Wl,-search_paths_first])
329 # Shared libraries in cygwin/Win32 must never contain
332 LDFLAGS="$LDFLAGS -no-undefined"
333 AC_MSG_RESULT(CygWin GNU ld - added -no-undefined)
336 AC_MSG_RESULT(none needed)
339 AC_SUBST(LDFLAGS_SHAREDLIB)
342 # On OS X, if we find the headers for Core Foundation, Launch Services,
343 # and Core Services, add -framework options to link with Application
344 # Services (of which Launch Services is a subframework), Core Foundation
345 # (required by the Launch Services APIs), and Core Services, so we can
346 # use them to launch a Web browser from the Help menu and to use
347 # Gestalt() to get the Mac OS X version number.
352 AC_MSG_CHECKING([whether we can build with Core Foundation, Launch Services, and Core Services])
354 ac_frameworks="-framework ApplicationServices -framework CoreFoundation -framework CoreServices"
355 LIBS="$LIBS $ac_frameworks"
358 # include <CoreFoundation/CFBase.h>
359 # include <CoreFoundation/CFString.h>
360 # include <CoreFoundation/CFURL.h>
361 # include <ApplicationServices/ApplicationServices.h>
362 # include <CoreServices/CoreServices.h>
365 CFStringRef url_CFString;
370 url_CFString = CFStringCreateWithCString(NULL, "", kCFStringEncodingASCII);
371 url_CFURL = CFURLCreateWithString(NULL, url_CFString, NULL);
372 status = LSOpenCFURLRef(url_CFURL, NULL);
374 Gestalt(gestaltSystemVersion, &os_version);
376 ac_cv_can_use_osx_frameworks=yes,
377 ac_cv_can_use_osx_frameworks=no,
378 [echo $ac_n "cross compiling; assumed OK... $ac_c"])
379 if test "$ac_cv_can_use_osx_frameworks" = yes ; then
380 AC_DEFINE(HAVE_OS_X_FRAMEWORKS, 1, [Define to 1 if you have OS X frameworks])
381 FRAMEWORKS="$ac_frameworks"
391 dnl Look in /usr/local for header files and libraries ?
392 dnl XXX FIXME don't include /usr/local if it is already in the system
393 dnl search path as this causes gcc 3.2 on Linux to complain about a change
394 dnl of the system search order for includes
395 AC_ARG_ENABLE(usr-local,
396 AC_HELP_STRING( [--enable-usr-local],
397 [look for headers and libs in /usr/local tree. @<:@default=yes@:>@]),
398 ac_cv_enable_usr_local=$enableval,ac_cv_enable_usr_local=yes)
400 AC_MSG_CHECKING(whether to use /usr/local for headers and libraries)
401 if test "x$ac_cv_enable_usr_local" = "xyes" ; then
404 # Arrange that we search for header files in the source directory
405 # and in its "wiretap" subdirectory, as well as in "/usr/local/include",
406 # as various packages we use ("libpcap", "zlib", "adns", "pcre")
407 # may have been installed under "/usr/local/include".
409 CFLAGS="$CFLAGS -I/usr/local/include"
410 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
413 # Arrange that we search for libraries in "/usr/local/lib".
415 AC_WIRESHARK_ADD_DASH_L(LDFLAGS, /usr/local/lib)
421 # If we're running Solaris, and LD_LIBRARY_PATH is defined, add it as a
426 AC_MSG_CHECKING(for LD_LIBRARY_PATH, since you appear to be running Solaris)
427 if test x$LD_LIBRARY_PATH != x ; then
428 LIBS="$LIBS -R$LD_LIBRARY_PATH"
429 AC_MSG_RESULT(yes -- added LD_LIBRARY_PATH to run-time linker path)
431 AC_MSG_RESULT(no -- this may be a problem in a few seconds)
437 # Check for versions of "sed" inadequate to handle, in libtool, a list
438 # of object files as large as the list in Wireshark.
440 # On Solaris, we check for "/bin/sed", "/usr/bin/sed", and "/usr/ucb/sed",
441 # as both "/usr/bin/sed" (which is also "/bin/sed", as "/bin" is just a
442 # symlink to "/usr/bin", but people may have "/bin" before "/usr/bin" in
443 # their search path) and "/usr/ucb/sed" are inadequate; "/usr/xpg4/bin/sed"
444 # is the only "sed" that comes with Solaris that can handle Wireshark.
446 # Add any checks here that are necessary for other OSes.
448 AC_WIRESHARK_GNU_SED_CHECK
449 if test "$HAVE_GNU_SED" = no ; then
452 AC_MSG_CHECKING(whether one of /usr/bin/sed or /bin/sed or /usr/ucb/sed will be used)
454 /bin/sed|/usr/bin/sed|/usr/ucb/sed)
456 AC_MSG_ERROR([change your path to search /usr/xpg4/bin or directory containing GNU sed before /usr/bin (and /bin and /usr/ucb)])
471 # Enable/disable tshark
473 AC_ARG_ENABLE(wireshark,
474 AC_HELP_STRING( [--enable-wireshark],
475 [build GTK+-based wireshark. @<:@default=yes, if GTK+ available@:>@]),
476 enable_wireshark=$enableval,enable_wireshark=yes)
479 AC_HELP_STRING( [--disable-gtk2],
480 [build Glib1/Gtk1+-based wireshark/tshark. @<:@default=no@:>@]),
481 enable_gtk2=$enableval,enable_gtk2=yes)
482 AM_CONDITIONAL(USE_GTK2, test x$enable_gtk2 = xyes)
484 AC_ARG_ENABLE(threads,
485 AC_HELP_STRING( [--enable-threads],
486 [use threads in wireshark. @<:@default=no@:>@]),
487 enable_threads=$enableval,enable_threads=no)
488 AM_CONDITIONAL(USE_THREADS, test x$enable_threads = xyes)
490 AC_ARG_ENABLE(profile-build,
491 AC_HELP_STRING( [--enable-profile-build],
492 [build profile-ready binaries. @<:@default=no@:>@]),
493 enable_profile_build=$enableval,enable_profile_build=no)
494 AM_CONDITIONAL(USE_PROFILE_BUILD, test x$enable_profile_build = xyes)
495 AC_MSG_CHECKING(if profile builds must be generated)
496 if test "x$enable_profile_build" = "xyes" ; then
497 if test "x$GCC" = "xyes" ; then
499 CFLAGS=" -pg $CFLAGS"
502 echo "Building profile binaries currently only supported for GCC."
508 # Create DATAFILE_DIR #define for config.h
509 datafiledir=$datadir/wireshark
511 test "x$prefix" = xNONE && prefix=$ac_default_prefix
512 test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
513 # Ugly hack, but I don't see how this problem can be solved
514 # properly that DATAFILE_DIR had a value starting with
515 # "${prefix}/" instead of e.g. "/usr/local/"
516 eval eval echo "$datafiledir"
518 AC_DEFINE_UNQUOTED(DATAFILE_DIR,"$datafiledir", [Directory for data])
521 # We don't add $GLIB_LIBS to LIBS, because we don't want to force all
522 # programs to be built with GTK+.
524 if test "x$enable_gtk2" = "xyes" -a "x$enable_wireshark" = "xyes"; then
526 AM_PATH_GTK_2_0(2.0.0, CFLAGS="$CFLAGS $GTK_CFLAGS", GTK_OK=no, gthread)
527 elif test "x$enable_gtk2" != "xyes" -a "x$enable_wireshark" = "xyes"; then
529 AM_PATH_GTK(1.2.0, CFLAGS="$CFLAGS $GTK_CFLAGS", GTK_OK=no )
535 # This doesn't add GLIB_CFLAGS to CFLAGS, because AM_PATH_GTK will add
536 # GTK_CFLAGS to CFLAGS, and GTK_CFLAGS is a superset of CFLAGS.
537 # However, this means that both @GLIB_LIBS@ and @GTK_LIBS@ will be
538 # set when generating the Makefile, so we can make programs that require
539 # only GLib link with @GLIB_LIBS@ and make programs that require GTK+
540 # link with @GTK_LIBS@ (which includes @GLIB_LIBS@).
541 # We don't add $GLIB_LIBS to LIBS, because we don't want to force all
542 # programs to be built with GLib.
544 if test "$GTK_OK" = "no" ; then
546 # We don't have GTK+.
547 # If they didn't explicitly say "--disable-wireshark", fail (so
548 # that, unless they explicitly indicated that they don't want
549 # Wireshark, we stop so they know they won't be getting
550 # Wireshark unless they fix the GTK+ problem).
552 if test "x$enable_wireshark" = "xyes"; then
553 AC_MSG_ERROR([GTK+ isn't available, so Wireshark can't be compiled])
558 if test "x$enable_gtk2" = "xyes" ; then
559 AM_PATH_GLIB_2_0(2.0.0, CFLAGS="$CFLAGS $GLIB_CFLAGS", AC_MSG_ERROR(GLib2 distribution not found.), gmodule)
561 AM_PATH_GLIB(1.2.0, CFLAGS="$CFLAGS $GLIB_CFLAGS", AC_MSG_ERROR(GLib distribution not found.), gmodule)
564 wireshark_bin="wireshark\$(EXEEXT)"
565 wireshark_man="wireshark.1"
566 wireshark_SUBDIRS="codecs gtk"
568 if test "$GTK_OK" = "two" ; then
569 AM_PATH_GLIB_2_0(2.0.0, , AC_MSG_ERROR(GLib distribution not found.), gmodule)
571 AM_PATH_GLIB(1.2.0, , AC_MSG_ERROR(GLib distribution not found.), gmodule)
576 # Check whether GLib modules are supported, to determine whether we
577 # can support plugins.
579 AC_MSG_CHECKING(whether GLib supports loadable modules)
580 ac_save_CFLAGS="$CFLAGS"
582 CFLAGS="$CFLAGS $GLIB_CFLAGS"
583 LIBS="$GLIB_LIBS $LIBS"
593 if (g_module_supported())
594 return 0; /* success */
596 return 1; /* failure */
598 ], ac_cv_glib_supports_modules=yes, ac_cv_glib_supports_modules=no,
599 [echo $ac_n "cross compiling; assumed OK... $ac_c"
600 ac_cv_glib_supports_modules=yes])
601 CFLAGS="$ac_save_CFLAGS"
603 if test "$ac_cv_glib_supports_modules" = yes ; then
612 # We can't just check for <inttypes.h> - some systems have one that
613 # doesn't define all the PRI[doxu]64 macros.
615 AC_CHECK_HEADERS(inttypes.h,
618 # OK, we have inttypes.h, but does it define those macros?
620 AC_MSG_CHECKING([[whether inttypes.h defines the PRI[doxu]64 macros]])
625 #include <inttypes.h>
628 #include <sys/types.h>
632 printf("%" PRId64 "\n", (gint64)1);
633 printf("%" PRIo64 "\n", (guint64)1);
634 printf("%" PRIx64 "\n", (guint64)1);
635 printf("%" PRIX64 "\n", (guint64)1);
636 printf("%" PRIu64 "\n", (guint64)1);
642 ac_wireshark_inttypes_h_defines_formats=yes
646 ac_wireshark_inttypes_h_defines_formats=no
651 # We don't have inttypes.h, so it obviously can't define those
654 ac_wireshark_inttypes_h_defines_formats=no
656 if test "$ac_wireshark_inttypes_h_defines_formats" = yes; then
657 AC_DEFINE(INTTYPES_H_DEFINES_FORMATS,,[Define if <inttypes.h> defines PRI[doxu]64 macros])
659 AC_WIRESHARK_CHECK_64BIT_FORMAT(ll,
661 AC_WIRESHARK_CHECK_64BIT_FORMAT(L,
663 AC_WIRESHARK_CHECK_64BIT_FORMAT(q,
665 AC_MSG_ERROR([neither %llx nor %Lx nor %qx worked on a 64-bit integer])
671 AC_SUBST(wireshark_bin)
672 AC_SUBST(wireshark_man)
674 rdps_bin="rdps\$(EXEEXT)"
678 # Enable/disable tshark
680 AC_ARG_ENABLE(tshark,
681 AC_HELP_STRING( [--enable-tshark],
682 [build tshark. @<:@default=yes@:>@]),
683 tshark=$enableval,enable_tshark=yes)
685 if test "x$enable_tshark" = "xyes" ; then
686 tshark_bin="tshark\$(EXEEXT)"
687 tshark_man="tshark.1"
688 wiresharkfilter_man="wireshark-filter.4"
695 AC_SUBST(wiresharkfilter_man)
699 # Enable/disable editcap
701 AC_ARG_ENABLE(editcap,
702 AC_HELP_STRING( [--enable-editcap],
703 [build editcap. @<:@default=yes@:>@]),
704 enable_editcap=$enableval,enable_editcap=yes)
706 if test "x$enable_editcap" = "xyes" ; then
707 editcap_bin="editcap\$(EXEEXT)"
708 editcap_man="editcap.1"
713 AC_SUBST(editcap_bin)
714 AC_SUBST(editcap_man)
716 # Enabling/disabling of dumpcap is done later (after we know if we have PCAP
719 # Enable/disable capinfos
721 AC_ARG_ENABLE(capinfos,
722 AC_HELP_STRING( [--enable-capinfos],
723 [build capinfos. @<:@default=yes@:>@]),
724 enable_capinfos=$enableval,enable_capinfos=yes)
726 if test "x$enable_capinfos" = "xyes" ; then
727 capinfos_bin="capinfos\$(EXEEXT)"
728 capinfos_man="capinfos.1"
733 AC_SUBST(capinfos_bin)
734 AC_SUBST(capinfos_man)
737 # Enable/disable mergecap
739 AC_ARG_ENABLE(mergecap,
740 AC_HELP_STRING( [--enable-mergecap],
741 [build mergecap. @<:@default=yes@:>@]),
742 enable_mergecap=$enableval,enable_mergecap=yes)
744 if test "x$enable_mergecap" = "xyes" ; then
745 mergecap_bin="mergecap\$(EXEEXT)"
746 mergecap_man="mergecap.1"
751 AC_SUBST(mergecap_bin)
752 AC_SUBST(mergecap_man)
755 # Enable/disable text2pcap
757 AC_ARG_ENABLE(text2pcap,
758 AC_HELP_STRING( [--enable-text2pcap],
759 [build text2pcap. @<:@default=yes@:>@]),
760 text2pcap=$enableval,enable_text2pcap=yes)
762 if test "x$enable_text2pcap" = "xyes" ; then
763 text2pcap_bin="text2pcap\$(EXEEXT)"
764 text2pcap_man="text2pcap.1"
769 AC_SUBST(text2pcap_bin)
770 AC_SUBST(text2pcap_man)
772 # Enable/disable idl2wrs
774 AC_ARG_ENABLE(idl2wrs,
775 AC_HELP_STRING( [--enable-idl2wrs],
776 [build idl2wrs. @<:@default=yes@:>@]),
777 enable_idl2wrs=$enableval,enable_idl2wrs=yes)
779 if test "x$enable_idl2wrs" = "xyes" ; then
780 idl2wrs_bin="idl2wrs"
781 idl2wrs_man="idl2wrs.1"
786 AC_SUBST(idl2wrs_bin)
787 AC_SUBST(idl2wrs_man)
790 # Enable/disable dftest
792 AC_ARG_ENABLE(dftest,
793 AC_HELP_STRING( [--enable-dftest],
794 [build dftest. @<:@default=yes@:>@]),
795 enable_dftest=$enableval,enable_dftest=yes)
797 if test "x$enable_dftest" = "xyes" ; then
798 dftest_bin="dftest\$(EXEEXT)"
805 # Enable/disable randpkt
807 AC_ARG_ENABLE(randpkt,
808 AC_HELP_STRING( [--enable-randpkt],
809 [build randpkt. @<:@default=yes@:>@]),
810 enable_randpkt=$enableval,enable_randpkt=yes)
812 if test "x$enable_randpkt" = "xyes" ; then
813 randpkt_bin="randpkt\$(EXEEXT)"
817 AC_SUBST(randpkt_bin)
820 dnl Checks for "gethostbyname()" - and "-lnsl", if we need it to get
821 dnl "gethostbyname()".
822 AC_WIRESHARK_GETHOSTBY_LIB_CHECK
824 dnl Checks for "connect()", used as a proxy for "socket()" - and
825 dnl "-lsocket", if we need it to get "connect()".
826 AC_WIRESHARK_SOCKET_LIB_CHECK
829 AC_MSG_CHECKING(whether to use libpcap for packet capture)
832 AC_HELP_STRING( [--with-pcap@<:@=DIR@:>@],
833 [use libpcap for packet capturing. @<:@default=yes@:>@]),
835 if test $withval = no
838 elif test $withval = yes
849 if test "x$want_pcap" = "xno" ; then
853 AC_WIRESHARK_PCAP_CHECK
856 # Enable/disable dumpcap
859 AC_MSG_CHECKING(whether to build dumpcap)
861 AC_ARG_ENABLE(dumpcap,
862 AC_HELP_STRING( [--enable-dumpcap],
863 [build dumpcap. @<:@default=yes@:>@]),
864 enable_dumpcap=$enableval,enable_dumpcap=yes)
866 if test "x$enable_dumpcap" = "xyes" ; then
867 if test "x$want_pcap" = "xno" ; then
869 AC_MSG_RESULT(pcap not available - disabling dumpcap)
877 if test "x$enable_dumpcap" = "xyes" ; then
878 dumpcap_bin="dumpcap\$(EXEEXT)"
879 dumpcap_man="dumpcap.1"
884 AC_SUBST(dumpcap_bin)
885 AC_SUBST(dumpcap_man)
888 AC_MSG_CHECKING(whether to use zlib for reading compressed capture files)
891 AC_HELP_STRING( [--with-zlib@<:@=DIR@:>@],
892 [use zlib (located in directory DIR, if supplied) to read compressed data. @<:@default=yes, if available@:>@]),
894 if test $withval = no
897 elif test $withval = yes
906 # Use zlib if it's present, otherwise don't.
908 want_zlib=ifavailable
911 if test "x$want_zlib" = "xno" ; then
915 AC_WIRESHARK_ZLIB_CHECK
916 if test "x$want_zlib" = "xno" ; then
917 AC_MSG_RESULT(zlib not found - disabling compressed capture file support)
923 AC_MSG_CHECKING(whether to use libpcre for regular expressions in dfilters)
926 AC_HELP_STRING( [--with-pcre@<:@=DIR@:>@],
927 [use libpcre (located in directory DIR, if supplied) to use in dfilter regular expressions. @<:@default=yes, if available@:>@]),
929 if test $withval = no
932 elif test $withval = yes
941 # Use libpcre if it's present, otherwise don't.
943 want_pcre=ifavailable
946 if test "x$want_pcre" = "xno" ; then
950 AC_WIRESHARK_LIBPCRE_CHECK
951 if test "x$want_pcre" = "xno" ; then
952 AC_MSG_RESULT(libpcre not found - disabling support for perl compatible regular expressions in dfilters)
958 AC_MSG_CHECKING(whether to use liblua for the lua scripting plugin)
961 AC_HELP_STRING( [--with-lua@<:@=DIR@:>@],
962 [use liblua (located in directory DIR, if supplied) for the lua scripting plugin. @<:@default=no@:>@]),
964 if test $withval = no
967 elif test $withval = yes
976 # Don't use liblua by default (it isn't ready yet)
981 if test "x$want_lua" = "xno" ; then
985 AC_WIRESHARK_LIBLUA_CHECK
986 if test "x$want_lua" = "xno" ; then
987 AC_MSG_RESULT(liblua not found - disabling support for the lua scripting plugin)
990 AM_CONDITIONAL(HAVE_LIBLUA, test x$want_lua = xyes)
994 AC_MSG_CHECKING(whether to use libportaudio for the rtp_player)
996 AC_ARG_WITH(portaudio,
997 AC_HELP_STRING( [--with-portaudio@<:@=DIR@:>@],
998 [use libportaudio (located in directory DIR, if supplied) for the rtp_player. @<:@default=yes, if available@:>@]),
1000 if test $withval = no
1003 elif test $withval = yes
1008 portaudio_dir=$withval
1012 # Use libportaudio by default
1014 want_portaudio=ifavailable
1017 if test "x$want_portaudio" = "xno" ; then
1021 AC_WIRESHARK_LIBPORTAUDIO_CHECK
1022 if test "x$want_portaudio" = "xno" ; then
1023 AC_MSG_RESULT(libportaudio not found - disabling support for the rtp_player)
1026 AM_CONDITIONAL(HAVE_LIBPORTAUDIO, test x$want_portaudio = xyes)
1031 AC_HELP_STRING( [--enable-ipv6],
1032 [use ipv6 name resolution, if available. @<:@default=yes@:>@]),
1033 enable_ipv6=$enableval,enable_ipv6=yes)
1035 AC_MSG_CHECKING(whether to enable ipv6 name resolution if available)
1036 if test "x$enable_ipv6" = "xno" ; then
1040 AC_WIRESHARK_IPV6_STACK
1044 dnl Check if wireshark should be installed setuid
1045 AC_ARG_ENABLE(setuid-install,
1046 AC_HELP_STRING( [--enable-setuid-install],
1047 [install tshark and dumpcap as setuid @<:@default=no@:>@]),
1048 enable_setuid_install=$enableval,enable_setuid_install=no)
1050 AC_MSG_CHECKING(whether to install tshark and dumpcap setuid)
1051 if test "x$enable_setuid_install" = "xno" ; then
1054 if test "x$enable_dumpcap" = "xno" ; then
1055 AC_MSG_ERROR(Setuid install works only with --enable-dumpcap, but dumpcap disabled)
1061 AM_CONDITIONAL(SETUID_INSTALL, test x$enable_setuid_install = xyes)
1063 dnl libcap (not libpcap) check
1065 AC_MSG_CHECKING(whether to use the libcap capabilities library)
1068 AC_HELP_STRING( [--with-libcap@<:@=DIR@:>@],
1069 [use libcap (located in directory DIR, if supplied) for POSIX.1e capabilities management. @<:@default=yes, if present@:>@]),
1071 if test "x$withval" = "xno"; then
1073 elif test "x$withval" = "xyes"; then
1075 elif test -d "$withval"; then
1077 AC_WIRESHARK_ADD_DASH_L(LDFLAGS, ${withval}/lib)
1080 if test "x$with_libcap" = "xno" ; then
1084 AC_WIRESHARK_LIBCAP_CHECK
1086 AC_SUBST(LIBCAP_LIBS)
1088 dnl Checks for header files.
1090 AC_CHECK_HEADERS(direct.h dirent.h fcntl.h grp.h netdb.h pwd.h stdarg.h stddef.h unistd.h)
1091 AC_CHECK_HEADERS(sys/ioctl.h sys/param.h sys/socket.h sys/sockio.h sys/stat.h sys/time.h sys/types.h sys/utsname.h sys/wait.h)
1092 AC_CHECK_HEADERS(netinet/in.h)
1093 AC_CHECK_HEADERS(arpa/inet.h arpa/nameser.h)
1100 AC_MSG_CHECKING(whether to use SSL library)
1103 AC_HELP_STRING( [--with-ssl@<:@=DIR@:>@],
1104 [use SSL crypto library (located in directory DIR, if supplied). @<:@default=no@:>@]),
1106 if test "x$withval" = "xno"; then
1108 elif test "x$withval" = "xyes"; then
1110 elif test -d "$withval"; then
1112 AC_WIRESHARK_ADD_DASH_L(LDFLAGS, ${withval}/lib)
1117 if test "x$want_ssl" = "xyes"; then
1119 AC_CHECK_LIB(crypto,EVP_md5,
1124 AC_MSG_ERROR([SSL crypto library was requested, but is not available])
1132 AC_MSG_CHECKING(whether to use kerberos)
1135 AC_HELP_STRING( [--with-krb5@<:@=DIR@:>@],
1136 [use kerberos (located in directory DIR, if supplied) to use in kerberos dissection @<:@default=yes@:>@]),
1138 if test $withval = no
1141 elif test $withval = yes
1150 # Use kerberos if specified, otherwise don't.
1152 want_krb5=ifavailable
1155 if test "x$want_krb5" = "xno" ; then
1159 AC_WIRESHARK_KRB5_CHECK
1165 AC_MSG_CHECKING(whether to use the GNU ADNS library if available)
1168 AC_HELP_STRING( [--with-adns@<:@=DIR@:>@],
1169 [use GNU ADNS (located in directory DIR, if supplied). @<:@default=yes, if present@:>@]),
1171 if test "x$withval" = "xno"; then
1173 elif test "x$withval" = "xyes"; then
1175 elif test -d "$withval"; then
1177 AC_WIRESHARK_ADD_DASH_L(LDFLAGS, ${withval}/lib)
1180 if test "x$with_adns" = "xno" ; then
1184 AC_WIRESHARK_ADNS_CHECK
1189 # Define WS_VAR_IMPORT appropriately for declarations of external
1190 # variables exported from dynamically-linked libraries.
1192 AC_DEFINE(WS_VAR_IMPORT, extern, [Define as the string to precede external variable declarations in dynamically-linked libraries])
1195 # Define HAVE_AIRPDCAP
1196 # We'll want to remove this eventually.
1198 AC_DEFINE(HAVE_AIRPDCAP, 1, [Enable AirPDcap (WPA/WPA2 decryption)])
1200 dnl Checks for typedefs, structures, and compiler characteristics.
1203 # We need to know whether "struct sockaddr" has an "sa_len" member
1204 # for get_interface_list().
1206 AC_WIRESHARK_STRUCT_SA_LEN
1208 # We must know our byte order
1211 # Checks whether "-traditional" is needed when using "ioctl".
1212 # XXX - do we need this?
1213 AC_PROG_GCC_TRADITIONAL
1216 # Does GLib define G_GINT64_MODIFIER?
1218 AC_MSG_CHECKING([[whether glib.h defines the G_GINT64_MODIFIER macro]])
1224 #if GTK_MAJOR_VERSION >= 2
1225 #include <glib/gprintf.h>
1232 g_snprintf(strbuf, sizeof strbuf, "%" G_GINT64_MODIFIER "x\n", (gint64)1);
1241 AC_WIRESHARK_CHECK_64BIT_FORMAT(l,
1243 AC_WIRESHARK_CHECK_64BIT_FORMAT(ll,
1245 AC_WIRESHARK_CHECK_64BIT_FORMAT(L,
1247 AC_WIRESHARK_CHECK_64BIT_FORMAT(q,
1249 AC_MSG_ERROR([neither %lx nor %llx nor %Lx nor %qx worked on a 64-bit integer])
1258 AC_CHECK_FUNC(getopt, GETOPT_O="",
1259 [GETOPT_O="getopt.o"
1260 AC_DEFINE(NEED_GETOPT_H, 1, [Define if getopt.h needs to be included])
1262 if test "$ac_cv_func_getopt" = no ; then
1269 AC_CHECK_FUNC(strerror, STRERROR_O="",
1270 [STRERROR_O="strerror.o"
1271 AC_DEFINE(NEED_STRERROR_H, 1, [Define if strerror.h needs to be included])
1273 if test "$ac_cv_func_strerror" = no ; then
1274 STRERROR_C="strerror.c"
1275 STRERROR_O="strerror.o"
1277 AC_SUBST(STRERROR_C)
1278 AC_SUBST(STRERROR_O)
1280 AC_CHECK_FUNC(strcasecmp, STRCASECMP_O="",
1281 STRCASECMP_O="strcasecmp.o")
1282 if test "$ac_cv_func_strcasecmp" = no ; then
1283 STRCASECMP_C="strcasecmp.c"
1284 STRCASECMP_O="strcasecmp.o"
1286 AC_SUBST(STRCASECMP_C)
1287 AC_SUBST(STRCASECMP_O)
1289 AC_CHECK_FUNC(strncasecmp, STRNCASECMP_O="",
1290 STRNCASECMP_O="strncasecmp.o")
1291 if test "$ac_cv_func_strncasecmp" = no ; then
1292 STRNCASECMP_C="strncasecmp.c"
1293 STRNCASECMP_O="strncasecmp.o"
1295 AC_SUBST(STRNCASECMP_C)
1296 AC_SUBST(STRNCASECMP_O)
1298 AC_CHECK_FUNC(mkstemp, MKSTEMP_O="",
1299 MKSTEMP_O="mkstemp.o")
1300 if test "$ac_cv_func_mkstemp" = no ; then
1301 MKSTEMP_C="mkstemp.c"
1302 MKSTEMP_O="mkstemp.o"
1307 ac_save_LIBS="$LIBS"
1308 LIBS="$GLIB_LIBS $LIBS"
1309 G_ASCII_STRCASECMP_C=""
1310 G_ASCII_STRCASECMP_O=""
1311 G_ASCII_STRCASECMP_LO=""
1312 AC_CHECK_FUNC(g_ascii_strcasecmp,
1313 [G_ASCII_STRCASECMP_O=""
1314 G_ASCII_STRCASECMP_LO=""],
1315 [G_ASCII_STRCASECMP_O="g_ascii_strcasecmp.o"
1316 G_ASCII_STRCASECMP_LO="g_ascii_strcasecmp.lo"
1317 AC_DEFINE(NEED_G_ASCII_STRCASECMP_H, 1, [Define if g_ascii_strcasecmp.h needs to be included])
1319 LIBS="$ac_save_LIBS"
1320 if test "$ac_cv_func_g_ascii_strcasecmp" = no ; then
1321 G_ASCII_STRCASECMP_C="g_ascii_strcasecmp.c"
1322 G_ASCII_STRCASECMP_O="g_ascii_strcasecmp.o"
1323 G_ASCII_STRCASECMP_LO="g_ascii_strcasecmp.lo"
1325 AC_SUBST(G_ASCII_STRCASECMP_C)
1326 AC_SUBST(G_ASCII_STRCASECMP_O)
1327 AC_SUBST(G_ASCII_STRCASECMP_LO)
1329 ac_save_LIBS="$LIBS"
1330 LIBS="$GLIB_LIBS $LIBS"
1331 G_ASCII_STRTOULL_C=""
1332 G_ASCII_STRTOULL_O=""
1333 G_ASCII_STRTOULL_LO=""
1334 AC_CHECK_FUNC(g_ascii_strtoull,
1335 [G_ASCII_STRTOULL_O=""
1336 G_ASCII_STRTOULL_LO=""],
1337 [G_ASCII_STRTOULL_O="g_ascii_strtoull.o"
1338 G_ASCII_STRTOULL_LO="g_ascii_strtoull.lo"
1339 AC_DEFINE(NEED_G_ASCII_STRTOULL_H, 1, [Define if g_ascii_strtoull.h needs to be included])
1341 LIBS="$ac_save_LIBS"
1342 if test "$ac_cv_func_g_ascii_strtoull" = no ; then
1343 G_ASCII_STRTOULL_C="g_ascii_strtoull.c"
1344 G_ASCII_STRTOULL_O="g_ascii_strtoull.o"
1345 G_ASCII_STRTOULL_LO="g_ascii_strtoull.lo"
1347 AC_SUBST(G_ASCII_STRTOULL_C)
1348 AC_SUBST(G_ASCII_STRTOULL_O)
1349 AC_SUBST(G_ASCII_STRTOULL_LO)
1351 AC_CHECK_FUNC(inet_aton,
1354 [INET_ATON_O="inet_aton.o"
1355 INET_ATON_LO="inet_aton.lo"
1357 if test "$ac_cv_func_inet_aton" = no ; then
1358 INET_ATON_C="inet_aton.c"
1359 INET_ATON_O="inet_aton.o"
1360 INET_ATON_LO="inet_aton.lo"
1361 AC_DEFINE(NEED_INET_ATON_H, 1, [Define if inet/aton.h needs to be included])
1363 AC_SUBST(INET_ATON_C)
1364 AC_SUBST(INET_ATON_O)
1365 AC_SUBST(INET_ATON_LO)
1367 AC_SEARCH_LIBS(inet_pton, [socket nsl], [
1368 dnl check for pre-BIND82 inet_pton() bug.
1369 AC_MSG_CHECKING(for broken inet_pton)
1370 AC_TRY_RUN([#include <sys/types.h>
1371 #include <sys/socket.h>
1372 #include <netinet/in.h>
1373 #include <arpa/inet.h>
1378 /* this should return 0 (error) */
1379 return inet_pton(AF_INET6, "0:1:2:3:4:5:6:7:", buf);
1383 }], [AC_MSG_RESULT(ok);
1384 have_inet_pton=yes], [AC_MSG_RESULT(broken);
1385 have_inet_pton=no], [AC_MSG_RESULT(cross compiling, assume it is broken);
1386 have_inet_pton=no])],
1388 if test "$have_inet_pton" = no; then
1389 INET_PTON_C="inet_pton.c"
1390 INET_PTON_O="inet_pton.o"
1391 INET_PTON_LO="inet_pton.lo"
1397 AC_SUBST(INET_PTON_C)
1398 AC_SUBST(INET_PTON_O)
1399 AC_SUBST(INET_PTON_LO)
1401 AC_SEARCH_LIBS(inet_ntop, [socket nsl], [
1402 AC_MSG_CHECKING([for inet_ntop prototype])
1403 AC_TRY_COMPILE([#include <stdio.h>
1404 #include <sys/types.h>
1405 #include <sys/socket.h>
1406 #include <netinet/in.h>
1407 #include <arpa/inet.h>
1409 extern const char *inet_ntop(int, const void *, char *, size_t);],, [
1411 AC_DEFINE(HAVE_INET_NTOP_PROTO, 1,
1412 [Define if inet_ntop() prototype exists])], [
1413 AC_TRY_COMPILE([#include <stdio.h>
1414 #include <sys/types.h>
1415 #include <sys/socket.h>
1416 #include <netinet/in.h>
1417 #include <arpa/inet.h>
1419 extern const char *inet_ntop(int, const void *, char *, socklen_t);],, [
1421 AC_DEFINE(HAVE_INET_NTOP_PROTO, 1,
1422 [Define if inet_ntop() prototype exists])], [
1423 AC_MSG_RESULT(no)])])
1426 INET_NTOP_C="inet_ntop.c"
1427 INET_NTOP_O="inet_ntop.o"
1428 INET_NTOP_LO="inet_ntop.lo"
1429 AC_DEFINE(NEED_INET_V6DEFS_H, 1,
1430 [Define if inet/v6defs.h needs to be included])])
1431 AC_SUBST(INET_NTOP_C)
1432 AC_SUBST(INET_NTOP_O)
1433 AC_SUBST(INET_NTOP_LO)
1435 AC_CHECK_FUNC(strptime, STRPTIME_O="",
1436 [STRPTIME_O="strptime.o"
1437 AC_DEFINE(NEED_STRPTIME_H, 1, [Define if strptime.h needs to be included])
1439 if test "$ac_cv_func_strptime" = no ; then
1440 STRPTIME_C="strptime.c"
1441 STRPTIME_O="strptime.o"
1443 AC_SUBST(STRPTIME_C)
1444 AC_SUBST(STRPTIME_O)
1446 AC_CHECK_FUNCS(getprotobynumber gethostbyname2)
1447 AC_CHECK_FUNCS(issetugid)
1448 AC_CHECK_FUNCS(mmap mprotect sysconf)
1450 dnl blank for now, but will be used in future
1451 AC_SUBST(wireshark_SUBDIRS)
1454 dnl check whether plugins should be enabled and, if they should be,
1455 dnl check for plugins directory - stolen from Amanda's configure.in
1457 dnl we don't wish to expand ${libdir} yet
1458 plugindir='${libdir}/wireshark/plugins/${VERSION}'
1459 AC_ARG_WITH(plugins,
1460 AC_HELP_STRING( [--with-plugins@<:@=DIR@:>@],
1461 [support plugins (installed in DIR, if supplied). @<:@default=yes, if possible@:>@]),
1463 if test "x$withval" = "xno"; then
1465 elif test "x$have_plugins" = "xno"; then
1466 AC_MSG_ERROR([GLib on this platform doesn't support loadable modules, so you can't enable plugins.])
1467 if test "x$withval" != "xyes"; then
1468 plugindir="$withval"
1472 AM_CONDITIONAL(HAVE_PLUGINS, test "x$have_plugins" = "xyes")
1473 if test x$have_plugins = xyes
1475 AC_DEFINE(HAVE_PLUGINS, 1, [Define if plugins are enabled])
1478 CPPFLAGS="$CPPFLAGS '-DPLUGIN_DIR=\"\$(plugindir)\"'"
1481 # The plugin dissectors reside in ./plugins/PROTO/
1483 PLUGIN_LIBS="-L../../epan -lwireshark $GLIB_LIBS"
1484 AC_SUBST(PLUGIN_LIBS)
1488 # Yes, AM_PROG_LIBTOOL is redundant with newer version(s) of some tool(s)
1489 # (autoconf? automake? libtool?) - with the newer version(s), it's
1490 # just an alias for AC_PROG_LIBTOOL, which is called earlier.
1492 # With older version(s) of those tool(s), however, it's not just an
1493 # alias, and the configure scripts don't work without it.
1496 AC_SUBST(LIBTOOL_DEPS)
1498 AM_CONDITIONAL(ENABLE_STATIC, test x$enable_static = xyes)
1499 if test x$enable_static = xyes -a x$have_plugins = xyes
1501 AC_DEFINE(ENABLE_STATIC, 1, [Link plugins statically into Wireshark])
1503 AC_SUBST(ENABLE_STATIC)
1505 dnl Save the cacheable configure results to config.cache before recursing
1508 AM_CONFIG_HEADER(config.h)
1509 AC_CONFIG_SUBDIRS(wiretap)
1514 asn1/acp133/Makefile
1516 asn1/ansi_map/Makefile
1517 asn1/ansi-tcap/Makefile
1529 asn1/gsmmap/Makefile
1538 asn1/h450-ros/Makefile
1543 asn1/logotype-cert-extn/Makefile
1545 asn1/mpeg-audio/Makefile
1546 asn1/mpeg-pes/Makefile
1548 asn1/ns-cert-exts/Makefile
1552 asn1/pkcs12/Makefile
1553 asn1/pkinit/Makefile
1554 asn1/pkix1explicit/Makefile
1555 asn1/pkix1implicit/Makefile
1556 asn1/pkixcmp/Makefile
1557 asn1/pkixcrmf/Makefile
1558 asn1/pkixproxy/Makefile
1559 asn1/pkixqualified/Makefile
1560 asn1/pkixtsp/Makefile
1563 asn1/q932-ros/Makefile
1575 asn1/spnego/Makefile
1580 asn1/wlancertextn/Makefile
1583 asn1/x509af/Makefile
1584 asn1/x509ce/Makefile
1585 asn1/x509if/Makefile
1586 asn1/x509sat/Makefile
1592 epan/dfilter/Makefile
1593 epan/dissectors/Makefile
1594 epan/ftypes/Makefile
1601 packaging/nsis/Makefile
1602 packaging/rpm/Makefile
1603 packaging/rpm/SPECS/Makefile
1604 packaging/rpm/SPECS/wireshark.spec
1605 packaging/svr4/Makefile
1606 packaging/svr4/checkinstall
1607 packaging/svr4/pkginfo
1609 plugins/agentx/Makefile
1610 plugins/artnet/Makefile
1611 plugins/asn1/Makefile
1612 plugins/ciscosm/Makefile
1613 plugins/docsis/Makefile
1614 plugins/enttec/Makefile
1615 plugins/ethercat/Makefile
1616 plugins/giop/Makefile
1617 plugins/gryphon/Makefile
1618 plugins/irda/Makefile
1619 plugins/lwres/Makefile
1620 plugins/m2m/Makefile
1621 plugins/mate/Makefile
1622 plugins/opcua/Makefile
1623 plugins/opsi/Makefile
1624 plugins/pcli/Makefile
1625 plugins/profinet/Makefile
1626 plugins/rlm/Makefile
1627 plugins/rtnet/Makefile
1628 plugins/rudp/Makefile
1629 plugins/sbus/Makefile
1630 plugins/stats_tree/Makefile
1631 plugins/unistim/Makefile
1632 plugins/v5ua/Makefile
1633 plugins/wimax/Makefile
1634 plugins/wimaxasncp/Makefile
1637 tools/lemon/Makefile
1639 dnl AC_CONFIG_FILES([tools/setuid-root.pl], [chmod +x tools/setuid-root.pl])
1644 if test "x$enable_setuid_install" = "xyes" ; then
1645 setuid_message="yes"
1650 if test "x$want_zlib" = "xno" ; then
1656 if test "x$want_pcre" = "xno" ; then
1662 if test "x$want_lua" = "xyes" -a "x$have_plugins" = "xyes" ; then
1668 if test "x$want_portaudio" = "xyes" ; then
1669 portaudio_message="yes"
1671 portaudio_message="no"
1674 if test "x$want_ssl" = "xno" ; then
1680 if test "x$want_krb5" = "xno" ; then
1683 krb5_message="yes ($ac_krb5_version)"
1686 if test "x$have_good_adns" = "xyes" ; then
1692 if test "x$have_good_libcap" = "xyes" ; then
1693 libcap_message="yes"
1699 echo "The Wireshark package has been configured with the following options."
1700 echo " Build wireshark : $enable_wireshark"
1701 echo " Build tshark : $enable_tshark"
1702 echo " Build capinfos : $enable_capinfos"
1703 echo " Build editcap : $enable_editcap"
1704 echo " Build dumpcap : $enable_dumpcap"
1705 echo " Build mergecap : $enable_mergecap"
1706 echo " Build text2pcap : $enable_text2pcap"
1707 echo " Build idl2wrs : $enable_idl2wrs"
1708 echo " Build randpkt : $enable_randpkt"
1709 echo " Build dftest : $enable_dftest"
1711 echo " Install setuid : $setuid_message"
1712 echo " Use plugins : $have_plugins"
1713 echo " Build lua plugin : $lua_message"
1714 echo " Build rtp_player : $portaudio_message"
1715 echo " Use GTK+ v2 library : $enable_gtk2"
1716 if test "x$enable_gtk2" = "xyes" ; then
1717 echo " Use threads : $enable_threads"
1718 echo " Build profile binaries : $enable_profile_build"
1720 echo " Use pcap library : $want_pcap"
1721 echo " Use zlib library : $zlib_message"
1722 echo " Use pcre library : $pcre_message"
1723 echo " Use kerberos library : $krb5_message"
1724 echo " Use GNU ADNS library : $adns_message"
1725 echo " Use SMI MIB library : $libsmi_message"
1726 echo " Use GNU crypto library : $gcrypt_message"
1727 echo " Use SSL crypto library : $ssl_message"
1728 echo " Use IPv6 name resolution : $enable_ipv6"
1729 echo " Use gnutls library : $tls_message"
1730 echo " Use libcap library : $libcap_message"