aboutsummaryrefslogtreecommitdiffstats
path: root/acinclude.m4
AgeCommit message (Collapse)AuthorFilesLines
2012-07-07Use -D_FORTIFY_SOURCE=2 only if the gc optimization level is greater than 0.Bill Meier1-0/+46
Fixes Bug #7449: https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7449 ----- Issue: Building Wireshark with '-O0 -D_FORTIFY_SOURCE=2 ...' fails The warning [error] message: /usr/include/features.h:314:4: error: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Werror=cpp]` A bit of research shows that this warning was added to a recent version of glibc (on at least Fedora). See: http://sourceware.org/bugzilla/show_bug.cgi?id=13979 The warning message occurs if -D_FORTIFY_SOURCE=... is used and the gcc 'optimization level' == 0 (-O0). Unfortunately when building with -O0 this warning message: 1. Causes compiles to fail (if -Werror [stop on warning]) 2. Causes ./configure to fail with an (incorrect) message about the pcap header being older than the libpcap version. svn path=/trunk/; revision=43601
2012-06-25From Tony Trinh:Anders Broman1-2/+2
Update Lua from 5.1 to 5.2 https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7400 svn path=/trunk/; revision=43482
2012-06-25From Tony Trinh:Anders Broman1-17/+26
Update autoconf script to check for Lua 5.2 https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7400 svn path=/trunk/; revision=43480
2012-06-17Whitespace fixJörg Mayer1-1/+1
svn path=/trunk/; revision=43305
2012-06-02If the user tries to save a capture file atop a file that has all itsGuy Harris1-0/+22
write bits turned off or, on 4.4-Lite-based systems, has its "user immutable" bit turned on, ask them if they really want to overwrite the file (as those are both used to say "this file is precious, don't let me easily accidentally trash it") and, if the "user immutable" bit is set, turn it off first so that the move in the "safe save" won't fail. svn path=/trunk/; revision=43006
2012-03-16Fix some comments and some indentation.Guy Harris1-9/+8
svn path=/trunk/; revision=41596
2012-03-16Put -D and -I flags into CPPFLAGS rather than into CFLAGS; that shouldGuy Harris1-79/+52
make them apply to C++ as well as C. That seems to be what the autoconf documentation suggests: - Variable: CFLAGS Debugging and optimization options for the C compiler. If it is not set in the environment when configure runs, the default value is set when you call AC_PROG_CC (or empty if you don't). configure uses this variable when compiling or linking programs to test for C features. If a compiler option affects only the behavior of the preprocessor (e.g., -Dname), it should be put into CPPFLAGS instead. If it affects only the linker (e.g., -Ldirectory), it should be put into LDFLAGS instead. If it affects only the compiler proper, CFLAGS is the natural home for it. If an option affects multiple phases of the compiler, though, matters get tricky. One approach to put such options directly into CC, e.g., CC='gcc -m64'. Another is to put them into both CPPFLAGS and LDFLAGS, but not into CFLAGS. ... - Variable: CPPFLAGS Preprocessor options for the C, C++, Objective C, and Objective C++ preprocessors and compilers. If it is not set in the environment when configure runs, the default value is empty. configure uses this variable when preprocessing or compiling programs to test for C, C++, Objective C, and Objective C++ features. This variable's contents should contain options like -I, -D, and -U that affect only the behavior of the preprocessor. Please see the explanation of CFLAGS for what you can do if an option affects other phases of the compiler as well. svn path=/trunk/; revision=41593
2012-03-16Have AC_WIRESHARK_GCC_CFLAGS_CHECK take an optional second flag toGuy Harris1-16/+74
indicate whether the flag is C-only, C++-only, or for both compilers; pass the appropriate value for C-only flags. Have the "Checking for..." message indicate whether we're adding to CFLAGS, CXXFLAGS, or both. (Yes, the macro should probably be renamed. "GCC" refers to the GNU Compiler Collection, which includes a C++ compiler, although that's also used for compilers that are more-or-less compatible with the ones from the GNU Compiler Collection, such as the clang compilers.) We set -Wformat-security whether or not --enable-extra-gcc-checks was specified, so we don't need to do it again if it was specified. svn path=/trunk/; revision=41586
2011-12-09Referring to pcap_version[] doesn't do what you want on at least someGuy Harris1-18/+0
UN*Xes (Fedora 16 and probably other Linux distributions, probably at least some if not all other ELF-based systems, and perhaps also Mac OS X), and causes problems if pcap_version[] has a different length in the libpcap with which the executable was built and the libpcap with which it's run, so we avoid using it for now. svn path=/trunk/; revision=40138
2011-10-30From Kevin Hildebrand:Anders Broman1-1/+2
Typo in acinclude.m4 breaks Heimdal kerberos builds https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6512 svn path=/trunk/; revision=39677
2011-10-05Add GeoIP IPv6 database support. Tested with GeoIP 1.4.7, but olderGerald Combs1-0/+7
versions *should* be supported. svn path=/trunk/; revision=39280
2011-08-23Remove support for libpcre, we use GRegex in GLib.Stig Bjørlykke1-106/+0
svn path=/trunk/; revision=38683
2011-08-09Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5607 :Jeff Morriss1-1/+1
When testing if we can add things to LDFLAGS, don't set LDFLAGS to CFLAGS if the test determines that the flag cannot be added to LDFLAGS. (Simple typo: LDFLAGS_saved was being set to CFLAGS instead of LDFLAGS.) svn path=/trunk/; revision=38434
2011-06-11Use spaces uniformly in AC_WIRESHARK_PYTHON_CHECK.Guy Harris1-18/+23
If we don't find python-config, set want_python to no, so the end-of-configuration message says we're not using the Python interpreter. Also fix some cases where we were setting want_zlib rather than want_python (cut-and-pasteo). svn path=/trunk/; revision=37654
2011-06-11Do the Python embedding similarly to other "default = yes, if available"Guy Harris1-0/+5
items. Add some quoting to the zlib tests, just in case the argument contains white space. Clean up capitalization of Lua and Python. Link programs that use libwireshark with the Python libraries, and build Epan with the Python cflags. svn path=/trunk/; revision=37652
2011-05-03Don't bother checking for gzgets(), as we don't use it, and don't evenGuy Harris1-80/+54
need to use its presence in zlib as a proxy for "not the crufty old zlib that comes with some versions of X11". Do, however, check for inflatePrime() there, instead, just in case the crufty old zlib that comes with some versions of X11 lack it; this is to prevent the configure script from assuming a shiny new zlib by testing with a non-X11 program, causing the build to fail when you build Wireshark. svn path=/trunk/; revision=36969
2011-04-28After testing for the presence of python-config, fix typo so that we actuallyJeff Morriss1-4/+20
test whether we found it or not. If the user asked for Python support, error out if we find we can't use it. svn path=/trunk/; revision=36924
2011-04-20By default, clang only warns about unknown -W options, it doesn'tGuy Harris1-0/+9
generate an error for them. Force them to be treated as errors, so we correctly test whether an option is supported. svn path=/trunk/; revision=36732
2011-04-20Instead of having GCC and CLANG variables, just haveGuy Harris1-14/+16
ac_supports_gcc_flags and ac_supports_W_linker_passthrough flags, the first of which, for now, we set for GCC and clang, and the latter of which we set for GCC, clang, and xlc (probably true for some other compilers as well). Rename AC_WIRESHARK_GCC_LDFLAGS_CHECK to AC_WIRESHARK_LDFLAGS_CHECK, as it's not checking for anything GCC-specific. (Leave AC_WIRESHARK_GCC_CFLAGS_CHECK unrenamed for now, as the flags we test with it are originally GCC flags that clang also supports for GCC compatibility.) Fix some string-equality tests to use = rather than ==; the former is what the test/[ command uses. Don't turn on "-no-cpp-precomp" for clang - it whines if you do. svn path=/trunk/; revision=36731
2011-04-20First cut at support for clang. We may want to have specific items forGuy Harris1-4/+6
"supports GCC-style -W flags", etc., and may want to improve the check for "is this clang", as well as deciding what other stuff should be done if we have clang as well. clang should, I think, largely be gcc-compatible at the command line. svn path=/trunk/; revision=36729
2010-07-13Add a "-d" flag to dumpcap, to print out the generated code for theGuy Harris1-1/+1
capture filter in human-readable form. (Well, readable by humans who know BPF machine language, at least. :-)) svn path=/trunk/; revision=33509
2010-06-05First check for the new GTK+/OS X integration functions, then the oldGuy Harris1-14/+16
ones; it appears that at least one user's -ligemacintegration has both (see bug 4823), and we should choose the new ones in that case. Also, always set have_ige_mac if we have the functions. Fix tpyoes while we're at it. svn path=/trunk/; revision=33106
2010-05-25From H.sivank: GtkOSXApplication support.Guy Harris1-3/+34
Call the various flavors of OS X integration just "OS X integration", not anything with "IGE" in it - it appears that, in some places, "ige-mac-integration" refers only to the older Carbon-based functions, although the library still appears to be called -ligemacintegration. Update the URLs for the information about the OS X integration libraries. Clean up help message for --with-pcap-remote. Clean up white space a bit. Speaking of white space, it's "Mac OS X", not "MacOS X". svn path=/trunk/; revision=32941
2010-05-09As of release 1.5, MIT Kerberos moved krb5.h to krb5/krb5.h. Check bothStephen Fisher1-2/+4
places. Fix prompted by report on -dev from Jeff Blaine using MIT Kerberos 1.8. svn path=/trunk/; revision=32727
2010-05-06Just check for pcap_create(); it first appeared in libpcap 1.0.0, andGuy Harris1-3/+0
pcap_set_buffer_size() did as well, so there aren't any libpcap releases with pcap_create() but not pcap_set_buffer_size(). Only do one check for pcap_create. svn path=/trunk/; revision=32695
2010-05-06Checking in Stigs changes fromAnders Broman1-0/+3
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=475 BUT not activating the check for pcap_create() pcap_set_buffer_size() This should make it possible to build with support for setting the buffersize if not capturing 802.11 traffic. The code for handling the 'B' option should be OK in any case. svn path=/trunk/; revision=32688
2010-05-06Check for pcap_createAnders Broman1-0/+1
Using pcap create and pcap_activate should make it possible to set the capture buffer size on Linux systems as well as Windows. Help to implement it would be apreciated :-) Ref: http://seclists.org/tcpdump/2009/q3/151 svn path=/trunk/; revision=32687
2010-02-19Don't say "Checking for broken pcap-config" if we don't have aGuy Harris1-8/+10
pcap-config to check for brokenness. svn path=/trunk/; revision=31919
2009-12-11Put in missing comma.Guy Harris1-1/+1
svn path=/trunk/; revision=31241
2009-12-11Add the time zone abbreviation to the result of abs_time_to_str() andGuy Harris1-0/+34
abs_time_secs_to_str(). svn path=/trunk/; revision=31234
2009-08-07- Add an AC macro to test linker flags.Jörg Mayer1-0/+30
- Test whether the linker supports --as-needed and if so, adds it to LDFLAGS svn path=/trunk/; revision=29327
2009-06-08Check for libpcap 1.0's broken pcap-config, which put a space between -LGuy Harris1-0/+26
and its argument - that doesn't work on some platforms (e.g., OS X). svn path=/trunk/; revision=28664
2009-06-08Check for a pcap-config script (as provided by libpcap 1.x) and, if weGuy Harris1-46/+74
find it, use it to determine where to find libpcap and what additional libraries it requires. svn path=/trunk/; revision=28653
2009-06-03Don't reuse lua_dir in a for loop.Stig Bjørlykke1-4/+4
svn path=/trunk/; revision=28625
2009-06-03Fixed setting of LUA_INCLUDES when having extraneous lua heder directory.Stig Bjørlykke1-3/+25
Fixed resetting flags after negative check for Lua. svn path=/trunk/; revision=28624
2009-06-03Only give a failure message if configuring with --with-lua=yes.Stig Bjørlykke1-6/+17
svn path=/trunk/; revision=28623
2009-06-03Added check for extraneous lua header directories, as some systemsStig Bjørlykke1-3/+29
apparently put the headers in a "lua5.1" subdirectory. svn path=/trunk/; revision=28622
2009-06-03Use liblua by default, if available.Stig Bjørlykke1-1/+3
svn path=/trunk/; revision=28621
2009-05-29python binding for wireshark (first commit)Sebastien Tandel1-1/+54
* ability to write dissectors with python for wireshark. documentation (http://wiki.wireshark.org/Python) svn path=/trunk/; revision=28529
2009-03-06From Petr Sumbera (bug 3305):Stig Bjørlykke1-1/+1
Recognize Solaris Kerberos (which is based on MIT Kerberos). svn path=/trunk/; revision=27622
2008-12-23Fix bug #3152 for good.Stephen Fisher1-5/+8
svn path=/trunk/; revision=27092
2008-12-22Fix bug 3152: when searching for igemacintegration manually set GTK_LIBS toJeff Morriss1-1/+14
the found library (AC_SEARCH_LIBS sets the LIBS variable but we really don't want that). svn path=/trunk/; revision=27088
2008-12-21If we don't have any of the pcap_datalink_XXX_to_YYY routines,Guy Harris1-0/+1
substitute our own (I wrote them all, so I can steal them from the BSD-licensed libpcap if I want :-)). This means that linktype_name_to_val() and linktype_val_to_name() are always available, and we don't need to #ifdef use of them. Use pcap_datalink_val_to_description() to get the description for a particular DLT_ value, rather than mapping the DLT_ value to a WTAP_ENCAP_ value and getting the description for the latter. svn path=/trunk/; revision=27074
2008-12-19After checking for ige_mac_menu_set_menu_bar reset CFLAGS and LIBSJeff Morriss1-0/+2
back to what they were before the test (without GTK_LIBS). This prevents tshark (and every other program) from unnecessarily linking against GTK_LIBS. svn path=/trunk/; revision=27056
2008-11-18Require Lua 5.1 for Lua plugin.Balint Reczey1-50/+5
This fixes bug 2510. svn path=/trunk/; revision=26805
2008-10-27Add support for the GeoIP library. Using different database files,Gerald Combs1-0/+30
GeoIP can map IP addresses to Countries, Cities, AS numbers, ISPs, etc. If any library paths are defined AND any database files are found, corresponding columns are added to the endpoint tables in the GUI. To do: - Add columns to the conversation list - Add GeoIP info to "-z conv,..." - Create a default UAT file. svn path=/trunk/; revision=26571
2008-10-26Tweak Mac IGE integration detection so that it can find the functions notStephen Fisher1-4/+5
only in the Gtk+ OS X framework, but also in the separate igemacintegration library. Also add call to ite_mac_menu_set_menu_bar() to synchronize the OS X menu bar with the Gtk menu bar in Wireshark. The Gtk menu bar in Wireshark will remain there. svn path=/trunk/; revision=26560
2008-10-24Add an option to look for the presence of Imendio's Mac OS X integrationGerald Combs1-14/+36
functions in GTK+. svn path=/trunk/; revision=26539
2008-08-08Add support for c-ares to the GNU toolchain.Gerald Combs1-0/+31
svn path=/trunk/; revision=25955
2008-07-04If we have pcap_free_datalinks(), use it. If not, then, on Windows,Guy Harris1-1/+1
just leak the list returned by pcap_list_datalinks(), as there's no guarantee that if you have a library built with one version of the MSVC++ run-time library, and it returns a pointer to allocated data, you can free that data from a program linked with another version of the MSVC++ run-time library. (This is not an issue on UN*X.) This should fix bug 2677. svn path=/trunk/; revision=25668