Yang Tse
8f3f059f33
ares_build.h.dist: enhance non-configure GCC ABI detection logic
...
GCC specific adjustments:
- check __ILP32__ before 32 and 64bit processor architectures in
order to detect ILP32 programming model on 64 bit processors
which, of course, also support LP64 programming model, when using
gcc 4.7 or newer.
- keep 32bit processor architecture checks in order to support gcc
versions older than 4.7 which don't define __ILP32__
- check __LP64__ for gcc 3.3 and newer, while keeping 64bit processor
architecture checks for older versions which don't define __LP64__
12 years ago
Daniel Stenberg
57203b14df
ares.h: there is no ares_free_soa function
12 years ago
Yang Tse
a2881fee6b
Makefile.am: empty AM_LDFLAGS definition for automake 1.7 compatibility
12 years ago
Yang Tse
60cad73007
ares_inet_ntop.3: s/socklen_t/ares_socklen_t
12 years ago
Yang Tse
715b499c79
configure: use XC_LIBTOOL for portability across libtool versions
12 years ago
Yang Tse
f454e82dc7
xc-lt-iface.m4: provide XC_LIBTOOL macro
12 years ago
Yang Tse
320c4eb659
Makefile.am: use AM_CPPFLAGS instead of INCLUDES
12 years ago
Yang Tse
9ed49f3e17
inet_ntop.c: s/socklen_t/ares_socklen_t
12 years ago
Yang Tse
b82874ad6f
inet_ntop.c: s/socklen_t/ares_socklen_t for portability
12 years ago
Daniel Stenberg
ecf6f65b43
ares.h: s/socklen_t/ares_socklen_t for portability
12 years ago
Daniel Stenberg
f4dce2e9f0
ares_inet_ntop.3: 4th argument is socklen_t!
12 years ago
Daniel Stenberg
07bbbd85c3
spell inet correctly!
12 years ago
Daniel Stenberg
cf7ad9758d
ares_inet_pton/ntop: cleanup
...
Make sure that the symbols are always exported and present in c-ares.
Make the headers prefixed with 'ares'.
Removed the inet_ntop.h version as it no longer features any content.
12 years ago
Daniel Stenberg
ee9a1c2457
ares_inet_ntop/ares_inet_pton: added man pages
12 years ago
Gisle Vanem
8d013420a0
curl_setup_once.h: definition of HAVE_CLOSE_S defines sclose() to close_s()
12 years ago
Gisle Vanem
c28e6d98db
config-dos.h: define HAVE_CLOSE_S for MSDOS/Watt-32
12 years ago
Gisle Vanem
e9bca998f9
config-dos.h: define strerror() to strerror_s_() for High-C
12 years ago
Daniel Stenberg
050663271e
ares_get_datatype: removed unused function
...
it was also wrongly named as internal functions require two underscores
12 years ago
Daniel Stenberg
2a3a63ae1f
ares__bitncmp: use two underscores for private functions
...
It used a single one previously making it look like a public one
12 years ago
Daniel Stenberg
9c03cc118c
ares__generate_new_id: moved to ares_query.c
...
... and ares__rc4 is turned into a local static function.
12 years ago
Daniel Stenberg
3217c7eef2
ares__swap_lists: make private and static
...
... since there's only one user, make it static within ares_process.c
12 years ago
Yang Tse
be6e6984b5
Makefile.msvc: add four VS version strings
12 years ago
Daniel Stenberg
df72bed2e3
ares_expand_name.3: clarify how to free the data
12 years ago
Yang Tse
75a8407985
zz40-xc-ovr.m4: fix 'wc' detection - follow-up 2
...
- Fix a pair of single quotes to double quotes.
URL: http://curl.haxx.se/mail/lib-2013-01/0355.html
Reported by: Tor Arntsen
12 years ago
Yang Tse
b6dd41b6ef
zz40-xc-ovr.m4: fix 'wc' detection - follow-up
...
- Take into account that 'wc' may return leading spaces and/or tabs.
- Set initial IFS to space, tab and newline.
12 years ago
Yang Tse
422717ba6f
zz40-xc-ovr.m4: fix 'wc' detection
...
- Take into account that 'wc' may return leading spaces.
- Set internationalization behavior variables.
Tor Arntsen analyzed and reported the issue.
URL: http://curl.haxx.se/mail/lib-2013-01/0351.html
12 years ago
Yang Tse
e03b5288ec
zz40-xc-ovr.m4: check another three basic utilities
12 years ago
Yang Tse
ddc7ab6713
zz40-xc-ovr.m4: 1.0 interface stabilization
...
- Stabilization results in 4 public interface m4 macros:
XC_CONFIGURE_PREAMBLE
XC_CONFIGURE_PREAMBLE_VER_MAJOR
XC_CONFIGURE_PREAMBLE_VER_MINOR
XC_CHECK_PATH_SEPARATOR
- Avoid one level of internal indirection
- Update comments
- Drop XC_OVR_ZZ40 macro
12 years ago
Yang Tse
18b7d9a9f4
zz40-xc-ovr.m4: emit witness message in configure BODY
...
This avoids witness message in output when running configure --help,
while sending the message to config.log for other configure runs.
12 years ago
Yang Tse
e916c68de7
zz40-xc-ovr.m4: truly do version conditional overriding
...
- version conditional overriding
- catch unexpanded XC macros
- fix double words in comments
12 years ago
Yang Tse
0110c7f6ee
zz40-xc-ovr.m4: fix variable assignment of subshell output bashism
...
Tor Arntsen analyzed and reported the issue.
URL: http://curl.haxx.se/mail/lib-2013-01/0306.html
12 years ago
Yang Tse
44635a5ec0
zz40-xc-ovr.m4: reinstate strict AC_REQUIRE macro dependencies
12 years ago
Yang Tse
186c57182e
zz40-xc-ovr.m4: avoid double single-quote usage
12 years ago
Yang Tse
b157f4a0be
zz40-xc-ovr.m4: parentheses balancing of 'case' statements
...
m4 quadrigraph shell comment technique allows proper autoconf
parentheses balancing in shell 'case' statements. The presence
of unbalanced parentheses may otherwise trigger expansion bugs.
12 years ago
Yang Tse
15177a631e
zz40-xc-ovr.m4: internals overhauling
...
- Update comments
- Execute commands in subshells
- Faster path separator check
- Fix missing 'test' command
- Rename private macros
- Minimize AC_REQUIRE usage
12 years ago
Yang Tse
971bdfedb2
zz40-xc-ovr.m4: redirect errors and warnings to stderr
12 years ago
Yang Tse
14e78ad68b
configure: use XC_CONFIGURE_PREAMBLE early checks
...
Some basic checks we make were placed early enough in generated
configure script when using autoconf 2.5X versions. Newer autoconf
versions expand these checks much further into the configure script,
rendering them useless. Using XC_CONFIGURE_PREAMBLE fixes placement
of early intended checks across all our autoconf supported versions.
12 years ago
Yang Tse
b74bcad714
zz40-xc-ovr.m4: provide XC_CONFIGURE_PREAMBLE macro
12 years ago
Yang Tse
037656b2d8
configure: autotools compatibility fixes - step I
...
Fix proper macro expansion order across autotools versions for
C compiler and preprocessor program checks.
12 years ago
Yang Tse
dc6c864108
configure: fix automake 1.13 compatibility
...
Tested with:
buildconf: autoconf version 2.69
buildconf: autom4te version 2.69
buildconf: autoheader version 2.69
buildconf: automake version 1.13.1
buildconf: aclocal version 1.13.1
buildconf: libtool version 2.4
buildconf: GNU m4 version 1.4.16
12 years ago
Yang Tse
4718066ea4
ares_private.h: use again memdebug.h instead of curl_memdebug.h
12 years ago
Yang Tse
a664066899
configure.ac: replace AM_CONFIG_HEADER with AC_CONFIG_HEADERS
...
automake 1.13 errors if AM_CONFIG_HEADER is used in configure script.
12 years ago
Yang Tse
70ac469a0c
cares-override.m4: provide AC_CONFIG_MACRO_DIR definition conditionally
...
Provide a 'traceable' AC_CONFIG_MACRO_DIR definition only when using
an autoconf version that does not provide it, instead of what we were
doing up to now of providing and overriding AC_CONFIG_MACRO_DIR for
all autoconf versions.
12 years ago
Yang Tse
5b5066d6bc
ares_private.h: use curl_memdebug.h instead of memdebug.h
12 years ago
Yang Tse
a056480169
vc6cares.dsp: add ares_create_query.c and ares_parse_soa_reply.c
12 years ago
Yang Tse
b214c21cf6
cares-functions.m4: improve gethostname arg 2 data type check
12 years ago
Yang Tse
c220b29b3c
setup_once.h: HP-UX specific 'bool', 'false' and 'true' definitions.
...
Also reverts commit bceb40095a
12 years ago
Yang Tse
84eb2dc220
configure: check if compiler halts on function prototype mismatch
12 years ago
Yang Tse
9da14a847f
cares-functions.m4: add gethostname arg 2 data type check and definition
12 years ago
Yang Tse
a28e44c344
cares-functions.m4: update thread-safeness detection of getaddrinfo()
...
Take in account that POSIX standard Issue 7 drops h_errno support. Now, we also
consider getaddrinfo() to be thread-safe when (_POSIX_C_SOURCE >= 200809L) or
(_XOPEN_SOURCE >= 700) independently of whether h_errno exists or not.
Take in account that h_errno might be a modifiable lvalue not defined as
a C preprocessor macro.
12 years ago