summaryrefslogtreecommitdiff
path: root/build/apr_network.m4
Commit message (Collapse)AuthorAgeFilesLines
* Fix further strict C99 compliance issue. (fixes #37)Joe Orton2023-01-111-0/+20
| | | | | | | | PR: 66408 Submitted by: Sam James <sam gentoo.org> git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1906594 13f79535-47bb-0310-9956-ffa450edef68
* Since runtime SCTP detection is dependent on kernel configuration, addJoe Orton2021-10-121-2/+15
| | | | | | | | | | | | | | flags to make SCTP support reliable: * build/apr_network.m4 (APR_CHECK_SCTP): Add --disable-sctp flag to forcibly disable SCTP support, and --enable-sctp to fail configure if is SCTP support is requested but not available. Submitted by: Lubos Uhliarik <luhliari redhat.com>, jorton Github: closes #28 git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1894167 13f79535-47bb-0310-9956-ffa450edef68
* inet_addr requires #include <arpa/inet.h>Jim Jagielski2020-10-291-0/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1882982 13f79535-47bb-0310-9956-ffa450edef68
* calls to exit() require stdlib.h or else we get ↵Jim Jagielski2020-10-291-0/+15
| | | | | | -Werror,-Wimplicit-function-declaration git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1882979 13f79535-47bb-0310-9956-ffa450edef68
* Fix broken test for O_NONBLOCK inheritance.Rainer Jung2013-07-131-0/+5
| | | | | | | | Followup to r1449568 which misses the variable declaration. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1502804 13f79535-47bb-0310-9956-ffa450edef68
* Fix detection of O_NONBLOCK inheritance.Rainer Jung2013-02-251-0/+31
| | | | | | | | The original test failed occasionally on a busy FreeBSD server when accept() returned EAGAIN. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1449568 13f79535-47bb-0310-9956-ffa450edef68
* Fix compile w/ clang and IPv6Philip M. Gollucci2012-01-231-3/+3
| | | | | | | | | Submitted by: Yuri Pankov <yuri.pankov@gmail.com> via freebsd ports/164420 git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1235047 13f79535-47bb-0310-9956-ffa450edef68
* Enable unix domain (AF_UNIX) sockets if supported by the OSMladen Turk2009-02-191-0/+30
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@745763 13f79535-47bb-0310-9956-ffa450edef68
* Fix getservbyname_r() detection.Bojan Smojver2008-06-161-53/+56
| | | | | | Patch by rpluem. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@668315 13f79535-47bb-0310-9956-ffa450edef68
* Fix PR44367.Bojan Smojver2008-05-291-0/+97
| | | | | | | | | | | | Caveats: - no idea if IBM's proprietary OSes actually have thread-safe version of getservbyname() function, just assumed that by looking at other similar functions being marked safe in APR detection code - works on Linux (Fedora 9, i.e. glibc2) Use thread safe versions of getservbyname(). git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@661178 13f79535-47bb-0310-9956-ffa450edef68
* If -Wall is turned on, result of compile tests may be altered.Bojan Smojver2008-05-291-2/+6
| | | | | | | Use the variable to avoid warnings. Trivial style fixes. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@661159 13f79535-47bb-0310-9956-ffa450edef68
* Update license header.Joe Orton2006-08-031-5/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@428313 13f79535-47bb-0310-9956-ffa450edef68
* Move the autoconf check for type 'in_addr' into a macro, and improve it to workJustin Erenkrantz2006-07-121-0/+23
| | | | | | | | | | | | for Windows as well. Originally titled: [patch 11/17] struct in_addr Submitted by: John Mark Vandenberg Reviewed by: Justin Erenkrantz git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@421071 13f79535-47bb-0310-9956-ffa450edef68
* * build/apr_threads.m4, build/apr_common.m4, build/apr_network.m4:Joe Orton2005-12-061-15/+15
| | | | | | | Quote arguments to AC_DEFUN properly. No functional change. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@354452 13f79535-47bb-0310-9956-ffa450edef68
* Allow setting both the TCP_NODELAY and TCP_CORK socket options forJoe Orton2005-08-251-0/+54
| | | | | | | | | | | | | | | | | | | | Linux >=2.6: * build/apr_network.m4 (APR_CHECK_TCP_NODELAY_WITH_CORK): New macro. * configure.in: Use it. * network_io/unix/sockopt.c (apr_socket_opt_set): If HAVE_TCP_NODELAY_WITH_CORK is defined, don't toggle TCP_NODELAY when setting TCP_CORK. * test/testsockopt.c (corkable): Don't test that TCP_NODELAY and TCP_CORK are mutually exclusive; caller shouldn't care. Reviewed by: Justin Erenkrantz git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@240047 13f79535-47bb-0310-9956-ffa450edef68
* * build/apr_network.m4 (APR_CHECK_SCTP): Fix check for SCTP.Joe Orton2005-06-031-1/+8
| | | | | | | | PR: 35021 Submitted by: Lee Begg <llnz paradise.net.nz> git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@179786 13f79535-47bb-0310-9956-ffa450edef68
* Fix HP-UX 11.00 build, where the IP multicast interfaces are notJoe Orton2005-02-151-0/+16
| | | | | | | | | | | | | | | declared if _XOPEN_SOURCE_EXTENDED is defined (which apr_hints.m4 does): * build/apr_network.m4 (APR_CHECK_MCAST): New macro. * configure.in: Use APR_CHECK_MCAST. * network_io/unix/multicast.c: Make implementation conditional on HAVE_STRUCT_IPMREQ. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@153932 13f79535-47bb-0310-9956-ffa450edef68
* * build/*apr*.m4: Add copyright headers.Joe Orton2005-01-131-0/+15
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@125064 13f79535-47bb-0310-9956-ffa450edef68
* * build/apr_network.m4 (APR_CHECK_SCTP): Safer check for SCTP supportJoe Orton2004-06-041-15/+11
| | | | | | | | | | and cleanup macro. PR: 28576 Submitted by: Paul Querna <chip force-elite.com>, Joe Orton git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@65153 13f79535-47bb-0310-9956-ffa450edef68
* Don't assume getnameinfo() can handle IPv4-mapped IPv6 addressesJeff Trawick2004-05-201-74/+0
| | | | | | | | | on any platforms. Submitted by: Jeff Trawick, Joe Orton, Colm MacC�rthaigh <colm@stdlib.net> git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@65103 13f79535-47bb-0310-9956-ffa450edef68
* fix a false failure with APR_CHECK_GETNAMEINFO_IPV4_MAPPED on z/OSJeff Trawick2003-12-231-0/+7
| | | | | | | | | | | - NI_MAXHOST is not defined, so provide fall-back logic (we could just skip NI_MAXHOST altogether, but showing the fallback will remind folks of why we can't just use NI_MAXHOST) - htonl is a macro in arpa/inet.h, so include that header so that the link is successful git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64845 13f79535-47bb-0310-9956-ffa450edef68
* * configure.in, build/apr_network.m4: Remove "RESOLV_RETRANSRETRY"Joe Orton2003-10-011-30/+0
| | | | | | | | | detection: the definition is not used inside APR nor exported outside APR. The BIND resolver can be configured via the RES_OPTIONS environment variable or resolv.conf anyway. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64672 13f79535-47bb-0310-9956-ffa450edef68
* * configure.in, build/apr_network.m4: Remove APR_INADDR_NONEJoe Orton2003-10-011-35/+0
| | | | | | | | | | | | macro. * include/apr.hw, include/apr.hnw, include/apr.h.in: Don't define APR_INADDR_NONE here. * include/apr_network_io.h: Define APR_INADDR_NONE here. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64671 13f79535-47bb-0310-9956-ffa450edef68
* Add comments for the sockaddr_{in6,storage} detection macros.Joe Orton2003-09-291-0/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64668 13f79535-47bb-0310-9956-ffa450edef68
* For platforms which have "struct sockaddr_stroage", allowJoe Orton2003-09-291-0/+20
| | | | | | | | | | | | | | | | | | | apr_sockaddr_t to be extended in the future whilst retaining binary compatibility across builds with and without IPv6 enabled. * build/apr_network.m4 (APR_CHECK_SOCKADDR_STORAGE): New macro. * configure.in: Use it. * include/apr.h.in: Define APR_HAVE_SA_STORAGE. * include/apr_network_io.h: Add a "struct sockaddr_storage" field to the 'sa' union in apr_sockaddr_t. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64666 13f79535-47bb-0310-9956-ffa450edef68
* Make use of the AI_ADDRCONFIG flag conditional (some versions ofJoe Orton2003-09-291-0/+34
| | | | | | | | | | | | | | | glibc 2.1 don't either support it or fail correctly): * build/apr_network.m4 (APR_CHECK_GETADDRINFO_ADDRCONFIG): New macro. * configure.in: Use APR_CHECK_GETADDRINFO_ADDRCONFIG. * network_io/unix/sockaddr.c (call_resolver): Only use the AI_ADDRCONFIG flag if HAVE_GAI_ADDRCONFIG is defined. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64661 13f79535-47bb-0310-9956-ffa450edef68
* Fix copy-and-paste error - that should have been NI_NAMEREQD not NI_NUMERICHOST.Justin Erenkrantz2003-09-111-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64617 13f79535-47bb-0310-9956-ffa450edef68
* Remove APR_CHECK_SOCKADDR_SA_LEN which survived since the firstJoe Orton2003-09-021-31/+0
| | | | | | | addition of IPv6 support to APR without its result being used. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64602 13f79535-47bb-0310-9956-ffa450edef68
* Use correct _len field in APR_CHECK_WORKING_GETNAMEINFO.Joe Orton2003-09-021-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64601 13f79535-47bb-0310-9956-ffa450edef68
* Toss the assert for now.Justin Erenkrantz2003-08-311-1/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64600 13f79535-47bb-0310-9956-ffa450edef68
* Attempt to put this Darwin getnameinfo() sillyness behind us forever. IfJustin Erenkrantz2003-08-311-0/+68
| | | | | | | | | | | | | | | | future releases of Darwin get it 'right', then we'll detect that. Take Jeff's gni_mapped and rewrite it as an autoconf macro, so we can do configure-time detection of this brokenness and stop hardcoding Darwin's inability to do the drop down. Then, take Colm's patch and make it conditional on the autoconf macro above. Submitted by: Colm MacCarthaigh <colm@stdlib.net> and Jeff Trawick Reviewed by: Justin Erenkrantz git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64599 13f79535-47bb-0310-9956-ffa450edef68
* add configure-time detection of issues related to SCTP protocolJeff Trawick2002-10-221-0/+38
| | | | | | | | | | support Submitted by: Randall Stewart <randall@stewart.chicago.il.us>, Jeff Trawick git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63964 13f79535-47bb-0310-9956-ffa450edef68
* don't require that the DNS can map 127.0.0.1 when checkingJeff Trawick2002-04-301-1/+1
| | | | | | | | | for the presence/usability of getnameinfo() PR: 7642 git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63319 13f79535-47bb-0310-9956-ffa450edef68
* for the gethostbyname() path in apr_sockaddr_info_get(), always handleJeff Trawick2002-04-241-47/+0
| | | | | | | | | | | numeric address strings... this solved a weird binary compatibility problem Submitted by: Jon Travis Reviewed by: Jeff Trawick git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63301 13f79535-47bb-0310-9956-ffa450edef68
* Added a test to determine whether the O_NONBLOCK socket flagBrian Pane2002-04-151-0/+113
| | | | | | | | is inherited across an accept(2). (Solaris 8, at least, has this property.) git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63265 13f79535-47bb-0310-9956-ffa450edef68
* Make sure gethostbyname() can handle 255.255.255.255. Otherwise,Jeff Trawick2002-03-241-0/+4
| | | | | | | | | | | we won't trust it to deal with numeric address strings properly and will use our own logic in apr_sockaddr_info_get(). This fixes an assertion failure at Apache startup when using vhosts on HP-UX. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63190 13f79535-47bb-0310-9956-ffa450edef68
* slight apr_sockaddr_info_get() simplification/speed-up:Jeff Trawick2002-03-141-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | in the getaddrinfo() flavor we were needlessly building a string form of the port number to pass to getaddrinfo() so it would put it in the sockaddrs it built... but then we stuffed the port number in the sockaddrs anyway given that we no longer need getaddrinfo() to be able to handle port numbers properly, there is no sense checking for that ability at configure time suddenly we think that AIX 4.3.3.no-fixes has a working getaddrinfo() (it previously failed the pass-the-port-number- to-getaddrinfo check) but that level of AIX doesn't fill in the family field in the sockaddrs built by getaddrinfo()... rather than kludge around it in apr_sockaddr_info_get(), it is better to change the configure test to refuse to use getaddrinfo() on such a system git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63125 13f79535-47bb-0310-9956-ffa450edef68
* make it work on linuxIan Holsman2002-03-111-1/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63102 13f79535-47bb-0310-9956-ffa450edef68
* configure now sets APR_RESOLV_RETRANSRETRY is the dns's timeout/retryIan Holsman2002-03-111-0/+28
| | | | | | | settings can be changed git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63100 13f79535-47bb-0310-9956-ffa450edef68
* don't try to use getaddrinfo() on systems without gai_strerror()Jeff Trawick2001-12-071-1/+9
| | | | | | | this fixes a build error on RedHat 5.2 git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62608 13f79535-47bb-0310-9956-ffa450edef68
* we don't really need langlvl=extended for AIX+xlc, at least withJeff Trawick2001-11-271-2/+5
| | | | | | | this fix to the check for TCP_NODELAY inheritance git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62562 13f79535-47bb-0310-9956-ffa450edef68
* Error codes from getaddrinfo() need their own range within theJeff Trawick2001-08-291-0/+28
| | | | | | | | apr_status_t layout. This is used to fix the bungling of these error codes. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62243 13f79535-47bb-0310-9956-ffa450edef68
* Fix tpyo.Justin Erenkrantz2001-07-311-1/+1
| | | | | | | (Caused getnameinfo to always be defined as present even when it is not.) git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62065 13f79535-47bb-0310-9956-ffa450edef68
* Support the AIX, glibc2, and Solaris variants of gethostby{name|addr}_r.Justin Erenkrantz2001-07-311-0/+63
| | | | | | | | | | | | | | Use gethostbyaddr_r function when available. The AIX gurus will have to test this to make sure I got their prototype right. This compiles on Solaris. Submitted by: Sterling Hughes <sterling@designmultimedia.com> (Modified by Justin) Reviewed by: Justin Erenkrantz git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62063 13f79535-47bb-0310-9956-ffa450edef68
* This changes the TCP_NODELAY test to use the loopback address on BeOSDavid Reid2001-04-271-0/+6
| | | | | | | | | as otherwise the test hangs and eventually fails, giving the impression that configure has hung. Not sure if this should be applied to other platforms as well so the #ifdef's. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61554 13f79535-47bb-0310-9956-ffa450edef68
* Recognize systems where the TCP_NODELAY setting is inherited fromJeff Trawick2001-04-051-0/+105
| | | | | | | | | | | the listening socket, and optimize apr_setsockopt(APR_TCP_NODELAY) accordingly. Also, note a recent change to find getnameinfo() on Tru64 in CHANGES. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61463 13f79535-47bb-0310-9956-ffa450edef68
* Change the getnameinfo check so that it should work on Tru64.David Reid2001-04-051-0/+54
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61462 13f79535-47bb-0310-9956-ffa450edef68
* Define preprocessor options in CPPFLAGS instead of CFLAGSRoy T. Fielding2001-04-031-15/+15
| | | | | | | and avoid adding them over and over again. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61435 13f79535-47bb-0310-9956-ffa450edef68
* Name protected the autoconf macros defined by APR. Moved theRoy T. Fielding2001-02-201-4/+12
| | | | | | | | | | REENTRANCY_FLAGS settings into apr_hints.m4. Inlined the APR_PREPARE_MM_DIR macro because it could only be used once. Removed the unused macros MY_TRY_RUN, MY_TRY_RUN_NATIVE, and AC_USE_FUNCTION. Added some macro comments. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61263 13f79535-47bb-0310-9956-ffa450edef68
* Moved hints.m4, apr_common.m4, and helpers/apr-conf.m4 into theRoy T. Fielding2001-02-171-0/+337
new build directory as apr_hints.m4, apr_common.m4, apr_network.m4, and apr_threads.m4. None of the macro code has changed for this pass -- only the location. More changes to come. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61241 13f79535-47bb-0310-9956-ffa450edef68