1
0
mirror of https://frontier.innolan.net/rainlance/c-ares.git synced 2025-10-06 19:59:41 +00:00
Commit Graph

211 Commits

Author SHA1 Message Date
10a1b7d509 configure: acknowledge --disable-tests
Fixes #44
2016-02-19 11:51:32 +01:00
63909b59a0 configure: only run configure in test when NOT cross-compiling
... as the tests won't run cross-compiled anyway
2016-02-13 11:40:00 +01:00
f4fe7371fb configure: run configure in 'test' too
Having the test dir completely stand-alone causes too many issues for
users and devs. It still needs to be built specifically.
2016-02-13 10:58:51 +01:00
18eeb34989 configure: build silently by default 2016-02-13 10:57:38 +01:00
1b6905cc7f build: Add a code coverage option
Configure with:
  ./configure --enable-code-coverage
Show coverage output with:
  make code-coverage-capture

Built on m4/ax_code_coverage.m4 from the GNU autoconf archive
to provide the macros to check for presence of gcov + lcov;
upstream macro modified to:
 - Remove use of $(AM_DEFAULT_VERBOSITY) , as earlier versions of
   autoconf (such as the one used by default on Travis) do not have this.
 - Rather than automatically defining CODE_COVERAGE_RULES to be a set
   of makefile rules that use ifeq/endif (which is GNU make-specific),
   instead only define CODE_COVERAGE_RULES if coverages is turned on,
   and in that case don't use conditionals in the makefile.
2016-02-02 10:13:46 +00:00
d493e9b17c api: Add option to expose some internal functions
Purely for testing, add --enable-expose-statics option to configure
which converts some static internal functions to be externally visible.
2016-02-02 10:05:07 +00:00
affc63cba8 Use libresolv to initialize cares on iPhone targets
On iPhone targets like iOS, watchOS or tvOS the file
/etc/resolv.conf cannot be used to configure cares.

Instead the resolver library is queried for configuration
values.

CC: Yury Kirpichev <ykirpichev@yandex-team.ru>
2016-01-17 16:45:04 +00:00
f19387dd72 nowarn: use <limits.h> instead of configure for size of long
This makes the header file much more multi-arch friendly and can be used
as-is with both 32 bit and 64 bit builds.
2013-08-27 13:36:41 +02:00
68b3c67e61 configure: fix 'subdir-objects' distclean related issue
See XC_AMEND_DISTCLEAN comments for details.
2013-07-18 04:20:31 +02:00
d69ae9c6f8 configure: automake 1.14 compatibility tweak (use XC_AUTOMAKE) 2013-07-09 00:10:38 +02:00
127d4cb357 ares.h: stricter CARES_EXTERN linkage decorations logic
No API change involved.
2013-03-10 21:28:35 +01:00
715b499c79 configure: use XC_LIBTOOL for portability across libtool versions 2013-03-08 13:22:33 +01:00
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
2013-01-28 21:28:42 +01:00
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.
2013-01-23 18:20:33 +01:00
037656b2d8 configure: autotools compatibility fixes - step I
Fix proper macro expansion order across autotools versions for
C compiler and preprocessor program checks.
2013-01-23 16:44:25 +01:00
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
2013-01-23 16:16:13 +01:00
a664066899 configure.ac: replace AM_CONFIG_HEADER with AC_CONFIG_HEADERS
automake 1.13 errors if AM_CONFIG_HEADER is used in configure script.
2013-01-01 19:27:30 +01:00
84eb2dc220 configure: check if compiler halts on function prototype mismatch 2012-12-16 18:50:58 +01:00
1972aad19e Fix libcares.pc generation for static MingW* cross builds 2012-05-25 23:59:28 +02:00
41191cdd54 configure: Windows cross-compilation fixes
CARES_BUILDING_LIBRARY and CARES_STATICLIB no longer defined in ares_config.h,
configure will generate appropriate conditionals so that mentioned symbols
get defined and used in Makefile derived from Makefile.am at compilation time.
2012-04-17 13:29:58 +02:00
f1a1df1e6c configure: libtool 1.5 tweaks 2011-12-20 14:02:57 +01:00
14eb79f660 warnings: fix some 'conversion may lose significant bits' compiler warnings 2011-08-20 23:05:14 +02:00
88d314548e configure: avoid direct usage of AS_TR_* macros 2011-06-17 21:01:40 +02:00
ce03c818f4 Revert "Do not use sized constants in public headers"
This reverts commit 22c01e96f7.

This is a Red Hat specific patch that does not belong into upstream
2011-06-15 10:55:29 +02:00
22c01e96f7 Do not use sized constants in public headers 2011-06-14 16:41:29 +02:00
e49ce8f973 configure: fix libtool warning
Recent versions of libtool are now tracing usage of AC_CONFIG_MACRO_DIR
macro and warn heavily when not used in configure script along with
ACLOCAL_AMFLAGS in Makefile.am.  So in order to make libtool happy
while keeping backwards compatibility this is added.
2011-03-25 13:13:55 +01:00
822fd0f877 build: use getenv() replacement function for systems which lack it 2011-03-23 13:44:42 +01:00
cd753ffe14 configure: r-enable temporarily disabled detection of system's inet_ntop()
Detection was temporarily disabled in commit 674e044ccb
2011-03-22 12:56:30 +01:00
1bd524dd4a configure: stop using the deprecated AM_INIT_AUTOMAKE syntax 2011-03-15 11:29:12 +01:00
766a5aaf86 configure: fix a bashism 2010-12-19 23:20:58 +01:00
674e044ccb configure: temporarily disable detection of system's inet_ntop()
This is done to allow compilation of ares_inet_ntop() by some daily
builds picky compilers that otherwise do not need this function.
2010-12-16 21:47:19 +01:00
623f3cb531 configure: inet_net_pton function check adjustments
Define HAVE_INET_NET_PTON only when system's inet_net_pton function is IPv6
capable and is not affected by the WLB-2008080064 advisory.

HAVE_INET_NET_PTON_IPV6 is no longer defined nor used.
2010-12-15 02:22:04 +01:00
e3813e6d24 configure: fix autoconf warning 2010-11-25 03:07:29 +01:00
0b504d7065 configure: fix autoconf 2.68 warning: no AC_LANG_SOURCE call detected in body 2010-11-13 04:15:16 +01:00
747981be8e Revert following commits:
07bc7ea795
  3392a50ea3
  9912637d32

The purpose of the whole patch was to silence a compiler warning triggered
with GCC 4 on file ares_process.c  The specific compiler warning was
'dereferencing type-punned pointer might break strict-aliasing rules'.

A simpler patch will follow to equally silence the warning.
2010-11-12 18:53:58 +01:00
9912637d32 sock-addr-storage: Detect and deal with lack of .ss_family member.
AIX, at least, does not have sockaddr_storage.ss_family member.
Detect this in the configure logic and use proper #ifdefs in the
ares_process logic.

Signed-off-by: Ben Greear <greearb@candelatech.com>
Tested-by: Tor Arntsen <tor@spacetec.no>
2010-08-04 07:42:01 -07:00
45557a138e build: Enable compiling with -Werror.
This helps find compile warnings because they simply break
the build.

To use:
./configure --enable-warnings --enable-werror

Signed-off-by: Ben Greear <greearb@candelatech.com>
2010-07-29 23:43:02 -07:00
4bc98ca85c When using icc, compile with -fpic and link with intel dynamic libraries. 2009-11-24 16:12:23 +00:00
17e6785e05 Make configure remove the ares_build.h file included in distribution tarballs. 2009-11-22 05:31:31 +00:00
61e686b65f Add check for assert.h header file 2009-11-16 01:55:48 +00:00
3bf689197b Remove enable-thread / disable-thread configure option. These were only placebo
options. The library is always built as thread safe as possible on every system.
2009-11-15 02:45:24 +00:00
e43ac04a1f Refactor how preprocessor symbol _THREAD_SAFE definition is done. 2009-11-14 18:51:37 +00:00
f77839ed17 Symbol hiding configure options renamed to the hopefully less ambiguous
--enable-symbol-hiding and --disable-symbol-hiding as well as related
macro names and some internal variables used for them.

Related configuration file preprocessor symbols named to
CARES_SYMBOL_HIDING and CARES_SYMBOL_SCOPE_EXTERN.
2009-10-31 04:16:40 +00:00
de18bf7562 External API function linkage decoration adjustment 2009-10-29 01:02:54 +00:00
9cac6a4625 Initial step towards the ability to reduce c-ares exported symbols
based on the 'visibility' attribute for GNUC and __global for Sun
compilers, taking also in account __declspec function decoration
for Win32 and Symbian DLL's.

Introducing configure options --enable-hidden-symbols and
--disable-hidden-symbols following libcurl's naming.
2009-10-28 19:45:26 +00:00
f28b736a56 Fix spelling 2009-10-27 16:56:20 +00:00
6c48e1ff36 Use *_CHECK_PATH_SEPARATOR_REQUIRED to ensure that *_CHECK_PATH_SEPARATOR
is only expanded and included once in the configure script.
2009-10-19 04:13:12 +00:00
e391db0ef9 renamed generated config.h to ares_config.h in order to avoid clashes when libcurl is used with other projects which also have a config.h. 2009-07-14 13:38:50 +00:00
cdcc3aca8c Refactor how libraries are checked for connect() function,
and check for connect() as it is done for other functions.
2009-06-20 17:24:43 +00:00
0757cbf7f4 add CloseSocket camel case function check 2009-06-18 12:36:10 +00:00