sensitivity of packet range options fine tuning:
[obnox/wireshark/wip.git] / configure.in
index 05c8d07c078320758a92ad1c8684d79d358c496f..8d3ed407dcf195cdbc054b524e37706398bd1e3d 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: configure.in,v 1.225 2003/10/10 10:12:18 guy Exp $
+# $Id: configure.in,v 1.235 2003/12/10 21:50:04 gerald Exp $
 dnl
 dnl Process this file with autoconf 2.13 or later to produce a
 dnl configure script; 2.12 doesn't generate a "configure" script that
@@ -17,7 +17,7 @@ dnl Check for CPU / vendor / OS
 AC_CANONICAL_HOST
 AC_CANONICAL_TARGET
 
-AM_INIT_AUTOMAKE(ethereal, 0.9.15)
+AM_INIT_AUTOMAKE(ethereal, 0.10.0)
 
 dnl Checks for programs.
 AC_PROG_CC
@@ -31,6 +31,13 @@ AC_PROG_YACC
 AM_PROG_LEX
 AC_PATH_PROG(PERL, perl)
 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(LEX, flex)
 AC_PATH_PROG(PYTHON, python)
 
@@ -229,6 +236,22 @@ AC_ARG_ENABLE(threads,
 [  --enable-threads        use threads in ethereal.  [default=no]],enable_threads=$enableval,enable_threads=no)
 AM_CONDITIONAL(USE_THREADS, test x$enable_threads = xyes)
 
+AC_ARG_ENABLE(profile-build,
+[  --enable-profile-build  build profile-ready binaries.  [default=no]],enable_profile_build=$enableval,enable_profile_build=no)
+AM_CONDITIONAL(USE_PROFILE_BUILD, test x$enable_profile_build = xyes)
+AC_MSG_CHECKING(if profile builds must be generated)
+if test "x$enable_profile_build" = "xyes" ; then
+       if test -n "$GCC" ; then
+               AC_MSG_RESULT(yes)
+               CFLAGS=" -pg $CFLAGS"
+       else
+               AC_MSG_RESULT(no)
+               echo "Building profile binaries currently only supported for GCC."
+       fi
+else
+       AC_MSG_RESULT(no)
+fi
+       
 # GTK checks
 # We don't add $GLIB_LIBS to LIBS, because we don't want to force all
 # programs to be built with GTK+.
@@ -264,7 +287,7 @@ if test "$GTK_OK" = "no" ; then
                AM_PATH_GLIB(1.2.0, CFLAGS="$CFLAGS $GLIB_CFLAGS", AC_MSG_ERROR(GLib distribution not found.), gmodule)
        fi
 else
-       ethereal_bin="ethereal"
+       ethereal_bin="ethereal\$(EXEEXT)"
        ethereal_man="ethereal.1"
         ethereal_SUBDIRS="gtk"
        # Honor GLIB_CFLAGS
@@ -322,7 +345,7 @@ AC_ARG_ENABLE(tethereal,
 [  --enable-tethereal      build tethereal.  [default=yes]],tethereal=$enableval,enable_tethereal=yes)
 
 if test "x$enable_tethereal" = "xyes" ; then
-       tethereal_bin="tethereal"
+       tethereal_bin="tethereal\$(EXEEXT)"
        tethereal_man="tethereal.1"
        etherealfilter_man="ethereal-filter.4"
 else
@@ -341,7 +364,7 @@ AC_ARG_ENABLE(editcap,
 [  --enable-editcap        build editcap.  [default=yes]],enable_editcap=$enableval,enable_editcap=yes)
 
 if test "x$enable_editcap" = "xyes" ; then
-       editcap_bin="editcap"
+       editcap_bin="editcap\$(EXEEXT)"
        editcap_man="editcap.1"
 else
        editcap_bin=""
@@ -357,7 +380,7 @@ AC_ARG_ENABLE(mergecap,
 [  --enable-mergecap       build mergecap.  [default=yes]],enable_mergecap=$enableval,enable_mergecap=yes)
 
 if test "x$enable_mergecap" = "xyes" ; then
-       mergecap_bin="mergecap"
+       mergecap_bin="mergecap\$(EXEEXT)"
        mergecap_man="mergecap.1"
 else
        mergecap_bin=""
@@ -373,7 +396,7 @@ AC_ARG_ENABLE(text2pcap,
 [  --enable-text2pcap      build text2pcap.  [default=yes]],text2pcap=$enableval,enable_text2pcap=yes)
 
 if test "x$enable_text2pcap" = "xyes" ; then
-       text2pcap_bin="text2pcap"
+       text2pcap_bin="text2pcap\$(EXEEXT)"
        text2pcap_man="text2pcap.1"
 else
        text2pcap_bin=""
@@ -404,7 +427,7 @@ AC_ARG_ENABLE(dftest,
 [  --enable-dftest         build dftest.  [default=no]],enable_dftest=$enableval,enable_dftest=no)
 
 if test "x$enable_dftest" = "xyes" ; then
-       dftest_bin="dftest"
+       dftest_bin="dftest\$(EXEEXT)"
 else
        dftest_bin=""
 fi
@@ -417,7 +440,7 @@ AC_ARG_ENABLE(randpkt,
 [  --enable-randpkt        build randpkt.  [default=no]],enable_randpkt=$enableval,enable_randpkt=no)
 
 if test "x$enable_randpkt" = "xyes" ; then
-       randpkt_bin="randpkt"
+       randpkt_bin="randpkt\$(EXEEXT)"
 else
        randpkt_bin=""
 fi
@@ -497,6 +520,42 @@ else
 fi
 
 
+dnl pcre check
+AC_MSG_CHECKING(whether to use libpcre for regular expressions in dfilters)
+
+AC_ARG_WITH(pcre,
+changequote(<<, >>)dnl
+<<  --with-pcre[=DIR]       use libpcre (located in directory DIR, if supplied) to use in dfilter regular expressions.  [default=yes, if present]>>,
+changequote([, ])dnl
+[
+       if test $withval = no
+       then
+               want_pcre=no
+       elif test $withval = yes
+       then
+               want_pcre=yes
+       else
+               want_pcre=yes
+               pcre_dir=$withval
+       fi
+],[
+       #
+       # Use libpcre if it's present, otherwise don't.
+       #
+       want_pcre=ifpresent
+       pcre_dir=
+])
+if test "x$want_pcre" = "xno" ; then
+        AC_MSG_RESULT(no)
+else
+        AC_MSG_RESULT(yes)
+        AC_ETHEREAL_LIBPCRE_CHECK
+       if test "x$want_pcre" = "xno" ; then
+               AC_MSG_RESULT(libpcre not found - disabling support for perl compatible regular expressions in dfilters)
+       fi
+fi
+
+
 dnl ipv6 check
 AC_ARG_ENABLE(ipv6,
 [  --enable-ipv6           use ipv6 name resolution, if available.  [default=yes]],enable_ipv6=$enableval,enable_ipv6=yes)
@@ -805,14 +864,18 @@ AC_OUTPUT(
   packaging/svr4/checkinstall
   packaging/svr4/pkginfo
   plugins/Makefile
+  plugins/acn/Makefile
   plugins/artnet/Makefile
+  plugins/asn1/Makefile
   plugins/docsis/Makefile
+  plugins/enttec/Makefile
   plugins/giop/Makefile
   plugins/gryphon/Makefile
   plugins/lwres/Makefile
   plugins/megaco/Makefile
   plugins/mgcp/Makefile
   plugins/pcli/Makefile
+  plugins/rdm/Makefile
   plugins/rtnet/Makefile
   tools/Makefile
   tools/lemon/Makefile
@@ -833,6 +896,12 @@ else
        zlib_message="yes"
 fi
 
+if test "x$want_pcre" = "xno" ; then
+       pcre_message="no"
+else
+       pcre_message="yes"
+fi
+
 if test "x$have_good_adns" = "xyes" ; then
        adns_message="yes"
 else
@@ -863,9 +932,11 @@ echo "                       Use plugins : $have_plugins"
 echo "               Use GTK+ v2 library : $enable_gtk2"
 if test "x$enable_gtk2" = "xyes" ; then
 echo "                       Use threads : $enable_threads"
+echo "            Build profile binaries : $enable_profile_build"
 fi
 echo "                  Use pcap library : $want_pcap"
 echo "                  Use zlib library : $zlib_message"
+echo "                  Use pcre library : $pcre_message"
 echo "              Use GNU ADNS library : $adns_message"
 echo "          Use IPv6 name resolution : $enable_ipv6"
 echo "     Use UCD SNMP/NET-SNMP library : $snmp_libs_message"