summaryrefslogtreecommitdiff
path: root/configure
Commit message (Collapse)AuthorAgeFilesLines
* We're using int8_t now, so we need to declare it ourselves if the OSguy2002-12-111-37/+75
| | | | header files don't do so for us.
* Get rid of the "-Wno-unused" flag, and fix up most of theguy2002-09-051-1/+1
| | | | | | | | | | | | | | | unused-parameter problems reported by GCC. Add an _U_ tag to label parameters as unused if the function is called through a pointer (so that you can't change its signature by removing parameters) or if there are unused parameters only because the function isn't complete. Add some additional bounds checks the necessity for which was revealed while cleaning up unused-parameter problems. Make some routines static. "lcp_print()", defined in "print-lcp.c", isn't called anywhere - "print-ppp.c" has the code to dissect LCP. Get rid of "print-lcp.c".
* Check for "pcap_version" in libpcap in the configure scripts; apparentlyguy2002-09-051-40/+154
| | | | | | | | | | the libpcap that comes with some platforms doesn't define it. Check for "pcap_debug" and "yydebug" in libpcap in the configure scripts, so that whichever one is present (which might depend on whether libpcap was built with standard YACC or Berkeley YACC/Bison), if any is present, will be used by the "-Y" flag (if none is present, "-Y" won't be supported).
* Add a few more GCC warnings on GCC >= 2 for ".devel" builds.guy2002-09-051-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | From Neil T. Spring: fixes for many of those warnings: addrtoname.c, configure.in: Linux needs netinet/ether.h for ether_ntohost print-*.c: change char *foo = "bar" to const char *foo = "bar" to appease -Wwrite-strings; should affect no run-time behavior. print-*.c: make some variables unsigned. print-bgp.c: plen ('prefix len') is unsigned, no reason to validate by comparing to zero. print-cnfp.c, print-rx.c: use intoa, provided by addrtoname, instead of inet_ntoa. print-domain.c: unsigned int l; (l=foo()) < 0 is guaranteed to be false, so check for (u_int)-1, which represents failure, explicitly. print-isakmp.c: complete initialization of attrmap objects. print-lwres.c: "if(x); print foo;" seemed much more likely to be intended to be "if(x) { print foo; }". print-smb.c: complete initialization of some structures. In addition, add some fixes for the signed vs. unsigned comparison warnings: extract.h: cast the result of the byte-extraction-and-combining, as, at least for the 16-bit version, C's integral promotions will turn "u_int16_t" into "int" if there are other "int"s nearby. print-*.c: make some more variables unsigned, or add casts to an unsigned type of signed values known not to be negative, or add casts to "int" of unsigned values known to fit in an "int", and make other changes needed to handle the aforementioned variables now being unsigned. print-isakmp.c: clean up the handling of error/status indicators in notify messages. print-ppp.c: get rid of a check that an unsigned quantity is >= 0. print-radius.c: clean up some of the bounds checking. print-smb.c: extract the word count into a "u_int" to avoid the aforementioned problems with C's integral promotions. print-snmp.c: change a check that an unsigned variable is >= 0 to a check that it's != 0. Also, fix some formats to use "%u" rather than "%d" for unsigned quantities.
* Check for "pcap_findalldevs()" in libpcap in the configuration script;guy2002-08-031-38/+93
| | | | | | | only use it if we find it. Define DHAVE_PCAP_FINDALLDEVS in the Windows GNU Makefile and project file, as WinPcap has "pcap_findalldevs()".
* Put in some comments about stuff I noticed when trying to get tcpdump toguy2002-08-031-178/+198
| | | | build on Tru64 UNIX 5.1.
* Fix a typo.guy2002-08-021-2/+2
|
* Make static the structure to which the test program checking what to useguy2002-07-131-1/+1
| | | | | for "inlines", so that we don't get tripped up by compilers complaining that we're returning a pointer to an automatic variable.
* Fix up AC_LBL_C_INLINE to put all of the test code into the "inlines"guy2002-07-021-220/+221
| | | | | | | | | | | | section - the other section gets stuck in the middle of "main()", and, although GCC lets you define functions inside functions, other C compilers don't. Pick a name more likely to be unique to use as the iterator variable in AC_LBL_C_INLINE. Make AC_LBL_C_INLINE print "no" rather than "not supported" if inline isn't supported, to match what AC_C_INLINE does.
* Put variables in quotes when testing them in "test" commands, so thatguy2002-06-291-3/+3
| | | | | the test doesn't get a syntax error if the variable isn't set or is set to a null string.
* Some versions of the HP C compiler can handle inlines, but not if theyguy2002-06-281-259/+286
| | | | | | | return a structure pointer. Check whether the C compiler can handle inline functions that return a structure pointer, not whether they can handle inline functions that return an int, as at least some versions of autoconf's AC_C_INLINE do.
* From Kazushi Sugyo <sugyo@pb.jp.nec.com>:guy2002-06-271-3/+3
| | | | | | | | | Here is a patch for draft-ietf-mobileip-ipv6-17. - print-mobility.c: Mobility header(MIPv6 defines a new IPv6 protocol) printing - added Routing header type 2 - ICMPv6 Home Agent Address Discovery and Mobile Prefix Sol., Adv. message update
* regen from configure.in 1.150itojun2002-06-141-1/+1
|
* __ss_len/family is now nonstandard. standards were clarified to useitojun2002-06-111-187/+186
| | | | ss_len/family.
* Regenerate.guy2002-04-251-3/+3
|
* From Maciej W. Rozycki <macro@ds2.pg.gda.pl>:guy2002-04-071-18/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | Here is a patch that addresses a few SSL-related issues noticed: 1. The "/usr" directory is not the best choice to start looking for SSL libraries when cross-compiling. The patch adds "/usr/${host_alias}" at the front. Actually the test is quite bogus anyway -- there might be no libcrypto.a library at all (but e.g. libcrypto.so), so a better approach would be trying to link against -lcrypto and seeing if that works. First with no additional options (it might be in the default compiler/linker's search patch, like on sane systems), then with the -L<dir> option. 2. The "cast.h" and "rc5.h" headers should include the "openssl/" path as that is what is used throughout the code. Right now they are simply not found by configure. 3. The buggy CAST128 test should use a cache variable to permit overriding by an educated user. I think I may actually rewrite the test as described in #1 above one day, but my time is quite limited and tcpdump is not my priority task, so it might not happen soon. I won't mind if someone does it earlier.
* From Maciej W. Rozycki <macro@ds2.pg.gda.pl>:guy2002-04-071-2/+2
| | | | | Due to missing quotes a shell complains about the "while" command missing ("bash: while: command not found").
* From Maciej W. Rozycki <macro@ds2.pg.gda.pl>:guy2002-04-071-162/+210
| | | | | | | | DECnet support currently assumes certain conditions instead of checking for them explicitly. The following code checks if dnet_htoa() is available, possibly in libdnet and also verifies there is no declaration for the function in <netdnet/dnetdb.h> before it decides to provide a substitute.
* From Maciej W. Rozycki <macro@ds2.pg.gda.pl>:guy2002-04-071-177/+185
| | | | | | | An incomplete getaddrinfo bug test may prevent from cross-compiling a working IPv6 support. Caching the test's variable permits a user to override a result if he knows a given stack implementation is fine.
* Enable the SMB dissector by default, now that Bill Fenner's added boundsguy2002-01-171-243/+244
| | | | | checking; however, leave in the "possibly buggy" warning and the option to disable it.
* Replace "target_cpu", "target_os", and AC_CANONICAL_SYSTEM withguy2001-12-101-317/+245
| | | | | "host_cpu", "host_os", and AC_CANONICAL_HOST, as per Maciej W. Rozycki's patch.
* From Maciej W. Rozycki <macro@ds2.pg.gda.pl>: treat all MIPS and SPARCguy2001-11-251-1/+1
| | | | | platforms as always requiring strict alignment, rather than doing configure-time testing with a sample program.
* If the user specified neither "--enable-smb" nor "--disable-smb", printguy2001-10-091-183/+185
| | | | | | | "no" after printing the "Checking whether to enable the possibly-buggy SMB printer" message (as we default to not enabling it), rather than printing nothing and having the next "Checking ..." message show up after it on the same line.
* Regenerate.fenner2001-10-081-236/+259
|
* fixed quoting of [] in m4 filemcr2001-10-081-2/+2
|
* updated configure after aclocal.m4 patches for pcap.hmcr2001-10-081-42/+44
|
* Regenerate.fenner2001-10-081-2/+2
|
* Regenerate.fenner2001-10-081-464/+276
|
* Check in the updated configure script, from the following change toguy2001-10-081-1/+1
| | | | | | | | | | aclocal.m4: revision 1.74 date: 2001/09/14 08:11:33; author: torsten; state: Exp; lines: +2 -2 Added ia64 to the list of systems were unaligned memory accesses fail. In fact they don't fail but generate kernel warnings on Linux and probably performance suffers as well. See also http://bugs.debian.org/112154
* As we're not using "bcmp()" or "bcopy()" in "addrtoname.c", we don'tguy2001-06-281-2/+2
| | | | need to include <strings.h> on some platforms in order to declare them.
* Regenerate.fenner2001-06-281-94/+93
|
* If the platform on which tcpdump is being built has "strings.h", includeguy2001-06-261-2/+2
| | | | it in "addrtoname.c", so that "bcmp()" and "bcopy()" are defined.
* on netbsd mailing list, it was mentioned that the NetBSD byteorder guessingitojun2001-06-241-1/+1
| | | | code needs revisit.
* AC_C_BIGENDIAN is no longer used.itojun2001-06-241-182/+92
|
* Regenerate.fenner2001-04-271-197/+312
|
* correct openssl include pathname management. <openssl/foo.h> should beitojun2001-04-131-18/+14
| | | | used (see openssl docs).
* Patch from Pekka Savola <pekkas@netcore.fi> to get rid of "savestr()"guy2001-01-201-2/+2
| | | | | | | (which doesn't actually seem to be significantly more efficient than "strdup()", at least not to the extent that it makes any difference to "tcpdump"), modified to use the BSD "strdup()", rather than the old "savestr()", on platforms that lack "strdup()".
* Sigh. Not all systems have <netinet/if_ether.h> - for example, at leastguy2001-01-171-2/+2
| | | | | some libc5 Linux systems don't - so we have to check whether it exists, and include it only if it does.
* Regenerate.fenner2001-01-091-2/+2
|
* Patch from Pekka Savola <pekkas@netcore.fi> to keep from dragging in ourguy2001-01-021-3/+3
| | | | | | version of "snprintf()" unless the platform on which we're running lacks "snprintf()" or "vsnprintf()" - if it lacks one of the "asprintf" family of routines, we don't drag it in, as we don't use those routines.
* Regenerate.fenner2000-12-091-37/+94
|
* Eliminate __P().fenner2000-10-241-185/+146
|
* We should no longer need to use our own versions of system header filesguy2000-10-211-45/+37
| | | | | | | | | | | when compiling on Linux, as we extracted from those copies the definitions and declarations we need in order to dissect packets, and put them into our own header files in the regular source directory. We should also no longer need to define __STDC__ as 2 on Digital UNIX, as we're no longer including the native OS's <netinet/ip.h> to get the layout of an IP packet declared, we're using our own "ip.h" header file for that.
* As we no longer use the system's "slip.h" header file, there's no needguy2000-10-091-244/+200
| | | | to check for it.
* regenitojun2000-10-071-253/+152
|
* regenitojun2000-10-071-204/+196
|
* We no longer include <netinet/ip.h>, so we don't need to work aroundguy2000-10-061-185/+213
| | | | | | | | | | | | | Digital UNIX using "ip_vhl" rather than "ip_v" and "ip_hl" bitfields if __STDC__ is defined (we have our own "ip.h", and we don't use bitfields in it). Get rid of HAVE_INET_ATON, HAVE_INET_NTOP, and HAVE_INET_PTON - we don't use them; instead, we supply our own versions of "inet_aton()", "inet_ntop()", and "inet_pton()". (Defining them in "configure.in" caused complaints from "autoreconf".) Check for the "rc5.h" header, as we *do* use HAVE_RC5_H.
* regenitojun2000-10-031-159/+357
|
* regenitojun2000-09-291-2/+2
|
* Add definitions of Ethernet types fromguy2000-09-231-155/+15
| | | | | | | | | | | | | | | | "linux-includes/netinet/if_ether.h" to "ethertype.h". Move other stuff used by dissectors from <netinet/if_ether.h> to "ether.h", along the lines of "fddi.h" and "token.h". Move ARP declarations from BSD include files to "print-arp.c". Remove from dissectors includes of <netinet/if_ether.h>, and add includes of "ethertype.h" and/or "ether.h" as necessary. Get rid of configuration options that test declarations now made in "ether.h" or "print-arp.c", as those declarations are now under our control, not the OS's control.