1 # $Id: configure.in,v 1.235 2003/12/10 21:50:04 gerald Exp $
3 dnl Process this file with autoconf 2.13 or later to produce a
4 dnl configure script; 2.12 doesn't generate a "configure" script that
5 dnl defines SHELL, and "Makefile.in" has
9 dnl which requires it to be defined - and there may be other problems
10 dnl with pre-2.13 "autoconf" as well.
16 dnl Check for CPU / vendor / OS
20 AM_INIT_AUTOMAKE(ethereal, 0.10.0)
22 dnl Checks for programs.
26 dnl Work around libtool bug (fixed in the version 1.5a?)
27 AC_DEFUN([AC_PROVIDE_AC_LIBTOOL_DLOPEN], )
32 AC_PATH_PROG(PERL, perl)
33 AC_PATH_PROG(POD2MAN, pod2man)
34 if test "x$POD2MAN" = x
37 # The alternative is not to build the man pages....
39 AC_MSG_ERROR(I couldn't find pod2man; make sure it's installed and in your path)
41 AC_PATH_PROG(LEX, flex)
42 AC_PATH_PROG(PYTHON, python)
48 # Check for packaging utilities
49 # For now, we check to see if the various packaging utilites are in our
50 # path. I'm too lazy to write code to go hunt for them. - Gerald
51 AC_CHECK_PROG(HAVE_PKGPROTO, pkgproto, "yes", "no")
52 AC_CHECK_PROG(HAVE_PKGMK, pkgmk, "yes", "no")
53 AC_CHECK_PROG(HAVE_PKGTRANS, pkgtrans, "yes", "no")
55 if test x$HAVE_PKGPROTO = xyes -a x$HAVE_PKGMK = xyes \
56 -a x$HAVE_PKGTRANS = xyes ; then
57 HAVE_SVR4_PACKAGING=yes
59 HAVE_SVR4_PACKAGING=no
61 AC_SUBST(HAVE_SVR4_PACKAGING)
67 # If we're running gcc, add '-Wall -W' to CFLAGS, and add
68 # '-D_U_="__attribute__((unused))"' as well, so we can use _U_ to
69 # flag unused function arguments and not get warnings about them.
70 # If "--with-extra-gcc-checks" was specified, add "-Wcast-qual
71 # -Wcast-align" as well. (Add more checks here in the future?)
73 # Otherwise, add '-D_U_=""', so that _U_ used to flag an unused function
74 # argument will compile with non-GCC compilers.
76 AC_ARG_WITH(extra-gcc-checks,
77 [ --with-extra-gcc-checks do additional -W checks in GCC. [default=no]],
79 if test $withval != no
81 ethereal_extra_gcc_flags=" -Wcast-qual -Wcast-align"
84 AC_MSG_CHECKING(to see if we can add '-Wall -W$ethereal_extra_gcc_flags' to CFLAGS)
85 if test x$GCC != x ; then
86 CFLAGS="-D_U_=\"__attribute__((unused))\" -Wall -W$ethereal_extra_gcc_flags $CFLAGS"
89 CFLAGS="-D_U_=\"\" $CFLAGS"
94 # Add any platform-specific compiler flags needed.
96 AC_MSG_CHECKING(for platform-specific compiler flags)
100 # Not GCC - assume it's the vendor's compiler.
105 # HP's ANSI C compiler; flags suggested by Jost Martin.
106 # "-Ae" for ANSI C plus extensions such as "long long".
107 # "+O2", for optimization. XXX - works with "-g"?
109 CFLAGS="-Ae +O2 $CFLAGS"
110 AC_MSG_RESULT(HP ANSI C compiler - added -Ae +O2)
114 # It may be called "cc", but it's really a GCC derivative
115 # with a problematic special precompiler and precompiled
116 # headers; turn off the special precompiler, as some
117 # apparently-legal code won't compile with its precompiled
120 CFLAGS="-no-cpp-precomp $CFLAGS"
121 AC_MSG_RESULT(Apple GCC - added -no-cpp-precomp)
124 AC_MSG_RESULT(none needed)
130 # the X11 headers don't automatically include prototype info
131 # and a lot don't include the return type
132 CFLAGS="$CFLAGS -Wno-return-type -DFUNCPROTO=15"
133 AC_MSG_RESULT(GCC on Solaris - added -Wno-return-type -DFUNCPROTO=15)
137 # See comments above about Apple's lovely C compiler.
139 CFLAGS="-no-cpp-precomp $CFLAGS"
140 AC_MSG_RESULT(Apple GCC - added -no-cpp-precomp)
143 AC_MSG_RESULT(none needed)
148 dnl Look in /usr/local for header files and libraries ?
149 dnl XXX FIXME don't include /usr/local if it is already in the system
150 dnl search path as this causes gcc 3.2 on Linux to complain about a change
151 dnl of the system search order for includes
152 AC_ARG_ENABLE(usr-local,
153 [ --enable-usr-local look for headers and libs in /usr/local tree. [default=yes]],enable_usr_local=$enableval,enable_usr_local=yes)
155 AC_MSG_CHECKING(whether to use /usr/local for headers and libraries)
156 if test "x$enable_usr_local" = "xyes" ; then
159 # Arrange that we search for header files in the source directory
160 # and in its "wiretap" subdirectory, as well as in "/usr/local/include",
161 # as various packages we use ("libpcap", "zlib", an SNMP library)
162 # may have been installed under "/usr/local/include".
164 CFLAGS="$CFLAGS -I/usr/local/include"
165 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
168 # Arrange that we search for libraries in "/usr/local/lib".
170 AC_ETHEREAL_ADD_DASH_L(LDFLAGS, /usr/local/lib)
176 # If we're running Solaris, and LD_LIBRARY_PATH is defined, add it as a
181 AC_MSG_CHECKING(for LD_LIBRARY_PATH, since you appear to be running Solaris)
182 if test x$LD_LIBRARY_PATH != x ; then
183 LIBS="$LIBS -R$LD_LIBRARY_PATH"
184 AC_MSG_RESULT(yes -- added LD_LIBRARY_PATH to run-time linker path)
186 AC_MSG_RESULT(no -- this may be a problem in a few seconds)
192 # Check for versions of "sed" inadequate to handle, in libtool, a list
193 # of object files as large as the list in Ethereal.
195 # On Solaris, we check for "/bin/sed", "/usr/bin/sed", and "/usr/ucb/sed",
196 # as both "/usr/bin/sed" (which is also "/bin/sed", as "/bin" is just a
197 # symlink to "/usr/bin", but people may have "/bin" before "/usr/bin" in
198 # their search path) and "/usr/ucb/sed" are inadequate; "/usr/xpg4/bin/sed"
199 # is the only "sed" that comes with Solaris that can handle Ethereal.
201 # Add any checks here that are necessary for other OSes.
203 AC_ETHEREAL_GNU_SED_CHECK
204 if test "$HAVE_GNU_SED" = no ; then
207 AC_MSG_CHECKING(whether one of /usr/bin/sed or /bin/sed or /usr/ucb/sed will be used)
209 /bin/sed|/usr/bin/sed|/usr/ucb/sed)
211 AC_MSG_ERROR([change your path to search /usr/xpg4/bin or directory containing GNU sed before /usr/bin (and /bin and /usr/ucb)])
226 # Enable/disable tethereal
228 AC_ARG_ENABLE(ethereal,
229 [ --enable-ethereal build GTK+-based ethereal. [default=yes]],enable_ethereal=$enableval,enable_ethereal=yes)
232 [ --enable-gtk2 build Glib2/Gtk2+-based (t)ethereal. [default=no]],enable_gtk2=$enableval,enable_gtk2=no)
233 AM_CONDITIONAL(USE_GTK2, test x$enable_gtk2 = xyes)
235 AC_ARG_ENABLE(threads,
236 [ --enable-threads use threads in ethereal. [default=no]],enable_threads=$enableval,enable_threads=no)
237 AM_CONDITIONAL(USE_THREADS, test x$enable_threads = xyes)
239 AC_ARG_ENABLE(profile-build,
240 [ --enable-profile-build build profile-ready binaries. [default=no]],enable_profile_build=$enableval,enable_profile_build=no)
241 AM_CONDITIONAL(USE_PROFILE_BUILD, test x$enable_profile_build = xyes)
242 AC_MSG_CHECKING(if profile builds must be generated)
243 if test "x$enable_profile_build" = "xyes" ; then
244 if test -n "$GCC" ; then
246 CFLAGS=" -pg $CFLAGS"
249 echo "Building profile binaries currently only supported for GCC."
256 # We don't add $GLIB_LIBS to LIBS, because we don't want to force all
257 # programs to be built with GTK+.
259 if test "x$enable_gtk2" = "xyes" -a "x$enable_ethereal" = "xyes" ; then
261 AM_PATH_GTK_2_0(2.0.0, CFLAGS="$CFLAGS $GTK_CFLAGS", GTK_OK=no, gthread)
262 elif test "x$enable_gtk2" != "xyes" -a "x$enable_ethereal" = "xyes" ; then
264 AM_PATH_GTK(1.2.0, CFLAGS="$CFLAGS $GTK_CFLAGS", GTK_OK=no )
270 # This doesn't add GLIB_CFLAGS to CFLAGS, because AM_PATH_GTK will add
271 # GTK_CFLAGS to CFLAGS, and GTK_CFLAGS is a superset of CFLAGS.
272 # However, this means that both @GLIB_LIBS@ and @GTK_LIBS@ will be
273 # set when generating the Makefile, so we can make programs that require
274 # only GLib link with @GLIB_LIBS@ and make programs that require GTK+
275 # link with @GTK_LIBS@ (which includes @GLIB_LIBS@).
276 # We don't add $GLIB_LIBS to LIBS, because we don't want to force all
277 # programs to be built with GLib.
279 if test "$GTK_OK" = "no" ; then
284 if test "x$enable_gtk2" = "xyes" ; then
285 AM_PATH_GLIB_2_0(2.0.0, CFLAGS="$CFLAGS $GLIB_CFLAGS", AC_MSG_ERROR(GLib distribution not found.), gmodule)
287 AM_PATH_GLIB(1.2.0, CFLAGS="$CFLAGS $GLIB_CFLAGS", AC_MSG_ERROR(GLib distribution not found.), gmodule)
290 ethereal_bin="ethereal\$(EXEEXT)"
291 ethereal_man="ethereal.1"
292 ethereal_SUBDIRS="gtk"
294 if test "$GTK_OK" = "two" ; then
295 AM_PATH_GLIB_2_0(2.0.0, , AC_MSG_ERROR(GLib distribution not found.), gmodule)
297 AM_PATH_GLIB(1.2.0, , AC_MSG_ERROR(GLib distribution not found.), gmodule)
302 # Check whether GLib modules are supported, to determine whether we
303 # can support plugins.
305 AC_MSG_CHECKING(whether GLib supports loadable modules)
306 ac_save_CFLAGS="$CFLAGS"
308 CFLAGS="$CFLAGS $GLIB_CFLAGS"
309 LIBS="$GLIB_LIBS $LIBS"
319 if (g_module_supported())
320 return 0; /* success */
322 return 1; /* failure */
324 ], ac_cv_glib_supports_modules=yes, ac_cv_glib_supports_modules=no,
325 [echo $ac_n "cross compiling; assumed OK... $ac_c"])
326 CFLAGS="$ac_save_CFLAGS"
328 if test "$ac_cv_glib_supports_modules" = yes ; then
337 AC_SUBST(ethereal_bin)
338 AC_SUBST(ethereal_man)
342 # Enable/disable tethereal
344 AC_ARG_ENABLE(tethereal,
345 [ --enable-tethereal build tethereal. [default=yes]],tethereal=$enableval,enable_tethereal=yes)
347 if test "x$enable_tethereal" = "xyes" ; then
348 tethereal_bin="tethereal\$(EXEEXT)"
349 tethereal_man="tethereal.1"
350 etherealfilter_man="ethereal-filter.4"
355 AC_SUBST(tethereal_bin)
356 AC_SUBST(tethereal_man)
357 AC_SUBST(etherealfilter_man)
361 # Enable/disable editcap
363 AC_ARG_ENABLE(editcap,
364 [ --enable-editcap build editcap. [default=yes]],enable_editcap=$enableval,enable_editcap=yes)
366 if test "x$enable_editcap" = "xyes" ; then
367 editcap_bin="editcap\$(EXEEXT)"
368 editcap_man="editcap.1"
373 AC_SUBST(editcap_bin)
374 AC_SUBST(editcap_man)
377 # Enable/disable mergecap
379 AC_ARG_ENABLE(mergecap,
380 [ --enable-mergecap build mergecap. [default=yes]],enable_mergecap=$enableval,enable_mergecap=yes)
382 if test "x$enable_mergecap" = "xyes" ; then
383 mergecap_bin="mergecap\$(EXEEXT)"
384 mergecap_man="mergecap.1"
389 AC_SUBST(mergecap_bin)
390 AC_SUBST(mergecap_man)
393 # Enable/disable text2pcap
395 AC_ARG_ENABLE(text2pcap,
396 [ --enable-text2pcap build text2pcap. [default=yes]],text2pcap=$enableval,enable_text2pcap=yes)
398 if test "x$enable_text2pcap" = "xyes" ; then
399 text2pcap_bin="text2pcap\$(EXEEXT)"
400 text2pcap_man="text2pcap.1"
405 AC_SUBST(text2pcap_bin)
406 AC_SUBST(text2pcap_man)
408 # Enable/disable idl2eth
410 AC_ARG_ENABLE(idl2eth,
411 [ --enable-idl2eth build idl2eth. [default=yes]],enable_idl2eth=$enableval,enable_idl2eth=yes)
413 if test "x$enable_idl2eth" = "xyes" ; then
414 idl2eth_bin="idl2eth"
415 idl2eth_man="idl2eth.1"
420 AC_SUBST(idl2eth_bin)
421 AC_SUBST(idl2eth_man)
424 # Enable/disable dftest
426 AC_ARG_ENABLE(dftest,
427 [ --enable-dftest build dftest. [default=no]],enable_dftest=$enableval,enable_dftest=no)
429 if test "x$enable_dftest" = "xyes" ; then
430 dftest_bin="dftest\$(EXEEXT)"
437 # Enable/disable randpkt
439 AC_ARG_ENABLE(randpkt,
440 [ --enable-randpkt build randpkt. [default=no]],enable_randpkt=$enableval,enable_randpkt=no)
442 if test "x$enable_randpkt" = "xyes" ; then
443 randpkt_bin="randpkt\$(EXEEXT)"
447 AC_SUBST(randpkt_bin)
450 dnl Checks for "gethostbyname()" - and "-lnsl", if we need it to get
451 dnl "gethostbyname()".
452 AC_ETHEREAL_GETHOSTBY_LIB_CHECK
454 dnl Checks for "connect()", used as a proxy for "socket()" - and
455 dnl "-lsocket", if we need it to get "connect()".
456 AC_ETHEREAL_SOCKET_LIB_CHECK
459 AC_MSG_CHECKING(whether to use libpcap for packet capture)
462 changequote(<<, >>)dnl
463 << --with-pcap[=DIR] use libpcap for packet capturing. [default=yes]>>,
466 if test $withval = no
469 elif test $withval = yes
480 if test "x$want_pcap" = "xno" ; then
484 AC_ETHEREAL_PCAP_CHECK
488 AC_MSG_CHECKING(whether to use zlib for reading compressed capture files)
491 changequote(<<, >>)dnl
492 << --with-zlib[=DIR] use zlib (located in directory DIR, if supplied) to read compressed data. [default=yes, if present]>>,
495 if test $withval = no
498 elif test $withval = yes
507 # Use zlib if it's present, otherwise don't.
512 if test "x$want_zlib" = "xno" ; then
516 AC_ETHEREAL_ZLIB_CHECK
517 if test "x$want_zlib" = "xno" ; then
518 AC_MSG_RESULT(zlib not found - disabling compressed capture file support)
524 AC_MSG_CHECKING(whether to use libpcre for regular expressions in dfilters)
527 changequote(<<, >>)dnl
528 << --with-pcre[=DIR] use libpcre (located in directory DIR, if supplied) to use in dfilter regular expressions. [default=yes, if present]>>,
531 if test $withval = no
534 elif test $withval = yes
543 # Use libpcre if it's present, otherwise don't.
548 if test "x$want_pcre" = "xno" ; then
552 AC_ETHEREAL_LIBPCRE_CHECK
553 if test "x$want_pcre" = "xno" ; then
554 AC_MSG_RESULT(libpcre not found - disabling support for perl compatible regular expressions in dfilters)
561 [ --enable-ipv6 use ipv6 name resolution, if available. [default=yes]],enable_ipv6=$enableval,enable_ipv6=yes)
563 AC_MSG_CHECKING(whether to enable ipv6 name resolution if available)
564 if test "x$enable_ipv6" = "xno" ; then
568 AC_ETHEREAL_IPV6_STACK
572 dnl Check if ethereal should be installed setuid
573 AC_ARG_ENABLE(setuid-install,
574 [ --enable-setuid-install install ethereal as setuid. DANGEROUS!!! [default=no]],enable_setuid_install=$enableval,enable_setuid_install=no)
576 AC_MSG_CHECKING(whether to install ethereal setuid)
577 if test "x$enable_setuid_install" = "xno" ; then
583 AM_CONDITIONAL(SETUID_INSTALL, test x$enable_setuid_install = xyes)
585 dnl Checks for header files.
587 AC_CHECK_HEADERS(fcntl.h sys/ioctl.h sys/time.h unistd.h stdarg.h netdb.h)
588 AC_CHECK_HEADERS(sys/stat.h sys/sockio.h sys/types.h sys/socket.h)
589 AC_CHECK_HEADERS(sys/utsname.h sys/wait.h)
590 AC_CHECK_HEADERS(netinet/in.h)
591 AC_CHECK_HEADERS(stddef.h)
592 AC_CHECK_HEADERS(arpa/inet.h)
593 AC_CHECK_HEADERS(iconv.h)
597 AC_MSG_CHECKING(whether to use SSL library if available)
598 if test "x$enable_ssl" = "xno" ; then
602 AC_ETHEREAL_SSL_CHECK
606 dnl UCD SNMP/NET-SNMP Check
609 AC_ARG_WITH(net-snmp,
610 changequote(<<, >>)dnl
611 << --with-net-snmp=PATH use NET-SNMP library, with PATH as the location of the net-snmp-config shell script that comes with the net-snmp package.>>,
613 [netsnmpconfig=$withval]
616 AC_ARG_WITH(ucd-snmp,
617 changequote(<<, >>)dnl
618 << --with-ucd-snmp[=DIR] use UCD SNMP client library (located in directory DIR, if supplied). [default=yes, if present]>>,
621 if test $withval = no
624 elif test $withval = yes
633 # Set "want_ucdsnmp" to "ifpresent" to make the default "use it
634 # if you find it, otherwise don't".
636 want_ucdsnmp=ifpresent
640 dnl try net-snmp first
641 AC_MSG_CHECKING(whether to use NET-SNMP library if available)
642 if test "x$netsnmpconfig" != "xno" ; then
644 dnl get the net-snmp-config binary
645 if test "x$netsnmpconfig" = "xyes" -o "x$netsnmpconfig" = "x" ; then
647 AC_PATH_PROG(NETSNMPCONFIG,net-snmp-config)
649 NETSNMPCONFIG=$netsnmpconfig
650 if test ! -x $NETSNMPCONFIG ; then
651 AC_MSG_ERROR(Invalid net-snmp-config: $NETSNMPCONFIG)
658 if test "x$NETSNMPCONFIG" != "xno" -a "x$NETSNMPCONFIG" != "x" -a -x "$NETSNMPCONFIG" ; then
659 dnl other choices for flags to use here: could also use
660 dnl --prefix or --exec-prefix if you don't want the full list.
662 AC_CHECK_HEADERS(net-snmp/net-snmp-config.h net-snmp/library/default_store.h)
663 if test "x$ac_cv_header_net_snmp_net_snmp_config_h" = "xyes" -a "x$ac_cv_header_net_snmp_library_default_store_h" = "xyes" ; then
664 CFLAGS="$CFLAGS `net-snmp-config --cflags`"
665 CPPFLAGS="$CPPLAGS `net-snmp-config --cflags`"
666 SNMP_LIBS=`net-snmp-config --libs`
667 AC_DEFINE(HAVE_NET_SNMP, 1, [Define to enable support for NET-SNMP])
670 # technically, we should retry ucd-snmp but it's
671 # unlikely they have installed net-snmp-config and not
672 # the net-snmp headers but do have the ucd-snmp
673 # headers. This would likely be a broken system to
674 # try and use anyway.
678 AC_MSG_CHECKING(whether to use UCD SNMP library if available)
679 if test "x$want_ucdsnmp" = "xno" ; then
683 AC_ETHEREAL_UCDSNMP_CHECK
687 if test "x$have_net_snmp" = "xyes" || test "x$have_ucd_snmp" = "xyes"; then
688 AC_DEFINE(HAVE_SOME_SNMP, 1, [Define to if some SNMP support is to be used])
695 AC_MSG_CHECKING(whether to use the GNU ADNS library if available)
696 if test "x$with_adns" = "xno" ; then
700 AC_ETHEREAL_ADNS_CHECK
704 dnl Checks for typedefs, structures, and compiler characteristics.
707 # We need to know whether "struct sockaddr" has an "sa_len" member
708 # for get_interface_list().
710 AC_ETHEREAL_STRUCT_SA_LEN
712 # We must know our byte order
715 # Checks whether "-traditional" is needed when using "ioctl".
716 # XXX - do we need this?
717 AC_PROG_GCC_TRADITIONAL
719 # If there's a system out there that has snprintf and _doesn't_ have vsnprintf,
720 # then this won't work.
723 AC_CHECK_FUNC(snprintf, SNPRINTF_O="",
724 [SNPRINTF_O="snprintf.o"
725 AC_DEFINE(NEED_SNPRINTF_H, 1, [Define if sprintf.h needs to be included])
727 if test "$ac_cv_func_snprintf" = no ; then
728 SNPRINTF_C="snprintf.c"
729 SNPRINTF_O="snprintf.o"
734 AC_CHECK_FUNC(strerror, STRERROR_O="",
735 [STRERROR_O="strerror.o"
736 AC_DEFINE(NEED_STRERROR_H, 1, [Define if strerror.h needs to be included])
738 if test "$ac_cv_func_strerror" = no ; then
739 STRERROR_C="strerror.c"
740 STRERROR_O="strerror.o"
745 AC_CHECK_FUNC(strcasecmp, STRCASECMP_O="",
746 STRCASECMP_O="strcasecmp.o")
747 if test "$ac_cv_func_strcasecmp" = no ; then
748 STRCASECMP_C="strcasecmp.c"
749 STRCASECMP_O="strcasecmp.o"
751 AC_SUBST(STRCASECMP_C)
752 AC_SUBST(STRCASECMP_O)
754 AC_CHECK_FUNC(strncasecmp, STRNCASECMP_O="",
755 STRNCASECMP_O="strncasecmp.o")
756 if test "$ac_cv_func_strncasecmp" = no ; then
757 STRNCASECMP_C="strncasecmp.c"
758 STRNCASECMP_O="strncasecmp.o"
760 AC_SUBST(STRNCASECMP_C)
761 AC_SUBST(STRNCASECMP_O)
763 AC_CHECK_FUNC(mkstemp, MKSTEMP_O="",
764 MKSTEMP_O="mkstemp.o")
765 if test "$ac_cv_func_mkstemp" = no ; then
766 MKSTEMP_C="mkstemp.c"
767 MKSTEMP_O="mkstemp.o"
772 AC_CHECK_FUNC(strptime, STRPTIME_O="",
773 [STRPTIME_O="strptime.o"
774 AC_DEFINE(NEED_STRPTIME_H, 1, [Define if strptime.h needs to be included])
776 if test "$ac_cv_func_strptime" = no ; then
777 STRPTIME_C="strptime.c"
778 STRPTIME_O="strptime.o"
783 AC_CHECK_FUNCS(getprotobynumber gethostbyname2)
785 dnl blank for now, but will be used in future
786 AC_SUBST(ethereal_SUBDIRS)
789 dnl check whether plugins should be enabled and, if they should be,
790 dnl check for plugins directory - stolen from Amanda's configure.in
792 plugindir="$libdir/ethereal/plugins/$VERSION"
794 changequote(<<, >>)dnl
795 << --with-plugins[=DIR] support plugins (installed in DIR, if supplied).>>,
800 if test x$have_plugins = xno
802 AC_MSG_ERROR([GLib on this platform doesn't support loadable modules, so you can't enable plugins.])
809 if test x$have_plugins = xno
811 AC_MSG_ERROR([GLib on this platform doesn't support loadable modules, so you can't enable plugins.])
818 AM_CONDITIONAL(HAVE_PLUGINS, test x$have_plugins = xyes)
819 if test x$have_plugins = xyes
821 AC_DEFINE(HAVE_PLUGINS, 1, [Define if plugins are enabled])
823 test "x$prefix" = xNONE && prefix=$ac_default_prefix
824 test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
825 eval echo "$plugindir"
827 AC_DEFINE_UNQUOTED(PLUGIN_DIR, "$plugindir", [Plugin installation directory])
829 AC_DEFINE(PLUGIN_DIR, NULL, [Plugin installation directory])
835 # Yes, AM_PROG_LIBTOOL is redundant with newer version(s) of some tool(s)
836 # (autoconf? automake? libtool?) - with the newer version(s), it's
837 # just an alias for AC_PROG_LIBTOOL, which is called earlier.
839 # With older version(s) of those tool(s), however, it's not just an
840 # alias, and the configure scripts don't work without it.
843 AC_SUBST(LIBTOOL_DEPS)
845 AM_CONDITIONAL(ENABLE_STATIC, test x$enable_static = xyes)
846 if test x$enable_static = xyes -a x$have_plugins = xyes
848 AC_DEFINE(ENABLE_STATIC, 1, [Link plugins statically into Ethereal])
850 AC_SUBST(ENABLE_STATIC)
852 AM_CONFIG_HEADER(config.h)
853 AC_CONFIG_SUBDIRS(epan wiretap)
859 packaging/nsis/Makefile
860 packaging/rpm/Makefile
861 packaging/rpm/SPECS/Makefile
862 packaging/rpm/SPECS/ethereal.spec
863 packaging/svr4/Makefile
864 packaging/svr4/checkinstall
865 packaging/svr4/pkginfo
868 plugins/artnet/Makefile
869 plugins/asn1/Makefile
870 plugins/docsis/Makefile
871 plugins/enttec/Makefile
872 plugins/giop/Makefile
873 plugins/gryphon/Makefile
874 plugins/lwres/Makefile
875 plugins/megaco/Makefile
876 plugins/mgcp/Makefile
877 plugins/pcli/Makefile
879 plugins/rtnet/Makefile
887 if test "x$enable_setuid_install" = "xyes" ; then
888 setuid_message="yes (DANGEROUS!!!)"
893 if test "x$want_zlib" = "xno" ; then
899 if test "x$want_pcre" = "xno" ; then
905 if test "x$have_good_adns" = "xyes" ; then
911 if test "x$NETSNMPCONFIG" != "xno" -a "x$NETSNMPCONFIG" != "x" -a -x "$NETSNMPCONFIG" ; then
912 snmp_libs_message="yes (net-snmp)"
913 elif test "x$SNMP_LIBS" = "x" ; then
914 snmp_libs_message="no"
916 snmp_libs_message="yes (ucd-snmp)"
920 echo "The Ethereal package has been configured with the following options."
921 echo " Build ethereal : $enable_ethereal"
922 echo " Build tethereal : $enable_tethereal"
923 echo " Build editcap : $enable_editcap"
924 echo " Build mergecap : $enable_mergecap"
925 echo " Build text2pcap : $enable_text2pcap"
926 echo " Build idl2eth : $enable_idl2eth"
927 echo " Build randpkt : $enable_randpkt"
928 echo " Build dftest : $enable_dftest"
930 echo " Install setuid : $setuid_message"
931 echo " Use plugins : $have_plugins"
932 echo " Use GTK+ v2 library : $enable_gtk2"
933 if test "x$enable_gtk2" = "xyes" ; then
934 echo " Use threads : $enable_threads"
935 echo " Build profile binaries : $enable_profile_build"
937 echo " Use pcap library : $want_pcap"
938 echo " Use zlib library : $zlib_message"
939 echo " Use pcre library : $pcre_message"
940 echo " Use GNU ADNS library : $adns_message"
941 echo " Use IPv6 name resolution : $enable_ipv6"
942 echo " Use UCD SNMP/NET-SNMP library : $snmp_libs_message"