aboutsummaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
AgeCommit message (Collapse)AuthorFilesLines
2015-02-06Remove gethostbyaddr and gethostbyaddr2.Gerald Combs1-1/+1
They've been deprecated for a very long time. Replace them with getaddrinfo. Note that we might not want to do synchronous name resolution at all. Add HAVE_GETADDRINFO to the KfW win-mac.h collision list. Change-Id: If59ce8a038776eadd6cd1794ed0e2dad8bf8a22c Reviewed-on: https://code.wireshark.org/review/6958 Reviewed-by: Gerald Combs <gerald@wireshark.org> Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
2015-01-05Suppress the check for ' as a formatting character on Windows.Guy Harris1-1/+5
Change-Id: I006359faeeeb5d01ecdb57878c599c5e8a93a77f Reviewed-on: https://code.wireshark.org/review/6319 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2015-01-05In CMake, check for thousands-grouping support in the GLib printf routines.Guy Harris1-0/+31
We do that with the autotools; do it with CMake as well. We could, in theory, handle thosands-grouping ourselves, on all platforms supporting ANSI C (for which read "all platforms we care about") by using localeconv()'s thousands_sep and grouping items, but that's a bit more work. Fix autotools' comment for that item while we're at it (it checks the GLib printf routines, not the system printf routines). Change-Id: I000f0f3b955d9b192ade15e3fabc46d6b48a052e Reviewed-on: https://code.wireshark.org/review/6317 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2015-01-05Don't check for nl80211 stuff if we don't have libnl.Guy Harris1-25/+31
While we're at it, do the checks in the same order that we do in autotools. Change-Id: Ie253cdeb740a5be4a5817ce4f7ed683aeea868c8 Reviewed-on: https://code.wireshark.org/review/6316 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2015-01-05Add a check for NL80211_PROTOCOL_FEATURE_SPLIT_WIPHY_DUMP.Guy Harris1-1/+7
Just as we check for it in autotools, check for it in CMake. Change-Id: I342a3fcde6a5f8190dac67260f25c070b6f5430f Reviewed-on: https://code.wireshark.org/review/6314 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2014-12-27Check for optreset in CMake as well.Guy Harris1-0/+7
Change-Id: I74aae1d68f48702b0cd1289cdafdfff8d817b5f4 Reviewed-on: https://code.wireshark.org/review/6068 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2014-12-25Check for getopt_long(), not getopt().Guy Harris1-1/+1
We support three types of platforms: 1) UN*Xes that have both getopt() and getopt_long(); 2) UN*Xes that have getopt() but not getopt_long(); 3) Windows, which has neither. Checking for getopt_long() lets us distinguish between 1) and 2) and build getopt_long() for them. Change-Id: Iaf0f142f9bebaa2eed2128d544ec9786711def45 Reviewed-on: https://code.wireshark.org/review/6045 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2014-12-23Cmake: check for popcount, and build it from wsutil/popcount.c if missing.Guy Harris1-0/+1
Change-Id: Id646a9f0b1fc6acafa99a78725e3f0ec8a48c170 Reviewed-on: https://code.wireshark.org/review/6006 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2014-12-20Fix typo.Guy Harris1-10/+1
One position off on the keyboard and everything falls apart. Change-Id: I00909ca3344642d3eeaae0d8563403b56cc62f79 Reviewed-on: https://code.wireshark.org/review/5912 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2014-12-20When checking for floorl(), include math.h.Guy Harris1-2/+6
It's not being found with MSVC, but is apparently present; perhaps math.h does something magic, e.g. defining it as a macro, so try using check_symbol_exists with "math.h". Change-Id: Idaecac641fb0b87d399807d8bf1fcb74e7251a4e Reviewed-on: https://code.wireshark.org/review/5911 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2014-12-20Add a check for floorl().Guy Harris1-0/+1
Also, we don't use NEED_STRPTIME_H, we use HAVE_STRPTIME. Change-Id: I330e8ce408c05b74c50f3369691283e35e68505c Reviewed-on: https://code.wireshark.org/review/5910 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2014-11-10Allow building under OSX Yosemite using cmake.David Ameiss1-0/+6
CFPropertyListCreateFromStream() has been deprecated in Yosemite, in favor of CFPropertyListCreateWithStream(). The autotools build checks for the existence of the new function, but the cmake build does not. So, add a check for it to CMakeLists.txt, and update cmakeconfig.h.in to provide the "template" for HAVE_CFPROPERTYLISTCREATEWITHSTREAM. Change-Id: I1a4e3e1ce83092ecf7725527b921eeca80b18d4b Note: CFPropertyListCreateWithStream() works under Mavericks as well. Reviewed-on: https://code.wireshark.org/review/5226 Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org> Tested-by: Stig Bjørlykke <stig@bjorlykke.org>
2014-10-30Remove the optional strncasecmp.{h,c} target (for systems that don't have ↵Jeff Morriss1-11/+0
that API). strncasecmp() has been prohibited for years (in favor of the g_ascii_ version). Change-Id: I64b7c29099b1c5240757e2026fe3490096a84755 Reviewed-on: https://code.wireshark.org/review/4980 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Jeff Morriss <jeff.morriss.ws@gmail.com>
2014-07-06Clean up handling of missing functions.Guy Harris1-1/+13
With autotools, CMake, and nmake, if we have a function, #define HAVE_{function_name_in_all_caps}, otherwise don't #define it. If we provide our own version of a function in libwsutil, make sure we have a header that declares it, and *ONLY* include that header if HAVE_{function_name_in_all_caps} is *NOT* defined, so that we don't have the system declaration and our declaration colliding. Check for inet_aton, strncasecmp, and strptime with CMake, just as we do with autotools. Simplify the addition of {function_name_in_all_caps}_LO to libwsutil in autotools. Change-Id: Id5be5c73f79f81919a3a865324e400eca7b88889 Reviewed-on: https://code.wireshark.org/review/2903 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2014-03-31Continue to remove $Id$ from top of fileAlexis La Goutte1-2/+0
(Using sed : sed -i '/^\# \$Id\$/,+1 d') (start with dash) Change-Id: Ia4b5a6c2302f6a531f6a86c1ec3a2f8205c8c2dd Reviewed-on: https://code.wireshark.org/review/881 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2013-10-11We don't need to check for lauxlib.h.Guy Harris1-1/+0
svn path=/trunk/; revision=52536
2013-10-11Check for sa_len in struct sockaddr.Guy Harris1-2/+3
svn path=/trunk/; revision=52534
2013-10-11Note that dladdr() isn't being found on OS X, even though it'sGuy Harris1-0/+9
available. svn path=/trunk/; revision=52524
2013-10-10Move the QT_MACEXTRAS_LIB cmakedefine in cmakeconfig.h.in to theGuy Harris1-1/+4
equivalent location in config.h.in, to simplify comparing the two files. Add some tests from the autoconf script to CMake: check for setresgid() and setresuid(); check for struct stat having an st_flags member. Get rid of INTTYPES_H_DEFINES_FORMATS; we don't appear to check for it, and we don't use it (we're using GLib's formatting functions, which have their own way of handling 64-bit integers). Get rid of STDC_HEADERS; it's in autoconf because autoconf was originally developed back when you couldn't rely in ANSI C and has never been removed, and something we're using for other purposes checks for it, not because we explicitly test for it, but we don't test it in the code, and CMake doesn't even check for it. svn path=/trunk/; revision=52522
2013-10-06Set some values for Windows manually where autodetectionJörg Mayer1-4/+8
does not yet work. svn path=/trunk/; revision=52406
2013-10-05Invert NEED_INET_ATON_H to HAVE_INET_ATON_HJörg Mayer1-4/+1
Remove unused NEED_G_ASCII_STRTOULL_H svn path=/trunk/; revision=52385
2013-08-13Implement in cmake:Jörg Mayer1-0/+7
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=51322 > User: guy > Date: 2013/08/12 01:01 PM > > Log: > Just check whether dladdr() is available; we check in the code whether > it succeeds, so there's no point in checking whether it succeeds in a > sample program. svn path=/trunk/; revision=51334
2013-07-16set HAVE_GETOPT_H and HAVE_GETOPT variablesMartin Kaiser1-0/+1
for both autotools and cmake builds (in order to use getopt_long(), we have to check if we can include getopt.h) svn path=/trunk/; revision=50680
2013-04-19Add HAVE_TM_ZONE and HAVE_TZNAME detection to fix timezone displayJörg Mayer1-2/+6
in cmake builds. svn path=/trunk/; revision=48932
2012-09-10Copy over HAVE_NL80211 from autofooJörg Mayer1-1/+11
svn path=/trunk/; revision=44853
2012-09-10Make the check for NL80211_CMD_SET_CHANNEL work by copyingJörg Mayer1-3/+14
the logic of the autofoo test. Using Cmake's check_symbol_exists is not an option as it will not work for enums and types. As this is documented in the manpage this is to be considered a feature and not a bug. svn path=/trunk/; revision=44851
2012-09-06Get netlink detection working with cmake (not complete)Jörg Mayer1-0/+5
svn path=/trunk/; revision=44791
2012-06-28Update Free Software Foundation address.Jakub Zawadzki1-1/+1
(COPYING will be updated in next commit) svn path=/trunk/; revision=43536
2011-08-09Copy over the commit 38437 to cmake.Jörg Mayer1-1/+1
svn path=/trunk/; revision=38438
2011-08-06Set svn:keywords and svn:eol-style. Fix the EOL style.Guy Harris1-54/+77
Add the copyright comment and give it an SVN ID. svn path=/trunk/; revision=38381
2011-06-28Replace all strerror() with g_strerror().Stig Bjørlykke1-1/+0
Remove our local strerror implementation. Mark strerror as locale unsafe API. This fixes bug 5715. svn path=/trunk/; revision=37812
2009-10-06Invert check for getopt: NEED_GETOPT_H -> HAVE_GETOPT_HStig Bjørlykke1-3/+2
Rename getopt.[ch] -> wsgetopt.[ch] to avoid name collision. svn path=/trunk/; revision=30370
2009-09-12Make building with GeoIP, Python, Capabilities and c-aresJörg Mayer1-0/+3
actually work. svn path=/trunk/; revision=29870
2009-09-01Check for mkdtemp()Kovarththanan Rajaratnam1-0/+1
svn path=/trunk/; revision=29659
2009-08-31Add check for HAVE_MKSTEMP to make build work again onJörg Mayer1-0/+1
platforms that know about mkstemp(). svn path=/trunk/; revision=29645
2009-08-30Add a couple of Windows header filesKovarththanan Rajaratnam1-0/+4
svn path=/trunk/; revision=29630
2009-08-27Add ConfigureChecks.cmakeKovarththanan Rajaratnam1-0/+47
svn path=/trunk/; revision=29586