Make it possible to disable building with libpcap.
authorjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 30 Aug 2011 11:44:21 +0000 (11:44 +0000)
committerjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 30 Aug 2011 11:44:21 +0000 (11:44 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@38795 f5534014-38df-0310-8fa8-9805f1628bb7

CMakeLists.txt
CMakeOptions.txt

index 09100d7fd1f2d1727dc080fa095900921a97853b..771add6ac7fedaceaf27661cfddb50068d7f8841 100644 (file)
@@ -227,7 +227,7 @@ endif()
 # - set HAVE_XXX
 
 #The minimum package list
-set(PACKAGELIST GLIB2 GMODULE2 PCAP M LEX YACC Perl SH PythonInterp)
+set(PACKAGELIST GLIB2 GMODULE2 M LEX YACC Perl SH PythonInterp)
 set(GLIB2_FIND_REQUIRED)
 set(GLIB2_MIN_VERSION 2.14.0)
 set(PCAP_REQUIRED)
@@ -235,6 +235,10 @@ set(M_REQUIRED)
 
 set(PACKAGELIST ${PACKAGELIST} HtmlViewer)
 
+if(ENABLE_PCAP)
+       set(PACKAGELIST ${PACKAGELIST} PCAP)
+endif()
+
 #Build the gui ?
 if(BUILD_wireshark)
        if(ENABLE_GTK3)
index 57e915d4007e9721f5d7ed1c4c5fc070eceb6524..52a1efa12242494c3e7c253acf364dcf96585aa5 100644 (file)
@@ -19,6 +19,7 @@ option(DISABLE_WERROR    "Do not treat Warnings as errors" OFF)
 option(ENABLE_EXTRA_GCC_CHECKS "Do additional -W checks in GCC (disables -Werror)" OFF)
 option(ENABLE_GTK3       "Use GTK3 instead of GTK2 (does not compile yet)" OFF)
 option(ENABLE_UI_MANAGER "Build GTK UI with the new UI-Manager API" ON)
+option(ENABLE_PCAP       "Enable libpcap support (required for capturing)" ON)
 #
 # Do not make this the default on UN*X; AirPcap support is available
 # only on Windows.  It might be nice to have it, on Windows, check