ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-bugs: [Wireshark-bugs] [Bug 4879] wireshark 1.4.0rc1/rc2: autotools and cmake - buildi

Date: Sun, 3 Oct 2010 15:17:50 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4879

--- Comment #30 from Jose Pedro Oliveira <jpo@xxxxxxxxxxxx> 2010-10-03 15:17:49 PDT ---
(In reply to comment #29)
> ...
> I just committed revision 34356, which by default enables AIRPCAP for configure
> as well. 

I had to specify the 4th parameter ("action-if-not-given") for it to work,
otherwise a plain ./configure wouldn't enable HAVE_AIRPCAP.


----------
$ svn diff configure.in
Index: configure.in
===================================================================
--- configure.in        (revision 34356)
+++ configure.in        (working copy)
@@ -1548,14 +1548,19 @@
 #
 AC_DEFINE(WS_VAR_IMPORT, extern, [Define as the string to precede external
variable declarations in dynamically-linked libraries])

-AC_ARG_ENABLE(airpcap,
+AC_ARG_ENABLE([airpcap],
+[
   AC_HELP_STRING( [--enable-airpcap],
                   [use airpcap in wireshark.  @<:@default=yes@:>@]),
+], [
   enable_airpcap=$enableval
   if test x$enable_airpcap != xno; then
        AC_DEFINE(HAVE_AIRPCAP, 1, [Enable AirPcap])
   fi
-)
+], [
+  enable_airpcap=yes
+  AC_DEFINE(HAVE_AIRPCAP, 1, [Enable AirPcap])
+])
 #
 # Define HAVE_AIRPDCAP
 # We'll want to remove this eventually.
----------


Note: the 4th parameter is also missing from AC_ARG_WITH(python, ...)

-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.