mirror of https://github.com/lukechilds/node.git
Ryan Dahl
14 years ago
139 changed files with 6094 additions and 67564 deletions
@ -0,0 +1,22 @@ |
|||
include_directories(${CMAKE_CURRENT_SOURCE_DIR}) |
|||
include_directories(${node_platform}-${cares_arch}) |
|||
add_definitions(-DHAVE_CONFIG_H=1) |
|||
|
|||
include(CheckLibraryExists) |
|||
check_library_exists(socket socket "" HAVE_SOCKET_LIB) |
|||
check_library_exists(nsl gethostbyname "" HAVE_NSL_LIB) |
|||
|
|||
file(GLOB lib_sources *.c) |
|||
add_library(cares ${lib_sources}) |
|||
|
|||
if(${HAVE_SOCKET_LIB}) |
|||
set(cares_libs ${cares_libs} socket) |
|||
endif() |
|||
|
|||
if(${HAVE_NSL_LIB}) |
|||
set(cares_libs ${cares_libs} nsl) |
|||
endif() |
|||
|
|||
if(cares_libs) |
|||
target_link_libraries(cares ${cares_libs}) |
|||
endif() |
@ -1,169 +0,0 @@ |
|||
#
|
|||
# Watcom / OpenWatcom / Win32 makefile for cares.
|
|||
# Quick hack by Guenter; comments to: /dev/nul
|
|||
#
|
|||
|
|||
!ifndef %watcom |
|||
!error WATCOM environment variable not set! |
|||
!else |
|||
SYS_INCL = -I$(%watcom)\h\nt -I$(%watcom)\h |
|||
SYS_LIBS = $(%watcom)\lib386\nt;$(%watcom)\lib386 |
|||
!endif |
|||
|
|||
!ifdef %libname |
|||
LIBNAME = $(%libname) |
|||
!else |
|||
LIBNAME = cares |
|||
!endif |
|||
TARGETS = $(LIBNAME).dll $(LIBNAME)_imp.lib $(LIBNAME).lib |
|||
DEMOS = adig.exe ahost.exe acountry.exe |
|||
|
|||
CC = wcc386 |
|||
LD = wlink |
|||
AR = wlib |
|||
RC = wrc |
|||
|
|||
!ifdef __LOADDLL__ |
|||
! loaddll wcc386 wccd386 |
|||
! loaddll wpp386 wppd386 |
|||
! loaddll wlib wlibd |
|||
!endif |
|||
|
|||
!if $(__VERSION__) < 1250 |
|||
RM = del /q /f 2>NUL |
|||
!else |
|||
RM = rm -f |
|||
!endif |
|||
MD = mkdir |
|||
RD = rmdir /q /s 2>NUL |
|||
CP = copy |
|||
|
|||
CFLAGS = -3r -mf -hc -zff -zgf -zq -zm -zc -s -fr=con -w2 -fpi -oilrtfm & |
|||
-wcd=201 -bt=nt -d+ -dWIN32 -dCARES_BUILDING_LIBRARY & |
|||
-dNTDDI_VERSION=0x05000100 -I. $(SYS_INCL) |
|||
|
|||
LFLAGS = option quiet, map, caseexact, eliminate |
|||
|
|||
!ifdef %debug |
|||
DEBUG = -dDEBUG=1 -dDEBUGBUILD |
|||
CFLAGS += -d3 $(DEBUG) |
|||
LFLAGS += debug all |
|||
!else |
|||
CFLAGS += -d0 |
|||
!endif |
|||
|
|||
!ifdef %use_ipv6 |
|||
CFLAGS += -d_WIN32_WINNT=0x0501 -dENABLE_IPV6 |
|||
!endif |
|||
|
|||
#
|
|||
# Change to suite.
|
|||
#
|
|||
!ifdef %use_watt32 |
|||
CFLAGS += -dUSE_WATT32 -I$(%watt_root)\inc |
|||
!endif |
|||
|
|||
OBJ_BASE = WC_Win32.obj |
|||
LINK_ARG = $(OBJ_BASE)\dyn\wlink.arg |
|||
LIB_ARG = $(OBJ_BASE)\stat\wlib.arg |
|||
|
|||
# In order to process Makefile.inc wmake must be called with -u switch!
|
|||
!ifneq __MAKEOPTS__ -u |
|||
!error You MUST call wmake with the -u switch! |
|||
!else |
|||
!include Makefile.inc |
|||
!endif |
|||
|
|||
OBJS = $(CSOURCES:.c=.obj) |
|||
OBJS = $OBJ_DIR\$(OBJS: = $OBJ_DIR\) |
|||
|
|||
#
|
|||
# Use $(OBJS) as a template to generate $(OBJS_STAT) and $(OBJS_DYN).
|
|||
#
|
|||
OBJ_DIR = $(OBJ_BASE)\stat |
|||
OBJS_STAT = $+ $(OBJS) $- |
|||
|
|||
OBJ_DIR = $(OBJ_BASE)\dyn |
|||
OBJS_DYN = $+ $(OBJS) $- |
|||
|
|||
ARESBUILDH = ares_build.h |
|||
RESOURCE = $(OBJ_BASE)\dyn\cares.res |
|||
|
|||
all: $(ARESBUILDH) $(OBJ_BASE) $(TARGETS) .SYMBOLIC |
|||
@echo Welcome to cares |
|||
|
|||
demos: all $(DEMOS) .SYMBOLIC |
|||
@echo Welcome to cares-demos |
|||
|
|||
$(OBJ_BASE): |
|||
-$(MD) $^@ |
|||
-$(MD) $^@\stat |
|||
-$(MD) $^@\dyn |
|||
-$(MD) $^@\demos |
|||
|
|||
$(ARESBUILDH): .EXISTSONLY |
|||
$(CP) $^@.dist $^@ |
|||
|
|||
$(LIBNAME).dll: $(OBJS_DYN) $(RESOURCE) $(LINK_ARG) |
|||
$(LD) name $^@ @$]@ |
|||
|
|||
$(LIBNAME).lib: $(OBJS_STAT) $(LIB_ARG) |
|||
$(AR) -q -b -c $^@ @$]@ |
|||
|
|||
adig.exe: $(OBJ_BASE)\demos\adig.obj $(OBJ_BASE)\demos\ares_getopt.obj $(LIBNAME).lib |
|||
$(LD) name $^@ system nt $(LFLAGS) file { $[@ $(OBJ_BASE)\demos\ares_getopt.obj } library $]@, ws2_32.lib |
|||
|
|||
ahost.exe: $(OBJ_BASE)\demos\ahost.obj $(OBJ_BASE)\demos\ares_getopt.obj $(LIBNAME).lib |
|||
$(LD) name $^@ system nt $(LFLAGS) file { $[@ $(OBJ_BASE)\demos\ares_getopt.obj } library $]@, ws2_32.lib |
|||
|
|||
acountry.exe: $(OBJ_BASE)\demos\acountry.obj $(OBJ_BASE)\demos\ares_getopt.obj $(LIBNAME).lib |
|||
$(LD) name $^@ system nt $(LFLAGS) file { $[@ $(OBJ_BASE)\demos\ares_getopt.obj } library $]@, ws2_32.lib |
|||
|
|||
clean: .SYMBOLIC |
|||
-$(RM) $(OBJS_STAT) |
|||
-$(RM) $(OBJS_DYN) |
|||
-$(RM) $(RESOURCE) $(LINK_ARG) $(LIB_ARG) |
|||
|
|||
vclean realclean: clean .SYMBOLIC |
|||
-$(RM) $(TARGETS) $(LIBNAME).map |
|||
-$(RM) $(DEMOS) $(DEMOS:.exe=.map) |
|||
-$(RD) $(OBJ_BASE)\stat |
|||
-$(RD) $(OBJ_BASE)\dyn |
|||
-$(RD) $(OBJ_BASE)\demos |
|||
-$(RD) $(OBJ_BASE) |
|||
|
|||
.ERASE |
|||
$(RESOURCE): cares.rc .AUTODEPEND |
|||
$(RC) $(DEBUG) -q -r -zm -I..\include $(SYS_INCL) $[@ -fo=$^@ |
|||
|
|||
.ERASE |
|||
.c{$(OBJ_BASE)\dyn}.obj: |
|||
$(CC) $(CFLAGS) -bd $[@ -fo=$^@ |
|||
|
|||
.ERASE |
|||
.c{$(OBJ_BASE)\stat}.obj: |
|||
$(CC) $(CFLAGS) -DCARES_STATICLIB $[@ -fo=$^@ |
|||
|
|||
.ERASE |
|||
.c{$(OBJ_BASE)\demos}.obj: |
|||
$(CC) $(CFLAGS) -DCARES_STATICLIB $[@ -fo=$^@ |
|||
|
|||
$(LINK_ARG): $(__MAKEFILES__) |
|||
%create $^@ |
|||
@%append $^@ system nt dll |
|||
@%append $^@ file { $(OBJS_DYN) } |
|||
@%append $^@ option res=$(RESOURCE), implib=$(LIBNAME)_imp.lib |
|||
@%append $^@ $(LFLAGS) |
|||
@%append $^@ libpath $(SYS_LIBS) |
|||
# @%append $^@ library clib3r.lib
|
|||
!ifdef %use_watt32 |
|||
@%append $^@ library $(%watt_root)\lib\wattcpw_imp.lib |
|||
!else |
|||
@%append $^@ library ws2_32.lib |
|||
!endif |
|||
|
|||
$(LIB_ARG): $(__MAKEFILES__) |
|||
%create $^@ |
|||
@for %f in ($(OBJS_STAT)) do @%append $^@ +- %f |
|||
|
|||
|
@ -1,175 +0,0 @@ |
|||
AUTOMAKE_OPTIONS = foreign nostdinc |
|||
|
|||
ACLOCAL_AMFLAGS = -I m4 |
|||
|
|||
# Specify our include paths here, and do it relative to $(top_srcdir) and
|
|||
# $(top_builddir), to ensure that these paths which belong to the library
|
|||
# being currently built and tested are searched before the library which
|
|||
# might possibly already be installed in the system.
|
|||
#
|
|||
# When using the low-level hard-hacking memory leak tracking code from
|
|||
# libcurl the generated curl/curlbuild.h file must also be reachable.
|
|||
# Using the libcurl lowlevel code from within c-ares library is ugly and
|
|||
# only works when c-ares is built and linked with a similarly debug-build
|
|||
# libcurl, but we do this anyway for convenience.
|
|||
#
|
|||
# $(top_builddir)/../include/curl for generated curlbuild.h included from curl.h
|
|||
# $(top_builddir)/../include is for libcurl's generated curl/curlbuild.h file
|
|||
# $(top_srcdir)/../include is for libcurl's external include files
|
|||
# $(top_builddir)/../lib is for libcurl's generated lib/curl_config.h file
|
|||
# $(top_srcdir)/../lib is for libcurl's lib/setup.h and other "private" files
|
|||
# $(top_builddir) is for c-ares's generated ares_config.h file
|
|||
# $(top_srcdir) is for c-ares's ares_setup.h and other "c-ares-private" files
|
|||
|
|||
if CURLDEBUG |
|||
INCLUDES = -I$(top_builddir)/../include/curl \
|
|||
-I$(top_builddir)/../include \
|
|||
-I$(top_srcdir)/../include \
|
|||
-I$(top_builddir)/../lib \
|
|||
-I$(top_srcdir)/../lib \
|
|||
-I$(top_builddir) \
|
|||
-I$(top_srcdir) |
|||
else |
|||
INCLUDES = -I$(top_builddir) \
|
|||
-I$(top_srcdir) |
|||
endif |
|||
|
|||
lib_LTLIBRARIES = libcares.la |
|||
|
|||
man_MANS = $(MANPAGES) |
|||
|
|||
MSVCFILES = vc/vc6aws.dsw vc/acountry/vc6acountry.dsp vc/adig/vc6adig.dsp \
|
|||
vc/ahost/vc6ahost.dsp vc/cares/vc6cares.dsp vc/cares/vc6cares.dsw |
|||
|
|||
if CURLDEBUG |
|||
PROGS = |
|||
else |
|||
PROGS = ahost adig acountry |
|||
endif |
|||
|
|||
noinst_PROGRAMS =$(PROGS) |
|||
|
|||
# adig and ahost are just sample programs and thus not mentioned with the
|
|||
# regular sources and headers
|
|||
EXTRA_DIST = AUTHORS CHANGES README.cares Makefile.inc Makefile.dj \
|
|||
Makefile.m32 Makefile.netware Makefile.msvc Makefile.Watcom $(man_MANS) \
|
|||
config-win32.h RELEASE-NOTES libcares.pc.in buildconf get_ver.awk maketgz \
|
|||
TODO ares_build.h.in $(PDFPAGES) cares.rc README.msvc $(MSVCFILES) \
|
|||
$(CSOURCES) $(HHEADERS) config-dos.h |
|||
|
|||
CLEANFILES = $(PDFPAGES) $(HTMLPAGES) |
|||
|
|||
DISTCLEANFILES = ares_build.h |
|||
|
|||
pkgconfigdir = $(libdir)/pkgconfig |
|||
pkgconfig_DATA = libcares.pc |
|||
|
|||
VER=-version-info 2:0:0 |
|||
# This flag accepts an argument of the form current[:revision[:age]]. So,
|
|||
# passing -version-info 3:12:1 sets current to 3, revision to 12, and age to
|
|||
# 1.
|
|||
#
|
|||
# If either revision or age are omitted, they default to 0. Also note that age
|
|||
# must be less than or equal to the current interface number.
|
|||
#
|
|||
# Here are a set of rules to help you update your library version information:
|
|||
#
|
|||
# 1.Start with version information of 0:0:0 for each libtool library.
|
|||
#
|
|||
# 2.Update the version information only immediately before a public release of
|
|||
# your software. More frequent updates are unnecessary, and only guarantee
|
|||
# that the current interface number gets larger faster.
|
|||
#
|
|||
# 3.If the library source code has changed at all since the last update, then
|
|||
# increment revision (c:r+1:a)
|
|||
#
|
|||
# 4.If any interfaces have been added, removed, or changed since the last
|
|||
# update, increment current, and set revision to 0. (c+1:r=0:a)
|
|||
#
|
|||
# 5.If any interfaces have been added since the last public release, then
|
|||
# increment age. (c:r:a+1)
|
|||
#
|
|||
# 6.If any interfaces have been removed since the last public release, then
|
|||
# set age to 0. (c:r:a=0)
|
|||
#
|
|||
|
|||
if NO_UNDEFINED |
|||
# The -no-undefined flag is crucial for this to build fine on some platforms
|
|||
UNDEF = -no-undefined |
|||
endif |
|||
|
|||
libcares_la_LDFLAGS = $(UNDEF) $(VER) |
|||
|
|||
# Add -Werror if defined
|
|||
CFLAGS += @CARES_CFLAG_EXTRAS@ |
|||
|
|||
# Makefile.inc provides the CSOURCES and HHEADERS defines
|
|||
include Makefile.inc |
|||
|
|||
libcares_la_SOURCES = $(CSOURCES) $(HHEADERS) |
|||
|
|||
# where to install the c-ares headers
|
|||
libcares_ladir = $(includedir) |
|||
# what headers to install on 'make install':
|
|||
libcares_la_HEADERS = ares.h ares_version.h ares_dns.h \
|
|||
ares_build.h ares_rules.h |
|||
|
|||
ahost_SOURCES = ahost.c $(SAMPLESOURCES) $(SAMPLEHEADERS) |
|||
ahost_LDADD = $(top_builddir)/libcares.la |
|||
ahost_CFLAGS = $(AM_CFLAGS) |
|||
|
|||
adig_SOURCES = adig.c $(SAMPLESOURCES) $(SAMPLEHEADERS) |
|||
adig_LDADD = $(top_builddir)/libcares.la |
|||
adig_CFLAGS = $(AM_CFLAGS) |
|||
|
|||
acountry_SOURCES = acountry.c $(SAMPLESOURCES) $(SAMPLEHEADERS) |
|||
acountry_LDADD = $(top_builddir)/libcares.la |
|||
acountry_CFLAGS = $(AM_CFLAGS) |
|||
|
|||
SOURCEDMANDIR = man3 |
|||
SOURCEDMANPAGES = ares_init.3 |
|||
|
|||
clean-local: clean-sourced-manpages |
|||
|
|||
clean-sourced-manpages: |
|||
@srcdmandir='$(SOURCEDMANDIR)'; \
|
|||
echo "rm -rf $(top_builddir)/$$srcdmandir"; \
|
|||
rm -rf $(top_builddir)/$$srcdmandir |
|||
|
|||
sourced-manpages: clean-sourced-manpages |
|||
@srcdmandir='$(SOURCEDMANDIR)'; \
|
|||
srcdmanfiles='$(SOURCEDMANPAGES)'; \
|
|||
mkdir $(top_builddir)/$$srcdmandir; \
|
|||
for file in $$srcdmanfiles; do \
|
|||
if test -f $(top_srcdir)/$$file; then \
|
|||
echo "cp $(top_srcdir)/$$file $(top_builddir)/$$srcdmandir/$$file"; \
|
|||
cp $(top_srcdir)/$$file $(top_builddir)/$$srcdmandir/$$file; \
|
|||
fi; \
|
|||
done |
|||
|
|||
MAN2HTML = roffit --mandir=. < $< >$@ |
|||
|
|||
SUFFIXES = .3 .html |
|||
|
|||
html: sourced-manpages $(HTMLPAGES) |
|||
|
|||
.3.html: |
|||
$(MAN2HTML) |
|||
|
|||
pdf: sourced-manpages $(PDFPAGES) |
|||
|
|||
.3.pdf: |
|||
@(foo=`echo $@ | sed -e 's/\.[0-9]$$//g'`; \
|
|||
groff -Tps -man $< >$$foo.ps; \
|
|||
ps2pdf $$foo.ps $@; \
|
|||
rm $$foo.ps; \
|
|||
echo "converted $< to $@") |
|||
|
|||
# Make files named *.dist replace the file without .dist extension
|
|||
dist-hook: |
|||
find $(distdir) -name "*.dist" -exec rm {} \; |
|||
(distit=`find $(srcdir) -name "*.dist"`; \
|
|||
for file in $$distit; do \
|
|||
strip=`echo $$file | sed -e s/^$(srcdir)// -e s/\.dist//`; \
|
|||
cp $$file $(distdir)$$strip; \
|
|||
done) |
@ -1,85 +0,0 @@ |
|||
#
|
|||
# c-ares Makefile for djgpp/gcc/Watt-32.
|
|||
# By Gisle Vanem <gvanem@broadpark.no> 2004.
|
|||
#
|
|||
|
|||
|
|||
TOPDIR = .. |
|||
|
|||
DEPEND_PREREQ = ares_config.h |
|||
|
|||
include ../packages/DOS/common.dj |
|||
include Makefile.inc |
|||
|
|||
CFLAGS += -DWATT32 -Dselect=select_s |
|||
|
|||
LDFLAGS = -s |
|||
|
|||
ifeq ($(USE_CURLDEBUG),1) |
|||
EX_LIBS = ../lib/libcurl.a |
|||
OBJ_HACK = $(OBJECTS) |
|||
else |
|||
OBJ_HACK = libcares.a |
|||
endif |
|||
|
|||
ifeq ($(USE_SSL),1) |
|||
EX_LIBS += $(OPENSSL_ROOT)/lib/libssl.a $(OPENSSL_ROOT)/lib/libcrypt.a |
|||
endif |
|||
|
|||
ifeq ($(USE_ZLIB),1) |
|||
EX_LIBS += $(ZLIB_ROOT)/libz.a |
|||
endif |
|||
|
|||
ifeq ($(USE_IDNA),1) |
|||
EX_LIBS += $(LIBIDN_ROOT)/lib/dj_obj/libidn.a -liconv |
|||
endif |
|||
|
|||
EX_LIBS += $(WATT32_ROOT)/lib/libwatt.a |
|||
|
|||
OBJECTS = $(addprefix $(OBJ_DIR)/, $(CSOURCES:.c=.o)) |
|||
|
|||
all: $(OBJ_DIR) ares_config.h libcares.a ahost.exe adig.exe acountry.exe |
|||
@echo Welcome to c-ares. |
|||
|
|||
libcares.a: $(OBJECTS) |
|||
ar rs $@ $? |
|||
|
|||
ares_config.h: config-dos.h |
|||
$(COPY) $^ $@ |
|||
|
|||
ahost.exe: ahost.c $(OBJ_DIR)/ares_getopt.o $(OBJ_HACK) |
|||
$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $^ $(EX_LIBS) |
|||
|
|||
adig.exe: adig.c $(OBJ_DIR)/ares_getopt.o $(OBJ_HACK) |
|||
$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $^ $(EX_LIBS) |
|||
|
|||
acountry.exe: acountry.c $(OBJ_DIR)/ares_getopt.o $(OBJ_HACK) |
|||
$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $^ $(EX_LIBS) |
|||
|
|||
# clean generated files
|
|||
#
|
|||
genclean: |
|||
- $(DELETE) ares_config.h |
|||
|
|||
# clean object files and subdir
|
|||
#
|
|||
objclean: genclean |
|||
- $(DELETE) $(OBJ_DIR)$(DS)*.o |
|||
- $(RMDIR) $(OBJ_DIR) |
|||
|
|||
# clean without removing built library and programs
|
|||
#
|
|||
clean: objclean |
|||
- $(DELETE) depend.dj |
|||
|
|||
# clean everything
|
|||
#
|
|||
realclean vclean: clean |
|||
- $(DELETE) libcares.a |
|||
- $(DELETE) acountry.exe |
|||
- $(DELETE) adig.exe |
|||
- $(DELETE) ahost.exe |
|||
- $(DELETE) libcares.a |
|||
|
|||
-include depend.dj |
|||
|
File diff suppressed because it is too large
@ -1,192 +0,0 @@ |
|||
|
|||
CSOURCES = ares__close_sockets.c \ |
|||
ares__get_hostent.c \ |
|||
ares__read_line.c \ |
|||
ares__timeval.c \ |
|||
ares_cancel.c \ |
|||
ares_data.c \ |
|||
ares_destroy.c \ |
|||
ares_expand_name.c \ |
|||
ares_expand_string.c \ |
|||
ares_fds.c \ |
|||
ares_free_hostent.c \ |
|||
ares_free_string.c \ |
|||
ares_gethostbyaddr.c \ |
|||
ares_gethostbyname.c \ |
|||
ares_getnameinfo.c \ |
|||
ares_getsock.c \ |
|||
ares_init.c \ |
|||
ares_library_init.c \ |
|||
ares_llist.c \ |
|||
ares_mkquery.c \ |
|||
ares_nowarn.c \ |
|||
ares_options.c \ |
|||
ares_parse_a_reply.c \ |
|||
ares_parse_aaaa_reply.c \ |
|||
ares_parse_mx_reply.c \ |
|||
ares_parse_ns_reply.c \ |
|||
ares_parse_ptr_reply.c \ |
|||
ares_parse_srv_reply.c \ |
|||
ares_parse_txt_reply.c \ |
|||
ares_process.c \ |
|||
ares_query.c \ |
|||
ares_search.c \ |
|||
ares_send.c \ |
|||
ares_strcasecmp.c \ |
|||
ares_strdup.c \ |
|||
ares_strerror.c \ |
|||
ares_timeout.c \ |
|||
ares_version.c \ |
|||
ares_writev.c \ |
|||
bitncmp.c \ |
|||
inet_net_pton.c \ |
|||
inet_ntop.c \ |
|||
windows_port.c |
|||
|
|||
HHEADERS = ares.h \ |
|||
ares_build.h \ |
|||
ares_data.h \ |
|||
ares_dns.h \ |
|||
ares_ipv6.h \ |
|||
ares_library_init.h \ |
|||
ares_llist.h \ |
|||
ares_nowarn.h \ |
|||
ares_private.h \ |
|||
ares_rules.h \ |
|||
ares_strcasecmp.h \ |
|||
ares_strdup.h \ |
|||
ares_version.h \ |
|||
ares_writev.h \ |
|||
bitncmp.h \ |
|||
inet_net_pton.h \ |
|||
inet_ntop.h \ |
|||
nameser.h \ |
|||
ares_setup.h \ |
|||
setup_once.h |
|||
|
|||
MANPAGES = ares_cancel.3 \ |
|||
ares_destroy.3 \ |
|||
ares_destroy_options.3 \ |
|||
ares_dup.3 \ |
|||
ares_expand_name.3 \ |
|||
ares_expand_string.3 \ |
|||
ares_fds.3 \ |
|||
ares_free_data.3 \ |
|||
ares_free_hostent.3 \ |
|||
ares_free_string.3 \ |
|||
ares_get_servers.3 \ |
|||
ares_gethostbyaddr.3 \ |
|||
ares_gethostbyname.3 \ |
|||
ares_gethostbyname_file.3 \ |
|||
ares_getnameinfo.3 \ |
|||
ares_getsock.3 \ |
|||
ares_init.3 \ |
|||
ares_init_options.3 \ |
|||
ares_library_cleanup.3 \ |
|||
ares_library_init.3 \ |
|||
ares_mkquery.3 \ |
|||
ares_parse_a_reply.3 \ |
|||
ares_parse_aaaa_reply.3 \ |
|||
ares_parse_mx_reply.3 \ |
|||
ares_parse_ns_reply.3 \ |
|||
ares_parse_ptr_reply.3 \ |
|||
ares_parse_srv_reply.3 \ |
|||
ares_parse_txt_reply.3 \ |
|||
ares_process.3 \ |
|||
ares_query.3 \ |
|||
ares_save_options.3 \ |
|||
ares_search.3 \ |
|||
ares_send.3 \ |
|||
ares_set_servers.3 \ |
|||
ares_set_socket_callback.3 \ |
|||
ares_strerror.3 \ |
|||
ares_timeout.3 \ |
|||
ares_version.3 |
|||
|
|||
HTMLPAGES = ares_cancel.html \ |
|||
ares_destroy.html \ |
|||
ares_destroy_options.html \ |
|||
ares_dup.html \ |
|||
ares_expand_name.html \ |
|||
ares_expand_string.html \ |
|||
ares_fds.html \ |
|||
ares_free_data.html \ |
|||
ares_free_hostent.html \ |
|||
ares_free_string.html \ |
|||
ares_get_servers.html \ |
|||
ares_gethostbyaddr.html \ |
|||
ares_gethostbyname.html \ |
|||
ares_gethostbyname_file.html \ |
|||
ares_getnameinfo.html \ |
|||
ares_getsock.html \ |
|||
ares_init.html \ |
|||
ares_init_options.html \ |
|||
ares_library_cleanup.html \ |
|||
ares_library_init.html \ |
|||
ares_mkquery.html \ |
|||
ares_parse_a_reply.html \ |
|||
ares_parse_aaaa_reply.html \ |
|||
ares_parse_mx_reply.html \ |
|||
ares_parse_ns_reply.html \ |
|||
ares_parse_ptr_reply.html \ |
|||
ares_parse_srv_reply.html \ |
|||
ares_parse_txt_reply.html \ |
|||
ares_process.html \ |
|||
ares_query.html \ |
|||
ares_save_options.html \ |
|||
ares_search.html \ |
|||
ares_send.html \ |
|||
ares_set_servers.html \ |
|||
ares_set_socket_callback.html \ |
|||
ares_strerror.html \ |
|||
ares_timeout.html \ |
|||
ares_version.html |
|||
|
|||
PDFPAGES = ares_cancel.pdf \ |
|||
ares_destroy.pdf \ |
|||
ares_destroy_options.pdf \ |
|||
ares_dup.pdf \ |
|||
ares_expand_name.pdf \ |
|||
ares_expand_string.pdf \ |
|||
ares_fds.pdf \ |
|||
ares_free_data.pdf \ |
|||
ares_free_hostent.pdf \ |
|||
ares_free_string.pdf \ |
|||
ares_get_servers.pdf \ |
|||
ares_gethostbyaddr.pdf \ |
|||
ares_gethostbyname.pdf \ |
|||
ares_gethostbyname_file.pdf \ |
|||
ares_getnameinfo.pdf \ |
|||
ares_getsock.pdf \ |
|||
ares_init.pdf \ |
|||
ares_init_options.pdf \ |
|||
ares_library_cleanup.pdf \ |
|||
ares_library_init.pdf \ |
|||
ares_mkquery.pdf \ |
|||
ares_parse_a_reply.pdf \ |
|||
ares_parse_aaaa_reply.pdf \ |
|||
ares_parse_mx_reply.pdf \ |
|||
ares_parse_ns_reply.pdf \ |
|||
ares_parse_ptr_reply.pdf \ |
|||
ares_parse_srv_reply.pdf \ |
|||
ares_parse_txt_reply.pdf \ |
|||
ares_process.pdf \ |
|||
ares_query.pdf \ |
|||
ares_save_options.pdf \ |
|||
ares_search.pdf \ |
|||
ares_send.pdf \ |
|||
ares_set_servers.pdf \ |
|||
ares_set_socket_callback.pdf \ |
|||
ares_strerror.pdf \ |
|||
ares_timeout.pdf \ |
|||
ares_version.pdf |
|||
|
|||
SAMPLESOURCES = ares_getopt.c \ |
|||
ares_strcasecmp.c \ |
|||
inet_net_pton.c \ |
|||
inet_ntop.c |
|||
|
|||
SAMPLEHEADERS = ares_getopt.h \ |
|||
ares_strcasecmp.h \ |
|||
inet_net_pton.h \ |
|||
inet_ntop.h |
@ -1,68 +0,0 @@ |
|||
#############################################################
|
|||
#
|
|||
## Makefile for building libcares.a with MingW32 (GCC-3.2)
|
|||
## Use: make -f Makefile.m32 [demos]
|
|||
##
|
|||
## Quick hack by Guenter; comments to: /dev/nul
|
|||
#
|
|||
########################################################
|
|||
## Nothing more to do below this line!
|
|||
|
|||
LIB = libcares.a |
|||
|
|||
CC = gcc |
|||
LD = gcc |
|||
RANLIB = ranlib |
|||
#RM = rm -f
|
|||
|
|||
CFLAGS = -O2 -Wall -I. -DCARES_STATICLIB |
|||
LDFLAGS = -s |
|||
LIBS = -lwsock32 |
|||
|
|||
# Makefile.inc provides the CSOURCES and HHEADERS defines
|
|||
include Makefile.inc |
|||
|
|||
OBJLIB := $(patsubst %.c,%.o,$(strip $(CSOURCES))) |
|||
|
|||
|
|||
$(LIB): $(OBJLIB) |
|||
ar cru $@ $^ |
|||
$(RANLIB) $@ |
|||
|
|||
all: $(LIB) demos |
|||
|
|||
demos: adig.exe ahost.exe acountry.exe |
|||
|
|||
tags: |
|||
etags *.[ch] |
|||
|
|||
%.exe: %.o ares_getopt.o $(LIB) |
|||
$(LD) $(LDFLAGS) -o $@ $^ $(LIBS) |
|||
|
|||
$(OBJLIB): ares.h ares_dns.h ares_private.h ares_build.h ares_rules.h |
|||
|
|||
.c.o: |
|||
$(CC) $(CFLAGS) -c $< |
|||
|
|||
check: |
|||
|
|||
install: |
|||
${top_srcdir}/mkinstalldirs ${DESTDIR}${libdir} |
|||
${top_srcdir}/mkinstalldirs ${DESTDIR}${includedir} |
|||
${top_srcdir}/mkinstalldirs ${DESTDIR}${mandir}/man3 |
|||
${INSTALL} -m 644 $(LIB) ${DESTDIR}${libdir} |
|||
${RANLIB} ${DESTDIR}${libdir}/$(LIB) |
|||
chmod u-w ${DESTDIR}${libdir}/$(LIB) |
|||
${INSTALL} -m 444 ${srcdir}/ares.h ${DESTDIR}${includedir} |
|||
${INSTALL} -m 444 ${srcdir}/ares_build.h ${DESTDIR}${includedir} |
|||
${INSTALL} -m 444 ${srcdir}/ares_rules.h ${DESTDIR}${includedir} |
|||
(for man in $(MANPAGES); do \
|
|||
${INSTALL} -m 444 ${srcdir}/$${man} ${DESTDIR}${mandir}/man3; \
|
|||
done) |
|||
|
|||
clean: |
|||
$(RM) ares_getopt.o $(OBJLIB) $(LIB) adig.exe ahost.exe acountry.exe |
|||
|
|||
distclean: clean |
|||
$(RM) config.cache config.log config.status Makefile |
|||
|
@ -1,476 +0,0 @@ |
|||
|
|||
# Copyright (C) 2009-2010 by Daniel Stenberg
|
|||
#
|
|||
# Permission to use, copy, modify, and distribute this
|
|||
# software and its documentation for any purpose and without
|
|||
# fee is hereby granted, provided that the above copyright
|
|||
# notice appear in all copies and that both that copyright
|
|||
# notice and this permission notice appear in supporting
|
|||
# documentation, and that the name of M.I.T. not be used in
|
|||
# advertising or publicity pertaining to distribution of the
|
|||
# software without specific, written prior permission.
|
|||
# M.I.T. makes no representations about the suitability of
|
|||
# this software for any purpose. It is provided "as is"
|
|||
# without express or implied warranty.
|
|||
|
|||
# ------------------------------------------------------------------------------
|
|||
#
|
|||
# Makefile for building c-ares libraries and sample programs with MSVC.
|
|||
#
|
|||
# Usage: nmake /f makefile.msvc CFG=<config> <target>
|
|||
#
|
|||
# <config> must be one of: [ lib-release | lib-debug | dll-release | dll-debug }
|
|||
# <target> must be one of: [ ALL | c-ares | acountry | adig | ahost | clean }
|
|||
#
|
|||
# If a <target> other than ALL or clean is given, <config> becomes mandatory.
|
|||
#
|
|||
# If neither <config> nor <target> are specified this results in
|
|||
# all targets being built for all <config> c-ares library types.
|
|||
#
|
|||
# This makefile must be processed from the subdir where it is located.
|
|||
#
|
|||
# All results are generated below a subdirectory named msvcXXX.
|
|||
#
|
|||
# ------------------------------------------------------------------------------
|
|||
|
|||
NAME = cares |
|||
|
|||
# ------------------------------------------------
|
|||
# c-ares static and dynamic libraries common base
|
|||
# file names for release and debug configurations
|
|||
# ------------------------------------------------
|
|||
|
|||
STA_LIB_REL = lib$(NAME) |
|||
DYN_LIB_REL = $(NAME) |
|||
STA_LIB_DBG = $(STA_LIB_REL)d |
|||
DYN_LIB_DBG = $(DYN_LIB_REL)d |
|||
|
|||
# -------------------------------------------
|
|||
# Base names for c-ares DLL import libraries
|
|||
# -------------------------------------------
|
|||
|
|||
IMP_LIB_REL = $(DYN_LIB_REL) |
|||
IMP_LIB_DBG = $(DYN_LIB_DBG) |
|||
|
|||
# --------------------------
|
|||
# Runtime library selection
|
|||
# --------------------------
|
|||
|
|||
RTLIB = /MD |
|||
RTLIBD = /MDd |
|||
|
|||
!IF "$(RTLIBCFG)" == "static" |
|||
RTLIB = /MT |
|||
RTLIBD = /MTd |
|||
!ENDIF |
|||
|
|||
# --------------------------------------------------------
|
|||
# Define USE_WATT32 to 1 to use the Watt-32 tcp/ip stack,
|
|||
# otherwise Winsock tcp/ip stack will be used as default.
|
|||
# --------------------------------------------------------
|
|||
|
|||
USE_WATT32 = 0 |
|||
|
|||
# -------------------------------------------
|
|||
# Detect NMAKE version deducing MSVC version
|
|||
# -------------------------------------------
|
|||
|
|||
!IFNDEF _NMAKE_VER |
|||
! MESSAGE Macro _NMAKE_VER not defined. |
|||
! MESSAGE Use MSVC's NMAKE to process this makefile. |
|||
! ERROR See previous message. |
|||
!ENDIF |
|||
|
|||
!IF "$(_NMAKE_VER)" == "6.00.8168.0" |
|||
CC_VERS_NUM = 60 |
|||
!ELSEIF "$(_NMAKE_VER)" == "6.00.9782.0" |
|||
CC_VERS_NUM = 60 |
|||
!ELSEIF "$(_NMAKE_VER)" == "7.00.9466" |
|||
CC_VERS_NUM = 70 |
|||
!ELSEIF "$(_NMAKE_VER)" == "7.00.9955" |
|||
CC_VERS_NUM = 70 |
|||
!ELSEIF "$(_NMAKE_VER)" == "7.10.3077" |
|||
CC_VERS_NUM = 71 |
|||
!ELSEIF "$(_NMAKE_VER)" == "8.00.40607.16" |
|||
CC_VERS_NUM = 80 |
|||
!ELSEIF "$(_NMAKE_VER)" == "8.00.50727.42" |
|||
CC_VERS_NUM = 80 |
|||
!ELSEIF "$(_NMAKE_VER)" == "8.00.50727.762" |
|||
CC_VERS_NUM = 80 |
|||
!ELSEIF "$(_NMAKE_VER)" == "9.00.21022.08" |
|||
CC_VERS_NUM = 90 |
|||
!ELSEIF "$(_NMAKE_VER)" == "9.00.30729.01" |
|||
CC_VERS_NUM = 90 |
|||
!ELSEIF "$(_NMAKE_VER)" == "10.00.20506.01" |
|||
CC_VERS_NUM = 100 |
|||
!ELSEIF "$(_NMAKE_VER)" == "10.00.21003.01" |
|||
CC_VERS_NUM = 100 |
|||
!ELSEIF "$(_NMAKE_VER)" == "10.00.30319.01" |
|||
CC_VERS_NUM = 100 |
|||
!ELSE |
|||
! MESSAGE Unknown value for _NMAKE_VER macro: "$(_NMAKE_VER)" |
|||
! MESSAGE Please, report this condition on the c-ares development |
|||
! MESSAGE mailing list: http://cool.haxx.se/mailman/listinfo/c-ares/ |
|||
! ERROR See previous message. |
|||
!ENDIF |
|||
|
|||
CC_VERS_STR = msvc$(CC_VERS_NUM) |
|||
|
|||
# ----------------------------------------------------
|
|||
# Verify that current subdir is the c-ares source one
|
|||
# ----------------------------------------------------
|
|||
|
|||
!IF ! EXIST(.\ares_init.c) |
|||
! MESSAGE Can not process Makefile.msvc from outside of c-ares source subdirectory. |
|||
! MESSAGE Change to the subdirectory where Makefile.msvc is found, and try again. |
|||
! ERROR See previous message. |
|||
!ENDIF |
|||
|
|||
# ------------------------------------------------------------------
|
|||
# Base subdir is the common root from which other subdirs will hang,
|
|||
# the name depends on MSVC version being used when building c-ares.
|
|||
# ------------------------------------------------------------------
|
|||
|
|||
BASE_DIR = .\$(CC_VERS_STR) |
|||
|
|||
# ----------------------------------------
|
|||
# Subdir holding sources for all projects
|
|||
# ----------------------------------------
|
|||
|
|||
SRCDIR = . |
|||
|
|||
# -------------------------
|
|||
# Configuration validation
|
|||
# -------------------------
|
|||
|
|||
VALID_CFGSET = FALSE |
|||
!IF "$(CFG)" == "lib-release" || "$(CFG)" == "lib-debug" || \ |
|||
"$(CFG)" == "dll-release" || "$(CFG)" == "dll-debug" |
|||
VALID_CFGSET = TRUE |
|||
!ENDIF |
|||
|
|||
!IF "$(VALID_CFGSET)" == "FALSE" && "$(CFG)" != "" |
|||
! MESSAGE MSVC c-ares makefile |
|||
! MESSAGE |
|||
! MESSAGE Usage: nmake /f makefile.msvc CFG=<config> <target> |
|||
! MESSAGE |
|||
! MESSAGE <config> must be one of: [ lib-release | lib-debug | dll-release | dll-debug } |
|||
! MESSAGE <target> must be one of: [ ALL | c-ares | acountry | adig | ahost | clean } |
|||
! MESSAGE |
|||
! MESSAGE If a <target> other than ALL or clean is given, <config> becomes mandatory. |
|||
! MESSAGE |
|||
! MESSAGE If neither <config> nor <target> are specified this results in |
|||
! MESSAGE all targets being built for all <config> c-ares library types. |
|||
! MESSAGE |
|||
! ERROR Choose a valid configuration. |
|||
!ENDIF |
|||
|
|||
# --------------------------------------------------------
|
|||
# Project subdirs independent of configuration being used
|
|||
# --------------------------------------------------------
|
|||
|
|||
CARES_DIR = $(BASE_DIR)\cares |
|||
PROG1_DIR = $(BASE_DIR)\acountry |
|||
PROG2_DIR = $(BASE_DIR)\adig |
|||
PROG3_DIR = $(BASE_DIR)\ahost |
|||
|
|||
# ---------------------------------------------------
|
|||
# Subdirs which are configuration dependent are only
|
|||
# defined when a valid configuration has been given.
|
|||
# ---------------------------------------------------
|
|||
|
|||
!IF "$(VALID_CFGSET)" == "TRUE" |
|||
CARES_OUTDIR = $(CARES_DIR)\$(CFG) |
|||
PROG1_OUTDIR = $(PROG1_DIR)\$(CFG) |
|||
PROG2_OUTDIR = $(PROG2_DIR)\$(CFG) |
|||
PROG3_OUTDIR = $(PROG3_DIR)\$(CFG) |
|||
CARES_OBJDIR = $(CARES_OUTDIR)\obj |
|||
PROG1_OBJDIR = $(PROG1_OUTDIR)\obj |
|||
PROG2_OBJDIR = $(PROG2_OUTDIR)\obj |
|||
PROG3_OBJDIR = $(PROG3_OUTDIR)\obj |
|||
!ELSE |
|||
!UNDEF CARES_OUTDIR |
|||
!UNDEF PROG1_OUTDIR |
|||
!UNDEF PROG2_OUTDIR |
|||
!UNDEF PROG3_OUTDIR |
|||
!UNDEF CARES_OBJDIR |
|||
!UNDEF PROG1_OBJDIR |
|||
!UNDEF PROG2_OBJDIR |
|||
!UNDEF PROG3_OBJDIR |
|||
!ENDIF |
|||
|
|||
# -------------------------------------
|
|||
# Settings that depend on tcp/ip stack
|
|||
# -------------------------------------
|
|||
|
|||
!IF "$(USE_WATT32)" == "1" |
|||
CFLAGS = /UWIN32 /DWATT32 /I$(WATT_ROOT)\inc |
|||
EX_LIBS_REL = $(WATT_ROOT)\lib\wattcpvc_imp.lib |
|||
EX_LIBS_DBG = $(WATT_ROOT)\lib\wattcpvc_imp_d.lib |
|||
!ELSE |
|||
CFLAGS = /DWIN32 |
|||
EX_LIBS_REL = ws2_32.lib advapi32.lib kernel32.lib |
|||
EX_LIBS_DBG = ws2_32.lib advapi32.lib kernel32.lib |
|||
!ENDIF |
|||
|
|||
# -----------------------------------------
|
|||
# Switches that depend on compiler version
|
|||
# -----------------------------------------
|
|||
|
|||
!IF $(CC_VERS_NUM) == 60 |
|||
PDB_NONE = /pdb:none |
|||
PDBTYPE_CONSOLIDATE = /pdbtype:consolidate |
|||
!ELSE |
|||
!UNDEF PDB_NONE |
|||
!UNDEF PDBTYPE_CONSOLIDATE |
|||
!ENDIF |
|||
|
|||
!IF $(CC_VERS_NUM) <= 70 |
|||
RT_ERROR_CHECKING = /GZ |
|||
!ELSE |
|||
RT_ERROR_CHECKING = /RTCsu |
|||
!ENDIF |
|||
|
|||
# ----------------------------
|
|||
# Assorted commands and flags
|
|||
# ----------------------------
|
|||
|
|||
CC_CMD_REL = cl.exe /nologo $(RTLIB) /DNDEBUG /O2 |
|||
CC_CMD_DBG = cl.exe /nologo $(RTLIBD) /D_DEBUG /Od /Zi $(RT_ERROR_CHECKING) |
|||
CC_CFLAGS = $(CFLAGS) /I. /W3 /EHsc /FD |
|||
|
|||
RC_CMD_REL = rc.exe /l 0x409 /d "NDEBUG" |
|||
RC_CMD_DBG = rc.exe /l 0x409 /d "_DEBUG" |
|||
|
|||
LINK_CMD_LIB = link.exe /lib /nologo |
|||
LINK_CMD_DLL = link.exe /dll /nologo /incremental:no /fixed:no |
|||
LINK_CMD_EXE = link.exe /nologo /incremental:no /fixed:no /subsystem:console |
|||
|
|||
LINK_CMD_EXE_REL = $(LINK_CMD_EXE) /release $(PDB_NONE) |
|||
LINK_CMD_EXE_DBG = $(LINK_CMD_EXE) /debug $(PDBTYPE_CONSOLIDATE) |
|||
|
|||
# ---------------------------------
|
|||
# Configuration dependent settings
|
|||
# ---------------------------------
|
|||
|
|||
!IF "$(CFG)" == "lib-release" |
|||
CARES_TARGET = $(STA_LIB_REL).lib |
|||
CARES_CFLAGS = /DCARES_BUILDING_LIBRARY /DCARES_STATICLIB |
|||
CARES_LFLAGS = |
|||
SPROG_CFLAGS = /DCARES_STATICLIB |
|||
SPROG_LFLAGS = /libpath:$(CARES_OUTDIR) $(EX_LIBS_REL) $(STA_LIB_REL).lib |
|||
CARES_LINK = $(LINK_CMD_LIB) |
|||
SPROG_LINK = $(LINK_CMD_EXE_REL) |
|||
CC_CMD = $(CC_CMD_REL) |
|||
!ENDIF |
|||
|
|||
!IF "$(CFG)" == "lib-debug" |
|||
CARES_TARGET = $(STA_LIB_DBG).lib |
|||
CARES_CFLAGS = /DCARES_BUILDING_LIBRARY /DCARES_STATICLIB /DDEBUGBUILD |
|||
CARES_LFLAGS = |
|||
SPROG_CFLAGS = /DCARES_STATICLIB |
|||
SPROG_LFLAGS = /libpath:$(CARES_OUTDIR) $(EX_LIBS_DBG) $(STA_LIB_DBG).lib |
|||
CARES_LINK = $(LINK_CMD_LIB) |
|||
SPROG_LINK = $(LINK_CMD_EXE_DBG) |
|||
CC_CMD = $(CC_CMD_DBG) |
|||
!ENDIF |
|||
|
|||
!IF "$(CFG)" == "dll-release" |
|||
CARES_TARGET = $(DYN_LIB_REL).dll |
|||
CARES_CFLAGS = /DCARES_BUILDING_LIBRARY |
|||
CARES_LFLAGS = /release $(EX_LIBS_REL) /implib:$(CARES_OUTDIR)\$(IMP_LIB_REL).lib $(PDB_NONE) |
|||
SPROG_CFLAGS = |
|||
SPROG_LFLAGS = /libpath:$(CARES_OUTDIR) $(EX_LIBS_REL) $(IMP_LIB_REL).lib |
|||
CARES_LINK = $(LINK_CMD_DLL) |
|||
SPROG_LINK = $(LINK_CMD_EXE_REL) |
|||
CC_CMD = $(CC_CMD_REL) |
|||
USE_RES_FILE = TRUE |
|||
RC_CMD = $(RC_CMD_REL) |
|||
!ENDIF |
|||
|
|||
!IF "$(CFG)" == "dll-debug" |
|||
CARES_TARGET = $(DYN_LIB_DBG).dll |
|||
CARES_CFLAGS = /DCARES_BUILDING_LIBRARY /DDEBUGBUILD |
|||
CARES_LFLAGS = /debug $(EX_LIBS_DBG) /implib:$(CARES_OUTDIR)\$(IMP_LIB_DBG).lib /pdb:$(CARES_OUTDIR)\$(DYN_LIB_DBG).pdb $(PDBTYPE_CONSOLIDATE) |
|||
SPROG_CFLAGS = |
|||
SPROG_LFLAGS = /libpath:$(CARES_OUTDIR) $(EX_LIBS_DBG) $(IMP_LIB_DBG).lib |
|||
CARES_LINK = $(LINK_CMD_DLL) |
|||
SPROG_LINK = $(LINK_CMD_EXE_DBG) |
|||
CC_CMD = $(CC_CMD_DBG) |
|||
USE_RES_FILE = TRUE |
|||
RC_CMD = $(RC_CMD_DBG) |
|||
!ENDIF |
|||
|
|||
# --------------------------------------------
|
|||
# Makefile.inc provides lists of source files
|
|||
# --------------------------------------------
|
|||
|
|||
!INCLUDE .\Makefile.inc |
|||
|
|||
# ----------------------------
|
|||
# Build lists of object files
|
|||
# ----------------------------
|
|||
|
|||
!IF "$(VALID_CFGSET)" == "TRUE" |
|||
|
|||
!IF [ECHO CARES_OBJS=^$(CARES_OBJDIR)\$(CSOURCES: = $(CARES_OBJDIR^)\) > .\cares_objs.inc] == 0 |
|||
!INCLUDE .\cares_objs.inc |
|||
!IF [DEL .\cares_objs.inc] |
|||
!ENDIF |
|||
!ELSE |
|||
!ERROR Problem generating CARES_OBJS list. |
|||
!ENDIF |
|||
CARES_OBJS = $(CARES_OBJS:.c=.obj) |
|||
!IF "$(USE_RES_FILE)" == "TRUE" |
|||
CARES_OBJS = $(CARES_OBJS) $(CARES_OBJDIR)\cares.res |
|||
!ENDIF |
|||
|
|||
!IF [ECHO PROG1_OBJS=^$(PROG1_OBJDIR)\$(SAMPLESOURCES: = $(PROG1_OBJDIR^)\) > .\prog1_objs.inc] == 0 |
|||
!INCLUDE .\prog1_objs.inc |
|||
!IF [DEL .\prog1_objs.inc] |
|||
!ENDIF |
|||
!ELSE |
|||
!ERROR Problem generating PROG1_OBJS list. |
|||
!ENDIF |
|||
PROG1_OBJS = $(PROG1_OBJS:.c=.obj) |
|||
PROG1_OBJS = $(PROG1_OBJS) $(PROG1_OBJDIR)\acountry.obj |
|||
|
|||
!IF [ECHO PROG2_OBJS=^$(PROG2_OBJDIR)\$(SAMPLESOURCES: = $(PROG2_OBJDIR^)\) > .\prog2_objs.inc] == 0 |
|||
!INCLUDE .\prog2_objs.inc |
|||
!IF [DEL .\prog2_objs.inc] |
|||
!ENDIF |
|||
!ELSE |
|||
!ERROR Problem generating PROG2_OBJS list. |
|||
!ENDIF |
|||
PROG2_OBJS = $(PROG2_OBJS:.c=.obj) |
|||
PROG2_OBJS = $(PROG2_OBJS) $(PROG2_OBJDIR)\adig.obj |
|||
|
|||
!IF [ECHO PROG3_OBJS=^$(PROG3_OBJDIR)\$(SAMPLESOURCES: = $(PROG3_OBJDIR^)\) > .\prog3_objs.inc] == 0 |
|||
!INCLUDE .\prog3_objs.inc |
|||
!IF [DEL .\prog3_objs.inc] |
|||
!ENDIF |
|||
!ELSE |
|||
!ERROR Problem generating PROG3_OBJS list. |
|||
!ENDIF |
|||
PROG3_OBJS = $(PROG3_OBJS:.c=.obj) |
|||
PROG3_OBJS = $(PROG3_OBJS) $(PROG3_OBJDIR)\ahost.obj |
|||
|
|||
!ENDIF |
|||
|
|||
# --------------------------------
|
|||
# Only our custom inference rules
|
|||
# --------------------------------
|
|||
|
|||
.SUFFIXES: |
|||
.SUFFIXES: .c .rc |
|||
|
|||
{$(SRCDIR)}.rc{$(CARES_OBJDIR)}.res: |
|||
$(RC_CMD) /Fo $@ $< |
|||
|
|||
{$(SRCDIR)}.c{$(CARES_OBJDIR)}.obj: |
|||
$(CC_CMD) $(CC_CFLAGS) $(CARES_CFLAGS) /Fo$@ /Fd$(@D)\ /c $< |
|||
|
|||
{$(SRCDIR)}.c{$(PROG1_OBJDIR)}.obj: |
|||
$(CC_CMD) $(CC_CFLAGS) $(SPROG_CFLAGS) /Fo$@ /Fd$(@D)\ /c $< |
|||
|
|||
{$(SRCDIR)}.c{$(PROG2_OBJDIR)}.obj: |
|||
$(CC_CMD) $(CC_CFLAGS) $(SPROG_CFLAGS) /Fo$@ /Fd$(@D)\ /c $< |
|||
|
|||
{$(SRCDIR)}.c{$(PROG3_OBJDIR)}.obj: |
|||
$(CC_CMD) $(CC_CFLAGS) $(SPROG_CFLAGS) /Fo$@ /Fd$(@D)\ /c $< |
|||
|
|||
# ------------------------------------------------------------- #
|
|||
# ------------------------------------------------------------- #
|
|||
# Default target when no CFG library type has been specified, #
|
|||
# results in building target ALL for all c-ares library types. #
|
|||
# ------------------------------------------------------------- #
|
|||
# ------------------------------------------------------------- #
|
|||
|
|||
!IF "$(VALID_CFGSET)" == "FALSE" |
|||
|
|||
ALL: |
|||
$(MAKE) /f .\Makefile.msvc CFG=lib-release ALL |
|||
$(MAKE) /f .\Makefile.msvc CFG=lib-debug ALL |
|||
$(MAKE) /f .\Makefile.msvc CFG=dll-release ALL |
|||
$(MAKE) /f .\Makefile.msvc CFG=dll-debug ALL |
|||
|
|||
clean: |
|||
@-RMDIR /S /Q $(BASE_DIR) >NUL 2>&1 |
|||
|
|||
!ENDIF |
|||
|
|||
# ---------------------------------------------------------------------
|
|||
# Targets only available when a proper CFG library type has been given
|
|||
# ---------------------------------------------------------------------
|
|||
|
|||
!IF "$(VALID_CFGSET)" == "TRUE" |
|||
|
|||
ALL: c-ares acountry adig ahost |
|||
@ |
|||
|
|||
c-ares: $(HHEADERS) $(CSOURCES) $(CARES_OBJDIR) $(CARES_OBJS) $(CARES_OUTDIR) |
|||
$(CARES_LINK) $(CARES_LFLAGS) /out:$(CARES_OUTDIR)\$(CARES_TARGET) $(CARES_OBJS) |
|||
! IF "$(USE_RES_FILE)" == "TRUE" |
|||
@if exist $(CARES_OUTDIR)\$(CARES_TARGET).manifest mt -nologo -manifest $(CARES_OUTDIR)\$(CARES_TARGET).manifest -outputresource:$(CARES_OUTDIR)\$(CARES_TARGET);2 |
|||
! ENDIF |
|||
|
|||
acountry: c-ares acountry.c $(SAMPLESOURCES) $(SAMPLEHEADERS) $(PROG1_OBJDIR) $(PROG1_OBJS) $(PROG1_OUTDIR) |
|||
$(SPROG_LINK) $(SPROG_LFLAGS) /out:$(PROG1_OUTDIR)\acountry.exe $(PROG1_OBJS) |
|||
@if exist $(PROG1_OUTDIR)\acountry.exe.manifest mt -nologo -manifest $(PROG1_OUTDIR)\acountry.exe.manifest -outputresource:$(PROG1_OUTDIR)\acountry.exe;1 |
|||
|
|||
adig: c-ares adig.c $(SAMPLESOURCES) $(SAMPLEHEADERS) $(PROG2_OBJDIR) $(PROG2_OBJS) $(PROG2_OUTDIR) |
|||
$(SPROG_LINK) $(SPROG_LFLAGS) /out:$(PROG2_OUTDIR)\adig.exe $(PROG2_OBJS) |
|||
@if exist $(PROG2_OUTDIR)\adig.exe.manifest mt -nologo -manifest $(PROG2_OUTDIR)\adig.exe.manifest -outputresource:$(PROG2_OUTDIR)\adig.exe;1 |
|||
|
|||
ahost: c-ares ahost.c $(SAMPLESOURCES) $(SAMPLEHEADERS) $(PROG3_OBJDIR) $(PROG3_OBJS) $(PROG3_OUTDIR) |
|||
$(SPROG_LINK) $(SPROG_LFLAGS) /out:$(PROG3_OUTDIR)\ahost.exe $(PROG3_OBJS) |
|||
@if exist $(PROG3_OUTDIR)\ahost.exe.manifest mt -nologo -manifest $(PROG3_OUTDIR)\ahost.exe.manifest -outputresource:$(PROG3_OUTDIR)\ahost.exe;1 |
|||
|
|||
$(CARES_OUTDIR): $(CARES_DIR) |
|||
@if not exist $(CARES_OUTDIR) mkdir $(CARES_OUTDIR) |
|||
|
|||
$(PROG1_OUTDIR): $(PROG1_DIR) |
|||
@if not exist $(PROG1_OUTDIR) mkdir $(PROG1_OUTDIR) |
|||
|
|||
$(PROG2_OUTDIR): $(PROG2_DIR) |
|||
@if not exist $(PROG2_OUTDIR) mkdir $(PROG2_OUTDIR) |
|||
|
|||
$(PROG3_OUTDIR): $(PROG3_DIR) |
|||
@if not exist $(PROG3_OUTDIR) mkdir $(PROG3_OUTDIR) |
|||
|
|||
$(CARES_OBJDIR): $(CARES_OUTDIR) |
|||
@if not exist $(CARES_OBJDIR) mkdir $(CARES_OBJDIR) |
|||
|
|||
$(PROG1_OBJDIR): $(PROG1_OUTDIR) |
|||
@if not exist $(PROG1_OBJDIR) mkdir $(PROG1_OBJDIR) |
|||
|
|||
$(PROG2_OBJDIR): $(PROG2_OUTDIR) |
|||
@if not exist $(PROG2_OBJDIR) mkdir $(PROG2_OBJDIR) |
|||
|
|||
$(PROG3_OBJDIR): $(PROG3_OUTDIR) |
|||
@if not exist $(PROG3_OBJDIR) mkdir $(PROG3_OBJDIR) |
|||
|
|||
clean: |
|||
@-RMDIR /S /Q $(CARES_OUTDIR) >NUL 2>&1 |
|||
@-RMDIR /S /Q $(PROG1_OUTDIR) >NUL 2>&1 |
|||
@-RMDIR /S /Q $(PROG2_OUTDIR) >NUL 2>&1 |
|||
@-RMDIR /S /Q $(PROG3_OUTDIR) >NUL 2>&1 |
|||
|
|||
!ENDIF |
|||
|
|||
$(BASE_DIR): |
|||
@if not exist $(BASE_DIR) mkdir $(BASE_DIR) |
|||
|
|||
$(CARES_DIR): $(BASE_DIR) |
|||
@if not exist $(CARES_DIR) mkdir $(CARES_DIR) |
|||
|
|||
$(PROG1_DIR): $(BASE_DIR) |
|||
@if not exist $(PROG1_DIR) mkdir $(PROG1_DIR) |
|||
|
|||
$(PROG2_DIR): $(BASE_DIR) |
|||
@if not exist $(PROG2_DIR) mkdir $(PROG2_DIR) |
|||
|
|||
$(PROG3_DIR): $(BASE_DIR) |
|||
@if not exist $(PROG3_DIR) mkdir $(PROG3_DIR) |
|||
|
|||
# End of Makefile.msvc
|
@ -1,434 +0,0 @@ |
|||
#################################################################
|
|||
#
|
|||
## Makefile for building libcares (NetWare version - gnu make)
|
|||
## Use: make -f Makefile.netware
|
|||
##
|
|||
## Comments to: Guenter Knauf http://www.gknw.de/phpbb
|
|||
#
|
|||
#################################################################
|
|||
|
|||
# Edit the path below to point to the base of your Novell NDK.
|
|||
ifndef NDKBASE |
|||
NDKBASE = c:/novell |
|||
endif |
|||
|
|||
ifndef INSTDIR |
|||
INSTDIR = ../ares-$(LIBCARES_VERSION_STR)-bin-nw |
|||
endif |
|||
|
|||
# Edit the vars below to change NLM target settings.
|
|||
TARGETS = adig.nlm ahost.nlm acountry.nlm |
|||
LTARGET = libcares.$(LIBEXT) |
|||
VERSION = $(LIBCARES_VERSION) |
|||
COPYR = $(LIBCARES_COPYRIGHT_STR) |
|||
DESCR = cURL $(subst .def,,$(notdir $@)) $(LIBCARES_VERSION_STR) - http://curl.haxx.se |
|||
MTSAFE = YES |
|||
STACK = 64000 |
|||
SCREEN = none |
|||
#EXPORTS =
|
|||
# Comment the line below if you dont want to load protected automatically.
|
|||
#LDRING = 3
|
|||
|
|||
# Edit the var below to point to your lib architecture.
|
|||
ifndef LIBARCH |
|||
LIBARCH = LIBC |
|||
endif |
|||
|
|||
# must be equal to NDEBUG or DEBUG, CURLDEBUG
|
|||
ifndef DB |
|||
DB = NDEBUG |
|||
endif |
|||
# Optimization: -O<n> or debugging: -g
|
|||
ifeq ($(DB),NDEBUG) |
|||
OPT = -O2 |
|||
OBJDIR = release |
|||
else |
|||
OPT = -g |
|||
OBJDIR = debug |
|||
endif |
|||
|
|||
# Include the version info retrieved from curlver.h
|
|||
-include $(OBJDIR)/version.inc |
|||
|
|||
# The following lines defines your compiler.
|
|||
ifdef CWFolder |
|||
METROWERKS = $(CWFolder) |
|||
endif |
|||
ifdef METROWERKS |
|||
# MWCW_PATH = $(subst \,/,$(METROWERKS))/Novell Support |
|||
MWCW_PATH = $(subst \,/,$(METROWERKS))/Novell Support/Metrowerks Support |
|||
CC = mwccnlm |
|||
else |
|||
CC = gcc |
|||
endif |
|||
# a native win32 awk can be downloaded from here:
|
|||
# http://www.gknw.net/development/prgtools/awk-20070501.zip
|
|||
AWK = awk |
|||
YACC = bison -y |
|||
CP = cp -afv |
|||
MKDIR = mkdir |
|||
# RM = rm -f
|
|||
# if you want to mark the target as MTSAFE you will need a tool for
|
|||
# generating the xdc data for the linker; here's a minimal tool:
|
|||
# http://www.gknw.net/development/prgtools/mkxdc.zip
|
|||
MPKXDC = mkxdc |
|||
|
|||
# Global flags for all compilers
|
|||
CFLAGS += $(OPT) -D$(DB) -DNETWARE -DHAVE_CONFIG_H -nostdinc |
|||
|
|||
ifeq ($(CC),mwccnlm) |
|||
LD = mwldnlm |
|||
LDFLAGS = -nostdlib $(PRELUDE) $(OBJEXE) $(<:.def=.o) -o $@ -commandfile |
|||
AR = mwldnlm |
|||
ARFLAGS = -nostdlib -type library -o |
|||
LIBEXT = lib |
|||
#RANLIB =
|
|||
CFLAGS += -msgstyle gcc -gccinc -inline off -opt nointrinsics -proc 586 |
|||
CFLAGS += -relax_pointers |
|||
#CFLAGS += -w on
|
|||
ifeq ($(LIBARCH),LIBC) |
|||
PRELUDE = $(SDK_LIBC)/imports/libcpre.o |
|||
CFLAGS += -align 4 |
|||
else |
|||
# PRELUDE = $(SDK_CLIB)/imports/clibpre.o |
|||
# to avoid the __init_* / __deinit_* whoes dont use prelude from NDK |
|||
PRELUDE = "$(MWCW_PATH)/libraries/runtime/prelude.obj" |
|||
# CFLAGS += -include "$(MWCW_PATH)/headers/nlm_clib_prefix.h" |
|||
CFLAGS += -align 1 |
|||
endif |
|||
else |
|||
LD = nlmconv |
|||
LDFLAGS = -T |
|||
AR = ar |
|||
ARFLAGS = -cq |
|||
LIBEXT = a |
|||
RANLIB = ranlib |
|||
CFLAGS += -fno-builtin -fpcc-struct-return -fno-strict-aliasing |
|||
CFLAGS += -Wall -Wno-format -Wno-uninitialized # -pedantic |
|||
ifeq ($(LIBARCH),LIBC) |
|||
PRELUDE = $(SDK_LIBC)/imports/libcpre.gcc.o |
|||
else |
|||
# PRELUDE = $(SDK_CLIB)/imports/clibpre.gcc.o |
|||
# to avoid the __init_* / __deinit_* whoes dont use prelude from NDK |
|||
# http://www.gknw.net/development/mk_nlm/gcc_pre.zip |
|||
PRELUDE = $(NDK_ROOT)/pre/prelude.o |
|||
CFLAGS += -include $(NDKBASE)/nlmconv/genlm.h |
|||
endif |
|||
endif |
|||
|
|||
NDK_ROOT = $(NDKBASE)/ndk |
|||
SDK_CLIB = $(NDK_ROOT)/nwsdk |
|||
SDK_LIBC = $(NDK_ROOT)/libc |
|||
|
|||
ifeq ($(LIBARCH),LIBC) |
|||
INCLUDES += -I$(SDK_LIBC)/include |
|||
# INCLUDES += -I$(SDK_LIBC)/include/nks |
|||
# INCLUDES += -I$(SDK_LIBC)/include/winsock |
|||
CFLAGS += -D_POSIX_SOURCE |
|||
else |
|||
INCLUDES += -I$(SDK_CLIB)/include/nlm |
|||
# INCLUDES += -I$(SDK_CLIB)/include/nlm/obsolete |
|||
# INCLUDES += -I$(SDK_CLIB)/include |
|||
endif |
|||
ifeq ($(DB),CURLDEBUG) |
|||
INCLUDES += -I../include |
|||
endif |
|||
CFLAGS += -I. $(INCLUDES) |
|||
|
|||
ifeq ($(MTSAFE),YES) |
|||
XDCOPT = -n |
|||
endif |
|||
ifeq ($(MTSAFE),NO) |
|||
XDCOPT = -u |
|||
endif |
|||
|
|||
ifeq ($(findstring /sh,$(SHELL)),/sh) |
|||
DL = ' |
|||
#-include $(NDKBASE)/nlmconv/ncpfs.inc
|
|||
endif |
|||
|
|||
# Makefile.inc provides the CSOURCES and HHEADERS defines
|
|||
include Makefile.inc |
|||
|
|||
OBJLIB := $(patsubst %.c,$(OBJDIR)/%.o,$(strip $(CSOURCES))) |
|||
OBJEXE = $(OBJLIB) $(OBJDIR)/ares_getopt.o |
|||
|
|||
.PHONY: lib nlm prebuild dist install clean |
|||
|
|||
lib: prebuild $(LTARGET) |
|||
|
|||
nlm: prebuild $(TARGETS) |
|||
|
|||
prebuild: $(OBJDIR) ares_build.h $(OBJDIR)/version.inc ares_config.h |
|||
|
|||
install: $(INSTDIR) all |
|||
@$(CP) *.nlm $(INSTDIR) |
|||
@$(CP) ../CHANGES $(INSTDIR) |
|||
@$(CP) ../COPYING $(INSTDIR) |
|||
@$(CP) ../README $(INSTDIR) |
|||
@$(CP) ../RELEASE-NOTES $(INSTDIR) |
|||
|
|||
clean: |
|||
-$(RM) $(LTARGET) $(TARGETS) ares_config.h |
|||
-$(RM) -r $(OBJDIR) |
|||
-$(RM) -r arpa |
|||
|
|||
%.$(LIBEXT): $(OBJLIB) |
|||
@echo Creating $@ |
|||
@-$(RM) $@ |
|||
@$(AR) $(ARFLAGS) $@ $^ |
|||
ifdef RANLIB |
|||
@$(RANLIB) $@ |
|||
endif |
|||
|
|||
%.nlm: $(OBJDIR)/%.def $(OBJDIR)/%.o $(OBJDIR)/%.xdc $(OBJEXE) |
|||
@echo Linking $@ |
|||
@-$(RM) $@ |
|||
@$(LD) $(LDFLAGS) $< |
|||
|
|||
$(OBJDIR) $(INSTDIR): |
|||
@$(MKDIR) $@ |
|||
|
|||
$(OBJDIR)/%.o: %.c |
|||
# @echo Compiling $<
|
|||
$(CC) $(CFLAGS) -c $< -o $@ |
|||
|
|||
$(OBJDIR)/version.inc: ares_version.h $(OBJDIR) |
|||
@echo Creating $@ |
|||
@$(AWK) -f get_ver.awk $< > $@ |
|||
|
|||
$(OBJDIR)/%.xdc: Makefile.netware |
|||
@echo Creating $@ |
|||
@$(MPKXDC) $(XDCOPT) $@ |
|||
|
|||
$(OBJDIR)/%.def: Makefile.netware |
|||
@echo Creating $@ |
|||
@echo $(DL)# DEF file for linking with $(LD)$(DL) > $@ |
|||
@echo $(DL)# Do not edit this file - it is created by make!$(DL) >> $@ |
|||
@echo $(DL)# All your changes will be lost!!$(DL) >> $@ |
|||
@echo $(DL)#$(DL) >> $@ |
|||
@echo $(DL)copyright "$(COPYR)"$(DL) >> $@ |
|||
@echo $(DL)description "$(DESCR)"$(DL) >> $@ |
|||
@echo $(DL)version $(VERSION)$(DL) >> $@ |
|||
ifdef NLMTYPE |
|||
@echo $(DL)type $(NLMTYPE)$(DL) >> $@ |
|||
endif |
|||
ifdef STACK |
|||
@echo $(DL)stack $(STACK)$(DL) >> $@ |
|||
endif |
|||
ifdef SCREEN |
|||
@echo $(DL)screenname "$(SCREEN)"$(DL) >> $@ |
|||
else |
|||
@echo $(DL)screenname "DEFAULT"$(DL) >> $@ |
|||
endif |
|||
ifeq ($(DB),DEBUG) |
|||
@echo $(DL)debug$(DL) >> $@ |
|||
endif |
|||
@echo $(DL)threadname "$^"$(DL) >> $@ |
|||
ifdef XDCOPT |
|||
@echo $(DL)xdcdata $(@:.def=.xdc)$(DL) >> $@ |
|||
endif |
|||
ifeq ($(LDRING),0) |
|||
@echo $(DL)flag_on 16$(DL) >> $@ |
|||
endif |
|||
ifeq ($(LDRING),3) |
|||
@echo $(DL)flag_on 512$(DL) >> $@ |
|||
endif |
|||
ifeq ($(LIBARCH),CLIB) |
|||
@echo $(DL)start _Prelude$(DL) >> $@ |
|||
@echo $(DL)exit _Stop$(DL) >> $@ |
|||
@echo $(DL)import @$(SDK_CLIB)/imports/clib.imp$(DL) >> $@ |
|||
@echo $(DL)import @$(SDK_CLIB)/imports/threads.imp$(DL) >> $@ |
|||
@echo $(DL)import @$(SDK_CLIB)/imports/nlmlib.imp$(DL) >> $@ |
|||
@echo $(DL)import @$(SDK_CLIB)/imports/socklib.imp$(DL) >> $@ |
|||
@echo $(DL)module clib$(DL) >> $@ |
|||
else |
|||
@echo $(DL)flag_on 64$(DL) >> $@ |
|||
@echo $(DL)pseudopreemption$(DL) >> $@ |
|||
@echo $(DL)start _LibCPrelude$(DL) >> $@ |
|||
@echo $(DL)exit _LibCPostlude$(DL) >> $@ |
|||
@echo $(DL)check _LibCCheckUnload$(DL) >> $@ |
|||
@echo $(DL)import @$(SDK_LIBC)/imports/libc.imp$(DL) >> $@ |
|||
@echo $(DL)import @$(SDK_LIBC)/imports/netware.imp$(DL) >> $@ |
|||
@echo $(DL)module libc$(DL) >> $@ |
|||
endif |
|||
ifdef MODULES |
|||
@echo $(DL)module $(MODULES)$(DL) >> $@ |
|||
endif |
|||
ifdef EXPORTS |
|||
@echo $(DL)export $(EXPORTS)$(DL) >> $@ |
|||
endif |
|||
ifdef IMPORTS |
|||
@echo $(DL)import $(IMPORTS)$(DL) >> $@ |
|||
endif |
|||
ifeq ($(LD),nlmconv) |
|||
@echo $(DL)input $(PRELUDE)$(DL) >> $@ |
|||
@echo $(DL)input $(OBJEXE)$(DL) >> $@ |
|||
@echo $(DL)input $(@:.def=.o)$(DL) >> $@ |
|||
@echo $(DL)output $(notdir $(@:.def=.nlm))$(DL) >> $@ |
|||
endif |
|||
|
|||
ares_config.h: Makefile.netware |
|||
@echo Creating $@ |
|||
@echo $(DL)/* $@ for NetWare target.$(DL) > $@ |
|||
@echo $(DL)** Do not edit this file - it is created by make!$(DL) >> $@ |
|||
@echo $(DL)** All your changes will be lost!!$(DL) >> $@ |
|||
@echo $(DL)*/$(DL) >> $@ |
|||
@echo $(DL)#ifndef NETWARE$(DL) >> $@ |
|||
@echo $(DL)#error This $(notdir $@) is created for NetWare platform!$(DL) >> $@ |
|||
@echo $(DL)#endif$(DL) >> $@ |
|||
@echo $(DL)#define VERSION "$(LIBCARES_VERSION_STR)"$(DL) >> $@ |
|||
@echo $(DL)#define PACKAGE_BUGREPORT "a suitable curl mailing list => http://curl.haxx.se/mail/"$(DL) >> $@ |
|||
ifeq ($(LIBARCH),CLIB) |
|||
@echo $(DL)#define OS "i586-pc-clib-NetWare"$(DL) >> $@ |
|||
@echo $(DL)#define HAVE_STRICMP 1$(DL) >> $@ |
|||
@echo $(DL)#define HAVE_STRNICMP 1$(DL) >> $@ |
|||
@echo $(DL)#define NETDB_USE_INTERNET 1$(DL) >> $@ |
|||
@echo $(DL)#define RECV_TYPE_ARG1 int$(DL) >> $@ |
|||
@echo $(DL)#define RECV_TYPE_ARG2 char *$(DL) >> $@ |
|||
@echo $(DL)#define RECV_TYPE_ARG3 int$(DL) >> $@ |
|||
@echo $(DL)#define RECV_TYPE_ARG4 int$(DL) >> $@ |
|||
@echo $(DL)#define RECV_TYPE_RETV int$(DL) >> $@ |
|||
@echo $(DL)#define RECVFROM_TYPE_ARG1 int$(DL) >> $@ |
|||
@echo $(DL)#define RECVFROM_TYPE_ARG2 char$(DL) >> $@ |
|||
@echo $(DL)#define RECVFROM_TYPE_ARG3 int$(DL) >> $@ |
|||
@echo $(DL)#define RECVFROM_TYPE_ARG4 int$(DL) >> $@ |
|||
@echo $(DL)#define RECVFROM_TYPE_ARG5 struct sockaddr$(DL) >> $@ |
|||
@echo $(DL)#define RECVFROM_TYPE_ARG6 int$(DL) >> $@ |
|||
@echo $(DL)#define RECVFROM_TYPE_RETV int$(DL) >> $@ |
|||
@echo $(DL)#define SEND_QUAL_ARG2$(DL) >> $@ |
|||
@echo $(DL)#define SEND_TYPE_ARG1 int$(DL) >> $@ |
|||
@echo $(DL)#define SEND_TYPE_ARG2 char *$(DL) >> $@ |
|||
@echo $(DL)#define SEND_TYPE_ARG3 int$(DL) >> $@ |
|||
@echo $(DL)#define SEND_TYPE_ARG4 int$(DL) >> $@ |
|||
@echo $(DL)#define SEND_TYPE_RETV int$(DL) >> $@ |
|||
@echo $(DL)#define SIZEOF_SIZE_T 4$(DL) >> $@ |
|||
else |
|||
@echo $(DL)#define OS "i586-pc-libc-NetWare"$(DL) >> $@ |
|||
@echo $(DL)#define HAVE_DLFCN_H 1$(DL) >> $@ |
|||
@echo $(DL)#define HAVE_DLOPEN 1$(DL) >> $@ |
|||
@echo $(DL)#define HAVE_FTRUNCATE 1$(DL) >> $@ |
|||
@echo $(DL)#define HAVE_GETTIMEOFDAY 1$(DL) >> $@ |
|||
@echo $(DL)#define HAVE_INTTYPES_H 1$(DL) >> $@ |
|||
@echo $(DL)#define HAVE_LONGLONG 1$(DL) >> $@ |
|||
@echo $(DL)#define HAVE_STDINT_H 1$(DL) >> $@ |
|||
@echo $(DL)#define HAVE_STRCASECMP 1$(DL) >> $@ |
|||
@echo $(DL)#define HAVE_STRLCAT 1$(DL) >> $@ |
|||
@echo $(DL)#define HAVE_STRLCPY 1$(DL) >> $@ |
|||
@echo $(DL)#define HAVE_STRTOLL 1$(DL) >> $@ |
|||
@echo $(DL)#define HAVE_SYS_PARAM_H 1$(DL) >> $@ |
|||
@echo $(DL)#define HAVE_SYS_SELECT_H 1$(DL) >> $@ |
|||
@echo $(DL)#define HAVE_TERMIOS_H 1$(DL) >> $@ |
|||
@echo $(DL)#define HAVE_AF_INET6 1$(DL) >> $@ |
|||
@echo $(DL)#define HAVE_PF_INET6 1$(DL) >> $@ |
|||
@echo $(DL)#define HAVE_FREEADDRINFO 1$(DL) >> $@ |
|||
@echo $(DL)#define HAVE_GETADDRINFO 1$(DL) >> $@ |
|||
@echo $(DL)#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1$(DL) >> $@ |
|||
@echo $(DL)#define HAVE_STRUCT_IN6_ADDR 1$(DL) >> $@ |
|||
@echo $(DL)#define HAVE_STRUCT_SOCKADDR_IN6 1$(DL) >> $@ |
|||
@echo $(DL)#define RECV_TYPE_ARG1 int$(DL) >> $@ |
|||
@echo $(DL)#define RECV_TYPE_ARG2 void *$(DL) >> $@ |
|||
@echo $(DL)#define RECV_TYPE_ARG3 size_t$(DL) >> $@ |
|||
@echo $(DL)#define RECV_TYPE_ARG4 int$(DL) >> $@ |
|||
@echo $(DL)#define RECV_TYPE_RETV ssize_t$(DL) >> $@ |
|||
@echo $(DL)#define RECVFROM_TYPE_ARG1 int$(DL) >> $@ |
|||
@echo $(DL)#define RECVFROM_TYPE_ARG2 void$(DL) >> $@ |
|||
@echo $(DL)#define RECVFROM_TYPE_ARG3 size_t$(DL) >> $@ |
|||
@echo $(DL)#define RECVFROM_TYPE_ARG4 int$(DL) >> $@ |
|||
@echo $(DL)#define RECVFROM_TYPE_ARG5 struct sockaddr$(DL) >> $@ |
|||
@echo $(DL)#define RECVFROM_TYPE_ARG6 size_t$(DL) >> $@ |
|||
@echo $(DL)#define RECVFROM_TYPE_RETV ssize_t$(DL) >> $@ |
|||
@echo $(DL)#define RECVFROM_TYPE_ARG2_IS_VOID 1$(DL) >> $@ |
|||
@echo $(DL)#define SEND_QUAL_ARG2$(DL) >> $@ |
|||
@echo $(DL)#define SEND_TYPE_ARG1 int$(DL) >> $@ |
|||
@echo $(DL)#define SEND_TYPE_ARG2 void *$(DL) >> $@ |
|||
@echo $(DL)#define SEND_TYPE_ARG3 size_t$(DL) >> $@ |
|||
@echo $(DL)#define SEND_TYPE_ARG4 int$(DL) >> $@ |
|||
@echo $(DL)#define SEND_TYPE_RETV ssize_t$(DL) >> $@ |
|||
@echo $(DL)#define SIZEOF_SIZE_T 8$(DL) >> $@ |
|||
@echo $(DL)#define SIZEOF_STRUCT_IN6_ADDR 16$(DL) >> $@ |
|||
endif |
|||
@echo $(DL)#define HAVE_ARPA_INET_H 1$(DL) >> $@ |
|||
@echo $(DL)#define HAVE_ASSERT_H 1$(DL) >> $@ |
|||
@echo $(DL)#define HAVE_ERR_H 1$(DL) >> $@ |
|||
@echo $(DL)#define HAVE_FCNTL_H 1$(DL) >> $@ |
|||
@echo $(DL)#define HAVE_GETHOSTBYADDR 1$(DL) >> $@ |
|||
@echo $(DL)#define HAVE_GETHOSTBYNAME 1$(DL) >> $@ |
|||
@echo $(DL)#define HAVE_GETHOSTNAME 1$(DL) >> $@ |
|||
@echo $(DL)#define HAVE_GETPROTOBYNAME 1$(DL) >> $@ |
|||
@echo $(DL)#define HAVE_GMTIME_R 1$(DL) >> $@ |
|||
@echo $(DL)#define HAVE_INET_ADDR 1$(DL) >> $@ |
|||
@echo $(DL)#define HAVE_IOCTL 1$(DL) >> $@ |
|||
@echo $(DL)#define HAVE_IOCTL_FIONBIO 1$(DL) >> $@ |
|||
@echo $(DL)#define HAVE_LIMITS_H 1$(DL) >> $@ |
|||
@echo $(DL)#define HAVE_LL 1$(DL) >> $@ |
|||
@echo $(DL)#define HAVE_LOCALTIME_R 1$(DL) >> $@ |
|||
@echo $(DL)#define HAVE_MALLOC_H 1$(DL) >> $@ |
|||
@echo $(DL)#define HAVE_NETINET_IN_H 1$(DL) >> $@ |
|||
@echo $(DL)#define HAVE_RECV 1$(DL) >> $@ |
|||
@echo $(DL)#define HAVE_RECVFROM 1$(DL) >> $@ |
|||
@echo $(DL)#define HAVE_SELECT 1$(DL) >> $@ |
|||
@echo $(DL)#define HAVE_SEND 1$(DL) >> $@ |
|||
@echo $(DL)#define HAVE_SETJMP_H 1$(DL) >> $@ |
|||
@echo $(DL)#define HAVE_SIGNAL 1$(DL) >> $@ |
|||
@echo $(DL)#define HAVE_SIGNAL_H 1$(DL) >> $@ |
|||
@echo $(DL)#define HAVE_SIG_ATOMIC_T 1$(DL) >> $@ |
|||
@echo $(DL)#define HAVE_SOCKET 1$(DL) >> $@ |
|||
@echo $(DL)#define HAVE_STDLIB_H 1$(DL) >> $@ |
|||
@echo $(DL)#define HAVE_STRDUP 1$(DL) >> $@ |
|||
@echo $(DL)#define HAVE_STRFTIME 1$(DL) >> $@ |
|||
@echo $(DL)#define HAVE_STRING_H 1$(DL) >> $@ |
|||
@echo $(DL)#define HAVE_STRSTR 1$(DL) >> $@ |
|||
@echo $(DL)#define HAVE_STRUCT_ADDRINFO 1$(DL) >> $@ |
|||
@echo $(DL)#define HAVE_STRUCT_TIMEVAL 1$(DL) >> $@ |
|||
@echo $(DL)#define HAVE_SYS_IOCTL_H 1$(DL) >> $@ |
|||
@echo $(DL)#define HAVE_SYS_STAT_H 1$(DL) >> $@ |
|||
@echo $(DL)#define HAVE_SYS_TIME_H 1$(DL) >> $@ |
|||
@echo $(DL)#define HAVE_TIME_H 1$(DL) >> $@ |
|||
@echo $(DL)#define HAVE_UNAME 1$(DL) >> $@ |
|||
@echo $(DL)#define HAVE_UNISTD_H 1$(DL) >> $@ |
|||
@echo $(DL)#define HAVE_UTIME 1$(DL) >> $@ |
|||
@echo $(DL)#define HAVE_UTIME_H 1$(DL) >> $@ |
|||
@echo $(DL)#define HAVE_WRITEV 1$(DL) >> $@ |
|||
@echo $(DL)#define RETSIGTYPE void$(DL) >> $@ |
|||
@echo $(DL)#define SIZEOF_INT 4$(DL) >> $@ |
|||
@echo $(DL)#define SIZEOF_STRUCT_IN_ADDR 4$(DL) >> $@ |
|||
@echo $(DL)#define STDC_HEADERS 1$(DL) >> $@ |
|||
@echo $(DL)#define TIME_WITH_SYS_TIME 1$(DL) >> $@ |
|||
ifdef NW_WINSOCK |
|||
@echo $(DL)#define HAVE_CLOSESOCKET 1$(DL) >> $@ |
|||
else |
|||
@echo $(DL)#define HAVE_SYS_TYPES_H 1$(DL) >> $@ |
|||
@echo $(DL)#define HAVE_SYS_SOCKET_H 1$(DL) >> $@ |
|||
@echo $(DL)#define HAVE_SYS_SOCKIO_H 1$(DL) >> $@ |
|||
@echo $(DL)#define HAVE_NETDB_H 1$(DL) >> $@ |
|||
endif |
|||
@echo $(DL)#ifdef __GNUC__$(DL) >> $@ |
|||
@echo $(DL)#define HAVE_VARIADIC_MACROS_GCC 1$(DL) >> $@ |
|||
@echo $(DL)#else$(DL) >> $@ |
|||
@echo $(DL)#define HAVE_VARIADIC_MACROS_C99 1$(DL) >> $@ |
|||
@echo $(DL)#endif$(DL) >> $@ |
|||
|
|||
FORCE: ; |
|||
|
|||
ares_build.h: Makefile.netware FORCE |
|||
@echo Creating $@ |
|||
@echo $(DL)/* $@ intended for NetWare target.$(DL) > $@ |
|||
@echo $(DL)** Do not edit this file - it is created by make!$(DL) >> $@ |
|||
@echo $(DL)** All your changes will be lost!!$(DL) >> $@ |
|||
@echo $(DL)*/$(DL) >> $@ |
|||
@echo $(DL)#ifndef NETWARE$(DL) >> $@ |
|||
@echo $(DL)#error This $(notdir $@) is created for NetWare platform!$(DL) >> $@ |
|||
@echo $(DL)#endif$(DL) >> $@ |
|||
@echo $(DL)#ifndef __CARES_BUILD_H$(DL) >> $@ |
|||
@echo $(DL)#define __CARES_BUILD_H$(DL) >> $@ |
|||
ifeq ($(LIBARCH),CLIB) |
|||
@echo $(DL)#define CARES_TYPEOF_ARES_SOCKLEN_T int$(DL) >> $@ |
|||
@echo $(DL)#define CARES_SIZEOF_ARES_SOCKLEN_T 4$(DL) >> $@ |
|||
else |
|||
@echo $(DL)#define CARES_TYPEOF_ARES_SOCKLEN_T unsigned int$(DL) >> $@ |
|||
@echo $(DL)#define CARES_SIZEOF_ARES_SOCKLEN_T 4$(DL) >> $@ |
|||
endif |
|||
@echo $(DL)#define CARES_SIZEOF_LONG 4$(DL) >> $@ |
|||
@echo $(DL)typedef CARES_TYPEOF_ARES_SOCKLEN_T ares_socklen_t;$(DL) >> $@ |
|||
@echo $(DL)#endif /* __CARES_BUILD_H */$(DL) >> $@ |
@ -0,0 +1,21 @@ |
|||
Library: c-ares, DNS resolver |
|||
|
|||
Version: 1.7.3 (11 June, 2010) |
|||
|
|||
Authors: Greg Hudson, Daniel Stenberg |
|||
|
|||
License: MIT |
|||
|
|||
Notes: |
|||
|
|||
Just use waf instead of the autoconf based configure script. Delete most of |
|||
the documentation and other files distributed with it. To upgrade, run |
|||
./configure on linux, macintosh, solaris (and other supported platforms) and |
|||
copy |
|||
- ares_config.h |
|||
- ares_setup.h |
|||
- ares_build.h |
|||
into the appropriate directory. |
|||
|
|||
|
|||
|
File diff suppressed because it is too large
@ -1,931 +0,0 @@ |
|||
# generated automatically by aclocal 1.9.6 -*- Autoconf -*- |
|||
|
|||
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, |
|||
# 2005 Free Software Foundation, Inc. |
|||
# This file is free software; the Free Software Foundation |
|||
# gives unlimited permission to copy and/or distribute it, |
|||
# with or without modifications, as long as this notice is preserved. |
|||
|
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without |
|||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
|||
# PARTICULAR PURPOSE. |
|||
|
|||
# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc. |
|||
# |
|||
# This file is free software; the Free Software Foundation |
|||
# gives unlimited permission to copy and/or distribute it, |
|||
# with or without modifications, as long as this notice is preserved. |
|||
|
|||
# AM_AUTOMAKE_VERSION(VERSION) |
|||
# ---------------------------- |
|||
# Automake X.Y traces this macro to ensure aclocal.m4 has been |
|||
# generated from the m4 files accompanying Automake X.Y. |
|||
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"]) |
|||
|
|||
# AM_SET_CURRENT_AUTOMAKE_VERSION |
|||
# ------------------------------- |
|||
# Call AM_AUTOMAKE_VERSION so it can be traced. |
|||
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE. |
|||
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], |
|||
[AM_AUTOMAKE_VERSION([1.9.6])]) |
|||
|
|||
# AM_AUX_DIR_EXPAND -*- Autoconf -*- |
|||
|
|||
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. |
|||
# |
|||
# This file is free software; the Free Software Foundation |
|||
# gives unlimited permission to copy and/or distribute it, |
|||
# with or without modifications, as long as this notice is preserved. |
|||
|
|||
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets |
|||
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to |
|||
# `$srcdir', `$srcdir/..', or `$srcdir/../..'. |
|||
# |
|||
# Of course, Automake must honor this variable whenever it calls a |
|||
# tool from the auxiliary directory. The problem is that $srcdir (and |
|||
# therefore $ac_aux_dir as well) can be either absolute or relative, |
|||
# depending on how configure is run. This is pretty annoying, since |
|||
# it makes $ac_aux_dir quite unusable in subdirectories: in the top |
|||
# source directory, any form will work fine, but in subdirectories a |
|||
# relative path needs to be adjusted first. |
|||
# |
|||
# $ac_aux_dir/missing |
|||
# fails when called from a subdirectory if $ac_aux_dir is relative |
|||
# $top_srcdir/$ac_aux_dir/missing |
|||
# fails if $ac_aux_dir is absolute, |
|||
# fails when called from a subdirectory in a VPATH build with |
|||
# a relative $ac_aux_dir |
|||
# |
|||
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir |
|||
# are both prefixed by $srcdir. In an in-source build this is usually |
|||
# harmless because $srcdir is `.', but things will broke when you |
|||
# start a VPATH build or use an absolute $srcdir. |
|||
# |
|||
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, |
|||
# iff we strip the leading $srcdir from $ac_aux_dir. That would be: |
|||
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` |
|||
# and then we would define $MISSING as |
|||
# MISSING="\${SHELL} $am_aux_dir/missing" |
|||
# This will work as long as MISSING is not called from configure, because |
|||
# unfortunately $(top_srcdir) has no meaning in configure. |
|||
# However there are other variables, like CC, which are often used in |
|||
# configure, and could therefore not use this "fixed" $ac_aux_dir. |
|||
# |
|||
# Another solution, used here, is to always expand $ac_aux_dir to an |
|||
# absolute PATH. The drawback is that using absolute paths prevent a |
|||
# configured tree to be moved without reconfiguration. |
|||
|
|||
AC_DEFUN([AM_AUX_DIR_EXPAND], |
|||
[dnl Rely on autoconf to set up CDPATH properly. |
|||
AC_PREREQ([2.50])dnl |
|||
# expand $ac_aux_dir to an absolute path |
|||
am_aux_dir=`cd $ac_aux_dir && pwd` |
|||
]) |
|||
|
|||
# AM_CONDITIONAL -*- Autoconf -*- |
|||
|
|||
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005 |
|||
# Free Software Foundation, Inc. |
|||
# |
|||
# This file is free software; the Free Software Foundation |
|||
# gives unlimited permission to copy and/or distribute it, |
|||
# with or without modifications, as long as this notice is preserved. |
|||
|
|||
# serial 7 |
|||
|
|||
# AM_CONDITIONAL(NAME, SHELL-CONDITION) |
|||
# ------------------------------------- |
|||
# Define a conditional. |
|||
AC_DEFUN([AM_CONDITIONAL], |
|||
[AC_PREREQ(2.52)dnl |
|||
ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], |
|||
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl |
|||
AC_SUBST([$1_TRUE]) |
|||
AC_SUBST([$1_FALSE]) |
|||
if $2; then |
|||
$1_TRUE= |
|||
$1_FALSE='#' |
|||
else |
|||
$1_TRUE='#' |
|||
$1_FALSE= |
|||
fi |
|||
AC_CONFIG_COMMANDS_PRE( |
|||
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then |
|||
AC_MSG_ERROR([[conditional "$1" was never defined. |
|||
Usually this means the macro was only invoked conditionally.]]) |
|||
fi])]) |
|||
|
|||
|
|||
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 |
|||
# Free Software Foundation, Inc. |
|||
# |
|||
# This file is free software; the Free Software Foundation |
|||
# gives unlimited permission to copy and/or distribute it, |
|||
# with or without modifications, as long as this notice is preserved. |
|||
|
|||
# serial 8 |
|||
|
|||
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be |
|||
# written in clear, in which case automake, when reading aclocal.m4, |
|||
# will think it sees a *use*, and therefore will trigger all it's |
|||
# C support machinery. Also note that it means that autoscan, seeing |
|||
# CC etc. in the Makefile, will ask for an AC_PROG_CC use... |
|||
|
|||
|
|||
# _AM_DEPENDENCIES(NAME) |
|||
# ---------------------- |
|||
# See how the compiler implements dependency checking. |
|||
# NAME is "CC", "CXX", "GCJ", or "OBJC". |
|||
# We try a few techniques and use that to set a single cache variable. |
|||
# |
|||
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was |
|||
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular |
|||
# dependency, and given that the user is not expected to run this macro, |
|||
# just rely on AC_PROG_CC. |
|||
AC_DEFUN([_AM_DEPENDENCIES], |
|||
[AC_REQUIRE([AM_SET_DEPDIR])dnl |
|||
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl |
|||
AC_REQUIRE([AM_MAKE_INCLUDE])dnl |
|||
AC_REQUIRE([AM_DEP_TRACK])dnl |
|||
|
|||
ifelse([$1], CC, [depcc="$CC" am_compiler_list=], |
|||
[$1], CXX, [depcc="$CXX" am_compiler_list=], |
|||
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], |
|||
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], |
|||
[depcc="$$1" am_compiler_list=]) |
|||
|
|||
AC_CACHE_CHECK([dependency style of $depcc], |
|||
[am_cv_$1_dependencies_compiler_type], |
|||
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
|||
# We make a subdir and do the tests there. Otherwise we can end up |
|||
# making bogus files that we don't know about and never remove. For |
|||
# instance it was reported that on HP-UX the gcc test will end up |
|||
# making a dummy file named `D' -- because `-MD' means `put the output |
|||
# in D'. |
|||
mkdir conftest.dir |
|||
# Copy depcomp to subdir because otherwise we won't find it if we're |
|||
# using a relative directory. |
|||
cp "$am_depcomp" conftest.dir |
|||
cd conftest.dir |
|||
# We will build objects and dependencies in a subdirectory because |
|||
# it helps to detect inapplicable dependency modes. For instance |
|||
# both Tru64's cc and ICC support -MD to output dependencies as a |
|||
# side effect of compilation, but ICC will put the dependencies in |
|||
# the current directory while Tru64 will put them in the object |
|||
# directory. |
|||
mkdir sub |
|||
|
|||
am_cv_$1_dependencies_compiler_type=none |
|||
if test "$am_compiler_list" = ""; then |
|||
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` |
|||
fi |
|||
for depmode in $am_compiler_list; do |
|||
# Setup a source with many dependencies, because some compilers |
|||
# like to wrap large dependency lists on column 80 (with \), and |
|||
# we should not choose a depcomp mode which is confused by this. |
|||
# |
|||
# We need to recreate these files for each test, as the compiler may |
|||
# overwrite some of them when testing with obscure command lines. |
|||
# This happens at least with the AIX C compiler. |
|||
: > sub/conftest.c |
|||
for i in 1 2 3 4 5 6; do |
|||
echo '#include "conftst'$i'.h"' >> sub/conftest.c |
|||
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
|||
# Solaris 8's {/usr,}/bin/sh. |
|||
touch sub/conftst$i.h |
|||
done |
|||
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
|||
|
|||
case $depmode in |
|||
nosideeffect) |
|||
# after this tag, mechanisms are not by side-effect, so they'll |
|||
# only be used when explicitly requested |
|||
if test "x$enable_dependency_tracking" = xyes; then |
|||
continue |
|||
else |
|||
break |
|||
fi |
|||
;; |
|||
none) break ;; |
|||
esac |
|||
# We check with `-c' and `-o' for the sake of the "dashmstdout" |
|||
# mode. It turns out that the SunPro C++ compiler does not properly |
|||
# handle `-M -o', and we need to detect this. |
|||
if depmode=$depmode \ |
|||
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
|||
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
|||
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
|||
>/dev/null 2>conftest.err && |
|||
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
|||
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
|||
${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
|||
# icc doesn't choke on unknown options, it will just issue warnings |
|||
# or remarks (even with -Werror). So we grep stderr for any message |
|||
# that says an option was ignored or not supported. |
|||
# When given -MP, icc 7.0 and 7.1 complain thusly: |
|||
# icc: Command line warning: ignoring option '-M'; no argument required |
|||
# The diagnosis changed in icc 8.0: |
|||
# icc: Command line remark: option '-MP' not supported |
|||
if (grep 'ignoring option' conftest.err || |
|||
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
|||
am_cv_$1_dependencies_compiler_type=$depmode |
|||
break |
|||
fi |
|||
fi |
|||
done |
|||
|
|||
cd .. |
|||
rm -rf conftest.dir |
|||
else |
|||
am_cv_$1_dependencies_compiler_type=none |
|||
fi |
|||
]) |
|||
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) |
|||
AM_CONDITIONAL([am__fastdep$1], [ |
|||
test "x$enable_dependency_tracking" != xno \ |
|||
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3]) |
|||
]) |
|||
|
|||
|
|||
# AM_SET_DEPDIR |
|||
# ------------- |
|||
# Choose a directory name for dependency files. |
|||
# This macro is AC_REQUIREd in _AM_DEPENDENCIES |
|||
AC_DEFUN([AM_SET_DEPDIR], |
|||
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl |
|||
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl |
|||
]) |
|||
|
|||
|
|||
# AM_DEP_TRACK |
|||
# ------------ |
|||
AC_DEFUN([AM_DEP_TRACK], |
|||
[AC_ARG_ENABLE(dependency-tracking, |
|||
[ --disable-dependency-tracking speeds up one-time build |
|||
--enable-dependency-tracking do not reject slow dependency extractors]) |
|||
if test "x$enable_dependency_tracking" != xno; then |
|||
am_depcomp="$ac_aux_dir/depcomp" |
|||
AMDEPBACKSLASH='\' |
|||
fi |
|||
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) |
|||
AC_SUBST([AMDEPBACKSLASH]) |
|||
]) |
|||
|
|||
# Generate code to set up dependency tracking. -*- Autoconf -*- |
|||
|
|||
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 |
|||
# Free Software Foundation, Inc. |
|||
# |
|||
# This file is free software; the Free Software Foundation |
|||
# gives unlimited permission to copy and/or distribute it, |
|||
# with or without modifications, as long as this notice is preserved. |
|||
|
|||
#serial 3 |
|||
|
|||
# _AM_OUTPUT_DEPENDENCY_COMMANDS |
|||
# ------------------------------ |
|||
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], |
|||
[for mf in $CONFIG_FILES; do |
|||
# Strip MF so we end up with the name of the file. |
|||
mf=`echo "$mf" | sed -e 's/:.*$//'` |
|||
# Check whether this is an Automake generated Makefile or not. |
|||
# We used to match only the files named `Makefile.in', but |
|||
# some people rename them; so instead we look at the file content. |
|||
# Grep'ing the first line is not enough: some people post-process |
|||
# each Makefile.in and add a new line on top of each file to say so. |
|||
# So let's grep whole file. |
|||
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
|||
dirpart=`AS_DIRNAME("$mf")` |
|||
else |
|||
continue |
|||
fi |
|||
# Extract the definition of DEPDIR, am__include, and am__quote |
|||
# from the Makefile without running `make'. |
|||
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
|||
test -z "$DEPDIR" && continue |
|||
am__include=`sed -n 's/^am__include = //p' < "$mf"` |
|||
test -z "am__include" && continue |
|||
am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
|||
# When using ansi2knr, U may be empty or an underscore; expand it |
|||
U=`sed -n 's/^U = //p' < "$mf"` |
|||
# Find all dependency output files, they are included files with |
|||
# $(DEPDIR) in their names. We invoke sed twice because it is the |
|||
# simplest approach to changing $(DEPDIR) to its actual value in the |
|||
# expansion. |
|||
for file in `sed -n " |
|||
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
|||
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
|||
# Make sure the directory exists. |
|||
test -f "$dirpart/$file" && continue |
|||
fdir=`AS_DIRNAME(["$file"])` |
|||
AS_MKDIR_P([$dirpart/$fdir]) |
|||
# echo "creating $dirpart/$file" |
|||
echo '# dummy' > "$dirpart/$file" |
|||
done |
|||
done |
|||
])# _AM_OUTPUT_DEPENDENCY_COMMANDS |
|||
|
|||
|
|||
# AM_OUTPUT_DEPENDENCY_COMMANDS |
|||
# ----------------------------- |
|||
# This macro should only be invoked once -- use via AC_REQUIRE. |
|||
# |
|||
# This code is only required when automatic dependency tracking |
|||
# is enabled. FIXME. This creates each `.P' file that we will |
|||
# need in order to bootstrap the dependency handling code. |
|||
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], |
|||
[AC_CONFIG_COMMANDS([depfiles], |
|||
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], |
|||
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) |
|||
]) |
|||
|
|||
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 |
|||
# Free Software Foundation, Inc. |
|||
# |
|||
# This file is free software; the Free Software Foundation |
|||
# gives unlimited permission to copy and/or distribute it, |
|||
# with or without modifications, as long as this notice is preserved. |
|||
|
|||
# serial 8 |
|||
|
|||
# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS. |
|||
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)]) |
|||
|
|||
# Do all the work for Automake. -*- Autoconf -*- |
|||
|
|||
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 |
|||
# Free Software Foundation, Inc. |
|||
# |
|||
# This file is free software; the Free Software Foundation |
|||
# gives unlimited permission to copy and/or distribute it, |
|||
# with or without modifications, as long as this notice is preserved. |
|||
|
|||
# serial 12 |
|||
|
|||
# This macro actually does too much. Some checks are only needed if |
|||
# your package does certain things. But this isn't really a big deal. |
|||
|
|||
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) |
|||
# AM_INIT_AUTOMAKE([OPTIONS]) |
|||
# ----------------------------------------------- |
|||
# The call with PACKAGE and VERSION arguments is the old style |
|||
# call (pre autoconf-2.50), which is being phased out. PACKAGE |
|||
# and VERSION should now be passed to AC_INIT and removed from |
|||
# the call to AM_INIT_AUTOMAKE. |
|||
# We support both call styles for the transition. After |
|||
# the next Automake release, Autoconf can make the AC_INIT |
|||
# arguments mandatory, and then we can depend on a new Autoconf |
|||
# release and drop the old call support. |
|||
AC_DEFUN([AM_INIT_AUTOMAKE], |
|||
[AC_PREREQ([2.58])dnl |
|||
dnl Autoconf wants to disallow AM_ names. We explicitly allow |
|||
dnl the ones we care about. |
|||
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl |
|||
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl |
|||
AC_REQUIRE([AC_PROG_INSTALL])dnl |
|||
# test to see if srcdir already configured |
|||
if test "`cd $srcdir && pwd`" != "`pwd`" && |
|||
test -f $srcdir/config.status; then |
|||
AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) |
|||
fi |
|||
|
|||
# test whether we have cygpath |
|||
if test -z "$CYGPATH_W"; then |
|||
if (cygpath --version) >/dev/null 2>/dev/null; then |
|||
CYGPATH_W='cygpath -w' |
|||
else |
|||
CYGPATH_W=echo |
|||
fi |
|||
fi |
|||
AC_SUBST([CYGPATH_W]) |
|||
|
|||
# Define the identity of the package. |
|||
dnl Distinguish between old-style and new-style calls. |
|||
m4_ifval([$2], |
|||
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl |
|||
AC_SUBST([PACKAGE], [$1])dnl |
|||
AC_SUBST([VERSION], [$2])], |
|||
[_AM_SET_OPTIONS([$1])dnl |
|||
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl |
|||
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl |
|||
|
|||
_AM_IF_OPTION([no-define],, |
|||
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) |
|||
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl |
|||
|
|||
# Some tools Automake needs. |
|||
AC_REQUIRE([AM_SANITY_CHECK])dnl |
|||
AC_REQUIRE([AC_ARG_PROGRAM])dnl |
|||
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) |
|||
AM_MISSING_PROG(AUTOCONF, autoconf) |
|||
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) |
|||
AM_MISSING_PROG(AUTOHEADER, autoheader) |
|||
AM_MISSING_PROG(MAKEINFO, makeinfo) |
|||
AM_PROG_INSTALL_SH |
|||
AM_PROG_INSTALL_STRIP |
|||
AC_REQUIRE([AM_PROG_MKDIR_P])dnl |
|||
# We need awk for the "check" target. The system "awk" is bad on |
|||
# some platforms. |
|||
AC_REQUIRE([AC_PROG_AWK])dnl |
|||
AC_REQUIRE([AC_PROG_MAKE_SET])dnl |
|||
AC_REQUIRE([AM_SET_LEADING_DOT])dnl |
|||
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], |
|||
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], |
|||
[_AM_PROG_TAR([v7])])]) |
|||
_AM_IF_OPTION([no-dependencies],, |
|||
[AC_PROVIDE_IFELSE([AC_PROG_CC], |
|||
[_AM_DEPENDENCIES(CC)], |
|||
[define([AC_PROG_CC], |
|||
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl |
|||
AC_PROVIDE_IFELSE([AC_PROG_CXX], |
|||
[_AM_DEPENDENCIES(CXX)], |
|||
[define([AC_PROG_CXX], |
|||
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl |
|||
]) |
|||
]) |
|||
|
|||
|
|||
# When config.status generates a header, we must update the stamp-h file. |
|||
# This file resides in the same directory as the config header |
|||
# that is generated. The stamp files are numbered to have different names. |
|||
|
|||
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the |
|||
# loop where config.status creates the headers, so we can generate |
|||
# our stamp files there. |
|||
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], |
|||
[# Compute $1's index in $config_headers. |
|||
_am_stamp_count=1 |
|||
for _am_header in $config_headers :; do |
|||
case $_am_header in |
|||
$1 | $1:* ) |
|||
break ;; |
|||
* ) |
|||
_am_stamp_count=`expr $_am_stamp_count + 1` ;; |
|||
esac |
|||
done |
|||
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) |
|||
|
|||
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. |
|||
# |
|||
# This file is free software; the Free Software Foundation |
|||
# gives unlimited permission to copy and/or distribute it, |
|||
# with or without modifications, as long as this notice is preserved. |
|||
|
|||
# AM_PROG_INSTALL_SH |
|||
# ------------------ |
|||
# Define $install_sh. |
|||
AC_DEFUN([AM_PROG_INSTALL_SH], |
|||
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl |
|||
install_sh=${install_sh-"$am_aux_dir/install-sh"} |
|||
AC_SUBST(install_sh)]) |
|||
|
|||
# Copyright (C) 2003, 2005 Free Software Foundation, Inc. |
|||
# |
|||
# This file is free software; the Free Software Foundation |
|||
# gives unlimited permission to copy and/or distribute it, |
|||
# with or without modifications, as long as this notice is preserved. |
|||
|
|||
# serial 2 |
|||
|
|||
# Check whether the underlying file-system supports filenames |
|||
# with a leading dot. For instance MS-DOS doesn't. |
|||
AC_DEFUN([AM_SET_LEADING_DOT], |
|||
[rm -rf .tst 2>/dev/null |
|||
mkdir .tst 2>/dev/null |
|||
if test -d .tst; then |
|||
am__leading_dot=. |
|||
else |
|||
am__leading_dot=_ |
|||
fi |
|||
rmdir .tst 2>/dev/null |
|||
AC_SUBST([am__leading_dot])]) |
|||
|
|||
# Add --enable-maintainer-mode option to configure. -*- Autoconf -*- |
|||
# From Jim Meyering |
|||
|
|||
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005 |
|||
# Free Software Foundation, Inc. |
|||
# |
|||
# This file is free software; the Free Software Foundation |
|||
# gives unlimited permission to copy and/or distribute it, |
|||
# with or without modifications, as long as this notice is preserved. |
|||
|
|||
# serial 4 |
|||
|
|||
AC_DEFUN([AM_MAINTAINER_MODE], |
|||
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) |
|||
dnl maintainer-mode is disabled by default |
|||
AC_ARG_ENABLE(maintainer-mode, |
|||
[ --enable-maintainer-mode enable make rules and dependencies not useful |
|||
(and sometimes confusing) to the casual installer], |
|||
USE_MAINTAINER_MODE=$enableval, |
|||
USE_MAINTAINER_MODE=no) |
|||
AC_MSG_RESULT([$USE_MAINTAINER_MODE]) |
|||
AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes]) |
|||
MAINT=$MAINTAINER_MODE_TRUE |
|||
AC_SUBST(MAINT)dnl |
|||
] |
|||
) |
|||
|
|||
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) |
|||
|
|||
# Check to see how 'make' treats includes. -*- Autoconf -*- |
|||
|
|||
# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. |
|||
# |
|||
# This file is free software; the Free Software Foundation |
|||
# gives unlimited permission to copy and/or distribute it, |
|||
# with or without modifications, as long as this notice is preserved. |
|||
|
|||
# serial 3 |
|||
|
|||
# AM_MAKE_INCLUDE() |
|||
# ----------------- |
|||
# Check to see how make treats includes. |
|||
AC_DEFUN([AM_MAKE_INCLUDE], |
|||
[am_make=${MAKE-make} |
|||
cat > confinc << 'END' |
|||
am__doit: |
|||
@echo done |
|||
.PHONY: am__doit |
|||
END |
|||
# If we don't find an include directive, just comment out the code. |
|||
AC_MSG_CHECKING([for style of include used by $am_make]) |
|||
am__include="#" |
|||
am__quote= |
|||
_am_result=none |
|||
# First try GNU make style include. |
|||
echo "include confinc" > confmf |
|||
# We grep out `Entering directory' and `Leaving directory' |
|||
# messages which can occur if `w' ends up in MAKEFLAGS. |
|||
# In particular we don't look at `^make:' because GNU make might |
|||
# be invoked under some other name (usually "gmake"), in which |
|||
# case it prints its new name instead of `make'. |
|||
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
|||
am__include=include |
|||
am__quote= |
|||
_am_result=GNU |
|||
fi |
|||
# Now try BSD make style include. |
|||
if test "$am__include" = "#"; then |
|||
echo '.include "confinc"' > confmf |
|||
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
|||
am__include=.include |
|||
am__quote="\"" |
|||
_am_result=BSD |
|||
fi |
|||
fi |
|||
AC_SUBST([am__include]) |
|||
AC_SUBST([am__quote]) |
|||
AC_MSG_RESULT([$_am_result]) |
|||
rm -f confinc confmf |
|||
]) |
|||
|
|||
# Copyright (C) 1999, 2000, 2001, 2003, 2005 Free Software Foundation, Inc. |
|||
# |
|||
# This file is free software; the Free Software Foundation |
|||
# gives unlimited permission to copy and/or distribute it, |
|||
# with or without modifications, as long as this notice is preserved. |
|||
|
|||
# serial 3 |
|||
|
|||
# AM_PROG_CC_C_O |
|||
# -------------- |
|||
# Like AC_PROG_CC_C_O, but changed for automake. |
|||
AC_DEFUN([AM_PROG_CC_C_O], |
|||
[AC_REQUIRE([AC_PROG_CC_C_O])dnl |
|||
AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl |
|||
# FIXME: we rely on the cache variable name because |
|||
# there is no other way. |
|||
set dummy $CC |
|||
ac_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']` |
|||
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then |
|||
# Losing compiler, so override with the script. |
|||
# FIXME: It is wrong to rewrite CC. |
|||
# But if we don't then we get into trouble of one sort or another. |
|||
# A longer-term fix would be to have automake use am__CC in this case, |
|||
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
|||
CC="$am_aux_dir/compile $CC" |
|||
fi |
|||
]) |
|||
|
|||
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- |
|||
|
|||
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005 |
|||
# Free Software Foundation, Inc. |
|||
# |
|||
# This file is free software; the Free Software Foundation |
|||
# gives unlimited permission to copy and/or distribute it, |
|||
# with or without modifications, as long as this notice is preserved. |
|||
|
|||
# serial 4 |
|||
|
|||
# AM_MISSING_PROG(NAME, PROGRAM) |
|||
# ------------------------------ |
|||
AC_DEFUN([AM_MISSING_PROG], |
|||
[AC_REQUIRE([AM_MISSING_HAS_RUN]) |
|||
$1=${$1-"${am_missing_run}$2"} |
|||
AC_SUBST($1)]) |
|||
|
|||
|
|||
# AM_MISSING_HAS_RUN |
|||
# ------------------ |
|||
# Define MISSING if not defined so far and test if it supports --run. |
|||
# If it does, set am_missing_run to use it, otherwise, to nothing. |
|||
AC_DEFUN([AM_MISSING_HAS_RUN], |
|||
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl |
|||
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
|||
# Use eval to expand $SHELL |
|||
if eval "$MISSING --run true"; then |
|||
am_missing_run="$MISSING --run " |
|||
else |
|||
am_missing_run= |
|||
AC_MSG_WARN([`missing' script is too old or missing]) |
|||
fi |
|||
]) |
|||
|
|||
# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc. |
|||
# |
|||
# This file is free software; the Free Software Foundation |
|||
# gives unlimited permission to copy and/or distribute it, |
|||
# with or without modifications, as long as this notice is preserved. |
|||
|
|||
# AM_PROG_MKDIR_P |
|||
# --------------- |
|||
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise. |
|||
# |
|||
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories |
|||
# created by `make install' are always world readable, even if the |
|||
# installer happens to have an overly restrictive umask (e.g. 077). |
|||
# This was a mistake. There are at least two reasons why we must not |
|||
# use `-m 0755': |
|||
# - it causes special bits like SGID to be ignored, |
|||
# - it may be too restrictive (some setups expect 775 directories). |
|||
# |
|||
# Do not use -m 0755 and let people choose whatever they expect by |
|||
# setting umask. |
|||
# |
|||
# We cannot accept any implementation of `mkdir' that recognizes `-p'. |
|||
# Some implementations (such as Solaris 8's) are not thread-safe: if a |
|||
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c' |
|||
# concurrently, both version can detect that a/ is missing, but only |
|||
# one can create it and the other will error out. Consequently we |
|||
# restrict ourselves to GNU make (using the --version option ensures |
|||
# this.) |
|||
AC_DEFUN([AM_PROG_MKDIR_P], |
|||
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
|||
# We used to keeping the `.' as first argument, in order to |
|||
# allow $(mkdir_p) to be used without argument. As in |
|||
# $(mkdir_p) $(somedir) |
|||
# where $(somedir) is conditionally defined. However this is wrong |
|||
# for two reasons: |
|||
# 1. if the package is installed by a user who cannot write `.' |
|||
# make install will fail, |
|||
# 2. the above comment should most certainly read |
|||
# $(mkdir_p) $(DESTDIR)$(somedir) |
|||
# so it does not work when $(somedir) is undefined and |
|||
# $(DESTDIR) is not. |
|||
# To support the latter case, we have to write |
|||
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), |
|||
# so the `.' trick is pointless. |
|||
mkdir_p='mkdir -p --' |
|||
else |
|||
# On NextStep and OpenStep, the `mkdir' command does not |
|||
# recognize any option. It will interpret all options as |
|||
# directories to create, and then abort because `.' already |
|||
# exists. |
|||
for d in ./-p ./--version; |
|||
do |
|||
test -d $d && rmdir $d |
|||
done |
|||
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. |
|||
if test -f "$ac_aux_dir/mkinstalldirs"; then |
|||
mkdir_p='$(mkinstalldirs)' |
|||
else |
|||
mkdir_p='$(install_sh) -d' |
|||
fi |
|||
fi |
|||
AC_SUBST([mkdir_p])]) |
|||
|
|||
# Helper functions for option handling. -*- Autoconf -*- |
|||
|
|||
# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. |
|||
# |
|||
# This file is free software; the Free Software Foundation |
|||
# gives unlimited permission to copy and/or distribute it, |
|||
# with or without modifications, as long as this notice is preserved. |
|||
|
|||
# serial 3 |
|||
|
|||
# _AM_MANGLE_OPTION(NAME) |
|||
# ----------------------- |
|||
AC_DEFUN([_AM_MANGLE_OPTION], |
|||
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) |
|||
|
|||
# _AM_SET_OPTION(NAME) |
|||
# ------------------------------ |
|||
# Set option NAME. Presently that only means defining a flag for this option. |
|||
AC_DEFUN([_AM_SET_OPTION], |
|||
[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) |
|||
|
|||
# _AM_SET_OPTIONS(OPTIONS) |
|||
# ---------------------------------- |
|||
# OPTIONS is a space-separated list of Automake options. |
|||
AC_DEFUN([_AM_SET_OPTIONS], |
|||
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) |
|||
|
|||
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) |
|||
# ------------------------------------------- |
|||
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. |
|||
AC_DEFUN([_AM_IF_OPTION], |
|||
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) |
|||
|
|||
# Check to make sure that the build environment is sane. -*- Autoconf -*- |
|||
|
|||
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 |
|||
# Free Software Foundation, Inc. |
|||
# |
|||
# This file is free software; the Free Software Foundation |
|||
# gives unlimited permission to copy and/or distribute it, |
|||
# with or without modifications, as long as this notice is preserved. |
|||
|
|||
# serial 4 |
|||
|
|||
# AM_SANITY_CHECK |
|||
# --------------- |
|||
AC_DEFUN([AM_SANITY_CHECK], |
|||
[AC_MSG_CHECKING([whether build environment is sane]) |
|||
# Just in case |
|||
sleep 1 |
|||
echo timestamp > conftest.file |
|||
# Do `set' in a subshell so we don't clobber the current shell's |
|||
# arguments. Must try -L first in case configure is actually a |
|||
# symlink; some systems play weird games with the mod time of symlinks |
|||
# (eg FreeBSD returns the mod time of the symlink's containing |
|||
# directory). |
|||
if ( |
|||
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
|||
if test "$[*]" = "X"; then |
|||
# -L didn't work. |
|||
set X `ls -t $srcdir/configure conftest.file` |
|||
fi |
|||
rm -f conftest.file |
|||
if test "$[*]" != "X $srcdir/configure conftest.file" \ |
|||
&& test "$[*]" != "X conftest.file $srcdir/configure"; then |
|||
|
|||
# If neither matched, then we have a broken ls. This can happen |
|||
# if, for instance, CONFIG_SHELL is bash and it inherits a |
|||
# broken ls alias from the environment. This has actually |
|||
# happened. Such a system could not be considered "sane". |
|||
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken |
|||
alias in your environment]) |
|||
fi |
|||
|
|||
test "$[2]" = conftest.file |
|||
) |
|||
then |
|||
# Ok. |
|||
: |
|||
else |
|||
AC_MSG_ERROR([newly created file is older than distributed files! |
|||
Check your system clock]) |
|||
fi |
|||
AC_MSG_RESULT(yes)]) |
|||
|
|||
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. |
|||
# |
|||
# This file is free software; the Free Software Foundation |
|||
# gives unlimited permission to copy and/or distribute it, |
|||
# with or without modifications, as long as this notice is preserved. |
|||
|
|||
# AM_PROG_INSTALL_STRIP |
|||
# --------------------- |
|||
# One issue with vendor `install' (even GNU) is that you can't |
|||
# specify the program used to strip binaries. This is especially |
|||
# annoying in cross-compiling environments, where the build's strip |
|||
# is unlikely to handle the host's binaries. |
|||
# Fortunately install-sh will honor a STRIPPROG variable, so we |
|||
# always use install-sh in `make install-strip', and initialize |
|||
# STRIPPROG with the value of the STRIP variable (set by the user). |
|||
AC_DEFUN([AM_PROG_INSTALL_STRIP], |
|||
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl |
|||
# Installed binaries are usually stripped using `strip' when the user |
|||
# run `make install-strip'. However `strip' might not be the right |
|||
# tool to use in cross-compilation environments, therefore Automake |
|||
# will honor the `STRIP' environment variable to overrule this program. |
|||
dnl Don't test for $cross_compiling = yes, because it might be `maybe'. |
|||
if test "$cross_compiling" != no; then |
|||
AC_CHECK_TOOL([STRIP], [strip], :) |
|||
fi |
|||
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
|||
AC_SUBST([INSTALL_STRIP_PROGRAM])]) |
|||
|
|||
# Check how to create a tarball. -*- Autoconf -*- |
|||
|
|||
# Copyright (C) 2004, 2005 Free Software Foundation, Inc. |
|||
# |
|||
# This file is free software; the Free Software Foundation |
|||
# gives unlimited permission to copy and/or distribute it, |
|||
# with or without modifications, as long as this notice is preserved. |
|||
|
|||
# serial 2 |
|||
|
|||
# _AM_PROG_TAR(FORMAT) |
|||
# -------------------- |
|||
# Check how to create a tarball in format FORMAT. |
|||
# FORMAT should be one of `v7', `ustar', or `pax'. |
|||
# |
|||
# Substitute a variable $(am__tar) that is a command |
|||
# writing to stdout a FORMAT-tarball containing the directory |
|||
# $tardir. |
|||
# tardir=directory && $(am__tar) > result.tar |
|||
# |
|||
# Substitute a variable $(am__untar) that extract such |
|||
# a tarball read from stdin. |
|||
# $(am__untar) < result.tar |
|||
AC_DEFUN([_AM_PROG_TAR], |
|||
[# Always define AMTAR for backward compatibility. |
|||
AM_MISSING_PROG([AMTAR], [tar]) |
|||
m4_if([$1], [v7], |
|||
[am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], |
|||
[m4_case([$1], [ustar],, [pax],, |
|||
[m4_fatal([Unknown tar format])]) |
|||
AC_MSG_CHECKING([how to create a $1 tar archive]) |
|||
# Loop over all known methods to create a tar archive until one works. |
|||
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' |
|||
_am_tools=${am_cv_prog_tar_$1-$_am_tools} |
|||
# Do not fold the above two line into one, because Tru64 sh and |
|||
# Solaris sh will not grok spaces in the rhs of `-'. |
|||
for _am_tool in $_am_tools |
|||
do |
|||
case $_am_tool in |
|||
gnutar) |
|||
for _am_tar in tar gnutar gtar; |
|||
do |
|||
AM_RUN_LOG([$_am_tar --version]) && break |
|||
done |
|||
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' |
|||
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' |
|||
am__untar="$_am_tar -xf -" |
|||
;; |
|||
plaintar) |
|||
# Must skip GNU tar: if it does not support --format= it doesn't create |
|||
# ustar tarball either. |
|||
(tar --version) >/dev/null 2>&1 && continue |
|||
am__tar='tar chf - "$$tardir"' |
|||
am__tar_='tar chf - "$tardir"' |
|||
am__untar='tar xf -' |
|||
;; |
|||
pax) |
|||
am__tar='pax -L -x $1 -w "$$tardir"' |
|||
am__tar_='pax -L -x $1 -w "$tardir"' |
|||
am__untar='pax -r' |
|||
;; |
|||
cpio) |
|||
am__tar='find "$$tardir" -print | cpio -o -H $1 -L' |
|||
am__tar_='find "$tardir" -print | cpio -o -H $1 -L' |
|||
am__untar='cpio -i -H $1 -d' |
|||
;; |
|||
none) |
|||
am__tar=false |
|||
am__tar_=false |
|||
am__untar=false |
|||
;; |
|||
esac |
|||
|
|||
# If the value was cached, stop now. We just wanted to have am__tar |
|||
# and am__untar set. |
|||
test -n "${am_cv_prog_tar_$1}" && break |
|||
|
|||
# tar/untar a dummy directory, and stop if the command works |
|||
rm -rf conftest.dir |
|||
mkdir conftest.dir |
|||
echo GrepMe > conftest.dir/file |
|||
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) |
|||
rm -rf conftest.dir |
|||
if test -s conftest.tar; then |
|||
AM_RUN_LOG([$am__untar <conftest.tar]) |
|||
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break |
|||
fi |
|||
done |
|||
rm -rf conftest.dir |
|||
|
|||
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) |
|||
AC_MSG_RESULT([$am_cv_prog_tar_$1])]) |
|||
AC_SUBST([am__tar]) |
|||
AC_SUBST([am__untar]) |
|||
]) # _AM_PROG_TAR |
|||
|
|||
m4_include([m4/cares-compilers.m4]) |
|||
m4_include([m4/cares-confopts.m4]) |
|||
m4_include([m4/cares-functions.m4]) |
|||
m4_include([m4/cares-override.m4]) |
|||
m4_include([m4/cares-reentrant.m4]) |
|||
m4_include([m4/cares-system.m4]) |
|||
m4_include([m4/libtool.m4]) |
|||
m4_include([m4/ltoptions.m4]) |
|||
m4_include([m4/ltsugar.m4]) |
|||
m4_include([m4/ltversion.m4]) |
|||
m4_include([m4/lt~obsolete.m4]) |
|||
m4_include([acinclude.m4]) |
@ -1,627 +0,0 @@ |
|||
/*
|
|||
* |
|||
* IP-address/hostname to country converter. |
|||
* |
|||
* Problem; you want to know where IP a.b.c.d is located. |
|||
* |
|||
* Use ares_gethostbyname ("d.c.b.a.zz.countries.nerd.dk") |
|||
* and get the CNAME (host->h_name). Result will be: |
|||
* CNAME = zz<CC>.countries.nerd.dk with address 127.0.x.y (ver 1) or |
|||
* CNAME = <a.b.c.d>.zz.countries.nerd.dk with address 127.0.x.y (ver 2) |
|||
* |
|||
* The 2 letter country code is in <CC> and the ISO-3166 country |
|||
* number is in x.y (number = x*256 + y). Version 2 of the protocol is missing |
|||
* the <CC> number. |
|||
* |
|||
* Ref: http://countries.nerd.dk/more.html
|
|||
* |
|||
* Written by G. Vanem <gvanem@broadpark.no> 2006, 2007 |
|||
* |
|||
* NB! This program may not be big-endian aware. |
|||
* |
|||
* Permission to use, copy, modify, and distribute this |
|||
* software and its documentation for any purpose and without |
|||
* fee is hereby granted, provided that the above copyright |
|||
* notice appear in all copies and that both that copyright |
|||
* notice and this permission notice appear in supporting |
|||
* documentation, and that the name of M.I.T. not be used in |
|||
* advertising or publicity pertaining to distribution of the |
|||
* software without specific, written prior permission. |
|||
* M.I.T. makes no representations about the suitability of |
|||
* this software for any purpose. It is provided "as is" |
|||
* without express or implied warranty. |
|||
*/ |
|||
|
|||
#include "ares_setup.h" |
|||
|
|||
#include <stdio.h> |
|||
#include <stdlib.h> |
|||
#include <stdarg.h> |
|||
#include <string.h> |
|||
#include <ctype.h> |
|||
#ifdef HAVE_UNISTD_H |
|||
#include <unistd.h> |
|||
#endif |
|||
#ifdef HAVE_STRINGS_H |
|||
#include <strings.h> |
|||
#endif |
|||
|
|||
#if defined(WIN32) && !defined(WATT32) |
|||
#include <winsock.h> |
|||
#else |
|||
#include <sys/socket.h> |
|||
#include <arpa/inet.h> |
|||
#include <netinet/in.h> |
|||
#include <netdb.h> |
|||
#endif |
|||
|
|||
#include "ares.h" |
|||
#include "ares_getopt.h" |
|||
#include "inet_net_pton.h" |
|||
#include "inet_ntop.h" |
|||
|
|||
#ifndef HAVE_STRDUP |
|||
# include "ares_strdup.h" |
|||
# define strdup(ptr) ares_strdup(ptr) |
|||
#endif |
|||
|
|||
#ifndef HAVE_STRCASECMP |
|||
# include "ares_strcasecmp.h" |
|||
# define strcasecmp(p1,p2) ares_strcasecmp(p1,p2) |
|||
#endif |
|||
|
|||
#ifndef HAVE_STRNCASECMP |
|||
# include "ares_strcasecmp.h" |
|||
# define strncasecmp(p1,p2,n) ares_strncasecmp(p1,p2,n) |
|||
#endif |
|||
|
|||
#ifndef INADDR_NONE |
|||
#define INADDR_NONE 0xffffffff |
|||
#endif |
|||
|
|||
static const char *usage = "acountry [-vh?] {host|addr} ...\n"; |
|||
static const char nerd_fmt[] = "%u.%u.%u.%u.zz.countries.nerd.dk"; |
|||
static const char *nerd_ver1 = nerd_fmt + 14; |
|||
static const char *nerd_ver2 = nerd_fmt + 11; |
|||
static int verbose = 0; |
|||
|
|||
#define TRACE(fmt) do { \ |
|||
if (verbose > 0) \ |
|||
printf fmt ; \ |
|||
} while (0) |
|||
|
|||
static void wait_ares(ares_channel channel); |
|||
static void callback(void *arg, int status, int timeouts, struct hostent *host); |
|||
static void callback2(void *arg, int status, int timeouts, struct hostent *host); |
|||
static void find_country_from_cname(const char *cname, struct in_addr addr); |
|||
|
|||
static void Abort(const char *fmt, ...) |
|||
{ |
|||
va_list args; |
|||
va_start(args, fmt); |
|||
vfprintf(stderr, fmt, args); |
|||
va_end(args); |
|||
exit(1); |
|||
} |
|||
|
|||
int main(int argc, char **argv) |
|||
{ |
|||
ares_channel channel; |
|||
int ch, status; |
|||
|
|||
#if defined(WIN32) && !defined(WATT32) |
|||
WORD wVersionRequested = MAKEWORD(USE_WINSOCK,USE_WINSOCK); |
|||
WSADATA wsaData; |
|||
WSAStartup(wVersionRequested, &wsaData); |
|||
#endif |
|||
|
|||
status = ares_library_init(ARES_LIB_INIT_ALL); |
|||
if (status != ARES_SUCCESS) |
|||
{ |
|||
fprintf(stderr, "ares_library_init: %s\n", ares_strerror(status)); |
|||
return 1; |
|||
} |
|||
|
|||
while ((ch = ares_getopt(argc, argv, "dvh?")) != -1) |
|||
switch (ch) |
|||
{ |
|||
case 'd': |
|||
#ifdef WATT32 |
|||
dbug_init(); |
|||
#endif |
|||
break; |
|||
case 'v': |
|||
verbose++; |
|||
break; |
|||
case 'h': |
|||
case '?': |
|||
default: |
|||
Abort(usage); |
|||
} |
|||
|
|||
argc -= optind; |
|||
argv += optind; |
|||
if (argc < 1) |
|||
Abort(usage); |
|||
|
|||
status = ares_init(&channel); |
|||
if (status != ARES_SUCCESS) |
|||
{ |
|||
fprintf(stderr, "ares_init: %s\n", ares_strerror(status)); |
|||
return 1; |
|||
} |
|||
|
|||
/* Initiate the queries, one per command-line argument. */ |
|||
for ( ; *argv; argv++) |
|||
{ |
|||
struct in_addr addr; |
|||
char buf[100]; |
|||
|
|||
/* If this fails, assume '*argv' is a host-name that
|
|||
* must be resolved first |
|||
*/ |
|||
if (ares_inet_pton(AF_INET, *argv, &addr) != 1) |
|||
{ |
|||
ares_gethostbyname(channel, *argv, AF_INET, callback2, &addr); |
|||
wait_ares(channel); |
|||
if (addr.s_addr == INADDR_NONE) |
|||
{ |
|||
printf("Failed to lookup %s\n", *argv); |
|||
continue; |
|||
} |
|||
} |
|||
|
|||
sprintf(buf, nerd_fmt, |
|||
(unsigned int)(addr.s_addr >> 24), |
|||
(unsigned int)((addr.s_addr >> 16) & 255), |
|||
(unsigned int)((addr.s_addr >> 8) & 255), |
|||
(unsigned int)(addr.s_addr & 255)); |
|||
TRACE(("Looking up %s...", buf)); |
|||
fflush(stdout); |
|||
ares_gethostbyname(channel, buf, AF_INET, callback, buf); |
|||
} |
|||
|
|||
wait_ares(channel); |
|||
ares_destroy(channel); |
|||
|
|||
ares_library_cleanup(); |
|||
|
|||
#if defined(WIN32) && !defined(WATT32) |
|||
WSACleanup(); |
|||
#endif |
|||
|
|||
return 0; |
|||
} |
|||
|
|||
/*
|
|||
* Wait for the queries to complete. |
|||
*/ |
|||
static void wait_ares(ares_channel channel) |
|||
{ |
|||
for (;;) |
|||
{ |
|||
struct timeval *tvp, tv; |
|||
fd_set read_fds, write_fds; |
|||
int nfds; |
|||
|
|||
FD_ZERO(&read_fds); |
|||
FD_ZERO(&write_fds); |
|||
nfds = ares_fds(channel, &read_fds, &write_fds); |
|||
if (nfds == 0) |
|||
break; |
|||
tvp = ares_timeout(channel, NULL, &tv); |
|||
select(nfds, &read_fds, &write_fds, NULL, tvp); |
|||
ares_process(channel, &read_fds, &write_fds); |
|||
} |
|||
} |
|||
|
|||
/*
|
|||
* This is the callback used when we have the IP-address of interest. |
|||
* Extract the CNAME and figure out the country-code from it. |
|||
*/ |
|||
static void callback(void *arg, int status, int timeouts, struct hostent *host) |
|||
{ |
|||
const char *name = (const char*)arg; |
|||
const char *cname; |
|||
char buf[20]; |
|||
|
|||
(void)timeouts; |
|||
|
|||
if (!host || status != ARES_SUCCESS) |
|||
{ |
|||
printf("Failed to lookup %s: %s\n", name, ares_strerror(status)); |
|||
return; |
|||
} |
|||
|
|||
TRACE(("\nFound address %s, name %s\n", |
|||
ares_inet_ntop(AF_INET,(const char*)host->h_addr,buf,sizeof(buf)), |
|||
host->h_name)); |
|||
|
|||
cname = host->h_name; /* CNAME gets put here */ |
|||
if (!cname) |
|||
printf("Failed to get CNAME for %s\n", name); |
|||
else |
|||
find_country_from_cname(cname, *(struct in_addr*)host->h_addr); |
|||
} |
|||
|
|||
/*
|
|||
* This is the callback used to obtain the IP-address of the host of interest. |
|||
*/ |
|||
static void callback2(void *arg, int status, int timeouts, struct hostent *host) |
|||
{ |
|||
struct in_addr *addr = (struct in_addr*) arg; |
|||
|
|||
(void)timeouts; |
|||
if (!host || status != ARES_SUCCESS) |
|||
memset(addr, INADDR_NONE, sizeof(*addr)); |
|||
else |
|||
memcpy(addr, host->h_addr, sizeof(*addr)); |
|||
} |
|||
|
|||
struct search_list { |
|||
int country_number; /* ISO-3166 country number */ |
|||
char short_name[3]; /* A2 short country code */ |
|||
const char *long_name; /* normal country name */ |
|||
}; |
|||
|
|||
static const struct search_list *list_lookup(int number, const struct search_list *list, int num) |
|||
{ |
|||
while (num > 0 && list->long_name) |
|||
{ |
|||
if (list->country_number == number) |
|||
return (list); |
|||
num--; |
|||
list++; |
|||
} |
|||
return (NULL); |
|||
} |
|||
|
|||
/*
|
|||
* Ref: ftp://ftp.ripe.net/iso3166-countrycodes.txt
|
|||
*/ |
|||
static const struct search_list country_list[] = { |
|||
{ 4, "af", "Afghanistan" }, |
|||
{ 248, "ax", "Åland Island" }, |
|||
{ 8, "al", "Albania" }, |
|||
{ 12, "dz", "Algeria" }, |
|||
{ 16, "as", "American Samoa" }, |
|||
{ 20, "ad", "Andorra" }, |
|||
{ 24, "ao", "Angola" }, |
|||
{ 660, "ai", "Anguilla" }, |
|||
{ 10, "aq", "Antarctica" }, |
|||
{ 28, "ag", "Antigua & Barbuda" }, |
|||
{ 32, "ar", "Argentina" }, |
|||
{ 51, "am", "Armenia" }, |
|||
{ 533, "aw", "Aruba" }, |
|||
{ 36, "au", "Australia" }, |
|||
{ 40, "at", "Austria" }, |
|||
{ 31, "az", "Azerbaijan" }, |
|||
{ 44, "bs", "Bahamas" }, |
|||
{ 48, "bh", "Bahrain" }, |
|||
{ 50, "bd", "Bangladesh" }, |
|||
{ 52, "bb", "Barbados" }, |
|||
{ 112, "by", "Belarus" }, |
|||
{ 56, "be", "Belgium" }, |
|||
{ 84, "bz", "Belize" }, |
|||
{ 204, "bj", "Benin" }, |
|||
{ 60, "bm", "Bermuda" }, |
|||
{ 64, "bt", "Bhutan" }, |
|||
{ 68, "bo", "Bolivia" }, |
|||
{ 70, "ba", "Bosnia & Herzegowina" }, |
|||
{ 72, "bw", "Botswana" }, |
|||
{ 74, "bv", "Bouvet Island" }, |
|||
{ 76, "br", "Brazil" }, |
|||
{ 86, "io", "British Indian Ocean Territory" }, |
|||
{ 96, "bn", "Brunei Darussalam" }, |
|||
{ 100, "bg", "Bulgaria" }, |
|||
{ 854, "bf", "Burkina Faso" }, |
|||
{ 108, "bi", "Burundi" }, |
|||
{ 116, "kh", "Cambodia" }, |
|||
{ 120, "cm", "Cameroon" }, |
|||
{ 124, "ca", "Canada" }, |
|||
{ 132, "cv", "Cape Verde" }, |
|||
{ 136, "ky", "Cayman Islands" }, |
|||
{ 140, "cf", "Central African Republic" }, |
|||
{ 148, "td", "Chad" }, |
|||
{ 152, "cl", "Chile" }, |
|||
{ 156, "cn", "China" }, |
|||
{ 162, "cx", "Christmas Island" }, |
|||
{ 166, "cc", "Cocos Islands" }, |
|||
{ 170, "co", "Colombia" }, |
|||
{ 174, "km", "Comoros" }, |
|||
{ 178, "cg", "Congo" }, |
|||
{ 180, "cd", "Congo" }, |
|||
{ 184, "ck", "Cook Islands" }, |
|||
{ 188, "cr", "Costa Rica" }, |
|||
{ 384, "ci", "Cote d'Ivoire" }, |
|||
{ 191, "hr", "Croatia" }, |
|||
{ 192, "cu", "Cuba" }, |
|||
{ 196, "cy", "Cyprus" }, |
|||
{ 203, "cz", "Czech Republic" }, |
|||
{ 208, "dk", "Denmark" }, |
|||
{ 262, "dj", "Djibouti" }, |
|||
{ 212, "dm", "Dominica" }, |
|||
{ 214, "do", "Dominican Republic" }, |
|||
{ 218, "ec", "Ecuador" }, |
|||
{ 818, "eg", "Egypt" }, |
|||
{ 222, "sv", "El Salvador" }, |
|||
{ 226, "gq", "Equatorial Guinea" }, |
|||
{ 232, "er", "Eritrea" }, |
|||
{ 233, "ee", "Estonia" }, |
|||
{ 231, "et", "Ethiopia" }, |
|||
{ 238, "fk", "Falkland Islands" }, |
|||
{ 234, "fo", "Faroe Islands" }, |
|||
{ 242, "fj", "Fiji" }, |
|||
{ 246, "fi", "Finland" }, |
|||
{ 250, "fr", "France" }, |
|||
{ 249, "fx", "France, Metropolitan" }, |
|||
{ 254, "gf", "French Guiana" }, |
|||
{ 258, "pf", "French Polynesia" }, |
|||
{ 260, "tf", "French Southern Territories" }, |
|||
{ 266, "ga", "Gabon" }, |
|||
{ 270, "gm", "Gambia" }, |
|||
{ 268, "ge", "Georgia" }, |
|||
{ 276, "de", "Germany" }, |
|||
{ 288, "gh", "Ghana" }, |
|||
{ 292, "gi", "Gibraltar" }, |
|||
{ 300, "gr", "Greece" }, |
|||
{ 304, "gl", "Greenland" }, |
|||
{ 308, "gd", "Grenada" }, |
|||
{ 312, "gp", "Guadeloupe" }, |
|||
{ 316, "gu", "Guam" }, |
|||
{ 320, "gt", "Guatemala" }, |
|||
{ 324, "gn", "Guinea" }, |
|||
{ 624, "gw", "Guinea-Bissau" }, |
|||
{ 328, "gy", "Guyana" }, |
|||
{ 332, "ht", "Haiti" }, |
|||
{ 334, "hm", "Heard & Mc Donald Islands" }, |
|||
{ 336, "va", "Vatican City" }, |
|||
{ 340, "hn", "Honduras" }, |
|||
{ 344, "hk", "Hong kong" }, |
|||
{ 348, "hu", "Hungary" }, |
|||
{ 352, "is", "Iceland" }, |
|||
{ 356, "in", "India" }, |
|||
{ 360, "id", "Indonesia" }, |
|||
{ 364, "ir", "Iran" }, |
|||
{ 368, "iq", "Iraq" }, |
|||
{ 372, "ie", "Ireland" }, |
|||
{ 376, "il", "Israel" }, |
|||
{ 380, "it", "Italy" }, |
|||
{ 388, "jm", "Jamaica" }, |
|||
{ 392, "jp", "Japan" }, |
|||
{ 400, "jo", "Jordan" }, |
|||
{ 398, "kz", "Kazakhstan" }, |
|||
{ 404, "ke", "Kenya" }, |
|||
{ 296, "ki", "Kiribati" }, |
|||
{ 408, "kp", "Korea (north)" }, |
|||
{ 410, "kr", "Korea (south)" }, |
|||
{ 414, "kw", "Kuwait" }, |
|||
{ 417, "kg", "Kyrgyzstan" }, |
|||
{ 418, "la", "Laos" }, |
|||
{ 428, "lv", "Latvia" }, |
|||
{ 422, "lb", "Lebanon" }, |
|||
{ 426, "ls", "Lesotho" }, |
|||
{ 430, "lr", "Liberia" }, |
|||
{ 434, "ly", "Libya" }, |
|||
{ 438, "li", "Liechtenstein" }, |
|||
{ 440, "lt", "Lithuania" }, |
|||
{ 442, "lu", "Luxembourg" }, |
|||
{ 446, "mo", "Macao" }, |
|||
{ 807, "mk", "Macedonia" }, |
|||
{ 450, "mg", "Madagascar" }, |
|||
{ 454, "mw", "Malawi" }, |
|||
{ 458, "my", "Malaysia" }, |
|||
{ 462, "mv", "Maldives" }, |
|||
{ 466, "ml", "Mali" }, |
|||
{ 470, "mt", "Malta" }, |
|||
{ 584, "mh", "Marshall Islands" }, |
|||
{ 474, "mq", "Martinique" }, |
|||
{ 478, "mr", "Mauritania" }, |
|||
{ 480, "mu", "Mauritius" }, |
|||
{ 175, "yt", "Mayotte" }, |
|||
{ 484, "mx", "Mexico" }, |
|||
{ 583, "fm", "Micronesia" }, |
|||
{ 498, "md", "Moldova" }, |
|||
{ 492, "mc", "Monaco" }, |
|||
{ 496, "mn", "Mongolia" }, |
|||
{ 500, "ms", "Montserrat" }, |
|||
{ 504, "ma", "Morocco" }, |
|||
{ 508, "mz", "Mozambique" }, |
|||
{ 104, "mm", "Myanmar" }, |
|||
{ 516, "na", "Namibia" }, |
|||
{ 520, "nr", "Nauru" }, |
|||
{ 524, "np", "Nepal" }, |
|||
{ 528, "nl", "Netherlands" }, |
|||
{ 530, "an", "Netherlands Antilles" }, |
|||
{ 540, "nc", "New Caledonia" }, |
|||
{ 554, "nz", "New Zealand" }, |
|||
{ 558, "ni", "Nicaragua" }, |
|||
{ 562, "ne", "Niger" }, |
|||
{ 566, "ng", "Nigeria" }, |
|||
{ 570, "nu", "Niue" }, |
|||
{ 574, "nf", "Norfolk Island" }, |
|||
{ 580, "mp", "Northern Mariana Islands" }, |
|||
{ 578, "no", "Norway" }, |
|||
{ 512, "om", "Oman" }, |
|||
{ 586, "pk", "Pakistan" }, |
|||
{ 585, "pw", "Palau" }, |
|||
{ 275, "ps", "Palestinian Territory" }, |
|||
{ 591, "pa", "Panama" }, |
|||
{ 598, "pg", "Papua New Guinea" }, |
|||
{ 600, "py", "Paraguay" }, |
|||
{ 604, "pe", "Peru" }, |
|||
{ 608, "ph", "Philippines" }, |
|||
{ 612, "pn", "Pitcairn" }, |
|||
{ 616, "pl", "Poland" }, |
|||
{ 620, "pt", "Portugal" }, |
|||
{ 630, "pr", "Puerto Rico" }, |
|||
{ 634, "qa", "Qatar" }, |
|||
{ 638, "re", "Reunion" }, |
|||
{ 642, "ro", "Romania" }, |
|||
{ 643, "ru", "Russia" }, |
|||
{ 646, "rw", "Rwanda" }, |
|||
{ 659, "kn", "Saint Kitts & Nevis" }, |
|||
{ 662, "lc", "Saint Lucia" }, |
|||
{ 670, "vc", "Saint Vincent" }, |
|||
{ 882, "ws", "Samoa" }, |
|||
{ 674, "sm", "San Marino" }, |
|||
{ 678, "st", "Sao Tome & Principe" }, |
|||
{ 682, "sa", "Saudi Arabia" }, |
|||
{ 686, "sn", "Senegal" }, |
|||
{ 891, "cs", "Serbia and Montenegro" }, |
|||
{ 690, "sc", "Seychelles" }, |
|||
{ 694, "sl", "Sierra Leone" }, |
|||
{ 702, "sg", "Singapore" }, |
|||
{ 703, "sk", "Slovakia" }, |
|||
{ 705, "si", "Slovenia" }, |
|||
{ 90, "sb", "Solomon Islands" }, |
|||
{ 706, "so", "Somalia" }, |
|||
{ 710, "za", "South Africa" }, |
|||
{ 239, "gs", "South Georgia" }, |
|||
{ 724, "es", "Spain" }, |
|||
{ 144, "lk", "Sri Lanka" }, |
|||
{ 654, "sh", "St. Helena" }, |
|||
{ 666, "pm", "St. Pierre & Miquelon" }, |
|||
{ 736, "sd", "Sudan" }, |
|||
{ 740, "sr", "Suriname" }, |
|||
{ 744, "sj", "Svalbard & Jan Mayen Islands" }, |
|||
{ 748, "sz", "Swaziland" }, |
|||
{ 752, "se", "Sweden" }, |
|||
{ 756, "ch", "Switzerland" }, |
|||
{ 760, "sy", "Syrian Arab Republic" }, |
|||
{ 626, "tl", "Timor-Leste" }, |
|||
{ 158, "tw", "Taiwan" }, |
|||
{ 762, "tj", "Tajikistan" }, |
|||
{ 834, "tz", "Tanzania" }, |
|||
{ 764, "th", "Thailand" }, |
|||
{ 768, "tg", "Togo" }, |
|||
{ 772, "tk", "Tokelau" }, |
|||
{ 776, "to", "Tonga" }, |
|||
{ 780, "tt", "Trinidad & Tobago" }, |
|||
{ 788, "tn", "Tunisia" }, |
|||
{ 792, "tr", "Turkey" }, |
|||
{ 795, "tm", "Turkmenistan" }, |
|||
{ 796, "tc", "Turks & Caicos Islands" }, |
|||
{ 798, "tv", "Tuvalu" }, |
|||
{ 800, "ug", "Uganda" }, |
|||
{ 804, "ua", "Ukraine" }, |
|||
{ 784, "ae", "United Arab Emirates" }, |
|||
{ 826, "gb", "United Kingdom" }, |
|||
{ 840, "us", "United States" }, |
|||
{ 581, "um", "United States Minor Outlying Islands" }, |
|||
{ 858, "uy", "Uruguay" }, |
|||
{ 860, "uz", "Uzbekistan" }, |
|||
{ 548, "vu", "Vanuatu" }, |
|||
{ 862, "ve", "Venezuela" }, |
|||
{ 704, "vn", "Vietnam" }, |
|||
{ 92, "vg", "Virgin Islands (British)" }, |
|||
{ 850, "vi", "Virgin Islands (US)" }, |
|||
{ 876, "wf", "Wallis & Futuna Islands" }, |
|||
{ 732, "eh", "Western Sahara" }, |
|||
{ 887, "ye", "Yemen" }, |
|||
{ 894, "zm", "Zambia" }, |
|||
{ 716, "zw", "Zimbabwe" } |
|||
}; |
|||
|
|||
/*
|
|||
* Check if start of 'str' is simply an IPv4 address. |
|||
*/ |
|||
#define BYTE_OK(x) ((x) >= 0 && (x) <= 255) |
|||
|
|||
static int is_addr(char *str, char **end) |
|||
{ |
|||
int a0, a1, a2, a3, num, rc = 0, length = 0; |
|||
|
|||
num = sscanf(str,"%3d.%3d.%3d.%3d%n",&a0,&a1,&a2,&a3,&length); |
|||
if( (num == 4) && |
|||
BYTE_OK(a0) && BYTE_OK(a1) && BYTE_OK(a2) && BYTE_OK(a3) && |
|||
length >= (3+4)) |
|||
{ |
|||
rc = 1; |
|||
*end = str + length; |
|||
} |
|||
return rc; |
|||
} |
|||
|
|||
/*
|
|||
* Find the country-code and name from the CNAME. E.g.: |
|||
* version 1: CNAME = zzno.countries.nerd.dk with address 127.0.2.66 |
|||
* yields ccode_A" = "no" and cnumber 578 (2.66). |
|||
* version 2: CNAME = <a.b.c.d>.zz.countries.nerd.dk with address 127.0.2.66 |
|||
* yields cnumber 578 (2.66). ccode_A is ""; |
|||
*/ |
|||
static void find_country_from_cname(const char *cname, struct in_addr addr) |
|||
{ |
|||
const struct search_list *country; |
|||
char ccode_A2[3], *ccopy, *dot_4; |
|||
int cnumber, z0, z1, ver_1, ver_2; |
|||
unsigned long ip; |
|||
|
|||
ip = ntohl(addr.s_addr); |
|||
z0 = TOLOWER(cname[0]); |
|||
z1 = TOLOWER(cname[1]); |
|||
ccopy = strdup(cname); |
|||
dot_4 = NULL; |
|||
|
|||
ver_1 = (z0 == 'z' && z1 == 'z' && !strcasecmp(cname+4,nerd_ver1)); |
|||
ver_2 = (is_addr(ccopy,&dot_4) && !strcasecmp(dot_4,nerd_ver2)); |
|||
|
|||
if (ver_1) |
|||
{ |
|||
const char *dot = strchr(cname, '.'); |
|||
if ((z0 != 'z' && z1 != 'z') || dot != cname+4) |
|||
{ |
|||
printf("Unexpected CNAME %s (ver_1)\n", cname); |
|||
return; |
|||
} |
|||
} |
|||
else if (ver_2) |
|||
{ |
|||
z0 = TOLOWER(dot_4[1]); |
|||
z1 = TOLOWER(dot_4[2]); |
|||
if (z0 != 'z' && z1 != 'z') |
|||
{ |
|||
printf("Unexpected CNAME %s (ver_2)\n", cname); |
|||
return; |
|||
} |
|||
} |
|||
else |
|||
{ |
|||
printf("Unexpected CNAME %s (ver?)\n", cname); |
|||
return; |
|||
} |
|||
|
|||
if (ver_1) |
|||
{ |
|||
ccode_A2[0] = (char)TOLOWER(cname[2]); |
|||
ccode_A2[1] = (char)TOLOWER(cname[3]); |
|||
ccode_A2[2] = '\0'; |
|||
} |
|||
else |
|||
ccode_A2[0] = '\0'; |
|||
|
|||
cnumber = ip & 0xFFFF; |
|||
|
|||
TRACE(("Found country-code `%s', number %d\n", |
|||
ver_1 ? ccode_A2 : "<n/a>", cnumber)); |
|||
|
|||
country = list_lookup(cnumber, country_list, |
|||
sizeof(country_list) / sizeof(country_list[0])); |
|||
if (!country) |
|||
printf("Name for country-number %d not found.\n", cnumber); |
|||
else |
|||
{ |
|||
if (ver_1) |
|||
{ |
|||
if ((country->short_name[0] != ccode_A2[0]) || |
|||
(country->short_name[1] != ccode_A2[1]) || |
|||
(country->short_name[2] != ccode_A2[2])) |
|||
printf("short-name mismatch; %s vs %s\n", |
|||
country->short_name, ccode_A2); |
|||
} |
|||
printf("%s (%s), number %d.\n", |
|||
country->long_name, country->short_name, cnumber); |
|||
} |
|||
free(ccopy); |
|||
} |
|||
|
@ -1,819 +0,0 @@ |
|||
/* Copyright 1998 by the Massachusetts Institute of Technology.
|
|||
* |
|||
* |
|||
* Permission to use, copy, modify, and distribute this |
|||
* software and its documentation for any purpose and without |
|||
* fee is hereby granted, provided that the above copyright |
|||
* notice appear in all copies and that both that copyright |
|||
* notice and this permission notice appear in supporting |
|||
* documentation, and that the name of M.I.T. not be used in |
|||
* advertising or publicity pertaining to distribution of the |
|||
* software without specific, written prior permission. |
|||
* M.I.T. makes no representations about the suitability of |
|||
* this software for any purpose. It is provided "as is" |
|||
* without express or implied warranty. |
|||
*/ |
|||
|
|||
#include "ares_setup.h" |
|||
|
|||
#ifdef HAVE_SYS_SOCKET_H |
|||
# include <sys/socket.h> |
|||
#endif |
|||
#ifdef HAVE_NETINET_IN_H |
|||
# include <netinet/in.h> |
|||
#endif |
|||
#ifdef HAVE_ARPA_INET_H |
|||
# include <arpa/inet.h> |
|||
#endif |
|||
#ifdef HAVE_NETDB_H |
|||
# include <netdb.h> |
|||
#endif |
|||
#ifdef HAVE_ARPA_NAMESER_H |
|||
# include <arpa/nameser.h> |
|||
#else |
|||
# include "nameser.h" |
|||
#endif |
|||
#ifdef HAVE_ARPA_NAMESER_COMPAT_H |
|||
# include <arpa/nameser_compat.h> |
|||
#endif |
|||
|
|||
#ifdef HAVE_SYS_TIME_H |
|||
# include <sys/time.h> |
|||
#endif |
|||
#ifdef HAVE_UNISTD_H |
|||
# include <unistd.h> |
|||
#endif |
|||
#ifdef HAVE_STRINGS_H |
|||
# include <strings.h> |
|||
#endif |
|||
|
|||
#include <stdio.h> |
|||
#include <stdlib.h> |
|||
#include <string.h> |
|||
#include <ctype.h> |
|||
#include <errno.h> |
|||
|
|||
#include "ares.h" |
|||
#include "ares_dns.h" |
|||
#include "inet_ntop.h" |
|||
#include "inet_net_pton.h" |
|||
#include "ares_getopt.h" |
|||
|
|||
#ifndef HAVE_STRDUP |
|||
# include "ares_strdup.h" |
|||
# define strdup(ptr) ares_strdup(ptr) |
|||
#endif |
|||
|
|||
#ifndef HAVE_STRCASECMP |
|||
# include "ares_strcasecmp.h" |
|||
# define strcasecmp(p1,p2) ares_strcasecmp(p1,p2) |
|||
#endif |
|||
|
|||
#ifndef HAVE_STRNCASECMP |
|||
# include "ares_strcasecmp.h" |
|||
# define strncasecmp(p1,p2,n) ares_strncasecmp(p1,p2,n) |
|||
#endif |
|||
|
|||
#ifdef WATT32 |
|||
#undef WIN32 /* Redefined in MingW headers */ |
|||
#endif |
|||
|
|||
/* Mac OS X portability check */ |
|||
#ifndef T_SRV |
|||
#define T_SRV 33 /* server selection */ |
|||
#endif |
|||
|
|||
/* AIX portability check */ |
|||
#ifndef T_NAPTR |
|||
#define T_NAPTR 35 /* naming authority pointer */ |
|||
#endif |
|||
|
|||
struct nv { |
|||
const char *name; |
|||
int value; |
|||
}; |
|||
|
|||
static const struct nv flags[] = { |
|||
{ "usevc", ARES_FLAG_USEVC }, |
|||
{ "primary", ARES_FLAG_PRIMARY }, |
|||
{ "igntc", ARES_FLAG_IGNTC }, |
|||
{ "norecurse", ARES_FLAG_NORECURSE }, |
|||
{ "stayopen", ARES_FLAG_STAYOPEN }, |
|||
{ "noaliases", ARES_FLAG_NOALIASES } |
|||
}; |
|||
static const int nflags = sizeof(flags) / sizeof(flags[0]); |
|||
|
|||
static const struct nv classes[] = { |
|||
{ "IN", C_IN }, |
|||
{ "CHAOS", C_CHAOS }, |
|||
{ "HS", C_HS }, |
|||
{ "ANY", C_ANY } |
|||
}; |
|||
static const int nclasses = sizeof(classes) / sizeof(classes[0]); |
|||
|
|||
static const struct nv types[] = { |
|||
{ "A", T_A }, |
|||
{ "NS", T_NS }, |
|||
{ "MD", T_MD }, |
|||
{ "MF", T_MF }, |
|||
{ "CNAME", T_CNAME }, |
|||
{ "SOA", T_SOA }, |
|||
{ "MB", T_MB }, |
|||
{ "MG", T_MG }, |
|||
{ "MR", T_MR }, |
|||
{ "NULL", T_NULL }, |
|||
{ "WKS", T_WKS }, |
|||
{ "PTR", T_PTR }, |
|||
{ "HINFO", T_HINFO }, |
|||
{ "MINFO", T_MINFO }, |
|||
{ "MX", T_MX }, |
|||
{ "TXT", T_TXT }, |
|||
{ "RP", T_RP }, |
|||
{ "AFSDB", T_AFSDB }, |
|||
{ "X25", T_X25 }, |
|||
{ "ISDN", T_ISDN }, |
|||
{ "RT", T_RT }, |
|||
{ "NSAP", T_NSAP }, |
|||
{ "NSAP_PTR", T_NSAP_PTR }, |
|||
{ "SIG", T_SIG }, |
|||
{ "KEY", T_KEY }, |
|||
{ "PX", T_PX }, |
|||
{ "GPOS", T_GPOS }, |
|||
{ "AAAA", T_AAAA }, |
|||
{ "LOC", T_LOC }, |
|||
{ "SRV", T_SRV }, |
|||
{ "AXFR", T_AXFR }, |
|||
{ "MAILB", T_MAILB }, |
|||
{ "MAILA", T_MAILA }, |
|||
{ "NAPTR", T_NAPTR }, |
|||
{ "ANY", T_ANY } |
|||
}; |
|||
static const int ntypes = sizeof(types) / sizeof(types[0]); |
|||
|
|||
static const char *opcodes[] = { |
|||
"QUERY", "IQUERY", "STATUS", "(reserved)", "NOTIFY", |
|||
"(unknown)", "(unknown)", "(unknown)", "(unknown)", |
|||
"UPDATEA", "UPDATED", "UPDATEDA", "UPDATEM", "UPDATEMA", |
|||
"ZONEINIT", "ZONEREF" |
|||
}; |
|||
|
|||
static const char *rcodes[] = { |
|||
"NOERROR", "FORMERR", "SERVFAIL", "NXDOMAIN", "NOTIMP", "REFUSED", |
|||
"(unknown)", "(unknown)", "(unknown)", "(unknown)", "(unknown)", |
|||
"(unknown)", "(unknown)", "(unknown)", "(unknown)", "NOCHANGE" |
|||
}; |
|||
|
|||
static void callback(void *arg, int status, int timeouts, |
|||
unsigned char *abuf, int alen); |
|||
static const unsigned char *display_question(const unsigned char *aptr, |
|||
const unsigned char *abuf, |
|||
int alen); |
|||
static const unsigned char *display_rr(const unsigned char *aptr, |
|||
const unsigned char *abuf, int alen); |
|||
static const char *type_name(int type); |
|||
static const char *class_name(int dnsclass); |
|||
static void usage(void); |
|||
static void destroy_addr_list(struct ares_addr_node *head); |
|||
static void append_addr_list(struct ares_addr_node **head, |
|||
struct ares_addr_node *node); |
|||
|
|||
int main(int argc, char **argv) |
|||
{ |
|||
ares_channel channel; |
|||
int c, i, optmask = ARES_OPT_FLAGS, dnsclass = C_IN, type = T_A; |
|||
int status, nfds, count; |
|||
struct ares_options options; |
|||
struct hostent *hostent; |
|||
fd_set read_fds, write_fds; |
|||
struct timeval *tvp, tv; |
|||
struct ares_addr_node *srvr, *servers = NULL; |
|||
|
|||
#ifdef USE_WINSOCK |
|||
WORD wVersionRequested = MAKEWORD(USE_WINSOCK,USE_WINSOCK); |
|||
WSADATA wsaData; |
|||
WSAStartup(wVersionRequested, &wsaData); |
|||
#endif |
|||
|
|||
status = ares_library_init(ARES_LIB_INIT_ALL); |
|||
if (status != ARES_SUCCESS) |
|||
{ |
|||
fprintf(stderr, "ares_library_init: %s\n", ares_strerror(status)); |
|||
return 1; |
|||
} |
|||
|
|||
options.flags = ARES_FLAG_NOCHECKRESP; |
|||
options.servers = NULL; |
|||
options.nservers = 0; |
|||
while ((c = ares_getopt(argc, argv, "df:s:c:t:T:U:")) != -1) |
|||
{ |
|||
switch (c) |
|||
{ |
|||
case 'd': |
|||
#ifdef WATT32 |
|||
dbug_init(); |
|||
#endif |
|||
break; |
|||
|
|||
case 'f': |
|||
/* Add a flag. */ |
|||
for (i = 0; i < nflags; i++) |
|||
{ |
|||
if (strcmp(flags[i].name, optarg) == 0) |
|||
break; |
|||
} |
|||
if (i < nflags) |
|||
options.flags |= flags[i].value; |
|||
else |
|||
usage(); |
|||
break; |
|||
|
|||
case 's': |
|||
/* User-specified name servers override default ones. */ |
|||
srvr = malloc(sizeof(struct ares_addr_node)); |
|||
if (!srvr) |
|||
{ |
|||
fprintf(stderr, "Out of memory!\n"); |
|||
destroy_addr_list(servers); |
|||
return 1; |
|||
} |
|||
append_addr_list(&servers, srvr); |
|||
if (ares_inet_pton(AF_INET, optarg, &srvr->addr.addr4) > 0) |
|||
srvr->family = AF_INET; |
|||
else if (ares_inet_pton(AF_INET6, optarg, &srvr->addr.addr6) > 0) |
|||
srvr->family = AF_INET6; |
|||
else |
|||
{ |
|||
hostent = gethostbyname(optarg); |
|||
if (!hostent) |
|||
{ |
|||
fprintf(stderr, "adig: server %s not found.\n", optarg); |
|||
destroy_addr_list(servers); |
|||
return 1; |
|||
} |
|||
switch (hostent->h_addrtype) |
|||
{ |
|||
case AF_INET: |
|||
srvr->family = AF_INET; |
|||
memcpy(&srvr->addr.addr4, hostent->h_addr, |
|||
sizeof(srvr->addr.addr4)); |
|||
break; |
|||
case AF_INET6: |
|||
srvr->family = AF_INET6; |
|||
memcpy(&srvr->addr.addr6, hostent->h_addr, |
|||
sizeof(srvr->addr.addr6)); |
|||
break; |
|||
default: |
|||
fprintf(stderr, |
|||
"adig: server %s unsupported address family.\n", optarg); |
|||
destroy_addr_list(servers); |
|||
return 1; |
|||
} |
|||
} |
|||
/* Notice that calling ares_init_options() without servers in the
|
|||
* options struct and with ARES_OPT_SERVERS set simultaneously in |
|||
* the options mask, results in an initialization with no servers. |
|||
* When alternative name servers have been specified these are set |
|||
* later calling ares_set_servers() overriding any existing server |
|||
* configuration. To prevent initial configuration with default |
|||
* servers that will be discarded later, ARES_OPT_SERVERS is set. |
|||
* If this flag is not set here the result shall be the same but |
|||
* ares_init_options() will do needless work. */ |
|||
optmask |= ARES_OPT_SERVERS; |
|||
break; |
|||
|
|||
case 'c': |
|||
/* Set the query class. */ |
|||
for (i = 0; i < nclasses; i++) |
|||
{ |
|||
if (strcasecmp(classes[i].name, optarg) == 0) |
|||
break; |
|||
} |
|||
if (i < nclasses) |
|||
dnsclass = classes[i].value; |
|||
else |
|||
usage(); |
|||
break; |
|||
|
|||
case 't': |
|||
/* Set the query type. */ |
|||
for (i = 0; i < ntypes; i++) |
|||
{ |
|||
if (strcasecmp(types[i].name, optarg) == 0) |
|||
break; |
|||
} |
|||
if (i < ntypes) |
|||
type = types[i].value; |
|||
else |
|||
usage(); |
|||
break; |
|||
|
|||
case 'T': |
|||
/* Set the TCP port number. */ |
|||
if (!ISDIGIT(*optarg)) |
|||
usage(); |
|||
options.tcp_port = (unsigned short)strtol(optarg, NULL, 0); |
|||
optmask |= ARES_OPT_TCP_PORT; |
|||
break; |
|||
|
|||
case 'U': |
|||
/* Set the UDP port number. */ |
|||
if (!ISDIGIT(*optarg)) |
|||
usage(); |
|||
options.udp_port = (unsigned short)strtol(optarg, NULL, 0); |
|||
optmask |= ARES_OPT_UDP_PORT; |
|||
break; |
|||
} |
|||
} |
|||
argc -= optind; |
|||
argv += optind; |
|||
if (argc == 0) |
|||
usage(); |
|||
|
|||
status = ares_init_options(&channel, &options, optmask); |
|||
|
|||
if (status != ARES_SUCCESS) |
|||
{ |
|||
fprintf(stderr, "ares_init_options: %s\n", |
|||
ares_strerror(status)); |
|||
return 1; |
|||
} |
|||
|
|||
if(servers) |
|||
{ |
|||
status = ares_set_servers(channel, servers); |
|||
destroy_addr_list(servers); |
|||
if (status != ARES_SUCCESS) |
|||
{ |
|||
fprintf(stderr, "ares_init_options: %s\n", |
|||
ares_strerror(status)); |
|||
return 1; |
|||
} |
|||
} |
|||
|
|||
/* Initiate the queries, one per command-line argument. If there is
|
|||
* only one query to do, supply NULL as the callback argument; |
|||
* otherwise, supply the query name as an argument so we can |
|||
* distinguish responses for the user when printing them out. |
|||
*/ |
|||
if (argc == 1) |
|||
ares_query(channel, *argv, dnsclass, type, callback, (char *) NULL); |
|||
else |
|||
{ |
|||
for (; *argv; argv++) |
|||
ares_query(channel, *argv, dnsclass, type, callback, *argv); |
|||
} |
|||
|
|||
/* Wait for all queries to complete. */ |
|||
for (;;) |
|||
{ |
|||
FD_ZERO(&read_fds); |
|||
FD_ZERO(&write_fds); |
|||
nfds = ares_fds(channel, &read_fds, &write_fds); |
|||
if (nfds == 0) |
|||
break; |
|||
tvp = ares_timeout(channel, NULL, &tv); |
|||
count = select(nfds, &read_fds, &write_fds, NULL, tvp); |
|||
if (count < 0 && SOCKERRNO != EINVAL) |
|||
{ |
|||
perror("select"); |
|||
return 1; |
|||
} |
|||
ares_process(channel, &read_fds, &write_fds); |
|||
} |
|||
|
|||
ares_destroy(channel); |
|||
|
|||
ares_library_cleanup(); |
|||
|
|||
#ifdef USE_WINSOCK |
|||
WSACleanup(); |
|||
#endif |
|||
|
|||
return 0; |
|||
} |
|||
|
|||
static void callback(void *arg, int status, int timeouts, |
|||
unsigned char *abuf, int alen) |
|||
{ |
|||
char *name = (char *) arg; |
|||
int id, qr, opcode, aa, tc, rd, ra, rcode; |
|||
unsigned int qdcount, ancount, nscount, arcount, i; |
|||
const unsigned char *aptr; |
|||
|
|||
(void) timeouts; |
|||
|
|||
/* Display the query name if given. */ |
|||
if (name) |
|||
printf("Answer for query %s:\n", name); |
|||
|
|||
/* Display an error message if there was an error, but only stop if
|
|||
* we actually didn't get an answer buffer. |
|||
*/ |
|||
if (status != ARES_SUCCESS) |
|||
{ |
|||
printf("%s\n", ares_strerror(status)); |
|||
if (!abuf) |
|||
return; |
|||
} |
|||
|
|||
/* Won't happen, but check anyway, for safety. */ |
|||
if (alen < HFIXEDSZ) |
|||
return; |
|||
|
|||
/* Parse the answer header. */ |
|||
id = DNS_HEADER_QID(abuf); |
|||
qr = DNS_HEADER_QR(abuf); |
|||
opcode = DNS_HEADER_OPCODE(abuf); |
|||
aa = DNS_HEADER_AA(abuf); |
|||
tc = DNS_HEADER_TC(abuf); |
|||
rd = DNS_HEADER_RD(abuf); |
|||
ra = DNS_HEADER_RA(abuf); |
|||
rcode = DNS_HEADER_RCODE(abuf); |
|||
qdcount = DNS_HEADER_QDCOUNT(abuf); |
|||
ancount = DNS_HEADER_ANCOUNT(abuf); |
|||
nscount = DNS_HEADER_NSCOUNT(abuf); |
|||
arcount = DNS_HEADER_ARCOUNT(abuf); |
|||
|
|||
/* Display the answer header. */ |
|||
printf("id: %d\n", id); |
|||
printf("flags: %s%s%s%s%s\n", |
|||
qr ? "qr " : "", |
|||
aa ? "aa " : "", |
|||
tc ? "tc " : "", |
|||
rd ? "rd " : "", |
|||
ra ? "ra " : ""); |
|||
printf("opcode: %s\n", opcodes[opcode]); |
|||
printf("rcode: %s\n", rcodes[rcode]); |
|||
|
|||
/* Display the questions. */ |
|||
printf("Questions:\n"); |
|||
aptr = abuf + HFIXEDSZ; |
|||
for (i = 0; i < qdcount; i++) |
|||
{ |
|||
aptr = display_question(aptr, abuf, alen); |
|||
if (aptr == NULL) |
|||
return; |
|||
} |
|||
|
|||
/* Display the answers. */ |
|||
printf("Answers:\n"); |
|||
for (i = 0; i < ancount; i++) |
|||
{ |
|||
aptr = display_rr(aptr, abuf, alen); |
|||
if (aptr == NULL) |
|||
return; |
|||
} |
|||
|
|||
/* Display the NS records. */ |
|||
printf("NS records:\n"); |
|||
for (i = 0; i < nscount; i++) |
|||
{ |
|||
aptr = display_rr(aptr, abuf, alen); |
|||
if (aptr == NULL) |
|||
return; |
|||
} |
|||
|
|||
/* Display the additional records. */ |
|||
printf("Additional records:\n"); |
|||
for (i = 0; i < arcount; i++) |
|||
{ |
|||
aptr = display_rr(aptr, abuf, alen); |
|||
if (aptr == NULL) |
|||
return; |
|||
} |
|||
} |
|||
|
|||
static const unsigned char *display_question(const unsigned char *aptr, |
|||
const unsigned char *abuf, |
|||
int alen) |
|||
{ |
|||
char *name; |
|||
int type, dnsclass, status; |
|||
long len; |
|||
|
|||
/* Parse the question name. */ |
|||
status = ares_expand_name(aptr, abuf, alen, &name, &len); |
|||
if (status != ARES_SUCCESS) |
|||
return NULL; |
|||
aptr += len; |
|||
|
|||
/* Make sure there's enough data after the name for the fixed part
|
|||
* of the question. |
|||
*/ |
|||
if (aptr + QFIXEDSZ > abuf + alen) |
|||
{ |
|||
ares_free_string(name); |
|||
return NULL; |
|||
} |
|||
|
|||
/* Parse the question type and class. */ |
|||
type = DNS_QUESTION_TYPE(aptr); |
|||
dnsclass = DNS_QUESTION_CLASS(aptr); |
|||
aptr += QFIXEDSZ; |
|||
|
|||
/* Display the question, in a format sort of similar to how we will
|
|||
* display RRs. |
|||
*/ |
|||
printf("\t%-15s.\t", name); |
|||
if (dnsclass != C_IN) |
|||
printf("\t%s", class_name(dnsclass)); |
|||
printf("\t%s\n", type_name(type)); |
|||
ares_free_string(name); |
|||
return aptr; |
|||
} |
|||
|
|||
static const unsigned char *display_rr(const unsigned char *aptr, |
|||
const unsigned char *abuf, int alen) |
|||
{ |
|||
const unsigned char *p; |
|||
int type, dnsclass, ttl, dlen, status; |
|||
long len; |
|||
char addr[46]; |
|||
union { |
|||
unsigned char * as_uchar; |
|||
char * as_char; |
|||
} name; |
|||
|
|||
/* Parse the RR name. */ |
|||
status = ares_expand_name(aptr, abuf, alen, &name.as_char, &len); |
|||
if (status != ARES_SUCCESS) |
|||
return NULL; |
|||
aptr += len; |
|||
|
|||
/* Make sure there is enough data after the RR name for the fixed
|
|||
* part of the RR. |
|||
*/ |
|||
if (aptr + RRFIXEDSZ > abuf + alen) |
|||
{ |
|||
ares_free_string(name.as_char); |
|||
return NULL; |
|||
} |
|||
|
|||
/* Parse the fixed part of the RR, and advance to the RR data
|
|||
* field. */ |
|||
type = DNS_RR_TYPE(aptr); |
|||
dnsclass = DNS_RR_CLASS(aptr); |
|||
ttl = DNS_RR_TTL(aptr); |
|||
dlen = DNS_RR_LEN(aptr); |
|||
aptr += RRFIXEDSZ; |
|||
if (aptr + dlen > abuf + alen) |
|||
{ |
|||
ares_free_string(name.as_char); |
|||
return NULL; |
|||
} |
|||
|
|||
/* Display the RR name, class, and type. */ |
|||
printf("\t%-15s.\t%d", name.as_char, ttl); |
|||
if (dnsclass != C_IN) |
|||
printf("\t%s", class_name(dnsclass)); |
|||
printf("\t%s", type_name(type)); |
|||
ares_free_string(name.as_char); |
|||
|
|||
/* Display the RR data. Don't touch aptr. */ |
|||
switch (type) |
|||
{ |
|||
case T_CNAME: |
|||
case T_MB: |
|||
case T_MD: |
|||
case T_MF: |
|||
case T_MG: |
|||
case T_MR: |
|||
case T_NS: |
|||
case T_PTR: |
|||
/* For these types, the RR data is just a domain name. */ |
|||
status = ares_expand_name(aptr, abuf, alen, &name.as_char, &len); |
|||
if (status != ARES_SUCCESS) |
|||
return NULL; |
|||
printf("\t%s.", name.as_char); |
|||
ares_free_string(name.as_char); |
|||
break; |
|||
|
|||
case T_HINFO: |
|||
/* The RR data is two length-counted character strings. */ |
|||
p = aptr; |
|||
len = *p; |
|||
if (p + len + 1 > aptr + dlen) |
|||
return NULL; |
|||
status = ares_expand_string(p, abuf, alen, &name.as_uchar, &len); |
|||
if (status != ARES_SUCCESS) |
|||
return NULL; |
|||
printf("\t%s", name.as_char); |
|||
ares_free_string(name.as_char); |
|||
p += len; |
|||
len = *p; |
|||
if (p + len + 1 > aptr + dlen) |
|||
return NULL; |
|||
status = ares_expand_string(p, abuf, alen, &name.as_uchar, &len); |
|||
if (status != ARES_SUCCESS) |
|||
return NULL; |
|||
printf("\t%s", name.as_char); |
|||
ares_free_string(name.as_char); |
|||
break; |
|||
|
|||
case T_MINFO: |
|||
/* The RR data is two domain names. */ |
|||
p = aptr; |
|||
status = ares_expand_name(p, abuf, alen, &name.as_char, &len); |
|||
if (status != ARES_SUCCESS) |
|||
return NULL; |
|||
printf("\t%s.", name.as_char); |
|||
ares_free_string(name.as_char); |
|||
p += len; |
|||
status = ares_expand_name(p, abuf, alen, &name.as_char, &len); |
|||
if (status != ARES_SUCCESS) |
|||
return NULL; |
|||
printf("\t%s.", name.as_char); |
|||
ares_free_string(name.as_char); |
|||
break; |
|||
|
|||
case T_MX: |
|||
/* The RR data is two bytes giving a preference ordering, and
|
|||
* then a domain name. |
|||
*/ |
|||
if (dlen < 2) |
|||
return NULL; |
|||
printf("\t%d", DNS__16BIT(aptr)); |
|||
status = ares_expand_name(aptr + 2, abuf, alen, &name.as_char, &len); |
|||
if (status != ARES_SUCCESS) |
|||
return NULL; |
|||
printf("\t%s.", name.as_char); |
|||
ares_free_string(name.as_char); |
|||
break; |
|||
|
|||
case T_SOA: |
|||
/* The RR data is two domain names and then five four-byte
|
|||
* numbers giving the serial number and some timeouts. |
|||
*/ |
|||
p = aptr; |
|||
status = ares_expand_name(p, abuf, alen, &name.as_char, &len); |
|||
if (status != ARES_SUCCESS) |
|||
return NULL; |
|||
printf("\t%s.\n", name.as_char); |
|||
ares_free_string(name.as_char); |
|||
p += len; |
|||
status = ares_expand_name(p, abuf, alen, &name.as_char, &len); |
|||
if (status != ARES_SUCCESS) |
|||
return NULL; |
|||
printf("\t\t\t\t\t\t%s.\n", name.as_char); |
|||
ares_free_string(name.as_char); |
|||
p += len; |
|||
if (p + 20 > aptr + dlen) |
|||
return NULL; |
|||
printf("\t\t\t\t\t\t( %lu %lu %lu %lu %lu )", |
|||
(unsigned long)DNS__32BIT(p), (unsigned long)DNS__32BIT(p+4), |
|||
(unsigned long)DNS__32BIT(p+8), (unsigned long)DNS__32BIT(p+12), |
|||
(unsigned long)DNS__32BIT(p+16)); |
|||
break; |
|||
|
|||
case T_TXT: |
|||
/* The RR data is one or more length-counted character
|
|||
* strings. */ |
|||
p = aptr; |
|||
while (p < aptr + dlen) |
|||
{ |
|||
len = *p; |
|||
if (p + len + 1 > aptr + dlen) |
|||
return NULL; |
|||
status = ares_expand_string(p, abuf, alen, &name.as_uchar, &len); |
|||
if (status != ARES_SUCCESS) |
|||
return NULL; |
|||
printf("\t%s", name.as_char); |
|||
ares_free_string(name.as_char); |
|||
p += len; |
|||
} |
|||
break; |
|||
|
|||
case T_A: |
|||
/* The RR data is a four-byte Internet address. */ |
|||
if (dlen != 4) |
|||
return NULL; |
|||
printf("\t%s", ares_inet_ntop(AF_INET,aptr,addr,sizeof(addr))); |
|||
break; |
|||
|
|||
case T_AAAA: |
|||
/* The RR data is a 16-byte IPv6 address. */ |
|||
if (dlen != 16) |
|||
return NULL; |
|||
printf("\t%s", ares_inet_ntop(AF_INET6,aptr,addr,sizeof(addr))); |
|||
break; |
|||
|
|||
case T_WKS: |
|||
/* Not implemented yet */ |
|||
break; |
|||
|
|||
case T_SRV: |
|||
/* The RR data is three two-byte numbers representing the
|
|||
* priority, weight, and port, followed by a domain name. |
|||
*/ |
|||
|
|||
printf("\t%d", DNS__16BIT(aptr)); |
|||
printf(" %d", DNS__16BIT(aptr + 2)); |
|||
printf(" %d", DNS__16BIT(aptr + 4)); |
|||
|
|||
status = ares_expand_name(aptr + 6, abuf, alen, &name.as_char, &len); |
|||
if (status != ARES_SUCCESS) |
|||
return NULL; |
|||
printf("\t%s.", name.as_char); |
|||
ares_free_string(name.as_char); |
|||
break; |
|||
|
|||
case T_NAPTR: |
|||
|
|||
printf("\t%d", DNS__16BIT(aptr)); /* order */ |
|||
printf(" %d\n", DNS__16BIT(aptr + 2)); /* preference */ |
|||
|
|||
p = aptr + 4; |
|||
status = ares_expand_string(p, abuf, alen, &name.as_uchar, &len); |
|||
if (status != ARES_SUCCESS) |
|||
return NULL; |
|||
printf("\t\t\t\t\t\t%s\n", name.as_char); |
|||
ares_free_string(name.as_char); |
|||
p += len; |
|||
|
|||
status = ares_expand_string(p, abuf, alen, &name.as_uchar, &len); |
|||
if (status != ARES_SUCCESS) |
|||
return NULL; |
|||
printf("\t\t\t\t\t\t%s\n", name.as_char); |
|||
ares_free_string(name.as_char); |
|||
p += len; |
|||
|
|||
status = ares_expand_string(p, abuf, alen, &name.as_uchar, &len); |
|||
if (status != ARES_SUCCESS) |
|||
return NULL; |
|||
printf("\t\t\t\t\t\t%s\n", name.as_char); |
|||
ares_free_string(name.as_char); |
|||
p += len; |
|||
|
|||
status = ares_expand_name(p, abuf, alen, &name.as_char, &len); |
|||
if (status != ARES_SUCCESS) |
|||
return NULL; |
|||
printf("\t\t\t\t\t\t%s", name.as_char); |
|||
ares_free_string(name.as_char); |
|||
break; |
|||
|
|||
|
|||
default: |
|||
printf("\t[Unknown RR; cannot parse]"); |
|||
break; |
|||
} |
|||
printf("\n"); |
|||
|
|||
return aptr + dlen; |
|||
} |
|||
|
|||
static const char *type_name(int type) |
|||
{ |
|||
int i; |
|||
|
|||
for (i = 0; i < ntypes; i++) |
|||
{ |
|||
if (types[i].value == type) |
|||
return types[i].name; |
|||
} |
|||
return "(unknown)"; |
|||
} |
|||
|
|||
static const char *class_name(int dnsclass) |
|||
{ |
|||
int i; |
|||
|
|||
for (i = 0; i < nclasses; i++) |
|||
{ |
|||
if (classes[i].value == dnsclass) |
|||
return classes[i].name; |
|||
} |
|||
return "(unknown)"; |
|||
} |
|||
|
|||
static void usage(void) |
|||
{ |
|||
fprintf(stderr, "usage: adig [-f flag] [-s server] [-c class] " |
|||
"[-t type] [-p port] name ...\n"); |
|||
exit(1); |
|||
} |
|||
|
|||
static void destroy_addr_list(struct ares_addr_node *head) |
|||
{ |
|||
while(head) |
|||
{ |
|||
struct ares_addr_node *detached = head; |
|||
head = head->next; |
|||
free(detached); |
|||
} |
|||
} |
|||
|
|||
static void append_addr_list(struct ares_addr_node **head, |
|||
struct ares_addr_node *node) |
|||
{ |
|||
struct ares_addr_node *last; |
|||
node->next = NULL; |
|||
if(*head) |
|||
{ |
|||
last = *head; |
|||
while(last->next) |
|||
last = last->next; |
|||
last->next = node; |
|||
} |
|||
else |
|||
*head = node; |
|||
} |
@ -1,201 +0,0 @@ |
|||
/* Copyright 1998 by the Massachusetts Institute of Technology.
|
|||
* |
|||
* |
|||
* Permission to use, copy, modify, and distribute this |
|||
* software and its documentation for any purpose and without |
|||
* fee is hereby granted, provided that the above copyright |
|||
* notice appear in all copies and that both that copyright |
|||
* notice and this permission notice appear in supporting |
|||
* documentation, and that the name of M.I.T. not be used in |
|||
* advertising or publicity pertaining to distribution of the |
|||
* software without specific, written prior permission. |
|||
* M.I.T. makes no representations about the suitability of |
|||
* this software for any purpose. It is provided "as is" |
|||
* without express or implied warranty. |
|||
*/ |
|||
|
|||
#include "ares_setup.h" |
|||
|
|||
#if !defined(WIN32) || defined(WATT32) |
|||
#ifdef HAVE_SYS_TIME_H |
|||
#include <sys/time.h> |
|||
#endif |
|||
#include <sys/socket.h> |
|||
#include <netinet/in.h> |
|||
#include <arpa/inet.h> |
|||
#include <netdb.h> |
|||
#ifdef HAVE_UNISTD_H |
|||
#include <unistd.h> |
|||
#endif |
|||
#endif |
|||
#ifdef HAVE_STRINGS_H |
|||
#include <strings.h> |
|||
#endif |
|||
|
|||
#include <stdio.h> |
|||
#include <stdlib.h> |
|||
#include <string.h> |
|||
|
|||
#include "ares.h" |
|||
#include "ares_dns.h" |
|||
#include "inet_ntop.h" |
|||
#include "inet_net_pton.h" |
|||
#include "ares_getopt.h" |
|||
#include "ares_ipv6.h" |
|||
|
|||
#ifndef HAVE_STRDUP |
|||
# include "ares_strdup.h" |
|||
# define strdup(ptr) ares_strdup(ptr) |
|||
#endif |
|||
|
|||
#ifndef HAVE_STRCASECMP |
|||
# include "ares_strcasecmp.h" |
|||
# define strcasecmp(p1,p2) ares_strcasecmp(p1,p2) |
|||
#endif |
|||
|
|||
#ifndef HAVE_STRNCASECMP |
|||
# include "ares_strcasecmp.h" |
|||
# define strncasecmp(p1,p2,n) ares_strncasecmp(p1,p2,n) |
|||
#endif |
|||
|
|||
static void callback(void *arg, int status, int timeouts, struct hostent *host); |
|||
static void usage(void); |
|||
|
|||
int main(int argc, char **argv) |
|||
{ |
|||
ares_channel channel; |
|||
int status, nfds, c, addr_family = AF_INET; |
|||
fd_set read_fds, write_fds; |
|||
struct timeval *tvp, tv; |
|||
struct in_addr addr4; |
|||
struct ares_in6_addr addr6; |
|||
|
|||
#ifdef USE_WINSOCK |
|||
WORD wVersionRequested = MAKEWORD(USE_WINSOCK,USE_WINSOCK); |
|||
WSADATA wsaData; |
|||
WSAStartup(wVersionRequested, &wsaData); |
|||
#endif |
|||
|
|||
status = ares_library_init(ARES_LIB_INIT_ALL); |
|||
if (status != ARES_SUCCESS) |
|||
{ |
|||
fprintf(stderr, "ares_library_init: %s\n", ares_strerror(status)); |
|||
return 1; |
|||
} |
|||
|
|||
while ((c = ares_getopt(argc,argv,"dt:h")) != -1) |
|||
{ |
|||
switch (c) |
|||
{ |
|||
case 'd': |
|||
#ifdef WATT32 |
|||
dbug_init(); |
|||
#endif |
|||
break; |
|||
case 't': |
|||
if (!strcasecmp(optarg,"a")) |
|||
addr_family = AF_INET; |
|||
else if (!strcasecmp(optarg,"aaaa")) |
|||
addr_family = AF_INET6; |
|||
else |
|||
usage(); |
|||
break; |
|||
case 'h': |
|||
default: |
|||
usage(); |
|||
break; |
|||
} |
|||
} |
|||
|
|||
argc -= optind; |
|||
argv += optind; |
|||
if (argc < 1) |
|||
usage(); |
|||
|
|||
status = ares_init(&channel); |
|||
if (status != ARES_SUCCESS) |
|||
{ |
|||
fprintf(stderr, "ares_init: %s\n", ares_strerror(status)); |
|||
return 1; |
|||
} |
|||
|
|||
/* Initiate the queries, one per command-line argument. */ |
|||
for ( ; *argv; argv++) |
|||
{ |
|||
if (ares_inet_pton(AF_INET, *argv, &addr4) == 1) |
|||
{ |
|||
ares_gethostbyaddr(channel, &addr4, sizeof(addr4), AF_INET, callback, |
|||
*argv); |
|||
} |
|||
else if (ares_inet_pton(AF_INET6, *argv, &addr6) == 1) |
|||
{ |
|||
ares_gethostbyaddr(channel, &addr6, sizeof(addr6), AF_INET6, callback, |
|||
*argv); |
|||
} |
|||
else |
|||
{ |
|||
ares_gethostbyname(channel, *argv, addr_family, callback, *argv); |
|||
} |
|||
} |
|||
|
|||
/* Wait for all queries to complete. */ |
|||
for (;;) |
|||
{ |
|||
FD_ZERO(&read_fds); |
|||
FD_ZERO(&write_fds); |
|||
nfds = ares_fds(channel, &read_fds, &write_fds); |
|||
if (nfds == 0) |
|||
break; |
|||
tvp = ares_timeout(channel, NULL, &tv); |
|||
select(nfds, &read_fds, &write_fds, NULL, tvp); |
|||
ares_process(channel, &read_fds, &write_fds); |
|||
} |
|||
|
|||
ares_destroy(channel); |
|||
|
|||
ares_library_cleanup(); |
|||
|
|||
#ifdef USE_WINSOCK |
|||
WSACleanup(); |
|||
#endif |
|||
|
|||
return 0; |
|||
} |
|||
|
|||
static void callback(void *arg, int status, int timeouts, struct hostent *host) |
|||
{ |
|||
char **p; |
|||
|
|||
(void)timeouts; |
|||
|
|||
if (status != ARES_SUCCESS) |
|||
{ |
|||
fprintf(stderr, "%s: %s\n", (char *) arg, ares_strerror(status)); |
|||
return; |
|||
} |
|||
|
|||
for (p = host->h_addr_list; *p; p++) |
|||
{ |
|||
char addr_buf[46] = "??"; |
|||
|
|||
ares_inet_ntop(host->h_addrtype, *p, addr_buf, sizeof(addr_buf)); |
|||
printf("%-32s\t%s", host->h_name, addr_buf); |
|||
#if 0 |
|||
if (host->h_aliases[0]) |
|||
{ |
|||
int i; |
|||
|
|||
printf (", Aliases: "); |
|||
for (i = 0; host->h_aliases[i]; i++) |
|||
printf("%s ", host->h_aliases[i]); |
|||
} |
|||
#endif |
|||
puts(""); |
|||
} |
|||
} |
|||
|
|||
static void usage(void) |
|||
{ |
|||
fprintf(stderr, "usage: ahost [-t {a|aaaa}] {host|addr} ...\n"); |
|||
exit(1); |
|||
} |
@ -1,252 +0,0 @@ |
|||
#ifndef __CARES_BUILD_H |
|||
#define __CARES_BUILD_H |
|||
|
|||
|
|||
/* Copyright (C) 2009 - 2010 by Daniel Stenberg et al
|
|||
* |
|||
* Permission to use, copy, modify, and distribute this software and its |
|||
* documentation for any purpose and without fee is hereby granted, provided |
|||
* that the above copyright notice appear in all copies and that both that |
|||
* copyright notice and this permission notice appear in supporting |
|||
* documentation, and that the name of M.I.T. not be used in advertising or |
|||
* publicity pertaining to distribution of the software without specific, |
|||
* written prior permission. M.I.T. makes no representations about the |
|||
* suitability of this software for any purpose. It is provided "as is" |
|||
* without express or implied warranty. |
|||
*/ |
|||
|
|||
/* ================================================================ */ |
|||
/* NOTES FOR CONFIGURE CAPABLE SYSTEMS */ |
|||
/* ================================================================ */ |
|||
|
|||
/*
|
|||
* NOTE 1: |
|||
* ------- |
|||
* |
|||
* See file ares_build.h.in, run configure, and forget that this file |
|||
* exists it is only used for non-configure systems. |
|||
* But you can keep reading if you want ;-) |
|||
* |
|||
*/ |
|||
|
|||
/* ================================================================ */ |
|||
/* NOTES FOR NON-CONFIGURE SYSTEMS */ |
|||
/* ================================================================ */ |
|||
|
|||
/*
|
|||
* NOTE 1: |
|||
* ------- |
|||
* |
|||
* Nothing in this file is intended to be modified or adjusted by the |
|||
* c-ares library user nor by the c-ares library builder. |
|||
* |
|||
* If you think that something actually needs to be changed, adjusted |
|||
* or fixed in this file, then, report it on the c-ares development |
|||
* mailing list: http://cool.haxx.se/mailman/listinfo/c-ares/
|
|||
* |
|||
* Try to keep one section per platform, compiler and architecture, |
|||
* otherwise, if an existing section is reused for a different one and |
|||
* later on the original is adjusted, probably the piggybacking one can |
|||
* be adversely changed. |
|||
* |
|||
* In order to differentiate between platforms/compilers/architectures |
|||
* use only compiler built in predefined preprocessor symbols. |
|||
* |
|||
* This header file shall only export symbols which are 'cares' or 'CARES' |
|||
* prefixed, otherwise public name space would be polluted. |
|||
* |
|||
* NOTE 2: |
|||
* ------- |
|||
* |
|||
* Right now you might be staring at file ares_build.h.dist or ares_build.h, |
|||
* this is due to the following reason: file ares_build.h.dist is renamed |
|||
* to ares_build.h when the c-ares source code distribution archive file is |
|||
* created. |
|||
* |
|||
* File ares_build.h.dist is not included in the distribution archive. |
|||
* File ares_build.h is not present in the git tree. |
|||
* |
|||
* The distributed ares_build.h file is only intended to be used on systems |
|||
* which can not run the also distributed configure script. |
|||
* |
|||
* On systems capable of running the configure script, the configure process |
|||
* will overwrite the distributed ares_build.h file with one that is suitable |
|||
* and specific to the library being configured and built, which is generated |
|||
* from the ares_build.h.in template file. |
|||
* |
|||
* If you check out from git on a non-configure platform, you must run the |
|||
* appropriate buildconf* script to set up ares_build.h and other local files. |
|||
* |
|||
*/ |
|||
|
|||
/* ================================================================ */ |
|||
/* DEFINITION OF THESE SYMBOLS SHALL NOT TAKE PLACE ANYWHERE ELSE */ |
|||
/* ================================================================ */ |
|||
|
|||
#ifdef CARES_SIZEOF_LONG |
|||
# error "CARES_SIZEOF_LONG shall not be defined except in ares_build.h" |
|||
Error Compilation_aborted_CARES_SIZEOF_LONG_already_defined |
|||
#endif |
|||
|
|||
#ifdef CARES_TYPEOF_ARES_SOCKLEN_T |
|||
# error "CARES_TYPEOF_ARES_SOCKLEN_T shall not be defined except in ares_build.h" |
|||
Error Compilation_aborted_CARES_TYPEOF_ARES_SOCKLEN_T_already_defined |
|||
#endif |
|||
|
|||
#ifdef CARES_SIZEOF_ARES_SOCKLEN_T |
|||
# error "CARES_SIZEOF_ARES_SOCKLEN_T shall not be defined except in ares_build.h" |
|||
Error Compilation_aborted_CARES_SIZEOF_ARES_SOCKLEN_T_already_defined |
|||
#endif |
|||
|
|||
/* ================================================================ */ |
|||
/* EXTERNAL INTERFACE SETTINGS FOR NON-CONFIGURE SYSTEMS ONLY */ |
|||
/* ================================================================ */ |
|||
|
|||
#if defined(__DJGPP__) || defined(__GO32__) |
|||
# define CARES_SIZEOF_LONG 4 |
|||
# define CARES_TYPEOF_ARES_SOCKLEN_T int |
|||
# define CARES_SIZEOF_ARES_SOCKLEN_T 4 |
|||
|
|||
#elif defined(__SALFORDC__) |
|||
# define CARES_SIZEOF_LONG 4 |
|||
# define CARES_TYPEOF_ARES_SOCKLEN_T int |
|||
# define CARES_SIZEOF_ARES_SOCKLEN_T 4 |
|||
|
|||
#elif defined(__BORLANDC__) |
|||
# define CARES_SIZEOF_LONG 4 |
|||
# define CARES_TYPEOF_ARES_SOCKLEN_T int |
|||
# define CARES_SIZEOF_ARES_SOCKLEN_T 4 |
|||
|
|||
#elif defined(__TURBOC__) |
|||
# define CARES_SIZEOF_LONG 4 |
|||
# define CARES_TYPEOF_ARES_SOCKLEN_T int |
|||
# define CARES_SIZEOF_ARES_SOCKLEN_T 4 |
|||
|
|||
#elif defined(__WATCOMC__) |
|||
# define CARES_SIZEOF_LONG 4 |
|||
# define CARES_TYPEOF_ARES_SOCKLEN_T int |
|||
# define CARES_SIZEOF_ARES_SOCKLEN_T 4 |
|||
|
|||
#elif defined(__POCC__) |
|||
# define CARES_SIZEOF_LONG 4 |
|||
# define CARES_TYPEOF_ARES_SOCKLEN_T int |
|||
# define CARES_SIZEOF_ARES_SOCKLEN_T 4 |
|||
|
|||
#elif defined(__LCC__) |
|||
# define CARES_SIZEOF_LONG 4 |
|||
# define CARES_TYPEOF_ARES_SOCKLEN_T int |
|||
# define CARES_SIZEOF_ARES_SOCKLEN_T 4 |
|||
|
|||
#elif defined(__SYMBIAN32__) |
|||
# define CARES_SIZEOF_LONG 4 |
|||
# define CARES_TYPEOF_ARES_SOCKLEN_T unsigned int |
|||
# define CARES_SIZEOF_ARES_SOCKLEN_T 4 |
|||
|
|||
#elif defined(__MWERKS__) |
|||
# define CARES_SIZEOF_LONG 4 |
|||
# define CARES_TYPEOF_ARES_SOCKLEN_T int |
|||
# define CARES_SIZEOF_ARES_SOCKLEN_T 4 |
|||
|
|||
#elif defined(_WIN32_WCE) |
|||
# define CARES_SIZEOF_LONG 4 |
|||
# define CARES_TYPEOF_ARES_SOCKLEN_T int |
|||
# define CARES_SIZEOF_ARES_SOCKLEN_T 4 |
|||
|
|||
#elif defined(__MINGW32__) |
|||
# define CARES_SIZEOF_LONG 4 |
|||
# define CARES_TYPEOF_ARES_SOCKLEN_T int |
|||
# define CARES_SIZEOF_ARES_SOCKLEN_T 4 |
|||
|
|||
#elif defined(__VMS) |
|||
# define CARES_SIZEOF_LONG 4 |
|||
# define CARES_TYPEOF_ARES_SOCKLEN_T unsigned int |
|||
# define CARES_SIZEOF_ARES_SOCKLEN_T 4 |
|||
|
|||
#elif defined(__OS400__) |
|||
# if defined(__ILEC400__) |
|||
# define CARES_SIZEOF_LONG 4 |
|||
# define CARES_TYPEOF_ARES_SOCKLEN_T socklen_t |
|||
# define CARES_SIZEOF_ARES_SOCKLEN_T 4 |
|||
# define CARES_PULL_SYS_TYPES_H 1 |
|||
# define CARES_PULL_SYS_SOCKET_H 1 |
|||
# endif |
|||
|
|||
#elif defined(__MVS__) |
|||
# if defined(__IBMC__) || defined(__IBMCPP__) |
|||
# if defined(_ILP32) |
|||
# define CARES_SIZEOF_LONG 4 |
|||
# elif defined(_LP64) |
|||
# define CARES_SIZEOF_LONG 8 |
|||
# endif |
|||
# define CARES_TYPEOF_ARES_SOCKLEN_T socklen_t |
|||
# define CARES_SIZEOF_ARES_SOCKLEN_T 4 |
|||
# define CARES_PULL_SYS_TYPES_H 1 |
|||
# define CARES_PULL_SYS_SOCKET_H 1 |
|||
# endif |
|||
|
|||
#elif defined(__370__) |
|||
# if defined(__IBMC__) || defined(__IBMCPP__) |
|||
# if defined(_ILP32) |
|||
# define CARES_SIZEOF_LONG 4 |
|||
# elif defined(_LP64) |
|||
# define CARES_SIZEOF_LONG 8 |
|||
# endif |
|||
# define CARES_TYPEOF_ARES_SOCKLEN_T socklen_t |
|||
# define CARES_SIZEOF_ARES_SOCKLEN_T 4 |
|||
# define CARES_PULL_SYS_TYPES_H 1 |
|||
# define CARES_PULL_SYS_SOCKET_H 1 |
|||
# endif |
|||
|
|||
#elif defined(TPF) |
|||
# define CARES_SIZEOF_LONG 8 |
|||
# define CARES_TYPEOF_ARES_SOCKLEN_T int |
|||
# define CARES_SIZEOF_ARES_SOCKLEN_T 4 |
|||
|
|||
/* ===================================== */ |
|||
/* KEEP MSVC THE PENULTIMATE ENTRY */ |
|||
/* ===================================== */ |
|||
|
|||
#elif defined(_MSC_VER) |
|||
# define CARES_SIZEOF_LONG 4 |
|||
# define CARES_TYPEOF_ARES_SOCKLEN_T int |
|||
# define CARES_SIZEOF_ARES_SOCKLEN_T 4 |
|||
|
|||
/* ===================================== */ |
|||
/* KEEP GENERIC GCC THE LAST ENTRY */ |
|||
/* ===================================== */ |
|||
|
|||
#elif defined(__GNUC__) |
|||
# if defined(__i386__) || defined(__ppc__) |
|||
# define CARES_SIZEOF_LONG 4 |
|||
# elif defined(__x86_64__) || defined(__ppc64__) |
|||
# define CARES_SIZEOF_LONG 8 |
|||
# endif |
|||
# define CARES_TYPEOF_ARES_SOCKLEN_T socklen_t |
|||
# define CARES_SIZEOF_ARES_SOCKLEN_T 4 |
|||
# define CARES_PULL_SYS_TYPES_H 1 |
|||
# define CARES_PULL_SYS_SOCKET_H 1 |
|||
|
|||
#else |
|||
# error "Unknown non-configure build target!" |
|||
Error Compilation_aborted_Unknown_non_configure_build_target |
|||
#endif |
|||
|
|||
/* CARES_PULL_SYS_TYPES_H is defined above when inclusion of header file */ |
|||
/* sys/types.h is required here to properly make type definitions below. */ |
|||
#ifdef CARES_PULL_SYS_TYPES_H |
|||
# include <sys/types.h> |
|||
#endif |
|||
|
|||
/* CARES_PULL_SYS_SOCKET_H is defined above when inclusion of header file */ |
|||
/* sys/socket.h is required here to properly make type definitions below. */ |
|||
#ifdef CARES_PULL_SYS_SOCKET_H |
|||
# include <sys/socket.h> |
|||
#endif |
|||
|
|||
/* Data type definition of ares_socklen_t. */ |
|||
|
|||
#ifdef CARES_TYPEOF_ARES_SOCKLEN_T |
|||
typedef CARES_TYPEOF_ARES_SOCKLEN_T ares_socklen_t; |
|||
#endif |
|||
|
|||
#endif /* __CARES_BUILD_H */ |
@ -1,110 +0,0 @@ |
|||
#ifndef __CARES_BUILD_H |
|||
#define __CARES_BUILD_H |
|||
|
|||
|
|||
/* Copyright (C) 2009 by Daniel Stenberg et al
|
|||
* |
|||
* Permission to use, copy, modify, and distribute this software and its |
|||
* documentation for any purpose and without fee is hereby granted, provided |
|||
* that the above copyright notice appear in all copies and that both that |
|||
* copyright notice and this permission notice appear in supporting |
|||
* documentation, and that the name of M.I.T. not be used in advertising or |
|||
* publicity pertaining to distribution of the software without specific, |
|||
* written prior permission. M.I.T. makes no representations about the |
|||
* suitability of this software for any purpose. It is provided "as is" |
|||
* without express or implied warranty. |
|||
*/ |
|||
|
|||
/* ================================================================ */ |
|||
/* NOTES FOR CONFIGURE CAPABLE SYSTEMS */ |
|||
/* ================================================================ */ |
|||
|
|||
/*
|
|||
* NOTE 1: |
|||
* ------- |
|||
* |
|||
* Nothing in this file is intended to be modified or adjusted by the |
|||
* c-ares library user nor by the c-ares library builder. |
|||
* |
|||
* If you think that something actually needs to be changed, adjusted |
|||
* or fixed in this file, then, report it on the c-ares development |
|||
* mailing list: http://cool.haxx.se/mailman/listinfo/c-ares/
|
|||
* |
|||
* This header file shall only export symbols which are 'cares' or 'CARES' |
|||
* prefixed, otherwise public name space would be polluted. |
|||
* |
|||
* NOTE 2: |
|||
* ------- |
|||
* |
|||
* Right now you might be staring at file ares_build.h.in or ares_build.h, |
|||
* this is due to the following reason: |
|||
* |
|||
* On systems capable of running the configure script, the configure process |
|||
* will overwrite the distributed ares_build.h file with one that is suitable |
|||
* and specific to the library being configured and built, which is generated |
|||
* from the ares_build.h.in template file. |
|||
* |
|||
*/ |
|||
|
|||
/* ================================================================ */ |
|||
/* DEFINITION OF THESE SYMBOLS SHALL NOT TAKE PLACE ANYWHERE ELSE */ |
|||
/* ================================================================ */ |
|||
|
|||
#ifdef CARES_SIZEOF_LONG |
|||
# error "CARES_SIZEOF_LONG shall not be defined except in ares_build.h" |
|||
Error Compilation_aborted_CARES_SIZEOF_LONG_already_defined |
|||
#endif |
|||
|
|||
#ifdef CARES_TYPEOF_ARES_SOCKLEN_T |
|||
# error "CARES_TYPEOF_ARES_SOCKLEN_T shall not be defined except in ares_build.h" |
|||
Error Compilation_aborted_CARES_TYPEOF_ARES_SOCKLEN_T_already_defined |
|||
#endif |
|||
|
|||
#ifdef CARES_SIZEOF_ARES_SOCKLEN_T |
|||
# error "CARES_SIZEOF_ARES_SOCKLEN_T shall not be defined except in ares_build.h" |
|||
Error Compilation_aborted_CARES_SIZEOF_ARES_SOCKLEN_T_already_defined |
|||
#endif |
|||
|
|||
/* ================================================================ */ |
|||
/* EXTERNAL INTERFACE SETTINGS FOR CONFIGURE CAPABLE SYSTEMS ONLY */ |
|||
/* ================================================================ */ |
|||
|
|||
/* Configure process defines this to 1 when it finds out that system */ |
|||
/* header file ws2tcpip.h must be included by the external interface. */ |
|||
#undef CARES_PULL_WS2TCPIP_H |
|||
#ifdef CARES_PULL_WS2TCPIP_H |
|||
# ifndef WIN32_LEAN_AND_MEAN |
|||
# define WIN32_LEAN_AND_MEAN |
|||
# endif |
|||
# include <windows.h> |
|||
# include <winsock2.h> |
|||
# include <ws2tcpip.h> |
|||
#endif |
|||
|
|||
/* Configure process defines this to 1 when it finds out that system */ |
|||
/* header file sys/types.h must be included by the external interface. */ |
|||
#undef CARES_PULL_SYS_TYPES_H |
|||
#ifdef CARES_PULL_SYS_TYPES_H |
|||
# include <sys/types.h> |
|||
#endif |
|||
|
|||
/* Configure process defines this to 1 when it finds out that system */ |
|||
/* header file sys/socket.h must be included by the external interface. */ |
|||
#undef CARES_PULL_SYS_SOCKET_H |
|||
#ifdef CARES_PULL_SYS_SOCKET_H |
|||
# include <sys/socket.h> |
|||
#endif |
|||
|
|||
/* The size of `long', as computed by sizeof. */ |
|||
#undef CARES_SIZEOF_LONG |
|||
|
|||
/* Integral data type used for ares_socklen_t. */ |
|||
#undef CARES_TYPEOF_ARES_SOCKLEN_T |
|||
|
|||
/* The size of `ares_socklen_t', as computed by sizeof. */ |
|||
#undef CARES_SIZEOF_ARES_SOCKLEN_T |
|||
|
|||
/* Data type definition of ares_socklen_t. */ |
|||
typedef CARES_TYPEOF_ARES_SOCKLEN_T ares_socklen_t; |
|||
|
|||
#endif /* __CARES_BUILD_H */ |
@ -1,43 +0,0 @@ |
|||
.\" |
|||
.\" Copyright 1998 by the Massachusetts Institute of Technology. |
|||
.\" |
|||
.\" Permission to use, copy, modify, and distribute this |
|||
.\" software and its documentation for any purpose and without |
|||
.\" fee is hereby granted, provided that the above copyright |
|||
.\" notice appear in all copies and that both that copyright |
|||
.\" notice and this permission notice appear in supporting |
|||
.\" documentation, and that the name of M.I.T. not be used in |
|||
.\" advertising or publicity pertaining to distribution of the |
|||
.\" software without specific, written prior permission. |
|||
.\" M.I.T. makes no representations about the suitability of |
|||
.\" this software for any purpose. It is provided "as is" |
|||
.\" without express or implied warranty. |
|||
.\" |
|||
.TH ARES_CANCEL 3 "31 March 2004" |
|||
.SH NAME |
|||
ares_cancel \- Cancel a resolve |
|||
.SH SYNOPSIS |
|||
.nf |
|||
.B #include <ares.h> |
|||
.PP |
|||
.B void ares_cancel(ares_channel \fIchannel\fP) |
|||
.fi |
|||
.SH DESCRIPTION |
|||
The \fBares_cancel\fP function cancels all lookups/requests made on the the |
|||
name service channel identified by \fIchannel\fP. \fBares_cancel\fP invokes |
|||
the callbacks for each pending query on the channel, passing a status of |
|||
.BR ARES_ECANCELLED . |
|||
These calls give the callbacks a chance to clean up any state which |
|||
might have been stored in their arguments. |
|||
.SH SEE ALSO |
|||
.BR ares_init (3) |
|||
.BR ares_destroy (3) |
|||
.SH NOTES |
|||
This function was added in c-ares 1.2.0 |
|||
|
|||
c-ares 1.6.0 and earlier pass a status of |
|||
.BR ARES_ETIMEOUT |
|||
instead of |
|||
.BR ARES_ECANCELLED . |
|||
.SH AUTHOR |
|||
Dirk Manske |
@ -1,43 +0,0 @@ |
|||
.\" |
|||
.\" Copyright 1998 by the Massachusetts Institute of Technology. |
|||
.\" |
|||
.\" Permission to use, copy, modify, and distribute this |
|||
.\" software and its documentation for any purpose and without |
|||
.\" fee is hereby granted, provided that the above copyright |
|||
.\" notice appear in all copies and that both that copyright |
|||
.\" notice and this permission notice appear in supporting |
|||
.\" documentation, and that the name of M.I.T. not be used in |
|||
.\" advertising or publicity pertaining to distribution of the |
|||
.\" software without specific, written prior permission. |
|||
.\" M.I.T. makes no representations about the suitability of |
|||
.\" this software for any purpose. It is provided "as is" |
|||
.\" without express or implied warranty. |
|||
.\" |
|||
.TH ARES_DESTROY 3 "7 December 2004" |
|||
.SH NAME |
|||
ares_destroy \- Destroy a resolver channel |
|||
.SH SYNOPSIS |
|||
.nf |
|||
.B #include <ares.h> |
|||
.PP |
|||
.B void ares_destroy(ares_channel \fIchannel\fP) |
|||
.fi |
|||
.SH DESCRIPTION |
|||
The |
|||
.B ares_destroy |
|||
function destroys the name service channel identified by |
|||
.IR channel , |
|||
freeing all memory and closing all sockets used by the channel. |
|||
.B ares_destroy |
|||
invokes the callbacks for each pending query on the channel, passing a |
|||
status of |
|||
.BR ARES_EDESTRUCTION . |
|||
These calls give the callbacks a chance to clean up any state which |
|||
might have been stored in their arguments. |
|||
.SH SEE ALSO |
|||
.BR ares_init (3), |
|||
.BR ares_cancel (3) |
|||
.SH AUTHOR |
|||
Greg Hudson, MIT Information Systems |
|||
.br |
|||
Copyright 1998 by the Massachusetts Institute of Technology. |
@ -1,38 +0,0 @@ |
|||
.\" |
|||
.\" Copyright 1998 by the Massachusetts Institute of Technology. |
|||
.\" |
|||
.\" Permission to use, copy, modify, and distribute this |
|||
.\" software and its documentation for any purpose and without |
|||
.\" fee is hereby granted, provided that the above copyright |
|||
.\" notice appear in all copies and that both that copyright |
|||
.\" notice and this permission notice appear in supporting |
|||
.\" documentation, and that the name of M.I.T. not be used in |
|||
.\" advertising or publicity pertaining to distribution of the |
|||
.\" software without specific, written prior permission. |
|||
.\" M.I.T. makes no representations about the suitability of |
|||
.\" this software for any purpose. It is provided "as is" |
|||
.\" without express or implied warranty. |
|||
.\" |
|||
.TH ARES_DESTROY_OPTIONS 3 "1 June 2007" |
|||
.SH NAME |
|||
ares_destroy_options \- Destroy options initialized with ares_save_options |
|||
.SH SYNOPSIS |
|||
.nf |
|||
.B #include <ares.h> |
|||
.PP |
|||
.B void ares_destroy_options(struct ares_options *\fIoptions\fP) |
|||
.fi |
|||
.SH DESCRIPTION |
|||
The |
|||
.B ares_destroy_options |
|||
function destroys the options struct identified by |
|||
.IR options , |
|||
freeing all memory allocated by ares_save_options. |
|||
|
|||
.SH SEE ALSO |
|||
.BR ares_save_options (3), |
|||
.BR ares_init_options (3) |
|||
.SH AUTHOR |
|||
Brad House |
|||
.br |
|||
Copyright 1998 by the Massachusetts Institute of Technology. |
@ -1,43 +0,0 @@ |
|||
.\" |
|||
.\" Copyright (C) 2004-2009 by Daniel Stenberg |
|||
.\" |
|||
.\" Permission to use, copy, modify, and distribute this |
|||
.\" software and its documentation for any purpose and without |
|||
.\" fee is hereby granted, provided that the above copyright |
|||
.\" notice appear in all copies and that both that copyright |
|||
.\" notice and this permission notice appear in supporting |
|||
.\" documentation, and that the name of M.I.T. not be used in |
|||
.\" advertising or publicity pertaining to distribution of the |
|||
.\" software without specific, written prior permission. |
|||
.\" M.I.T. makes no representations about the suitability of |
|||
.\" this software for any purpose. It is provided "as is" |
|||
.\" without express or implied warranty. |
|||
.\" |
|||
.TH ARES_DUP 3 "26 May 2009" |
|||
.SH NAME |
|||
ares_dup \- Duplicate a resolver channel |
|||
.SH SYNOPSIS |
|||
.nf |
|||
.B #include <ares.h> |
|||
.PP |
|||
.B int ares_dup(ares_channel *\fIdest\fP, ares_channel \fIsource\fP) |
|||
.fi |
|||
.SH DESCRIPTION |
|||
The \fBares_dup(3)\fP function duplicates an existing communications channel |
|||
for name service lookups. If it returns successfully, \fBares_dup(3)\fP will |
|||
set the variable pointed to by \fIdest\fP to a handle used to identify the |
|||
name service channel. The caller should invoke \fIares_destroy(3)\fP on the |
|||
handle when the channel is no longer needed. |
|||
|
|||
The \fBares_dup_options\fP function also initializes a name service channel, |
|||
with additional options set exactly as the \fIsource\fP channel has them |
|||
configured. |
|||
.SH SEE ALSO |
|||
.BR ares_destroy(3), |
|||
.BR ares_init(3), |
|||
.BR ares_library_init(3) |
|||
.SH AVAILABILITY |
|||
ares_dup(3) was added in c-ares 1.6.0 |
|||
.SH AUTHOR |
|||
Daniel Stenberg |
|||
|
@ -1,63 +0,0 @@ |
|||
.\" |
|||
.\" Copyright 1998 by the Massachusetts Institute of Technology. |
|||
.\" |
|||
.\" Permission to use, copy, modify, and distribute this |
|||
.\" software and its documentation for any purpose and without |
|||
.\" fee is hereby granted, provided that the above copyright |
|||
.\" notice appear in all copies and that both that copyright |
|||
.\" notice and this permission notice appear in supporting |
|||
.\" documentation, and that the name of M.I.T. not be used in |
|||
.\" advertising or publicity pertaining to distribution of the |
|||
.\" software without specific, written prior permission. |
|||
.\" M.I.T. makes no representations about the suitability of |
|||
.\" this software for any purpose. It is provided "as is" |
|||
.\" without express or implied warranty. |
|||
.\" |
|||
.TH ARES_EXPAND_NAME 3 "20 Nov 2009" |
|||
.SH NAME |
|||
ares_expand_name \- Expand a DNS-encoded domain name |
|||
.SH SYNOPSIS |
|||
.nf |
|||
.B #include <ares.h> |
|||
.PP |
|||
.B int ares_expand_name(const unsigned char *\fIencoded\fP, |
|||
.B const unsigned char *\fIabuf\fP, int \fIalen\fP, char **\fIs\fP, |
|||
.B long *\fIenclen\fP) |
|||
.fi |
|||
.SH DESCRIPTION |
|||
The |
|||
.B ares_expand_name |
|||
function converts a DNS-encoded domain name to a dot-separated C |
|||
string. The argument |
|||
.I encoded |
|||
gives the beginning of the encoded domain name, and the arguments |
|||
.I abuf |
|||
and |
|||
.I alen |
|||
give the containing message buffer (necessary for the processing of |
|||
indirection pointers within the encoded domain name). The result is |
|||
placed in a NUL-terminated allocated buffer, a pointer to which is |
|||
stored in the variable pointed to by |
|||
.IR s . |
|||
The length of the encoded name is stored in the variable pointed to by |
|||
.I enclen |
|||
so that the caller can advance past the encoded domain name to read |
|||
further data in the message. |
|||
.SH RETURN VALUES |
|||
.B ares_expand_name |
|||
can return any of the following values: |
|||
.TP 15 |
|||
.B ARES_SUCCESS |
|||
Expansion of the encoded name succeeded. |
|||
.TP 15 |
|||
.B ARES_EBADNAME |
|||
The encoded domain name was malformed and could not be expanded. |
|||
.TP 15 |
|||
.B ARES_ENOMEM |
|||
Memory was exhausted. |
|||
.SH SEE ALSO |
|||
.BR ares_mkquery (3) |
|||
.SH AUTHOR |
|||
Greg Hudson, MIT Information Systems |
|||
.br |
|||
Copyright 1998 by the Massachusetts Institute of Technology. |
@ -1,61 +0,0 @@ |
|||
.\" |
|||
.\" Copyright 1998 by the Massachusetts Institute of Technology. |
|||
.\" |
|||
.\" Permission to use, copy, modify, and distribute this |
|||
.\" software and its documentation for any purpose and without |
|||
.\" fee is hereby granted, provided that the above copyright |
|||
.\" notice appear in all copies and that both that copyright |
|||
.\" notice and this permission notice appear in supporting |
|||
.\" documentation, and that the name of M.I.T. not be used in |
|||
.\" advertising or publicity pertaining to distribution of the |
|||
.\" software without specific, written prior permission. |
|||
.\" M.I.T. makes no representations about the suitability of |
|||
.\" this software for any purpose. It is provided "as is" |
|||
.\" without express or implied warranty. |
|||
.\" |
|||
.TH ARES_EXPAND_NAME 3 "20 Nov 2009" |
|||
.SH NAME |
|||
ares_expand_string \- Expand a length encoded string |
|||
.SH SYNOPSIS |
|||
.nf |
|||
.B #include <ares.h> |
|||
.PP |
|||
.B int ares_expand_string(const unsigned char *\fIencoded\fP, |
|||
.B const unsigned char *\fIabuf\fP, int \fIalen\fP, unsigned char **\fIs\fP, |
|||
.B long *\fIenclen\fP) |
|||
.fi |
|||
.SH DESCRIPTION |
|||
The |
|||
.B ares_expand_string |
|||
function converts a length encoded string to a NUL-terminated C |
|||
string. The argument |
|||
.I encoded |
|||
gives the beginning of the encoded string, and the arguments |
|||
.I abuf |
|||
and |
|||
.I alen |
|||
give the containing message buffer (necessary for the processing of |
|||
indirection pointers within the encoded domain name). The result is |
|||
placed in a NUL-terminated allocated buffer, a pointer to which is |
|||
stored in the variable pointed to by |
|||
.IR s . |
|||
The length of the encoded string is stored in the variable pointed to by |
|||
.I enclen |
|||
so that the caller can advance past the encoded string to read |
|||
further data in the message. |
|||
.SH RETURN VALUES |
|||
.B ares_expand_string |
|||
can return any of the following values: |
|||
.TP 15 |
|||
.B ARES_SUCCESS |
|||
Expansion of the encoded string succeeded. |
|||
.TP 15 |
|||
.B ARES_EBADSTR |
|||
The encoded string was malformed and could not be expanded. |
|||
.TP 15 |
|||
.B ARES_ENOMEM |
|||
Memory was exhausted. |
|||
.SH SEE ALSO |
|||
.BR ares_free_string (3) |
|||
.SH AUTHOR |
|||
Dominick Meglio |
@ -1,61 +0,0 @@ |
|||
.\" |
|||
.\" Copyright 1998 by the Massachusetts Institute of Technology. |
|||
.\" |
|||
.\" Permission to use, copy, modify, and distribute this |
|||
.\" software and its documentation for any purpose and without |
|||
.\" fee is hereby granted, provided that the above copyright |
|||
.\" notice appear in all copies and that both that copyright |
|||
.\" notice and this permission notice appear in supporting |
|||
.\" documentation, and that the name of M.I.T. not be used in |
|||
.\" advertising or publicity pertaining to distribution of the |
|||
.\" software without specific, written prior permission. |
|||
.\" M.I.T. makes no representations about the suitability of |
|||
.\" this software for any purpose. It is provided "as is" |
|||
.\" without express or implied warranty. |
|||
.\" |
|||
.TH ARES_FDS 3 "23 July 1998" |
|||
.SH NAME |
|||
ares_fds \- Get file descriptors to select on for name service |
|||
.SH SYNOPSIS |
|||
.nf |
|||
.B #include <ares.h> |
|||
.PP |
|||
.B int ares_fds(ares_channel \fIchannel\fP, fd_set *\fIread_fds\fP, |
|||
.B fd_set *\fIwrite_fds\fP) |
|||
.fi |
|||
.SH DESCRIPTION |
|||
The |
|||
.B ares_fds |
|||
function retrieves the set of file descriptors which the calling |
|||
application should select on for reading and writing for the |
|||
processing of name service queries pending on the name service channel |
|||
identified by |
|||
.IR channel . |
|||
File descriptors will be set in the file descriptor sets pointed to by |
|||
.I read_fds |
|||
and |
|||
.I write_fds |
|||
as appropriate. File descriptors already set in |
|||
.I read_fds |
|||
and |
|||
.I write_fds |
|||
will remain set; initialization of the file descriptor sets |
|||
(using |
|||
.BR FD_ZERO ) |
|||
is the responsibility of the caller. |
|||
.SH RETURN VALUES |
|||
.B ares_fds |
|||
returns one greater than the number of the highest socket set in either |
|||
.I read_fds |
|||
or |
|||
.IR write_fds . |
|||
If no queries are active, |
|||
.B ares_fds |
|||
will return 0. |
|||
.SH SEE ALSO |
|||
.BR ares_timeout (3), |
|||
.BR ares_process (3) |
|||
.SH AUTHOR |
|||
Greg Hudson, MIT Information Systems |
|||
.br |
|||
Copyright 1998 by the Massachusetts Institute of Technology. |
@ -1,72 +0,0 @@ |
|||
.\" |
|||
.\" Copyright 1998 by the Massachusetts Institute of Technology. |
|||
.\" Copyright (C) 2004-2010 by Daniel Stenberg |
|||
.\" |
|||
.\" Permission to use, copy, modify, and distribute this |
|||
.\" software and its documentation for any purpose and without |
|||
.\" fee is hereby granted, provided that the above copyright |
|||
.\" notice appear in all copies and that both that copyright |
|||
.\" notice and this permission notice appear in supporting |
|||
.\" documentation, and that the name of M.I.T. not be used in |
|||
.\" advertising or publicity pertaining to distribution of the |
|||
.\" software without specific, written prior permission. |
|||
.\" M.I.T. makes no representations about the suitability of |
|||
.\" this software for any purpose. It is provided "as is" |
|||
.\" without express or implied warranty. |
|||
.\" |
|||
.TH ARES_FREE_DATA 3 "5 March 2010" |
|||
.SH NAME |
|||
ares_free_data \- Free data allocated by several c-ares functions |
|||
.SH SYNOPSIS |
|||
.nf |
|||
.B #include <ares.h> |
|||
.PP |
|||
.B void ares_free_data(void *\fIdataptr\fP) |
|||
.PP |
|||
.B cc file.c -lcares |
|||
.fi |
|||
.SH DESCRIPTION |
|||
.PP |
|||
The |
|||
.B ares_free_data(3) |
|||
function frees one or more data structures allocated and returned |
|||
by several c-ares functions. Specifically the data returned by the |
|||
following list of functions must be deallocated using this function. |
|||
.TP 5 |
|||
.B ares_get_servers(3) |
|||
When used to free the data returned by ares_get_servers(3) this |
|||
will free the whole linked list of ares_addr_node structures returned |
|||
by ares_get_servers(3). |
|||
.TP |
|||
.B ares_parse_srv_reply(3) |
|||
When used to free the data returned by ares_parse_srv_reply(3) this |
|||
will free the whole linked list of ares_srv_reply structures returned |
|||
by ares_parse_srv_reply(3), along with any additional storage |
|||
associated with those structures. |
|||
.TP |
|||
.B ares_parse_mx_reply(3) |
|||
When used to free the data returned by ares_parse_mx_reply(3) this |
|||
will free the whole linked list of ares_mx_reply structures returned |
|||
by ares_parse_mx_reply(3), along with any additional storage |
|||
associated with those structures. |
|||
.TP |
|||
.B ares_parse_txt_reply(3) |
|||
When used to free the data returned by ares_parse_txt_reply(3) this |
|||
will free the whole linked list of ares_txt_reply structures returned |
|||
by ares_parse_txt_reply(3), along with any additional storage |
|||
associated with those structures. |
|||
.SH RETURN VALUE |
|||
The ares_free_data() function does not return a value. |
|||
.SH AVAILABILITY |
|||
This function was first introduced in c-ares version 1.7.0. |
|||
.SH SEE ALSO |
|||
.BR ares_get_servers(3), |
|||
.BR ares_parse_srv_reply(3), |
|||
.BR ares_parse_mx_reply(3), |
|||
.BR ares_parse_txt_reply(3) |
|||
.SH AUTHOR |
|||
Yang Tse |
|||
.PP |
|||
Copyright 1998 by the Massachusetts Institute of Technology. |
|||
.br |
|||
Copyright (C) 2004-2010 by Daniel Stenberg. |
@ -1,45 +0,0 @@ |
|||
.\" |
|||
.\" Copyright 1998 by the Massachusetts Institute of Technology. |
|||
.\" |
|||
.\" Permission to use, copy, modify, and distribute this |
|||
.\" software and its documentation for any purpose and without |
|||
.\" fee is hereby granted, provided that the above copyright |
|||
.\" notice appear in all copies and that both that copyright |
|||
.\" notice and this permission notice appear in supporting |
|||
.\" documentation, and that the name of M.I.T. not be used in |
|||
.\" advertising or publicity pertaining to distribution of the |
|||
.\" software without specific, written prior permission. |
|||
.\" M.I.T. makes no representations about the suitability of |
|||
.\" this software for any purpose. It is provided "as is" |
|||
.\" without express or implied warranty. |
|||
.\" |
|||
.TH ARES_FREE_HOSTENT 3 "23 July 1998" |
|||
.SH NAME |
|||
ares_free_hostent \- Free host structure allocated by ares functions |
|||
.SH SYNOPSIS |
|||
.nf |
|||
.B #include <ares.h> |
|||
.PP |
|||
.B void ares_free_hostent(struct hostent *\fIhost\fP) |
|||
.fi |
|||
.SH DESCRIPTION |
|||
The |
|||
.I ares_free_hostent |
|||
function frees a |
|||
.B struct hostent |
|||
allocated by one of the functions \fIares_parse_a_reply(3)\fP, |
|||
\fIares_parse_aaaa_reply(3)\fP, or \fIares_parse_ptr_reply(3)\fP. |
|||
.SH NOTES |
|||
It is not necessary (and is not correct) to free the host structure passed to |
|||
the callback functions for \fIares_gethostbyname(3)\fP or |
|||
\fIares_gethostbyaddr(3)\fP. c-ares will automatically free such host |
|||
structures when the callback returns. |
|||
.SH SEE ALSO |
|||
.BR ares_parse_a_reply (3), |
|||
.BR ares_parse_aaaa_reply (3), |
|||
.BR ares_parse_ptr_reply (3), |
|||
.BR ares_parse_ns_reply (3) |
|||
.SH AUTHOR |
|||
Greg Hudson, MIT Information Systems |
|||
.br |
|||
Copyright 1998 by the Massachusetts Institute of Technology. |
@ -1,35 +0,0 @@ |
|||
.\" |
|||
.\" Copyright 2000 by the Massachusetts Institute of Technology. |
|||
.\" |
|||
.\" Permission to use, copy, modify, and distribute this |
|||
.\" software and its documentation for any purpose and without |
|||
.\" fee is hereby granted, provided that the above copyright |
|||
.\" notice appear in all copies and that both that copyright |
|||
.\" notice and this permission notice appear in supporting |
|||
.\" documentation, and that the name of M.I.T. not be used in |
|||
.\" advertising or publicity pertaining to distribution of the |
|||
.\" software without specific, written prior permission. |
|||
.\" M.I.T. makes no representations about the suitability of |
|||
.\" this software for any purpose. It is provided "as is" |
|||
.\" without express or implied warranty. |
|||
.\" |
|||
.TH ARES_FREE_STRING 3 "4 February 2004" |
|||
.SH NAME |
|||
ares_free_string \- Free strings allocated by ares functions |
|||
.SH SYNOPSIS |
|||
.nf |
|||
.B #include <ares.h> |
|||
.PP |
|||
.B void ares_free_string(void *\fIstr\fP) |
|||
.fi |
|||
.SH DESCRIPTION |
|||
The |
|||
.I ares_free_string |
|||
function frees a string allocated by an ares function. |
|||
.SH SEE ALSO |
|||
.BR ares_mkquery (3) |
|||
.BR ares_expand_string (3) |
|||
.SH AUTHOR |
|||
Greg Hudson, MIT Information Systems |
|||
.br |
|||
Copyright 2000 by the Massachusetts Institute of Technology. |
@ -1,78 +0,0 @@ |
|||
.\" |
|||
.\" Copyright 1998 by the Massachusetts Institute of Technology. |
|||
.\" Copyright (C) 2008-2010 by Daniel Stenberg |
|||
.\" |
|||
.\" Permission to use, copy, modify, and distribute this |
|||
.\" software and its documentation for any purpose and without |
|||
.\" fee is hereby granted, provided that the above copyright |
|||
.\" notice appear in all copies and that both that copyright |
|||
.\" notice and this permission notice appear in supporting |
|||
.\" documentation, and that the name of M.I.T. not be used in |
|||
.\" advertising or publicity pertaining to distribution of the |
|||
.\" software without specific, written prior permission. |
|||
.\" M.I.T. makes no representations about the suitability of |
|||
.\" this software for any purpose. It is provided "as is" |
|||
.\" without express or implied warranty. |
|||
.\" |
|||
.TH ARES_GET_SERVERS 3 "5 March 2010" |
|||
.SH NAME |
|||
ares_get_servers \- Retrieve name servers from an initialized ares_channel |
|||
.SH SYNOPSIS |
|||
.nf |
|||
.B #include <ares.h> |
|||
.PP |
|||
.B int ares_get_servers(ares_channel \fIchannel\fP, struct ares_addr_node **\fIservers\fP) |
|||
.fi |
|||
.SH DESCRIPTION |
|||
The \fBares_get_servers(3)\fP function retrieves name servers configuration |
|||
from the |
|||
channel data identified by |
|||
.IR channel , |
|||
as a linked list of ares_addr_node structs storing a pointer to the first |
|||
node at the address specified by |
|||
.IR servers . |
|||
|
|||
Function caller may traverse the returned name server linked list, or may use |
|||
it directly as suitable input for the \fBares_set_servers(3)\fP function, but |
|||
shall not shrink or extend the list on its own. |
|||
|
|||
Each node of the name server linked list is stored in memory dynamically |
|||
allocated and managed by c-ares. It is the caller's responsibility to free |
|||
the resulting linked list, using \fBares_free_data(3)\fP , once the caller |
|||
does not need it any longer. |
|||
|
|||
This function is capable of handling IPv4 and IPv6 name server |
|||
addresses simultaneously, rendering \fBares_save_options(3)\fP with |
|||
optmask \fBARES_OPT_SERVERS\fP functionally obsolete except for |
|||
IPv4-only name server usage. |
|||
|
|||
.SH RETURN VALUES |
|||
.B ares_get_servers(3) |
|||
may return any of the following values: |
|||
.TP 15 |
|||
.B ARES_SUCCESS |
|||
The name servers configuration was successfuly retrieved |
|||
.TP 15 |
|||
.B ARES_ENOMEM |
|||
The memory was exhausted |
|||
.TP 15 |
|||
.B ARES_ENODATA |
|||
The channel data identified by |
|||
.IR channel |
|||
was invalid. |
|||
.SH SEE ALSO |
|||
.BR ares_set_servers (3), |
|||
.BR ares_init_options (3), |
|||
.BR ares_save_options(3) |
|||
.SH AVAILABILITY |
|||
ares_get_servers(3) was added in c-ares 1.7.1 |
|||
.SH AUTHOR |
|||
Implementation of this function and associated library internals are based |
|||
on code, comments and feedback provided in November and December of 2008 by |
|||
Daniel Stenberg, Gregor Jasny, Phil Blundell and Yang Tse, December 2009 |
|||
by Cedric Bail, February 2010 by Jakub Hrozek. On March 2010 Yang Tse |
|||
shuffled all the bits and this function popped out. |
|||
.br |
|||
Copyright 1998 by the Massachusetts Institute of Technology. |
|||
.br |
|||
Copyright (C) 2008-2010 by Daniel Stenberg |
@ -1,101 +0,0 @@ |
|||
.\" |
|||
.\" Copyright 1998 by the Massachusetts Institute of Technology. |
|||
.\" |
|||
.\" Permission to use, copy, modify, and distribute this |
|||
.\" software and its documentation for any purpose and without |
|||
.\" fee is hereby granted, provided that the above copyright |
|||
.\" notice appear in all copies and that both that copyright |
|||
.\" notice and this permission notice appear in supporting |
|||
.\" documentation, and that the name of M.I.T. not be used in |
|||
.\" advertising or publicity pertaining to distribution of the |
|||
.\" software without specific, written prior permission. |
|||
.\" M.I.T. makes no representations about the suitability of |
|||
.\" this software for any purpose. It is provided "as is" |
|||
.\" without express or implied warranty. |
|||
.\" |
|||
.TH ARES_GETHOSTBYADDR 3 "24 July 1998" |
|||
.SH NAME |
|||
ares_gethostbyaddr \- Initiate a host query by address |
|||
.SH SYNOPSIS |
|||
.nf |
|||
.B #include <ares.h> |
|||
.PP |
|||
.B typedef void (*ares_host_callback)(void *\fIarg\fP, int \fIstatus\fP, |
|||
.B int \fItimeouts\fP, struct hostent *\fIhostent\fP) |
|||
.PP |
|||
.B void ares_gethostbyaddr(ares_channel \fIchannel\fP, const void *\fIaddr\fP, |
|||
.B int \fIaddrlen\fP, int \fIfamily\fP, ares_host_callback \fIcallback\fP, |
|||
.B void *\fIarg\fP) |
|||
.fi |
|||
.SH DESCRIPTION |
|||
The |
|||
.B ares_gethostbyaddr |
|||
function initiates a host query by address on the name service channel |
|||
identified by |
|||
.IR channel . |
|||
The parameters |
|||
.I addr |
|||
and |
|||
.I addrlen |
|||
give the address as a series of bytes, and |
|||
.I family |
|||
gives the type of address. When the query is complete or has failed, the ares |
|||
library will invoke \fIcallback\fP. Completion or failure of the query may |
|||
happen immediately, or may happen during a later call to |
|||
\fIares_process(3)\fP, \fIares_destroy(3)\fP or \fIares_cancel(3)\fP. |
|||
.PP |
|||
The callback argument |
|||
.I arg |
|||
is copied from the |
|||
.B ares_gethostbyaddr |
|||
argument |
|||
.IR arg . |
|||
The callback argument |
|||
.I status |
|||
indicates whether the query succeeded and, if not, how it failed. It |
|||
may have any of the following values: |
|||
.TP 19 |
|||
.B ARES_SUCCESS |
|||
The host lookup completed successfully. |
|||
.TP 19 |
|||
.B ARES_ENOTIMP |
|||
The ares library does not know how to look up addresses of type |
|||
.IR family . |
|||
.TP 19 |
|||
.B ARES_ENOTFOUND |
|||
The address |
|||
.I addr |
|||
was not found. |
|||
.TP 19 |
|||
.B ARES_ENOMEM |
|||
Memory was exhausted. |
|||
.TP 19 |
|||
.B ARES_EDESTRUCTION |
|||
The name service channel |
|||
.I channel |
|||
is being destroyed; the query will not be completed. |
|||
.PP |
|||
The callback argument |
|||
.I timeouts |
|||
reports how many times a query timed out during the execution of the |
|||
given request. |
|||
.PP |
|||
On successful completion of the query, the callback argument |
|||
.I hostent |
|||
points to a |
|||
.B struct hostent |
|||
containing the name of the host returned by the query. The callback |
|||
need not and should not attempt to free the memory pointed to by |
|||
.IR hostent ; |
|||
the ares library will free it when the callback returns. If the query |
|||
did not complete successfully, |
|||
.I hostent |
|||
will be |
|||
.BR NULL . |
|||
.SH SEE ALSO |
|||
.BR ares_process (3), |
|||
.BR ares_gethostbyname (3) |
|||
.SH AUTHOR |
|||
Greg Hudson, MIT Information Systems |
|||
.br |
|||
Copyright 1998 by the Massachusetts Institute of Technology. |
@ -1,105 +0,0 @@ |
|||
.\" |
|||
.\" Copyright 1998 by the Massachusetts Institute of Technology. |
|||
.\" |
|||
.\" Permission to use, copy, modify, and distribute this |
|||
.\" software and its documentation for any purpose and without |
|||
.\" fee is hereby granted, provided that the above copyright |
|||
.\" notice appear in all copies and that both that copyright |
|||
.\" notice and this permission notice appear in supporting |
|||
.\" documentation, and that the name of M.I.T. not be used in |
|||
.\" advertising or publicity pertaining to distribution of the |
|||
.\" software without specific, written prior permission. |
|||
.\" M.I.T. makes no representations about the suitability of |
|||
.\" this software for any purpose. It is provided "as is" |
|||
.\" without express or implied warranty. |
|||
.\" |
|||
.TH ARES_GETHOSTBYNAME 3 "25 July 1998" |
|||
.SH NAME |
|||
ares_gethostbyname \- Initiate a host query by name |
|||
.SH SYNOPSIS |
|||
.nf |
|||
.B #include <ares.h> |
|||
.PP |
|||
.B typedef void (*ares_host_callback)(void *\fIarg\fP, int \fIstatus\fP, |
|||
.B int \fItimeouts\fP, struct hostent *\fIhostent\fP) |
|||
.PP |
|||
.B void ares_gethostbyname(ares_channel \fIchannel\fP, const char *\fIname\fP, |
|||
.B int \fIfamily\fP, ares_host_callback \fIcallback\fP, void *\fIarg\fP) |
|||
.fi |
|||
.SH DESCRIPTION |
|||
The |
|||
.B ares_gethostbyname |
|||
function initiates a host query by name on the name service channel |
|||
identified by |
|||
.IR channel . |
|||
The parameter |
|||
.I name |
|||
gives the hostname as a NUL-terminated C string, and |
|||
.I family |
|||
gives the desired type of address for the resulting host entry. When the |
|||
query is complete or has failed, the ares library will invoke \fIcallback\fP. |
|||
Completion or failure of the query may happen immediately, or may happen |
|||
during a later call to \fIares_process(3)\fP, \fIares_destroy(3)\fP or |
|||
\fIares_cancel(3)\fP. |
|||
.PP |
|||
The callback argument |
|||
.I arg |
|||
is copied from the |
|||
.B ares_gethostbyname |
|||
argument |
|||
.IR arg . |
|||
The callback argument |
|||
.I status |
|||
indicates whether the query succeeded and, if not, how it failed. It |
|||
may have any of the following values: |
|||
.TP 19 |
|||
.B ARES_SUCCESS |
|||
The host lookup completed successfully. |
|||
.TP 19 |
|||
.B ARES_ENOTIMP |
|||
The ares library does not know how to find addresses of type |
|||
.IR family . |
|||
.TP 19 |
|||
.B ARES_EBADNAME |
|||
The hostname |
|||
.B name |
|||
is composed entirely of numbers and periods, but is not a valid |
|||
representation of an Internet address. |
|||
.TP 19 |
|||
.B ARES_ENOTFOUND |
|||
The address |
|||
.I addr |
|||
was not found. |
|||
.TP 19 |
|||
.B ARES_ENOMEM |
|||
Memory was exhausted. |
|||
.TP 19 |
|||
.B ARES_EDESTRUCTION |
|||
The name service channel |
|||
.I channel |
|||
is being destroyed; the query will not be completed. |
|||
.PP |
|||
The callback argument |
|||
.I timeouts |
|||
reports how many times a query timed out during the execution of the |
|||
given request. |
|||
.PP |
|||
On successful completion of the query, the callback argument |
|||
.I hostent |
|||
points to a |
|||
.B struct hostent |
|||
containing the name of the host returned by the query. The callback |
|||
need not and should not attempt to free the memory pointed to by |
|||
.IR hostent ; |
|||
the ares library will free it when the callback returns. If the query |
|||
did not complete successfully, |
|||
.I hostent |
|||
will be |
|||
.BR NULL . |
|||
.SH SEE ALSO |
|||
.BR ares_process (3), |
|||
.BR ares_gethostbyaddr (3) |
|||
.SH AUTHOR |
|||
Greg Hudson, MIT Information Systems |
|||
.br |
|||
Copyright 1998 by the Massachusetts Institute of Technology. |
@ -1,83 +0,0 @@ |
|||
.\" |
|||
.\" Copyright 1998 by the Massachusetts Institute of Technology. |
|||
.\" |
|||
.\" Permission to use, copy, modify, and distribute this |
|||
.\" software and its documentation for any purpose and without |
|||
.\" fee is hereby granted, provided that the above copyright |
|||
.\" notice appear in all copies and that both that copyright |
|||
.\" notice and this permission notice appear in supporting |
|||
.\" documentation, and that the name of M.I.T. not be used in |
|||
.\" advertising or publicity pertaining to distribution of the |
|||
.\" software without specific, written prior permission. |
|||
.\" M.I.T. makes no representations about the suitability of |
|||
.\" this software for any purpose. It is provided "as is" |
|||
.\" without express or implied warranty. |
|||
.\" |
|||
.TH ARES_GETHOSTBYNAME 3 "25 July 1998" |
|||
.SH NAME |
|||
ares_gethostbyname_file \- Lookup a name in the system's hosts file |
|||
.SH SYNOPSIS |
|||
.nf |
|||
.B #include <ares.h> |
|||
.PP |
|||
.B int ares_gethostbyname_file(ares_channel \fIchannel\fP, const char *\fIname\fP, |
|||
.B int \fIfamily\fP, struct hostent **host) |
|||
.fi |
|||
.SH DESCRIPTION |
|||
The |
|||
.B ares_gethostbyname_file |
|||
function performs a host lookup by name against the system's hosts file (or equivalent local hostname database). |
|||
The |
|||
.IR channel |
|||
parameter is required, but no asynchronous queries are performed. Instead, the |
|||
lookup is done via the same mechanism used to perform 'f' lookups |
|||
(see the |
|||
.I lookups |
|||
options field in \fIares_init_options(3)\fP). |
|||
The parameter |
|||
.I name |
|||
gives the hostname as a NUL-terminated C string, and |
|||
.I family |
|||
gives the desired type of address for the resulting host entry. |
|||
.PP |
|||
The return value indicates whether the query succeeded and, if not, how it |
|||
failed. It may have any of the following values: |
|||
.TP 19 |
|||
.B ARES_SUCCESS |
|||
The host lookup completed successfully and |
|||
.I host |
|||
now points to the result (and must be freed with \fIares_free_hostent(3)\fP). |
|||
.TP 19 |
|||
.B ARES_ENOTFOUND |
|||
The hostname |
|||
.I name |
|||
was not found. |
|||
.TP 19 |
|||
.B ARES_EFILE |
|||
There was a file I/O error while performing the lookup. |
|||
.TP 19 |
|||
.B ARES_ENOMEM |
|||
Memory was exhausted. |
|||
.PP |
|||
On successful completion of the query, the pointer pointed to by |
|||
.I host |
|||
points to a |
|||
.B struct hostent |
|||
containing the address of the host returned by the lookup. The user must |
|||
free the memory pointed to by |
|||
.IR host |
|||
when finished with it by calling \fIares_free_hostent(3)\fP. If the lookup did |
|||
not complete successfully, |
|||
.I host |
|||
will be |
|||
.BR NULL . |
|||
.SH AVAILABILITY |
|||
Added in c-ares 1.5.4 |
|||
.SH SEE ALSO |
|||
.BR ares_gethostbyname (3), |
|||
.BR ares_free_hostent (3), |
|||
.BR ares_init_options (3) |
|||
.SH AUTHOR |
|||
Brad Spencer |
|||
.br |
|||
Copyright 1998 by the Massachusetts Institute of Technology. |
@ -1,149 +0,0 @@ |
|||
.\" |
|||
.\" Copyright 2005 by Dominick Meglio. |
|||
.\" |
|||
.\" Permission to use, copy, modify, and distribute this |
|||
.\" software and its documentation for any purpose and without |
|||
.\" fee is hereby granted, provided that the above copyright |
|||
.\" notice appear in all copies and that both that copyright |
|||
.\" notice and this permission notice appear in supporting |
|||
.\" documentation, and that the name of M.I.T. not be used in |
|||
.\" advertising or publicity pertaining to distribution of the |
|||
.\" software without specific, written prior permission. |
|||
.\" M.I.T. makes no representations about the suitability of |
|||
.\" this software for any purpose. It is provided "as is" |
|||
.\" without express or implied warranty. |
|||
.\" |
|||
.TH ARES_GETNAMEINFO 3 "1 May 2009" |
|||
.SH NAME |
|||
ares_getnameinfo \- Address-to-nodename translation in protocol-independent manner |
|||
.SH SYNOPSIS |
|||
.nf |
|||
.B #include <ares.h> |
|||
.PP |
|||
.B typedef void (*ares_nameinfo_callback)(void *\fIarg\fP, int \fIstatus\fP, |
|||
.B int \fItimeouts\fP, char *\fInode\fP, char *\fIservice\fP) |
|||
.PP |
|||
.B void ares_getnameinfo(ares_channel \fIchannel\fP, const struct sockaddr *\fIsa\fP, |
|||
.B ares_socklen_t \fIsalen\fP, int \fIflags\fP, ares_nameinfo_callback \fIcallback\fP, |
|||
.B void *\fIarg\fP) |
|||
.fi |
|||
.SH DESCRIPTION |
|||
The |
|||
.B ares_getnameinfo |
|||
function is defined for protocol-independent address translation. The function |
|||
is a combination of \fIares_gethostbyaddr(3)\fP and \fIgetservbyport(3)\fP. The function will |
|||
translate the address either by executing a host query on the name service channel |
|||
identified by |
|||
.IR channel |
|||
or it will attempt to resolve it locally if possible. |
|||
The parameters |
|||
.I sa |
|||
and |
|||
.I len |
|||
give the address as a sockaddr structure, and |
|||
.I flags |
|||
gives the options that the function will use. Valid flags are listed below: |
|||
.TP 19 |
|||
.B ARES_NI_NOFQDN |
|||
Only the nodename portion of the FQDN is returned for local hosts. |
|||
.TP 19 |
|||
.B ARES_NI_NUMERICHOST |
|||
The numeric form of the hostname is returned rather than the name. |
|||
.TP 19 |
|||
.B ARES_NI_NAMEREQD |
|||
An error is returned if the hostname cannot be found in the DNS. |
|||
.TP 19 |
|||
.B ARES_NI_NUMERICSERV |
|||
The numeric form of the service is returned rather than the name. |
|||
.TP 19 |
|||
.B ARES_NI_TCP |
|||
The service name is to be looked up for the TCP protocol. |
|||
.TP 19 |
|||
.B ARES_NI_UDP |
|||
The service name is to be looked up for the UDP protocol. |
|||
.TP 19 |
|||
.B ARES_NI_SCTP |
|||
The service name is to be looked up for the SCTP protocol. |
|||
.TP 19 |
|||
.B ARES_NI_DCCP |
|||
The service name is to be looked up for the DCCP protocol. |
|||
.TP 19 |
|||
.B ARES_NI_NUMERICSCOPE |
|||
The numeric form of the scope ID is returned rather than the name. |
|||
.TP 19 |
|||
.B ARES_NI_LOOKUPHOST |
|||
A hostname lookup is being requested. |
|||
.TP 19 |
|||
.B ARES_NI_LOOKUPSERVICE |
|||
A service name lookup is being requested. |
|||
.PP |
|||
When the query |
|||
is complete or has |
|||
failed, the ares library will invoke \fIcallback\fP. Completion or failure of |
|||
the query may happen immediately, or may happen during a later call to |
|||
\fIares_process(3)\fP, \fIares_destroy(3)\fP or \fIares_cancel(3)\fP. |
|||
.PP |
|||
The callback argument |
|||
.I arg |
|||
is copied from the |
|||
.B ares_getnameinfo |
|||
argument |
|||
.IR arg . |
|||
The callback argument |
|||
.I status |
|||
indicates whether the query succeeded and, if not, how it failed. It |
|||
may have any of the following values: |
|||
.TP 19 |
|||
.B ARES_SUCCESS |
|||
The host lookup completed successfully. |
|||
.TP 19 |
|||
.B ARES_ENOTIMP |
|||
The ares library does not know how to look up addresses of type |
|||
.IR family . |
|||
.TP 19 |
|||
.B ARES_ENOTFOUND |
|||
The address |
|||
.I addr |
|||
was not found. |
|||
.TP 19 |
|||
.B ARES_ENOMEM |
|||
Memory was exhausted. |
|||
.TP 19 |
|||
.B ARES_EDESTRUCTION |
|||
The name service channel |
|||
.I channel |
|||
is being destroyed; the query will not be completed. |
|||
.TP 19 |
|||
.B ARES_EBADFLAGS |
|||
The |
|||
.I flags |
|||
parameter contains an illegal value. |
|||
.PP |
|||
The callback argument |
|||
.I timeouts |
|||
reports how many times a query timed out during the execution of the |
|||
given request. |
|||
.PP |
|||
On successful completion of the query, the callback argument |
|||
.I node |
|||
contains a string representing the hostname (assuming |
|||
.B ARES_NI_LOOKUPHOST |
|||
was specified). Additionally, |
|||
.I service |
|||
contains a string representing the service name (assuming |
|||
.B ARES_NI_LOOKUPSERVICE |
|||
was specified). |
|||
If the query did not complete successfully, or one of the values |
|||
was not requested, |
|||
.I node |
|||
or |
|||
.I service |
|||
will be |
|||
.BR NULL . |
|||
.SH SEE ALSO |
|||
.BR ares_process (3), |
|||
.BR ares_getaddrinfo (3) |
|||
.SH AUTHOR |
|||
Dominick Meglio |
|||
.br |
|||
Copyright 2005 by Dominick Meglio. |
@ -1,57 +0,0 @@ |
|||
.\" |
|||
.\" Copyright 1998 by Daniel Stenberg |
|||
.\" |
|||
.\" Permission to use, copy, modify, and distribute this |
|||
.\" software and its documentation for any purpose and without |
|||
.\" fee is hereby granted, provided that the above copyright |
|||
.\" notice appear in all copies and that both that copyright |
|||
.\" notice and this permission notice appear in supporting |
|||
.\" documentation, and that the name of M.I.T. not be used in |
|||
.\" advertising or publicity pertaining to distribution of the |
|||
.\" software without specific, written prior permission. |
|||
.\" M.I.T. makes no representations about the suitability of |
|||
.\" this software for any purpose. It is provided "as is" |
|||
.\" without express or implied warranty. |
|||
.\" |
|||
.TH ARES_GETSOCK 3 "11 March 2010" |
|||
.SH NAME |
|||
ares_getsock \- get socket descriptors to wait on |
|||
.SH SYNOPSIS |
|||
.nf |
|||
.B #include <ares.h> |
|||
.PP |
|||
.B int ares_getsock(ares_channel \fIchannel\fP, ares_socket_t *\fIsocks\fP, |
|||
.B int \fInumsocks\fP); |
|||
.fi |
|||
.SH DESCRIPTION |
|||
The |
|||
.B ares_getsock |
|||
function retrieves the set of socket descriptors which the calling |
|||
application should wait on for reading and/or writing for the |
|||
processing of name service queries pending on the name service channel |
|||
identified by |
|||
.IR channel . |
|||
Socket descriptors will be set in the socket descriptor array pointed to by |
|||
\fIsocks\fP. |
|||
\fInumsocks\fP is the size of the given array in number of ints. |
|||
|
|||
This function can only return information about up to 16 sockets. If more are |
|||
in use (however unlikely that is), they are simply not reported back. |
|||
.SH RETURN VALUES |
|||
\fBares_getsock\fP returns a bitmask for what actions to wait for on the |
|||
different sockets. The ares.h header file provides these convenience macros to |
|||
extract the information appropriately: |
|||
|
|||
.nf |
|||
#define ARES_GETSOCK_MAXNUM 16 /* ares_getsock() can return info about |
|||
this many sockets */ |
|||
#define ARES_GETSOCK_READABLE(bits,num) (bits & (1<< (num))) |
|||
#define ARES_GETSOCK_WRITABLE(bits,num) (bits & (1 << ((num) + \ |
|||
ARES_GETSOCK_MAXNUM))) |
|||
.fi |
|||
.SH NOTES |
|||
This function was added in c-ares 1.3.1 |
|||
.SH SEE ALSO |
|||
.BR ares_timeout (3), |
|||
.BR ares_fds (3), |
|||
.BR ares_process (3) |
@ -1,223 +0,0 @@ |
|||
.\" |
|||
.\" Copyright 1998 by the Massachusetts Institute of Technology. |
|||
.\" Copyright (C) 2004-2010 by Daniel Stenberg |
|||
.\" |
|||
.\" Permission to use, copy, modify, and distribute this |
|||
.\" software and its documentation for any purpose and without |
|||
.\" fee is hereby granted, provided that the above copyright |
|||
.\" notice appear in all copies and that both that copyright |
|||
.\" notice and this permission notice appear in supporting |
|||
.\" documentation, and that the name of M.I.T. not be used in |
|||
.\" advertising or publicity pertaining to distribution of the |
|||
.\" software without specific, written prior permission. |
|||
.\" M.I.T. makes no representations about the suitability of |
|||
.\" this software for any purpose. It is provided "as is" |
|||
.\" without express or implied warranty. |
|||
.\" |
|||
.TH ARES_INIT 3 "5 March 2010" |
|||
.SH NAME |
|||
ares_init, ares_init_options \- Initialize a resolver channel |
|||
.SH SYNOPSIS |
|||
.nf |
|||
.B #include <ares.h> |
|||
.PP |
|||
.B int ares_init(ares_channel *\fIchannelptr\fP) |
|||
.B int ares_init_options(ares_channel *\fIchannelptr\fP, |
|||
.B struct ares_options *\fIoptions\fP, int \fIoptmask\fP) |
|||
.PP |
|||
.B cc file.c -lcares |
|||
.fi |
|||
.SH DESCRIPTION |
|||
The \fBares_init\fP function initializes a communications channel for name |
|||
service lookups. If it returns successfully, \fBares_init\fP will set the |
|||
variable pointed to by \fIchannelptr\fP to a handle used to identify the name |
|||
service channel. The caller should invoke |
|||
.BR ares_destroy (3) |
|||
on the handle when the channel is no longer needed. |
|||
.PP |
|||
The \fBares_init_options\fP function also initializes a name service channel, |
|||
with additional options useful for applications requiring more control over |
|||
name service configuration. The \fIoptmask\fP parameter specifies which fields |
|||
in the structure pointed to by \fIoptions\fP are set, as follows: |
|||
.TP 18 |
|||
.B ARES_OPT_FLAGS |
|||
.B int \fIflags\fP; |
|||
.br |
|||
Flags controlling the behavior of the resolver. See below for a |
|||
description of possible flag values. |
|||
.TP 18 |
|||
.B ARES_OPT_TIMEOUT |
|||
.B int \fItimeout\fP; |
|||
.br |
|||
The number of seconds each name server is given to respond to a query on the |
|||
first try. (After the first try, the timeout algorithm becomes more |
|||
complicated, but scales linearly with the value of \fItimeout\fP.) The |
|||
default is five seconds. This option is being deprecated by |
|||
\fIARES_OPT_TIMEOUTMS\fP starting in c-ares 1.5.2. |
|||
.TP 18 |
|||
.B ARES_OPT_TIMEOUTMS |
|||
.B int \fItimeout\fP; |
|||
.br |
|||
The number of milliseconds each name server is given to respond to a query on |
|||
the first try. (After the first try, the timeout algorithm becomes more |
|||
complicated, but scales linearly with the value of \fItimeout\fP.) The |
|||
default is five seconds. Note that this option is specified with the same |
|||
struct field as the former \fIARES_OPT_TIMEOUT\fP, it is but the option bits |
|||
that tell c-ares how to interpret the number. This option was added in c-ares |
|||
1.5.2. |
|||
.TP 18 |
|||
.B ARES_OPT_TRIES |
|||
.B int \fItries\fP; |
|||
.br |
|||
The number of tries the resolver will try contacting each name server |
|||
before giving up. The default is four tries. |
|||
.TP 18 |
|||
.B ARES_OPT_NDOTS |
|||
.B int \fIndots\fP; |
|||
.br |
|||
The number of dots which must be present in a domain name for it to be |
|||
queried for "as is" prior to querying for it with the default domain |
|||
extensions appended. The default value is 1 unless set otherwise by |
|||
resolv.conf or the RES_OPTIONS environment variable. |
|||
.TP 18 |
|||
.B ARES_OPT_PORT |
|||
.B unsigned short \fIport\fP; |
|||
.br |
|||
The port to use for queries (both TCP and UDP), in network byte order. |
|||
The default value is 53 (in network byte order), the standard name |
|||
service port. |
|||
.TP 18 |
|||
.B ARES_OPT_SERVERS |
|||
.B struct in_addr *\fIservers\fP; |
|||
.br |
|||
.B int \fInservers\fP; |
|||
.br |
|||
The list of IPv4 servers to contact, instead of the servers specified in |
|||
resolv.conf or the local named. In order to allow specification of either |
|||
IPv4 or IPv6 name servers, the |
|||
.BR ares_set_servers(3) |
|||
function must be used instead. |
|||
.TP 18 |
|||
.B ARES_OPT_DOMAINS |
|||
.B char **\fIdomains\fP; |
|||
.br |
|||
.B int \fIndomains\fP; |
|||
.br |
|||
The domains to search, instead of the domains specified in resolv.conf |
|||
or the domain derived from the kernel hostname variable. |
|||
.TP 18 |
|||
.B ARES_OPT_LOOKUPS |
|||
.B char *\fIlookups\fP; |
|||
.br |
|||
The lookups to perform for host queries. |
|||
.I lookups |
|||
should be set to a string of the characters "b" or "f", where "b" |
|||
indicates a DNS lookup and "f" indicates a lookup in the hosts file. |
|||
.TP 18 |
|||
.B ARES_OPT_SOCK_STATE_CB |
|||
.B void (*\fIsock_state_cb\fP)(void *data, int s, int read, int write); |
|||
.br |
|||
.B void *\fIsock_state_cb_data\fP; |
|||
.br |
|||
A callback function to be invoked when a socket changes state. |
|||
.I s |
|||
will be passed the socket whose state has changed; |
|||
.I read |
|||
will be set to true if the socket should listen for read events, and |
|||
.I write |
|||
will be set to true if the socket should listen for write events. |
|||
The value of |
|||
.I sock_state_cb_data |
|||
will be passed as the |
|||
.I data |
|||
argument. |
|||
.PP |
|||
The |
|||
.I flags |
|||
field should be the bitwise or of some subset of the following values: |
|||
.TP 23 |
|||
.B ARES_FLAG_USEVC |
|||
Always use TCP queries (the "virtual circuit") instead of UDP |
|||
queries. Normally, TCP is only used if a UDP query yields a truncated |
|||
result. |
|||
.TP 23 |
|||
.B ARES_FLAG_PRIMARY |
|||
Only query the first server in the list of servers to query. |
|||
.TP 23 |
|||
.B ARES_FLAG_IGNTC |
|||
If a truncated response to a UDP query is received, do not fall back |
|||
to TCP; simply continue on with the truncated response. |
|||
.TP 23 |
|||
.B ARES_FLAG_NORECURSE |
|||
Do not set the "recursion desired" bit on outgoing queries, so that the name |
|||
server being contacted will not try to fetch the answer from other servers if |
|||
it doesn't know the answer locally. Be aware that ares will not do the |
|||
recursion for you. Recursion must be handled by the application calling ares |
|||
if \fIARES_FLAG_NORECURSE\fP is set. |
|||
.TP 23 |
|||
.B ARES_FLAG_STAYOPEN |
|||
Do not close communications sockets when the number of active queries |
|||
drops to zero. |
|||
.TP 23 |
|||
.B ARES_FLAG_NOSEARCH |
|||
Do not use the default search domains; only query hostnames as-is or |
|||
as aliases. |
|||
.TP 23 |
|||
.B ARES_FLAG_NOALIASES |
|||
Do not honor the HOSTALIASES environment variable, which normally |
|||
specifies a file of hostname translations. |
|||
.TP 23 |
|||
.B ARES_FLAG_NOCHECKRESP |
|||
Do not discard responses with the SERVFAIL, NOTIMP, or REFUSED |
|||
response code or responses whose questions don't match the questions |
|||
in the request. Primarily useful for writing clients which might be |
|||
used to test or debug name servers. |
|||
.SH RETURN VALUES |
|||
.I ares_init |
|||
or |
|||
.I ares_init_options |
|||
can return any of the following values: |
|||
.TP 14 |
|||
.B ARES_SUCCESS |
|||
Initialization succeeded. |
|||
.TP 14 |
|||
.B ARES_EFILE |
|||
A configuration file could not be read. |
|||
.TP 14 |
|||
.B ARES_ENOMEM |
|||
The process's available memory was exhausted. |
|||
.TP 14 |
|||
.B ARES_ENOTINITIALIZED |
|||
c-ares library initialization not yet performed. |
|||
.SH NOTES |
|||
When initializing from |
|||
.B /etc/resolv.conf, |
|||
.BR ares_init (3) |
|||
reads the |
|||
.I domain |
|||
and |
|||
.I search |
|||
directives to allow lookups of short names relative to the domains |
|||
specified. The |
|||
.I domain |
|||
and |
|||
.I search |
|||
directives override one another. If more that one instance of either |
|||
.I domain |
|||
or |
|||
.I search |
|||
directives is specified, the last occurence wins. For more information, |
|||
please see the |
|||
.BR resolv.conf (5) |
|||
manual page. |
|||
.SH SEE ALSO |
|||
.BR ares_destroy(3), |
|||
.BR ares_dup(3), |
|||
.BR ares_library_init(3), |
|||
.BR ares_set_servers(3) |
|||
.SH AUTHOR |
|||
Greg Hudson, MIT Information Systems |
|||
.br |
|||
Copyright 1998 by the Massachusetts Institute of Technology. |
|||
.br |
|||
Copyright (C) 2004-2010 by Daniel Stenberg. |
@ -1 +0,0 @@ |
|||
.so man3/ares_init.3 |
@ -1,73 +0,0 @@ |
|||
.\" |
|||
.\" Copyright 1998 by the Massachusetts Institute of Technology. |
|||
.\" Copyright (C) 2004-2009 by Daniel Stenberg |
|||
.\" |
|||
.\" Permission to use, copy, modify, and distribute this |
|||
.\" software and its documentation for any purpose and without |
|||
.\" fee is hereby granted, provided that the above copyright |
|||
.\" notice appear in all copies and that both that copyright |
|||
.\" notice and this permission notice appear in supporting |
|||
.\" documentation, and that the name of M.I.T. not be used in |
|||
.\" advertising or publicity pertaining to distribution of the |
|||
.\" software without specific, written prior permission. |
|||
.\" M.I.T. makes no representations about the suitability of |
|||
.\" this software for any purpose. It is provided "as is" |
|||
.\" without express or implied warranty. |
|||
.\" |
|||
.TH ARES_LIBRARY_CLEANUP 3 "19 May 2009" |
|||
.SH NAME |
|||
ares_library_cleanup \- c-ares library deinitialization |
|||
.SH SYNOPSIS |
|||
.nf |
|||
.B #include <ares.h> |
|||
.PP |
|||
.B void ares_library_cleanup(void) |
|||
.PP |
|||
.B cc file.c -lcares |
|||
.fi |
|||
.SH DESCRIPTION |
|||
.PP |
|||
The |
|||
.B ares_library_cleanup |
|||
function uninitializes the c-ares library, freeing all resources |
|||
previously acquired by \fIares_library_init(3)\fP when the library |
|||
was initialized. |
|||
.PP |
|||
This function must be called when the program using c-ares will |
|||
no longer need any c-ares function. Once the program has called |
|||
\fIares_library_cleanup(3)\fP it shall not make any further call to any |
|||
c-ares function. |
|||
.PP |
|||
This function does not cancel any pending c-ares lookups or requests |
|||
previously done. Program must use \fIares_cancel(3)\fP for this purpose. |
|||
.PP |
|||
.B This function is not thread safe. |
|||
You have to call it once the program is about to terminate, but this call must |
|||
be done once the program has terminated every single thread that it could have |
|||
initiated. This is required to avoid potential race conditions in library |
|||
deinitialization, and also due to the fact that \fIares_library_cleanup(3)\fP |
|||
might call functions from other libraries that are thread unsafe, and could |
|||
conflict with any other thread that is already using these other libraries. |
|||
.PP |
|||
Win32/64 application DLLs shall not call \fIares_library_cleanup(3)\fP from |
|||
the DllMain function. Doing so will produce deadlocks and other problems. |
|||
.SH AVAILABILITY |
|||
This function was first introduced in c-ares version 1.7.0 along with the |
|||
definition of preprocessor symbol \fICARES_HAVE_ARES_LIBRARY_CLEANUP\fP as an |
|||
indication of the availability of this function. |
|||
.PP |
|||
Since the introduction of this function, it is absolutely mandatory to call it |
|||
for any Win32/64 program using c-ares. |
|||
.PP |
|||
Non-Win32/64 systems can still use c-ares version 1.7.0 without calling |
|||
\fIares_library_cleanup(3)\fP due to the fact that \fIcurrently\fP it is nearly |
|||
a do-nothing function on non-Win32/64 platforms. |
|||
.SH SEE ALSO |
|||
.BR ares_library_init(3), |
|||
.BR ares_cancel(3) |
|||
.SH AUTHOR |
|||
Yang Tse |
|||
.PP |
|||
Copyright 1998 by the Massachusetts Institute of Technology. |
|||
.br |
|||
Copyright (C) 2004-2009 by Daniel Stenberg. |
@ -1,96 +0,0 @@ |
|||
.\" |
|||
.\" Copyright 1998 by the Massachusetts Institute of Technology. |
|||
.\" Copyright (C) 2004-2009 by Daniel Stenberg |
|||
.\" |
|||
.\" Permission to use, copy, modify, and distribute this |
|||
.\" software and its documentation for any purpose and without |
|||
.\" fee is hereby granted, provided that the above copyright |
|||
.\" notice appear in all copies and that both that copyright |
|||
.\" notice and this permission notice appear in supporting |
|||
.\" documentation, and that the name of M.I.T. not be used in |
|||
.\" advertising or publicity pertaining to distribution of the |
|||
.\" software without specific, written prior permission. |
|||
.\" M.I.T. makes no representations about the suitability of |
|||
.\" this software for any purpose. It is provided "as is" |
|||
.\" without express or implied warranty. |
|||
.\" |
|||
.TH ARES_LIBRARY_INIT 3 "19 May 2009" |
|||
.SH NAME |
|||
ares_library_init \- c-ares library initialization |
|||
.SH SYNOPSIS |
|||
.nf |
|||
.B #include <ares.h> |
|||
.PP |
|||
.B int ares_library_init(int \fIflags\fP) |
|||
.PP |
|||
.B cc file.c -lcares |
|||
.fi |
|||
.SH DESCRIPTION |
|||
.PP |
|||
The |
|||
.B ares_library_init |
|||
function performs initializations internally required by the c-ares |
|||
library that must take place before any other function provided by |
|||
c-ares can be used in a program. |
|||
.PP |
|||
This function must be called one time within the life of a program, |
|||
before the program actually executes any other c-ares library function. |
|||
Initializations done by this function remain effective until a |
|||
call to \fIares_library_cleanup(3)\fP is performed. |
|||
.PP |
|||
Successive calls to this function do nothing, only the first call done |
|||
when c-ares is in an uninitialized state is actually effective. |
|||
.PP |
|||
The |
|||
.I flags |
|||
parameter is a bit pattern that tells c-ares exactly which features |
|||
should be initialized, as described below. Set the desired bits by |
|||
ORing the values together. In normal operation you should specify |
|||
\fIARES_LIB_INIT_ALL\fP. Don't use any other value unless you are |
|||
familiar with it and trying to control some internal c-ares feature. |
|||
.PP |
|||
.B This function is not thread safe. |
|||
You have to call it once the program has started, but this call must be done |
|||
before the program starts any other thread. This is required to avoid |
|||
potential race conditions in library initialization, and also due to the fact |
|||
that \fIares_library_init(3)\fP might call functions from other libraries that |
|||
are thread unsafe, and could conflict with any other thread that is already |
|||
using these other libraries. |
|||
.PP |
|||
Win32/64 application DLLs shall not call \fIares_library_init(3)\fP from the |
|||
DllMain function. Doing so will produce deadlocks and other problems. |
|||
.SH FLAGS |
|||
.TP 5 |
|||
.B ARES_LIB_INIT_ALL |
|||
Initialize everything possible. This sets all known bits. |
|||
.TP |
|||
.B ARES_LIB_INIT_WIN32 |
|||
Initialize Win32/64 specific libraries. |
|||
.TP |
|||
.B ARES_LIB_INIT_NONE |
|||
Initialize nothing extra. This sets no bit. |
|||
.SH RETURN VALUE |
|||
Upon successful completion, ares_library_init() will return 0. Otherwise, a |
|||
non-zero error number will be returned to indicate the error. Except for |
|||
\fIares_strerror(3)\fP, you shall not call any other c-ares function upon |
|||
\fIares_library_init(3)\fP failure. |
|||
.SH AVAILABILITY |
|||
This function was first introduced in c-ares version 1.7.0 along with the |
|||
definition of preprocessor symbol \fICARES_HAVE_ARES_LIBRARY_INIT\fP as an |
|||
indication of the availability of this function. |
|||
.PP |
|||
Since the introduction of this function it is absolutely mandatory to |
|||
call it for any Win32/64 program using c-ares. |
|||
.PP |
|||
Non-Win32/64 systems can still use c-ares version 1.7.0 without calling |
|||
\fIares_library_init(3)\fP due to the fact that \fIcurrently\fP it is nearly |
|||
a do-nothing function on non-Win32/64 platforms at this point. |
|||
.SH SEE ALSO |
|||
.BR ares_library_cleanup(3), |
|||
.BR ares_strerror(3) |
|||
.SH AUTHOR |
|||
Yang Tse |
|||
.PP |
|||
Copyright 1998 by the Massachusetts Institute of Technology. |
|||
.br |
|||
Copyright (C) 2004-2009 by Daniel Stenberg. |
@ -1,75 +0,0 @@ |
|||
.\" |
|||
.\" Copyright 1998, 2000 by the Massachusetts Institute of Technology. |
|||
.\" |
|||
.\" Permission to use, copy, modify, and distribute this |
|||
.\" software and its documentation for any purpose and without |
|||
.\" fee is hereby granted, provided that the above copyright |
|||
.\" notice appear in all copies and that both that copyright |
|||
.\" notice and this permission notice appear in supporting |
|||
.\" documentation, and that the name of M.I.T. not be used in |
|||
.\" advertising or publicity pertaining to distribution of the |
|||
.\" software without specific, written prior permission. |
|||
.\" M.I.T. makes no representations about the suitability of |
|||
.\" this software for any purpose. It is provided "as is" |
|||
.\" without express or implied warranty. |
|||
.\" |
|||
.TH ARES_MKQUERY 3 "20 Nov 2009" |
|||
.SH NAME |
|||
ares_mkquery \- Compose a single-question DNS query buffer |
|||
.SH SYNOPSIS |
|||
.nf |
|||
.B #include <ares.h> |
|||
.PP |
|||
.B int ares_mkquery(const char *\fIname\fP, int \fIdnsclass\fP, int \fItype\fP, |
|||
.B unsigned short \fIid\fP, int \fIrd\fP, unsigned char **\fIbuf\fP, |
|||
.B int *\fIbuflen\fP) |
|||
.fi |
|||
.SH DESCRIPTION |
|||
The |
|||
.B ares_mkquery |
|||
function composes a DNS query with a single question. |
|||
The parameter |
|||
.I name |
|||
gives the query name as a NUL-terminated C string of period-separated |
|||
labels optionally ending with a period; periods and backslashes within |
|||
a label must be escaped with a backlash. The parameters |
|||
.I dnsclass |
|||
and |
|||
.I type |
|||
give the class and type of the query using the values defined in |
|||
.BR <arpa/nameser.h> . |
|||
The parameter |
|||
.I id |
|||
gives a 16-bit identifier for the query. The parameter |
|||
.I rd |
|||
should be nonzero if recursion is desired, zero if not. The query |
|||
will be placed in an allocated buffer, a pointer to which will be |
|||
stored in the variable pointed to by |
|||
.IR buf , |
|||
and the length of which will be stored in the variable pointed to by |
|||
.IR buflen . |
|||
It is the caller's responsibility to free this buffer using |
|||
\fIares_free_string(3)\fP when it is no longer needed. |
|||
.SH RETURN VALUES |
|||
.B ares_mkquery |
|||
can return any of the following values: |
|||
.TP 15 |
|||
.B ARES_SUCCESS |
|||
Construction of the DNS query succeeded. |
|||
.TP 15 |
|||
.B ARES_EBADNAME |
|||
The query name |
|||
.I name |
|||
could not be encoded as a domain name, either because it contained a |
|||
zero-length label or because it contained a label of more than 63 |
|||
characters. |
|||
.TP 15 |
|||
.B ARES_ENOMEM |
|||
Memory was exhausted. |
|||
.SH SEE ALSO |
|||
.BR ares_expand_name (3), |
|||
.BR ares_free_string (3) |
|||
.SH AUTHOR |
|||
Greg Hudson, MIT Information Systems |
|||
.br |
|||
Copyright 1998, 2000 by the Massachusetts Institute of Technology. |
@ -1,78 +0,0 @@ |
|||
.\" |
|||
.\" Copyright 1998 by the Massachusetts Institute of Technology. |
|||
.\" |
|||
.\" Permission to use, copy, modify, and distribute this |
|||
.\" software and its documentation for any purpose and without |
|||
.\" fee is hereby granted, provided that the above copyright |
|||
.\" notice appear in all copies and that both that copyright |
|||
.\" notice and this permission notice appear in supporting |
|||
.\" documentation, and that the name of M.I.T. not be used in |
|||
.\" advertising or publicity pertaining to distribution of the |
|||
.\" software without specific, written prior permission. |
|||
.\" M.I.T. makes no representations about the suitability of |
|||
.\" this software for any purpose. It is provided "as is" |
|||
.\" without express or implied warranty. |
|||
.\" |
|||
.TH ARES_PARSE_A_REPLY 3 "25 July 1998" |
|||
.SH NAME |
|||
ares_parse_a_reply \- Parse a reply to a DNS query of type A |
|||
.SH SYNOPSIS |
|||
.nf |
|||
.B #include <ares.h> |
|||
.PP |
|||
.B int ares_parse_a_reply(const unsigned char *\fIabuf\fP, int \fIalen\fP, |
|||
.B struct hostent **\fIhost\fP, |
|||
.B struct ares_addrttl *\fIaddrttls\fB, int *\fInaddrttls\fB); |
|||
.fi |
|||
.SH DESCRIPTION |
|||
The |
|||
.B ares_parse_a_reply |
|||
function parses the response to a query of type A into a |
|||
.BR "struct hostent" |
|||
and/or an array of |
|||
.BR "struct ares_addrttls" . |
|||
The parameters |
|||
.I abuf |
|||
and |
|||
.I alen |
|||
give the contents of the response. The result is stored in allocated |
|||
memory and a pointer to it stored into the variable pointed to by |
|||
.IR host , |
|||
if host is nonnull. |
|||
It is the caller's responsibility to free the resulting host structure |
|||
using |
|||
.BR ares_free_hostent (3) |
|||
when it is no longer needed. |
|||
.PP |
|||
If |
|||
.IR addrttls |
|||
and |
|||
.IR naddrttls |
|||
are both nonnull, |
|||
then up to *naddrttls |
|||
.BR "struct ares_addrttl" |
|||
records are stored in the array pointed to by addrttls, |
|||
and then *naddrttls is set to the number of records so stored. |
|||
Note that the memory for these records is supplied by the caller. |
|||
.SH RETURN VALUES |
|||
.B ares_parse_a_reply |
|||
can return any of the following values: |
|||
.TP 15 |
|||
.B ARES_SUCCESS |
|||
The response was successfully parsed. |
|||
.TP 15 |
|||
.B ARES_EBADRESP |
|||
The response was malformatted. |
|||
.TP 15 |
|||
.B ARES_ENODATA |
|||
The response did not contain an answer to the query. |
|||
.TP 15 |
|||
.B ARES_ENOMEM |
|||
Memory was exhausted. |
|||
.SH SEE ALSO |
|||
.BR ares_gethostbyname (3), |
|||
.BR ares_free_hostent (3) |
|||
.SH AUTHOR |
|||
Greg Hudson, MIT Information Systems |
|||
.br |
|||
Copyright 1998 by the Massachusetts Institute of Technology. |
@ -1,78 +0,0 @@ |
|||
.\" |
|||
.\" Copyright 2005 by Dominick Meglio. |
|||
.\" |
|||
.\" Permission to use, copy, modify, and distribute this |
|||
.\" software and its documentation for any purpose and without |
|||
.\" fee is hereby granted, provided that the above copyright |
|||
.\" notice appear in all copies and that both that copyright |
|||
.\" notice and this permission notice appear in supporting |
|||
.\" documentation, and that the name of M.I.T. not be used in |
|||
.\" advertising or publicity pertaining to distribution of the |
|||
.\" software without specific, written prior permission. |
|||
.\" M.I.T. makes no representations about the suitability of |
|||
.\" this software for any purpose. It is provided "as is" |
|||
.\" without express or implied warranty. |
|||
.\" |
|||
.TH ARES_PARSE_AAAA_REPLY 3 "20 Nov 2009" |
|||
.SH NAME |
|||
ares_parse_aaaa_reply \- Parse a reply to a DNS query of type AAAA |
|||
.SH SYNOPSIS |
|||
.nf |
|||
.B #include <ares.h> |
|||
.PP |
|||
.B int ares_parse_aaaa_reply(const unsigned char *\fIabuf\fP, int \fIalen\fP, |
|||
.B struct hostent **\fIhost\fP, |
|||
.B struct ares_addr6ttl *\fIaddrttls\fB, int *\fInaddrttls\fB); |
|||
.fi |
|||
.SH DESCRIPTION |
|||
The |
|||
.B ares_parse_aaaa_reply |
|||
function parses the response to a query of type AAAA into a |
|||
.BR "struct hostent" |
|||
and/or an array of |
|||
.BR "struct ares_addr6ttl" . |
|||
The parameters |
|||
.I abuf |
|||
and |
|||
.I alen |
|||
give the contents of the response. The result is stored in allocated |
|||
memory and a pointer to it stored into the variable pointed to by |
|||
.IR host , |
|||
if host is nonnull. |
|||
It is the caller's responsibility to free the resulting host structure |
|||
using |
|||
.BR ares_free_hostent (3) |
|||
when it is no longer needed. |
|||
.PP |
|||
If |
|||
.IR addrttls |
|||
and |
|||
.IR naddrttls |
|||
are both nonnull, |
|||
then up to *naddrttls |
|||
.BR "struct ares_addr6ttl" |
|||
records are stored in the array pointed to by addrttls, |
|||
and then *naddrttls is set to the number of records so stored. |
|||
Note that the memory for these records is supplied by the caller. |
|||
.SH RETURN VALUES |
|||
.B ares_parse_aaaa_reply |
|||
can return any of the following values: |
|||
.TP 15 |
|||
.B ARES_SUCCESS |
|||
The response was successfully parsed. |
|||
.TP 15 |
|||
.B ARES_EBADRESP |
|||
The response was malformatted. |
|||
.TP 15 |
|||
.B ARES_ENODATA |
|||
The response did not contain an answer to the query. |
|||
.TP 15 |
|||
.B ARES_ENOMEM |
|||
Memory was exhausted. |
|||
.SH SEE ALSO |
|||
.BR ares_gethostbyname (3), |
|||
.BR ares_free_hostent (3) |
|||
.SH AUTHOR |
|||
Dominick Meglio |
|||
.br |
|||
Copyright 2005 by Dominick Meglio. |
@ -1,79 +0,0 @@ |
|||
.\" |
|||
.\" Copyright 1998 by the Massachusetts Institute of Technology. |
|||
.\" |
|||
.\" Permission to use, copy, modify, and distribute this |
|||
.\" software and its documentation for any purpose and without |
|||
.\" fee is hereby granted, provided that the above copyright |
|||
.\" notice appear in all copies and that both that copyright |
|||
.\" notice and this permission notice appear in supporting |
|||
.\" documentation, and that the name of M.I.T. not be used in |
|||
.\" advertising or publicity pertaining to distribution of the |
|||
.\" software without specific, written prior permission. |
|||
.\" M.I.T. makes no representations about the suitability of |
|||
.\" this software for any purpose. It is provided "as is" |
|||
.\" without express or implied warranty. |
|||
.\" |
|||
.TH ARES_PARSE_MX_REPLY 3 "4 August 2009" |
|||
.SH NAME |
|||
ares_parse_mx_reply \- Parse a reply to a DNS query of type MX |
|||
.SH SYNOPSIS |
|||
.nf |
|||
.B #include <ares.h> |
|||
.PP |
|||
.B int ares_parse_mx_reply(const unsigned char* \fIabuf\fP, int \fIalen\fP, |
|||
.B struct ares_mx_reply** \fImx_out\fP); |
|||
.fi |
|||
.SH DESCRIPTION |
|||
The |
|||
.B ares_parse_mx_reply |
|||
function parses the response to a query of type MX into a |
|||
linked list of |
|||
.I struct ares_mx_reply |
|||
The parameters |
|||
.I abuf |
|||
and |
|||
.I alen |
|||
give the contents of the response. The result is stored in allocated |
|||
memory and a pointer to it stored into the variable pointed to by |
|||
.IR mx_out . |
|||
It is the caller's responsibility to free the resulting |
|||
.IR mx_out |
|||
structure when it is no longer needed using the function |
|||
.B ares_free_data |
|||
.PP |
|||
The structure |
|||
.I ares_mx_reply |
|||
contains the following fields: |
|||
.sp |
|||
.in +4n |
|||
.nf |
|||
struct ares_mx_reply { |
|||
struct ares_mx_reply *next; |
|||
char *host; |
|||
unsigned short priority; |
|||
}; |
|||
.fi |
|||
.in |
|||
.PP |
|||
.SH RETURN VALUES |
|||
.B ares_parse_mx_reply |
|||
can return any of the following values: |
|||
.TP 15 |
|||
.B ARES_SUCCESS |
|||
The response was successfully parsed. |
|||
.TP 15 |
|||
.B ARES_EBADRESP |
|||
The response was malformatted. |
|||
.TP 15 |
|||
.B ARES_ENODATA |
|||
The response did not contain an answer to the query. |
|||
.TP 15 |
|||
.B ARES_ENOMEM |
|||
Memory was exhausted. |
|||
.SH AVAILABILITY |
|||
This function was first introduced in c-ares version 1.7.2. |
|||
.SH SEE ALSO |
|||
.BR ares_query (3) |
|||
.BR ares_free_data (3) |
|||
.SH AUTHOR |
|||
Written by Jeremy Lal <kapouer@melix.org> |
@ -1,66 +0,0 @@ |
|||
.\" |
|||
.\" Copyright 1998 by the Massachusetts Institute of Technology. |
|||
.\" |
|||
.\" Permission to use, copy, modify, and distribute this |
|||
.\" software and its documentation for any purpose and without |
|||
.\" fee is hereby granted, provided that the above copyright |
|||
.\" notice appear in all copies and that both that copyright |
|||
.\" notice and this permission notice appear in supporting |
|||
.\" documentation, and that the name of M.I.T. not be used in |
|||
.\" advertising or publicity pertaining to distribution of the |
|||
.\" software without specific, written prior permission. |
|||
.\" M.I.T. makes no representations about the suitability of |
|||
.\" this software for any purpose. It is provided "as is" |
|||
.\" without express or implied warranty. |
|||
.\" |
|||
.TH ARES_PARSE_NS_REPLY 3 "10 February 2007" |
|||
.SH NAME |
|||
ares_parse_ns_reply \- Parse a reply to a DNS query of type NS into a hostent |
|||
.SH SYNOPSIS |
|||
.nf |
|||
.B #include <ares.h> |
|||
.PP |
|||
.B int ares_parse_ns_reply(const unsigned char *\fIabuf\fP, int \fIalen\fP, |
|||
.B struct hostent **\fIhost\fP); |
|||
.fi |
|||
.SH DESCRIPTION |
|||
The |
|||
.B ares_parse_ns_reply |
|||
function parses the response to a query of type NS into a |
|||
.BR "struct hostent" . |
|||
The parameters |
|||
.I abuf |
|||
and |
|||
.I alen |
|||
give the contents of the response. The result is stored in allocated |
|||
memory and a pointer to it stored into the variable pointed to by |
|||
.IR host . |
|||
The nameservers are stored into the |
|||
.BR aliases |
|||
field of the |
|||
.IR host |
|||
structure. |
|||
It is the caller's responsibility to free the resulting host structure |
|||
using |
|||
.BR ares_free_hostent (3) |
|||
when it is no longer needed. |
|||
.SH RETURN VALUES |
|||
.B ares_parse_ns_reply |
|||
can return any of the following values: |
|||
.TP 15 |
|||
.B ARES_SUCCESS |
|||
The response was successfully parsed. |
|||
.TP 15 |
|||
.B ARES_EBADRESP |
|||
The response was malformatted. |
|||
.TP 15 |
|||
.B ARES_ENODATA |
|||
The response did not contain an answer to the query. |
|||
.TP 15 |
|||
.B ARES_ENOMEM |
|||
Memory was exhausted. |
|||
.SH SEE ALSO |
|||
.BR ares_query (3), |
|||
.BR ares_free_hostent (3) |
|||
.SH AUTHOR |
|||
Written by Vlad Dinulescu <vlad.dinulescu@avira.com>, on behalf of AVIRA Gmbh http://www.avira.com |
@ -1,74 +0,0 @@ |
|||
.\" |
|||
.\" Copyright 1998 by the Massachusetts Institute of Technology. |
|||
.\" |
|||
.\" Permission to use, copy, modify, and distribute this |
|||
.\" software and its documentation for any purpose and without |
|||
.\" fee is hereby granted, provided that the above copyright |
|||
.\" notice appear in all copies and that both that copyright |
|||
.\" notice and this permission notice appear in supporting |
|||
.\" documentation, and that the name of M.I.T. not be used in |
|||
.\" advertising or publicity pertaining to distribution of the |
|||
.\" software without specific, written prior permission. |
|||
.\" M.I.T. makes no representations about the suitability of |
|||
.\" this software for any purpose. It is provided "as is" |
|||
.\" without express or implied warranty. |
|||
.\" |
|||
.TH ARES_PARSE_PTR_REPLY 3 "25 July 1998" |
|||
.SH NAME |
|||
ares_parse_ptr_reply \- Parse a reply to a DNS query of type PTR into a hostent |
|||
.SH SYNOPSIS |
|||
.nf |
|||
.B #include <ares.h> |
|||
.PP |
|||
.B int ares_parse_ptr_reply(const unsigned char *\fIabuf\fP, int \fIalen\fP, |
|||
.B const void *\fIaddr\fP, int \fIaddrlen\fP, int \fIfamily\fP, |
|||
.B struct hostent **\fIhost\fP); |
|||
.fi |
|||
.SH DESCRIPTION |
|||
The |
|||
.B ares_parse_ptr_reply |
|||
function parses the response to a query of type PTR into a |
|||
.BR "struct hostent" . |
|||
The parameters |
|||
.I abuf |
|||
and |
|||
.I alen |
|||
give the contents of the response. The parameters |
|||
.IR addr , |
|||
.IR addrlen , |
|||
and |
|||
.I family |
|||
specify which address was queried for; they are not used to verify the |
|||
response, merely used to fill in the address of the |
|||
.BR "struct hostent" . |
|||
The resulting |
|||
.B struct hostent |
|||
is stored in allocated memory and a pointer to it stored into the |
|||
variable pointed to by |
|||
.IR host . |
|||
It is the caller's responsibility to free the resulting host structure |
|||
using |
|||
.BR ares_free_hostent (3) |
|||
when it is no longer needed. |
|||
.SH RETURN VALUES |
|||
.B ares_parse_ptr_reply |
|||
can return any of the following values: |
|||
.TP 15 |
|||
.B ARES_SUCCESS |
|||
The response was successfully parsed. |
|||
.TP 15 |
|||
.B ARES_EBADRESP |
|||
The response was malformatted. |
|||
.TP 15 |
|||
.B ARES_ENODATA |
|||
The response did not contain an answer to the query. |
|||
.TP 15 |
|||
.B ARES_ENOMEM |
|||
Memory was exhausted. |
|||
.SH SEE ALSO |
|||
.BR ares_gethostbyaddr (3), |
|||
.BR ares_free_hostent (3) |
|||
.SH AUTHOR |
|||
Greg Hudson, MIT Information Systems |
|||
.br |
|||
Copyright 1998 by the Massachusetts Institute of Technology. |
@ -1,81 +0,0 @@ |
|||
.\" |
|||
.\" Copyright 1998 by the Massachusetts Institute of Technology. |
|||
.\" |
|||
.\" Permission to use, copy, modify, and distribute this |
|||
.\" software and its documentation for any purpose and without |
|||
.\" fee is hereby granted, provided that the above copyright |
|||
.\" notice appear in all copies and that both that copyright |
|||
.\" notice and this permission notice appear in supporting |
|||
.\" documentation, and that the name of M.I.T. not be used in |
|||
.\" advertising or publicity pertaining to distribution of the |
|||
.\" software without specific, written prior permission. |
|||
.\" M.I.T. makes no representations about the suitability of |
|||
.\" this software for any purpose. It is provided "as is" |
|||
.\" without express or implied warranty. |
|||
.\" |
|||
.TH ARES_PARSE_SRV_REPLY 3 "4 August 2009" |
|||
.SH NAME |
|||
ares_parse_srv_reply \- Parse a reply to a DNS query of type SRV |
|||
.SH SYNOPSIS |
|||
.nf |
|||
.B #include <ares.h> |
|||
.PP |
|||
.B int ares_parse_srv_reply(const unsigned char* \fIabuf\fP, int \fIalen\fP, |
|||
.B struct ares_srv_reply** \fIsrv_out\fP); |
|||
.fi |
|||
.SH DESCRIPTION |
|||
The |
|||
.B ares_parse_srv_reply |
|||
function parses the response to a query of type SRV into a |
|||
linked list of |
|||
.I struct ares_srv_reply |
|||
The parameters |
|||
.I abuf |
|||
and |
|||
.I alen |
|||
give the contents of the response. The result is stored in allocated |
|||
memory and a pointer to it stored into the variable pointed to by |
|||
.IR srv_out . |
|||
It is the caller's responsibility to free the resulting |
|||
.IR srv_out |
|||
structure when it is no longer needed using the function |
|||
.B ares_free_data |
|||
.PP |
|||
The structure |
|||
.I ares_srv_reply |
|||
contains the following fields: |
|||
.sp |
|||
.in +4n |
|||
.nf |
|||
struct ares_srv_reply { |
|||
struct ares_srv_reply *next; |
|||
unsigned short weight; |
|||
unsigned short priority; |
|||
unsigned short port; |
|||
char *host; |
|||
}; |
|||
.fi |
|||
.in |
|||
.PP |
|||
.SH RETURN VALUES |
|||
.B ares_parse_srv_reply |
|||
can return any of the following values: |
|||
.TP 15 |
|||
.B ARES_SUCCESS |
|||
The response was successfully parsed. |
|||
.TP 15 |
|||
.B ARES_EBADRESP |
|||
The response was malformatted. |
|||
.TP 15 |
|||
.B ARES_ENODATA |
|||
The response did not contain an answer to the query. |
|||
.TP 15 |
|||
.B ARES_ENOMEM |
|||
Memory was exhausted. |
|||
.SH AVAILABILITY |
|||
This function was first introduced in c-ares version 1.7.0. |
|||
.SH SEE ALSO |
|||
.BR ares_query (3) |
|||
.BR ares_free_data (3) |
|||
.SH AUTHOR |
|||
Written by Jakub Hrozek <jhrozek@redhat.com>, on behalf of Red Hat, Inc http://www.redhat.com |
@ -1,80 +0,0 @@ |
|||
.\" |
|||
.\" Copyright 1998 by the Massachusetts Institute of Technology. |
|||
.\" |
|||
.\" Permission to use, copy, modify, and distribute this |
|||
.\" software and its documentation for any purpose and without |
|||
.\" fee is hereby granted, provided that the above copyright |
|||
.\" notice appear in all copies and that both that copyright |
|||
.\" notice and this permission notice appear in supporting |
|||
.\" documentation, and that the name of M.I.T. not be used in |
|||
.\" advertising or publicity pertaining to distribution of the |
|||
.\" software without specific, written prior permission. |
|||
.\" M.I.T. makes no representations about the suitability of |
|||
.\" this software for any purpose. It is provided "as is" |
|||
.\" without express or implied warranty. |
|||
.\" |
|||
.TH ARES_PARSE_TXT_REPLY 3 "27 October 2009" |
|||
.SH NAME |
|||
ares_parse_txt_reply \- Parse a reply to a DNS query of type TXT |
|||
.SH SYNOPSIS |
|||
.nf |
|||
.B #include <ares.h> |
|||
.PP |
|||
.B int ares_parse_txt_reply(const unsigned char* \fIabuf\fP, int \fIalen\fP, |
|||
.B struct ares_txt_reply **\fItxt_out\fP); |
|||
.fi |
|||
.SH DESCRIPTION |
|||
The |
|||
.B ares_parse_txt_reply |
|||
function parses the response to a query of type TXT into a |
|||
linked list of |
|||
.I struct ares_txt_reply |
|||
The parameters |
|||
.I abuf |
|||
and |
|||
.I alen |
|||
give the contents of the response. The result is stored in allocated |
|||
memory and a pointer to it stored into the variable pointed to by |
|||
.IR txt_out . |
|||
It is the caller's responsibility to free the resulting |
|||
.IR txt_out |
|||
structure when it is no longer needed using the function |
|||
.B ares_free_data |
|||
.PP |
|||
The structure |
|||
.I ares_txt_reply |
|||
contains the following fields: |
|||
.sp |
|||
.in +4n |
|||
.nf |
|||
struct ares_txt_reply { |
|||
struct ares_txt_reply *next; |
|||
unsigned int length; |
|||
unsigned char *txt; |
|||
}; |
|||
.fi |
|||
.in |
|||
.PP |
|||
.SH RETURN VALUES |
|||
.B ares_parse_txt_reply |
|||
can return any of the following values: |
|||
.TP 15 |
|||
.B ARES_SUCCESS |
|||
The response was successfully parsed. |
|||
.TP 15 |
|||
.B ARES_EBADRESP |
|||
The response was malformatted. |
|||
.TP 15 |
|||
.B ARES_ENODATA |
|||
The response did not contain an answer to the query. |
|||
.TP 15 |
|||
.B ARES_ENOMEM |
|||
Memory was exhausted. |
|||
.SH AVAILABILITY |
|||
This function was first introduced in c-ares version 1.7.0. |
|||
.SH SEE ALSO |
|||
.BR ares_query (3) |
|||
.BR ares_free_data (3) |
|||
.SH AUTHOR |
|||
Written by Jakub Hrozek <jhrozek@redhat.com>, on behalf of Red Hat, Inc http://www.redhat.com |
|||
|
@ -1,80 +0,0 @@ |
|||
.\" |
|||
.\" Copyright 1998 by the Massachusetts Institute of Technology. |
|||
.\" |
|||
.\" Permission to use, copy, modify, and distribute this |
|||
.\" software and its documentation for any purpose and without |
|||
.\" fee is hereby granted, provided that the above copyright |
|||
.\" notice appear in all copies and that both that copyright |
|||
.\" notice and this permission notice appear in supporting |
|||
.\" documentation, and that the name of M.I.T. not be used in |
|||
.\" advertising or publicity pertaining to distribution of the |
|||
.\" software without specific, written prior permission. |
|||
.\" M.I.T. makes no representations about the suitability of |
|||
.\" this software for any purpose. It is provided "as is" |
|||
.\" without express or implied warranty. |
|||
.\" |
|||
.TH ARES_PROCESS 3 "25 July 1998" |
|||
.SH NAME |
|||
ares_process \- Process events for name resolution |
|||
.SH SYNOPSIS |
|||
.nf |
|||
.B #include <ares.h> |
|||
.PP |
|||
.B void ares_process(ares_channel \fIchannel\fP, fd_set *\fIread_fds\fP, |
|||
.B fd_set *\fIwrite_fds\fP) |
|||
.fi |
|||
.PP |
|||
.B void ares_process_fd(ares_channel \fIchannel\fP, |
|||
.B ares_socket_t \fIread_fd\fP, |
|||
.B ares_socket_t \fIwrite_fd\fP) |
|||
.fi |
|||
.SH DESCRIPTION |
|||
The \fBares_process(3)\fP function handles input/output events and timeouts |
|||
associated with queries pending on the name service channel identified by |
|||
.IR channel . |
|||
The file descriptor sets pointed to by \fIread_fds\fP and \fIwrite_fds\fP |
|||
should have file descriptors set in them according to whether the file |
|||
descriptors specified by \fIares_fds(3)\fP are ready for reading and writing. |
|||
(The easiest way to determine this information is to invoke |
|||
.B select |
|||
with a timeout no greater than the timeout given by \fIares_timeout(3)\fP ). |
|||
.PP |
|||
The |
|||
.B ares_process |
|||
function will invoke callbacks for pending queries if they complete |
|||
successfully or fail. |
|||
|
|||
\fBares_process_fd(3)\fP works the same way but acts and operates only on the |
|||
specific file descriptors (sockets) you pass in to the function. Use |
|||
ARES_SOCKET_BAD for "no action". This function is of course provided to allow |
|||
users of c-ares to void select() in their applications and within c-ares. |
|||
.SS EXAMPLE |
|||
The following code fragment waits for all pending queries on a channel |
|||
to complete: |
|||
.PP |
|||
.RS |
|||
.nf |
|||
int nfds, count; |
|||
fd_set readers, writers; |
|||
struct timeval tv, *tvp; |
|||
|
|||
while (1) |
|||
{ |
|||
FD_ZERO(&readers); |
|||
FD_ZERO(&writers); |
|||
nfds = ares_fds(channel, &readers, &writers); |
|||
if (nfds == 0) |
|||
break; |
|||
tvp = ares_timeout(channel, NULL, &tv); |
|||
count = select(nfds, &readers, &writers, NULL, tvp); |
|||
ares_process(channel, &readers, &writers); |
|||
} |
|||
.fi |
|||
.RE |
|||
.SH SEE ALSO |
|||
.BR ares_fds (3), |
|||
.BR ares_timeout (3) |
|||
.SH AUTHOR |
|||
Greg Hudson, MIT Information Systems |
|||
.br |
|||
Copyright 1998 by the Massachusetts Institute of Technology. |
@ -1,146 +0,0 @@ |
|||
.\" |
|||
.\" Copyright 1998 by the Massachusetts Institute of Technology. |
|||
.\" |
|||
.\" Permission to use, copy, modify, and distribute this |
|||
.\" software and its documentation for any purpose and without |
|||
.\" fee is hereby granted, provided that the above copyright |
|||
.\" notice appear in all copies and that both that copyright |
|||
.\" notice and this permission notice appear in supporting |
|||
.\" documentation, and that the name of M.I.T. not be used in |
|||
.\" advertising or publicity pertaining to distribution of the |
|||
.\" software without specific, written prior permission. |
|||
.\" M.I.T. makes no representations about the suitability of |
|||
.\" this software for any purpose. It is provided "as is" |
|||
.\" without express or implied warranty. |
|||
.\" |
|||
.TH ARES_QUERY 3 "24 July 1998" |
|||
.SH NAME |
|||
ares_query \- Initiate a single-question DNS query |
|||
.SH SYNOPSIS |
|||
.nf |
|||
.B #include <ares.h> |
|||
.PP |
|||
.B typedef void (*ares_callback)(void *\fIarg\fP, int \fIstatus\fP, |
|||
.B int \fItimeouts\fP, unsigned char *\fIabuf\fP, int \fIalen\fP) |
|||
.PP |
|||
.B void ares_query(ares_channel \fIchannel\fP, const char *\fIname\fP, |
|||
.B int \fIdnsclass\fP, int \fItype\fP, ares_callback \fIcallback\fP, |
|||
.B void *\fIarg\fP) |
|||
.fi |
|||
.SH DESCRIPTION |
|||
The |
|||
.B ares_query |
|||
function initiates a single-question DNS query on the name service |
|||
channel identified by |
|||
.IR channel . |
|||
The parameter |
|||
.I name |
|||
gives the query name as a NUL-terminated C string of period-separated |
|||
labels optionally ending with a period; periods and backslashes within |
|||
a label must be escaped with a backslash. The parameters |
|||
.I dnsclass |
|||
and |
|||
.I type |
|||
give the class and type of the query using the values defined in |
|||
.BR <arpa/nameser.h> . |
|||
When the query is complete or has failed, the ares library will invoke |
|||
.IR callback . |
|||
Completion or failure of the query may happen immediately, or may |
|||
happen during a later call to |
|||
.BR ares_process (3) |
|||
or |
|||
.BR ares_destroy (3). |
|||
.PP |
|||
The callback argument |
|||
.I arg |
|||
is copied from the |
|||
.B ares_query |
|||
argument |
|||
.IR arg . |
|||
The callback argument |
|||
.I status |
|||
indicates whether the query succeeded and, if not, how it failed. It |
|||
may have any of the following values: |
|||
.TP 19 |
|||
.B ARES_SUCCESS |
|||
The query completed successfully. |
|||
.TP 19 |
|||
.B ARES_ENODATA |
|||
The query completed but contains no answers. |
|||
.TP 19 |
|||
.B ARES_EFORMERR |
|||
The query completed but the server claims that the query was |
|||
malformatted. |
|||
.TP 19 |
|||
.B ARES_ESERVFAIL |
|||
The query completed but the server claims to have experienced a |
|||
failure. (This code can only occur if the |
|||
.B ARES_FLAG_NOCHECKRESP |
|||
flag was specified at channel initialization time; otherwise, such |
|||
responses are ignored at the |
|||
.BR ares_send (3) |
|||
level.) |
|||
.TP 19 |
|||
.B ARES_ENOTFOUND |
|||
The query completed but the queried-for domain name was not found. |
|||
.TP 19 |
|||
.B ARES_ENOTIMP |
|||
The query completed but the server does not implement the operation |
|||
requested by the query. (This code can only occur if the |
|||
.B ARES_FLAG_NOCHECKRESP |
|||
flag was specified at channel initialization time; otherwise, such |
|||
responses are ignored at the |
|||
.BR ares_send (3) |
|||
level.) |
|||
.TP 19 |
|||
.B ARES_EREFUSED |
|||
The query completed but the server refused the query. (This code can |
|||
only occur if the |
|||
.B ARES_FLAG_NOCHECKRESP |
|||
flag was specified at channel initialization time; otherwise, such |
|||
responses are ignored at the |
|||
.BR ares_send (3) |
|||
level.) |
|||
.TP 19 |
|||
.B ARES_EBADNAME |
|||
The query name |
|||
.I name |
|||
could not be encoded as a domain name, either because it contained a |
|||
zero-length label or because it contained a label of more than 63 |
|||
characters. |
|||
.TP 19 |
|||
.B ARES_ETIMEOUT |
|||
No name servers responded within the timeout period. |
|||
.TP 19 |
|||
.B ARES_ECONNREFUSED |
|||
No name servers could be contacted. |
|||
.TP 19 |
|||
.B ARES_ENOMEM |
|||
Memory was exhausted. |
|||
.TP 19 |
|||
.B ARES_EDESTRUCTION |
|||
The name service channel |
|||
.I channel |
|||
is being destroyed; the query will not be completed. |
|||
.PP |
|||
The callback argument |
|||
.I timeouts |
|||
reports how many times a query timed out during the execution of the |
|||
given request. |
|||
.PP |
|||
If the query completed (even if there was something wrong with it, as |
|||
indicated by some of the above error codes), the callback argument |
|||
.I abuf |
|||
points to a result buffer of length |
|||
.IR alen . |
|||
If the query did not complete, |
|||
.I abuf |
|||
will be NULL and |
|||
.I alen |
|||
will be 0. |
|||
.SH SEE ALSO |
|||
.BR ares_process (3) |
|||
.SH AUTHOR |
|||
Greg Hudson, MIT Information Systems |
|||
.br |
|||
Copyright 1998 by the Massachusetts Institute of Technology. |
@ -1,74 +0,0 @@ |
|||
.\" |
|||
.\" Copyright 1998 by the Massachusetts Institute of Technology. |
|||
.\" |
|||
.\" Permission to use, copy, modify, and distribute this |
|||
.\" software and its documentation for any purpose and without |
|||
.\" fee is hereby granted, provided that the above copyright |
|||
.\" notice appear in all copies and that both that copyright |
|||
.\" notice and this permission notice appear in supporting |
|||
.\" documentation, and that the name of M.I.T. not be used in |
|||
.\" advertising or publicity pertaining to distribution of the |
|||
.\" software without specific, written prior permission. |
|||
.\" M.I.T. makes no representations about the suitability of |
|||
.\" this software for any purpose. It is provided "as is" |
|||
.\" without express or implied warranty. |
|||
.\" |
|||
.TH ARES_SAVE_OPTIONS 3 "5 March 2010" |
|||
.SH NAME |
|||
ares_save_options \- Save configuration values obtained from initialized ares_channel |
|||
.SH SYNOPSIS |
|||
.nf |
|||
.B #include <ares.h> |
|||
.PP |
|||
.B int ares_save_options(ares_channel \fIchannel\fP, struct ares_options *\fIoptions\fP, int *\fIoptmask\fP) |
|||
.fi |
|||
.SH DESCRIPTION |
|||
The \fBares_save_options(3)\fP function saves the channel data identified by |
|||
.IR channel , |
|||
into the options struct identified by |
|||
.IR options , |
|||
and saves the mask of options which are set to the integer |
|||
pointer (passed by reference) identified by |
|||
.IR optmask . |
|||
|
|||
The resultant options and optmask are then able to be |
|||
passed directly to ares_init_options. When the options |
|||
are no longer needed, ares_destroy_options should be called |
|||
to free any associated memory. |
|||
.SH RETURN VALUES |
|||
.B ares_save_options(3) |
|||
can return any of the following values: |
|||
.TP 15 |
|||
.B ARES_SUCCESS |
|||
The channel data was successfuly stored |
|||
.TP 15 |
|||
.B ARES_ENOMEM |
|||
The memory was exhausted |
|||
.TP 15 |
|||
.B ARES_ENODATA |
|||
The channel data identified by |
|||
.IR channel |
|||
were invalid. |
|||
.SH NOTE |
|||
Since c-ares 1.6.0 the ares_options struct has been "locked" meaning that it |
|||
won't be extended to cover new functions. This function will remain |
|||
functioning, but it can only return config data that can be represented in |
|||
this config struct, which may no longer be the complete set of config |
|||
options. \fBares_dup(3)\fP will not have that restriction. |
|||
|
|||
The ares_options struct can not handle potential IPv6 name servers the |
|||
ares_channel might be configured to use. The \fBares_save_options(3)\fP function |
|||
will only return IPv4 servers, if any. In order to retrieve all name servers |
|||
an ares_channel might be using, the \fBares_get_servers(3)\fP function must be |
|||
used instead. |
|||
.SH SEE ALSO |
|||
.BR ares_destroy_options (3), |
|||
.BR ares_init_options (3), |
|||
.BR ares_get_servers (3), |
|||
.BR ares_dup (3) |
|||
.SH AVAILABILITY |
|||
ares_save_options(3) was added in c-ares 1.4.0 |
|||
.SH AUTHOR |
|||
Brad House |
|||
.br |
|||
Copyright 1998 by the Massachusetts Institute of Technology. |
@ -1,148 +0,0 @@ |
|||
.\" |
|||
.\" Copyright 1998 by the Massachusetts Institute of Technology. |
|||
.\" |
|||
.\" Permission to use, copy, modify, and distribute this |
|||
.\" software and its documentation for any purpose and without |
|||
.\" fee is hereby granted, provided that the above copyright |
|||
.\" notice appear in all copies and that both that copyright |
|||
.\" notice and this permission notice appear in supporting |
|||
.\" documentation, and that the name of M.I.T. not be used in |
|||
.\" advertising or publicity pertaining to distribution of the |
|||
.\" software without specific, written prior permission. |
|||
.\" M.I.T. makes no representations about the suitability of |
|||
.\" this software for any purpose. It is provided "as is" |
|||
.\" without express or implied warranty. |
|||
.\" |
|||
.TH ARES_SEARCH 3 "24 July 1998" |
|||
.SH NAME |
|||
ares_search \- Initiate a DNS query with domain search |
|||
.SH SYNOPSIS |
|||
.nf |
|||
.B #include <ares.h> |
|||
.PP |
|||
.B typedef void (*ares_callback)(void *\fIarg\fP, int \fIstatus\fP, |
|||
.B int \fItimeouts\fP, unsigned char *\fIabuf\fP, int \fIalen\fP) |
|||
.PP |
|||
.B void ares_search(ares_channel \fIchannel\fP, const char *\fIname\fP, |
|||
.B int \fIdnsclass\fP, int \fItype\fP, ares_callback \fIcallback\fP, |
|||
.B void *\fIarg\fP) |
|||
.fi |
|||
.SH DESCRIPTION |
|||
The |
|||
.B ares_search |
|||
function initiates a series of single-question DNS queries on the name |
|||
service channel identified by |
|||
.IR channel , |
|||
using the channel's search domains as well as a host alias file given |
|||
by the HOSTALIAS environment variable. The parameter |
|||
.I name |
|||
gives the alias name or the base of the query name as a NUL-terminated |
|||
C string of period-separated labels; if it ends with a period, the |
|||
channel's search domains will not be used. Periods and backslashes |
|||
within a label must be escaped with a backslash. The parameters |
|||
.I dnsclass |
|||
and |
|||
.I type |
|||
give the class and type of the query using the values defined in |
|||
.BR <arpa/nameser.h> . |
|||
When the query sequence is complete or has failed, the ares library |
|||
will invoke |
|||
.IR callback . |
|||
Completion or failure of the query sequence may happen immediately, or |
|||
may happen during a later call to |
|||
.BR ares_process (3) |
|||
or |
|||
.BR ares_destroy (3). |
|||
.PP |
|||
The callback argument |
|||
.I arg |
|||
is copied from the |
|||
.B ares_search |
|||
argument |
|||
.IR arg . |
|||
The callback argument |
|||
.I status |
|||
indicates whether the query sequence ended with a successful query |
|||
and, if not, how the query sequence failed. It may have any of the |
|||
following values: |
|||
.TP 19 |
|||
.B ARES_SUCCESS |
|||
A query completed successfully. |
|||
.TP 19 |
|||
.B ARES_ENODATA |
|||
No query completed successfully; when the query was tried without a |
|||
search domain appended, a response was returned with no answers. |
|||
.TP 19 |
|||
.B ARES_EFORMERR |
|||
A query completed but the server claimed that the query was |
|||
malformatted. |
|||
.TP 19 |
|||
.B ARES_ESERVFAIL |
|||
No query completed successfully; when the query was tried without a |
|||
search domain appended, the server claimed to have experienced a |
|||
failure. (This code can only occur if the |
|||
.B ARES_FLAG_NOCHECKRESP |
|||
flag was specified at channel initialization time; otherwise, such |
|||
responses are ignored at the |
|||
.BR ares_send (3) |
|||
level.) |
|||
.TP 19 |
|||
.B ARES_ENOTFOUND |
|||
No query completed successfully; when the query was tried without a |
|||
search domain appended, the server reported that the queried-for |
|||
domain name was not found. |
|||
.TP 19 |
|||
.B ARES_ENOTIMP |
|||
A query completed but the server does not implement the operation |
|||
requested by the query. (This code can only occur if the |
|||
.B ARES_FLAG_NOCHECKRESP |
|||
flag was specified at channel initialization time; otherwise, such |
|||
responses are ignored at the |
|||
.BR ares_send (3) |
|||
level.) |
|||
.TP 19 |
|||
.B ARES_EREFUSED |
|||
A query completed but the server refused the query. (This code can |
|||
only occur returned if the |
|||
.B ARES_FLAG_NOCHECKRESP |
|||
flag was specified at channel initialization time; otherwise, such |
|||
responses are ignored at the |
|||
.BR ares_send (3) |
|||
level.) |
|||
.TP 19 |
|||
.B ARES_TIMEOUT |
|||
No name servers responded to a query within the timeout period. |
|||
.TP 19 |
|||
.B ARES_ECONNREFUSED |
|||
No name servers could be contacted. |
|||
.TP 19 |
|||
.B ARES_ENOMEM |
|||
Memory was exhausted. |
|||
.TP 19 |
|||
.B ARES_EDESTRUCTION |
|||
The name service channel |
|||
.I channel |
|||
is being destroyed; the query will not be completed. |
|||
.PP |
|||
The callback argument |
|||
.I timeouts |
|||
reports how many times a query timed out during the execution of the |
|||
given request. |
|||
.PP |
|||
If a query completed successfully, the callback argument |
|||
.I abuf |
|||
points to a result buffer of length |
|||
.IR alen . |
|||
If the query did not complete successfully, |
|||
.I abuf |
|||
will usually be NULL and |
|||
.I alen |
|||
will usually be 0, but in some cases an unsuccessful query result may |
|||
be placed in |
|||
.IR abuf . |
|||
.SH SEE ALSO |
|||
.BR ares_process (3) |
|||
.SH AUTHOR |
|||
Greg Hudson, MIT Information Systems |
|||
.br |
|||
Copyright 1998 by the Massachusetts Institute of Technology. |
@ -1,120 +0,0 @@ |
|||
.\" |
|||
.\" Copyright 1998 by the Massachusetts Institute of Technology. |
|||
.\" |
|||
.\" Permission to use, copy, modify, and distribute this |
|||
.\" software and its documentation for any purpose and without |
|||
.\" fee is hereby granted, provided that the above copyright |
|||
.\" notice appear in all copies and that both that copyright |
|||
.\" notice and this permission notice appear in supporting |
|||
.\" documentation, and that the name of M.I.T. not be used in |
|||
.\" advertising or publicity pertaining to distribution of the |
|||
.\" software without specific, written prior permission. |
|||
.\" M.I.T. makes no representations about the suitability of |
|||
.\" this software for any purpose. It is provided "as is" |
|||
.\" without express or implied warranty. |
|||
.\" |
|||
.TH ARES_SEND 3 "25 July 1998" |
|||
.SH NAME |
|||
ares_send \- Initiate a DNS query |
|||
.SH SYNOPSIS |
|||
.nf |
|||
.B #include <ares.h> |
|||
.PP |
|||
.B typedef void (*ares_callback)(void *\fIarg\fP, int \fIstatus\fP, |
|||
.B int \fItimeouts\fP, unsigned char *\fIabuf\fP, int \fIalen\fP) |
|||
.PP |
|||
.B void ares_send(ares_channel \fIchannel\fP, const unsigned char *\fIqbuf\fP, |
|||
.B int \fIqlen\fP, ares_callback \fIcallback\fP, void *\fIarg\fP) |
|||
.fi |
|||
.SH DESCRIPTION |
|||
The |
|||
.B ares_send |
|||
function initiates a DNS query on the name service channel identified |
|||
by |
|||
.IR channel . |
|||
The parameters |
|||
.I qbuf |
|||
and |
|||
.I qlen |
|||
give the DNS query, which should already have been formatted according |
|||
to the DNS protocol. When the query is complete or has failed, the |
|||
ares library will invoke |
|||
.IR callback . |
|||
Completion or failure of the query may happen immediately, or may |
|||
happen during a later call to |
|||
.BR ares_process (3) |
|||
or |
|||
.BR ares_destroy (3). |
|||
.PP |
|||
The callback argument |
|||
.I arg |
|||
is copied from the |
|||
.B ares_send |
|||
argument |
|||
.IR arg . |
|||
The callback argument |
|||
.I status |
|||
indicates whether the query succeeded and, if not, how it failed. It |
|||
may have any of the following values: |
|||
.TP 19 |
|||
.B ARES_SUCCESS |
|||
The query completed. |
|||
.TP 19 |
|||
.B ARES_EBADQUERY |
|||
The query buffer was poorly formed (was not long enough for a DNS |
|||
header or was too long for TCP transmission). |
|||
.TP 19 |
|||
.B ARES_ETIMEOUT |
|||
No name servers responded within the timeout period. |
|||
.TP 19 |
|||
.B ARES_ECONNREFUSED |
|||
No name servers could be contacted. |
|||
.TP 19 |
|||
.B ARES_ENOMEM |
|||
Memory was exhausted. |
|||
.TP 19 |
|||
.B ARES_EDESTRUCTION |
|||
The name service channel |
|||
.I channel |
|||
is being destroyed; the query will not be completed. |
|||
.PP |
|||
The callback argument |
|||
.I timeouts |
|||
reports how many times a query timed out during the execution of the |
|||
given request. |
|||
.PP |
|||
If the query completed, the callback argument |
|||
.I abuf |
|||
points to a result buffer of length |
|||
.IR alen . |
|||
If the query did not complete, |
|||
.I abuf |
|||
will be NULL and |
|||
.I alen |
|||
will be 0. |
|||
.PP |
|||
Unless the flag |
|||
.B ARES_FLAG_NOCHECKRESP |
|||
was set at channel initialization time, |
|||
.B ares_send |
|||
will normally ignore responses whose questions do not match the |
|||
questions in |
|||
.IR qbuf , |
|||
as well as responses with reply codes of |
|||
.BR SERVFAIL , |
|||
.BR NOTIMP , |
|||
and |
|||
.BR REFUSED . |
|||
Unlike other query functions in the ares library, however, |
|||
.B ares_send |
|||
does not inspect the header of the reply packet to determine the error |
|||
status, so a callback status of |
|||
.B ARES_SUCCESS |
|||
does not reflect as much about the response as for other query |
|||
functions. |
|||
.SH SEE ALSO |
|||
.BR ares_process (3) |
|||
.SH AUTHOR |
|||
Greg Hudson, MIT Information Systems |
|||
.br |
|||
Copyright 1998 by the Massachusetts Institute of Technology. |
@ -1,84 +0,0 @@ |
|||
.\" |
|||
.\" Copyright 2010 by Ben Greear <greearb@candelatech.com> |
|||
.\" |
|||
.\" Permission to use, copy, modify, and distribute this |
|||
.\" software and its documentation for any purpose and without |
|||
.\" fee is hereby granted, provided that the above copyright |
|||
.\" notice appear in all copies and that both that copyright |
|||
.\" notice and this permission notice appear in supporting |
|||
.\" documentation, and that the name of M.I.T. not be used in |
|||
.\" advertising or publicity pertaining to distribution of the |
|||
.\" software without specific, written prior permission. |
|||
.\" M.I.T. makes no representations about the suitability of |
|||
.\" this software for any purpose. It is provided "as is" |
|||
.\" without express or implied warranty. |
|||
.\" |
|||
.TH ARES_SET_SERVERS 3 "5 March 2010" |
|||
.SH NAME |
|||
ares_set_servers \- Initialize an ares_channel name servers configuration |
|||
.SH SYNOPSIS |
|||
.nf |
|||
.B #include <ares.h> |
|||
.PP |
|||
.B int ares_set_servers(ares_channel \fIchannel\fP, struct ares_addr_node *\fIservers\fP) |
|||
.fi |
|||
.SH DESCRIPTION |
|||
The \fBares_set_servers(3)\fP function initializes name servers configuration |
|||
for the channel data identified by |
|||
.IR channel , |
|||
from a |
|||
.IR servers |
|||
pointer to a linked list of ares_addr_node structs holding name servers |
|||
address data. |
|||
|
|||
The name server linked list pointer argument may be the result of a previous |
|||
call to \fBares_get_servers(3)\fP or a linked list of ares_addr_node structs |
|||
setup by other means. |
|||
|
|||
This function replaces any potentially previously configured name servers |
|||
with the ones given in the linked list. So, in order to configure a channel |
|||
with more than one name server all the desired ones must be specified in a |
|||
single list. |
|||
|
|||
\fBares_set_servers(3)\fP does not take ownership of the linked list argument. |
|||
The caller is responsible for freeing the linked list when no longer needed. |
|||
|
|||
This function is capable of handling IPv4 and IPv6 name server |
|||
addresses simultaneously, rendering \fBares_init_options(3)\fP with |
|||
optmask \fBARES_OPT_SERVERS\fP functionally obsolete except for |
|||
IPv4-only name server usage. |
|||
|
|||
.SH RETURN VALUES |
|||
.B ares_set_servers(3) |
|||
may return any of the following values: |
|||
.TP 15 |
|||
.B ARES_SUCCESS |
|||
The name servers configuration was successfuly initialized. |
|||
.TP 15 |
|||
.B ARES_ENOMEM |
|||
The process's available memory was exhausted. |
|||
.TP 15 |
|||
.B ARES_ENODATA |
|||
The channel data identified by |
|||
.IR channel |
|||
was invalid. |
|||
.TP 15 |
|||
.B ARES_ENOTINITIALIZED |
|||
c-ares library initialization not yet performed. |
|||
.SH SEE ALSO |
|||
.BR ares_set_servers_csv (3), |
|||
.BR ares_get_servers (3), |
|||
.BR ares_init_options (3), |
|||
.BR ares_dup(3) |
|||
.SH AVAILABILITY |
|||
ares_set_servers(3) was added in c-ares 1.7.1 |
|||
.SH AUTHOR |
|||
Implementation of this function and associated library internals are based |
|||
on code, comments and feedback provided in November and December of 2008 by |
|||
Daniel Stenberg, Gregor Jasny, Phil Blundell and Yang Tse, December 2009 |
|||
by Cedric Bail, February 2010 by Jakub Hrozek. On March 2010 Yang Tse |
|||
shuffled all the bits and this function popped out. |
|||
.br |
|||
Copyright 1998 by the Massachusetts Institute of Technology. |
|||
.br |
|||
Copyright (C) 2008-2010 by Daniel Stenberg |
@ -1,28 +0,0 @@ |
|||
.\" |
|||
.TH ARES_SET_SOCKET_CALLBACK 3 "20 Nov 2009" |
|||
.SH NAME |
|||
ares_set_socket_callback \- Set a socket creation callback |
|||
.SH SYNOPSIS |
|||
.nf |
|||
.B #include <ares.h> |
|||
.PP |
|||
.B void ares_set_socket_callback(ares_channel \fIchannel\fP, |
|||
ares_sock_create_callback \fIcallback\fP, |
|||
void *\fIuserdata\fP) |
|||
.PP |
|||
.B cc file.c -lcares |
|||
.fi |
|||
.SH DESCRIPTION |
|||
.PP |
|||
This function sets a \fIcallback\fP in the given ares channel handle. This |
|||
callback function will be invoked after the socket has been created, and |
|||
connected to the remote server. The callback must return ARES_SUCCESS if |
|||
things are fine, or use the standard ares error codes to signal errors |
|||
back. Returned errors will abort the ares operation. |
|||
.SH SEE ALSO |
|||
.BR ares_init_options (3) |
|||
.SH AVAILABILITY |
|||
ares_set_socket_callback(3) was added in c-ares 1.6.0 |
|||
.SH AUTHOR |
|||
Gregor Jasny |
|||
|
@ -1,37 +0,0 @@ |
|||
.\" |
|||
.\" Copyright 1998 by the Massachusetts Institute of Technology. |
|||
.\" |
|||
.\" Permission to use, copy, modify, and distribute this |
|||
.\" software and its documentation for any purpose and without |
|||
.\" fee is hereby granted, provided that the above copyright |
|||
.\" notice appear in all copies and that both that copyright |
|||
.\" notice and this permission notice appear in supporting |
|||
.\" documentation, and that the name of M.I.T. not be used in |
|||
.\" advertising or publicity pertaining to distribution of the |
|||
.\" software without specific, written prior permission. |
|||
.\" M.I.T. makes no representations about the suitability of |
|||
.\" this software for any purpose. It is provided "as is" |
|||
.\" without express or implied warranty. |
|||
.\" |
|||
.TH ARES_STRERROR 3 "25 July 1998" |
|||
.SH NAME |
|||
ares_strerror \- Get the description of an ares library error code |
|||
.SH SYNOPSIS |
|||
.nf |
|||
.B #include <ares.h> |
|||
.PP |
|||
.B const char *ares_strerror(int \fIcode\fP) |
|||
.fi |
|||
.SH DESCRIPTION |
|||
The |
|||
.B ares_strerror |
|||
function gets the description of the ares library error code |
|||
.IR code , |
|||
returning the result as a NUL-terminated C string. |
|||
.SH NOTES |
|||
This function is not compatible with ares, it takes a different set of |
|||
arguments. |
|||
.SH AUTHOR |
|||
Greg Hudson, MIT Information Systems |
|||
.br |
|||
Copyright 1998 by the Massachusetts Institute of Technology. |
@ -1,61 +0,0 @@ |
|||
.\" |
|||
.\" Copyright 1998 by the Massachusetts Institute of Technology. |
|||
.\" |
|||
.\" Permission to use, copy, modify, and distribute this |
|||
.\" software and its documentation for any purpose and without |
|||
.\" fee is hereby granted, provided that the above copyright |
|||
.\" notice appear in all copies and that both that copyright |
|||
.\" notice and this permission notice appear in supporting |
|||
.\" documentation, and that the name of M.I.T. not be used in |
|||
.\" advertising or publicity pertaining to distribution of the |
|||
.\" software without specific, written prior permission. |
|||
.\" M.I.T. makes no representations about the suitability of |
|||
.\" this software for any purpose. It is provided "as is" |
|||
.\" without express or implied warranty. |
|||
.\" |
|||
.TH ARES_TIMEOUT 3 "25 July 1998" |
|||
.SH NAME |
|||
ares_fds \- Get file descriptors to select on for name service |
|||
.SH SYNOPSIS |
|||
.nf |
|||
.B #include <ares.h> |
|||
.PP |
|||
.B struct timeval *ares_timeout(ares_channel \fIchannel\fP, |
|||
.B struct timeval *\fImaxtv\fP, struct timeval *\fItv\fP) |
|||
.fi |
|||
.SH DESCRIPTION |
|||
The |
|||
.B ares_timeout |
|||
function determines the maximum time for which the caller should wait before |
|||
invoking \fIares_process(3)\fP to process timeouts. The parameter |
|||
.I maxtv |
|||
specifies a existing maximum timeout, or |
|||
.B NULL |
|||
if the caller does not wish to apply a maximum timeout. The parameter |
|||
.I tv |
|||
must point to a writable buffer of type |
|||
.BR "struct timeval" . |
|||
It is valid for |
|||
.I maxtv |
|||
and |
|||
.I tv |
|||
to have the same value. |
|||
.PP |
|||
If no queries have timeouts pending sooner than the given maximum |
|||
timeout, |
|||
.B ares_timeout |
|||
returns the value of |
|||
.IR maxtv; |
|||
otherwise |
|||
.B ares_timeout |
|||
stores the appropriate timeout value into the buffer pointed to by |
|||
.I tv |
|||
and returns the value of |
|||
.IR tv . |
|||
.SH SEE ALSO |
|||
.BR ares_fds (3), |
|||
.BR ares_process (3) |
|||
.SH AUTHOR |
|||
Greg Hudson, MIT Information Systems |
|||
.br |
|||
Copyright 1998 by the Massachusetts Institute of Technology. |
@ -1,40 +0,0 @@ |
|||
.\" |
|||
.\" Copyright 2004 by Daniel Stenberg |
|||
.\" |
|||
.\" Permission to use, copy, modify, and distribute this |
|||
.\" software and its documentation for any purpose and without |
|||
.\" fee is hereby granted, provided that the above copyright |
|||
.\" notice appear in all copies and that both that copyright |
|||
.\" notice and this permission notice appear in supporting |
|||
.\" documentation, and that the name of M.I.T. not be used in |
|||
.\" advertising or publicity pertaining to distribution of the |
|||
.\" software without specific, written prior permission. |
|||
.\" M.I.T. makes no representations about the suitability of |
|||
.\" this software for any purpose. It is provided "as is" |
|||
.\" without express or implied warranty. |
|||
.\" |
|||
.TH ARES_VERSION 3 "29 January 2004" |
|||
.SH NAME |
|||
ares_version \- Get the version number of the library |
|||
.SH SYNOPSIS |
|||
.nf |
|||
.B #include <ares.h> |
|||
.PP |
|||
.B const char *ares_version(int *\fIversion\fP) |
|||
.fi |
|||
.SH DESCRIPTION |
|||
The |
|||
.B ares_version |
|||
function gets the library version as a string and optionally as an integer |
|||
stored in the |
|||
.IR version , |
|||
argument. If you pass a NULL, no integer is attempted to be returned. |
|||
|
|||
The integer is built up as 24bit number, with 8 separate bits used for major |
|||
number, minor number and patch number. This makes a version string such as |
|||
1.2.3 will be returned as the hexadecimal number 0x010203 (decimal 66051). |
|||
.SH NOTES |
|||
This function is not compatible with ares. |
|||
.SH AUTHOR |
|||
Daniel Stenberg |
|||
|
@ -1,117 +0,0 @@ |
|||
#!/bin/sh |
|||
|
|||
#-------------------------------------------------------------------------- |
|||
# findtool works as 'which' but we use a different name to make it more |
|||
# obvious we aren't using 'which'! ;-) |
|||
# |
|||
findtool(){ |
|||
file="$1" |
|||
|
|||
old_IFS=$IFS; IFS=':' |
|||
for path in $PATH |
|||
do |
|||
IFS=$old_IFS |
|||
# echo "checks for $file in $path" >&2 |
|||
if test -f "$path/$file"; then |
|||
echo "$path/$file" |
|||
return |
|||
fi |
|||
done |
|||
IFS=$old_IFS |
|||
} |
|||
|
|||
#-------------------------------------------------------------------------- |
|||
# removethis() removes all files and subdirectories with the given name, |
|||
# inside and below the current subdirectory at invocation time. |
|||
# |
|||
removethis(){ |
|||
if test "$#" = "1"; then |
|||
find . -depth -name $1 -print > buildconf.tmp.$$ |
|||
while read fdname |
|||
do |
|||
if test -f "$fdname"; then |
|||
rm -f "$fdname" |
|||
elif test -d "$fdname"; then |
|||
rm -f -r "$fdname" |
|||
fi |
|||
done < buildconf.tmp.$$ |
|||
rm -f buildconf.tmp.$$ |
|||
fi |
|||
} |
|||
|
|||
#-------------------------------------------------------------------------- |
|||
# Ensure that buildconf runs from the subdirectory where configure.ac lives |
|||
# |
|||
if test ! -f configure.ac || |
|||
test ! -f ares_init.c || |
|||
test ! -f m4/cares-functions.m4; then |
|||
echo "Can not run buildconf from outside of c-ares source subdirectory!" |
|||
echo "Change to the subdirectory where buildconf is found, and try again." |
|||
exit 1 |
|||
fi |
|||
|
|||
#-------------------------------------------------------------------------- |
|||
# this approach that tries 'glibtool' first is some kind of work-around for |
|||
# some BSD-systems I believe that use to provide the GNU libtool named |
|||
# glibtool, with 'libtool' being something completely different. |
|||
libtool=`findtool glibtool 2>/dev/null` |
|||
if test ! -x "$libtool"; then |
|||
libtool=`findtool ${LIBTOOL:-libtool}` |
|||
fi |
|||
|
|||
if test -z "$LIBTOOLIZE"; then |
|||
# set the LIBTOOLIZE here so that glibtoolize is used if glibtool was found |
|||
# $libtool is already the full path |
|||
libtoolize="${libtool}ize" |
|||
else |
|||
libtoolize=`findtool $LIBTOOLIZE` |
|||
fi |
|||
|
|||
#-------------------------------------------------------------------------- |
|||
# Remove files generated on previous buildconf/configure run. |
|||
# |
|||
for fname in .deps \ |
|||
.libs \ |
|||
*.la \ |
|||
*.lo \ |
|||
*.a \ |
|||
*.o \ |
|||
Makefile \ |
|||
Makefile.in \ |
|||
aclocal.m4 \ |
|||
aclocal.m4.bak \ |
|||
ares_build.h \ |
|||
ares_config.h \ |
|||
ares_config.h.in \ |
|||
autom4te.cache \ |
|||
compile \ |
|||
config.guess \ |
|||
config.log \ |
|||
config.lt \ |
|||
config.status \ |
|||
config.sub \ |
|||
configure \ |
|||
depcomp \ |
|||
libcares.pc \ |
|||
libtool \ |
|||
libtool.m4 \ |
|||
ltmain.sh \ |
|||
ltoptions.m4 \ |
|||
ltsugar.m4 \ |
|||
ltversion.m4 \ |
|||
lt~obsolete.m4 \ |
|||
missing \ |
|||
stamp-h1 \ |
|||
stamp-h2 ; do |
|||
removethis "$fname" |
|||
done |
|||
|
|||
#-------------------------------------------------------------------------- |
|||
# run the correct scripts now |
|||
# |
|||
|
|||
${libtoolize} --copy --automake --force |
|||
${ACLOCAL:-aclocal} -I m4 $ACLOCAL_FLAGS |
|||
${AUTOHEADER:-autoheader} |
|||
${AUTOCONF:-autoconf} |
|||
${AUTOMAKE:-automake} --add-missing --copy |
@ -1,65 +0,0 @@ |
|||
|
|||
/* Copyright (C) 2009 by Daniel Stenberg |
|||
* |
|||
* Permission to use, copy, modify, and distribute this |
|||
* software and its documentation for any purpose and without |
|||
* fee is hereby granted, provided that the above copyright |
|||
* notice appear in all copies and that both that copyright |
|||
* notice and this permission notice appear in supporting |
|||
* documentation, and that the name of M.I.T. not be used in |
|||
* advertising or publicity pertaining to distribution of the |
|||
* software without specific, written prior permission. |
|||
* M.I.T. makes no representations about the suitability of |
|||
* this software for any purpose. It is provided "as is" |
|||
* without express or implied warranty. |
|||
*/ |
|||
|
|||
#include <winver.h> |
|||
#include "ares_version.h" |
|||
|
|||
LANGUAGE 0x09,0x01 |
|||
|
|||
#define RC_VERSION ARES_VERSION_MAJOR, ARES_VERSION_MINOR, ARES_VERSION_PATCH, 0 |
|||
|
|||
VS_VERSION_INFO VERSIONINFO |
|||
FILEVERSION RC_VERSION |
|||
PRODUCTVERSION RC_VERSION |
|||
FILEFLAGSMASK 0x3fL |
|||
#if defined(DEBUGBUILD) || defined(_DEBUG) |
|||
FILEFLAGS 1 |
|||
#else |
|||
FILEFLAGS 0 |
|||
#endif |
|||
FILEOS VOS__WINDOWS32 |
|||
FILETYPE VFT_DLL |
|||
FILESUBTYPE 0x0L |
|||
|
|||
BEGIN |
|||
BLOCK "StringFileInfo" |
|||
BEGIN |
|||
BLOCK "040904b0" |
|||
BEGIN |
|||
VALUE "CompanyName", "The c-ares library, http://c-ares.haxx.se/\0" |
|||
#if defined(DEBUGBUILD) || defined(_DEBUG) |
|||
VALUE "FileDescription", "c-ares Debug Shared Library\0" |
|||
VALUE "FileVersion", ARES_VERSION_STR "\0" |
|||
VALUE "InternalName", "c-ares\0" |
|||
VALUE "OriginalFilename", "caresd.dll\0" |
|||
#else |
|||
VALUE "FileDescription", "c-ares Shared Library\0" |
|||
VALUE "FileVersion", ARES_VERSION_STR "\0" |
|||
VALUE "InternalName", "c-ares\0" |
|||
VALUE "OriginalFilename", "cares.dll\0" |
|||
#endif |
|||
VALUE "ProductName", "The c-ares library\0" |
|||
VALUE "ProductVersion", ARES_VERSION_STR "\0" |
|||
VALUE "LegalCopyright", "© " ARES_COPYRIGHT "\0" |
|||
VALUE "License", "http://c-ares.haxx.se/license.html\0" |
|||
END |
|||
END |
|||
|
|||
BLOCK "VarFileInfo" |
|||
BEGIN |
|||
VALUE "Translation", 0x409, 1200 |
|||
END |
|||
END |
@ -1,142 +0,0 @@ |
|||
#! /bin/sh |
|||
# Wrapper for compilers which do not understand `-c -o'. |
|||
|
|||
scriptversion=2005-05-14.22 |
|||
|
|||
# Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc. |
|||
# Written by Tom Tromey <tromey@cygnus.com>. |
|||
# |
|||
# This program is free software; you can redistribute it and/or modify |
|||
# it under the terms of the GNU General Public License as published by |
|||
# the Free Software Foundation; either version 2, or (at your option) |
|||
# any later version. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU General Public License for more details. |
|||
# |
|||
# You should have received a copy of the GNU General Public License |
|||
# along with this program; if not, write to the Free Software |
|||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|||
|
|||
# As a special exception to the GNU General Public License, if you |
|||
# distribute this file as part of a program that contains a |
|||
# configuration script generated by Autoconf, you may include it under |
|||
# the same distribution terms that you use for the rest of that program. |
|||
|
|||
# This file is maintained in Automake, please report |
|||
# bugs to <bug-automake@gnu.org> or send patches to |
|||
# <automake-patches@gnu.org>. |
|||
|
|||
case $1 in |
|||
'') |
|||
echo "$0: No command. Try \`$0 --help' for more information." 1>&2 |
|||
exit 1; |
|||
;; |
|||
-h | --h*) |
|||
cat <<\EOF |
|||
Usage: compile [--help] [--version] PROGRAM [ARGS] |
|||
|
|||
Wrapper for compilers which do not understand `-c -o'. |
|||
Remove `-o dest.o' from ARGS, run PROGRAM with the remaining |
|||
arguments, and rename the output as expected. |
|||
|
|||
If you are trying to build a whole package this is not the |
|||
right script to run: please start by reading the file `INSTALL'. |
|||
|
|||
Report bugs to <bug-automake@gnu.org>. |
|||
EOF |
|||
exit $? |
|||
;; |
|||
-v | --v*) |
|||
echo "compile $scriptversion" |
|||
exit $? |
|||
;; |
|||
esac |
|||
|
|||
ofile= |
|||
cfile= |
|||
eat= |
|||
|
|||
for arg |
|||
do |
|||
if test -n "$eat"; then |
|||
eat= |
|||
else |
|||
case $1 in |
|||
-o) |
|||
# configure might choose to run compile as `compile cc -o foo foo.c'. |
|||
# So we strip `-o arg' only if arg is an object. |
|||
eat=1 |
|||
case $2 in |
|||
*.o | *.obj) |
|||
ofile=$2 |
|||
;; |
|||
*) |
|||
set x "$@" -o "$2" |
|||
shift |
|||
;; |
|||
esac |
|||
;; |
|||
*.c) |
|||
cfile=$1 |
|||
set x "$@" "$1" |
|||
shift |
|||
;; |
|||
*) |
|||
set x "$@" "$1" |
|||
shift |
|||
;; |
|||
esac |
|||
fi |
|||
shift |
|||
done |
|||
|
|||
if test -z "$ofile" || test -z "$cfile"; then |
|||
# If no `-o' option was seen then we might have been invoked from a |
|||
# pattern rule where we don't need one. That is ok -- this is a |
|||
# normal compilation that the losing compiler can handle. If no |
|||
# `.c' file was seen then we are probably linking. That is also |
|||
# ok. |
|||
exec "$@" |
|||
fi |
|||
|
|||
# Name of file we expect compiler to create. |
|||
cofile=`echo "$cfile" | sed -e 's|^.*/||' -e 's/\.c$/.o/'` |
|||
|
|||
# Create the lock directory. |
|||
# Note: use `[/.-]' here to ensure that we don't use the same name |
|||
# that we are using for the .o file. Also, base the name on the expected |
|||
# object file name, since that is what matters with a parallel build. |
|||
lockdir=`echo "$cofile" | sed -e 's|[/.-]|_|g'`.d |
|||
while true; do |
|||
if mkdir "$lockdir" >/dev/null 2>&1; then |
|||
break |
|||
fi |
|||
sleep 1 |
|||
done |
|||
# FIXME: race condition here if user kills between mkdir and trap. |
|||
trap "rmdir '$lockdir'; exit 1" 1 2 15 |
|||
|
|||
# Run the compile. |
|||
"$@" |
|||
ret=$? |
|||
|
|||
if test -f "$cofile"; then |
|||
mv "$cofile" "$ofile" |
|||
elif test -f "${cofile}bj"; then |
|||
mv "${cofile}bj" "$ofile" |
|||
fi |
|||
|
|||
rmdir "$lockdir" |
|||
exit $ret |
|||
|
|||
# Local Variables: |
|||
# mode: shell-script |
|||
# sh-indentation: 2 |
|||
# eval: (add-hook 'write-file-hooks 'time-stamp) |
|||
# time-stamp-start: "scriptversion=" |
|||
# time-stamp-format: "%:y-%02m-%02d.%02H" |
|||
# time-stamp-end: "$" |
|||
# End: |
@ -1,114 +0,0 @@ |
|||
#ifndef HEADER_CONFIG_DOS_H |
|||
#define HEADER_CONFIG_DOS_H |
|||
|
|||
|
|||
/* ================================================================ */ |
|||
/* ares/config-dos.h - Hand crafted config file for DOS */ |
|||
/* ================================================================ */ |
|||
|
|||
#define PACKAGE "c-ares" |
|||
|
|||
#define HAVE_GETTIMEOFDAY 1 |
|||
#define HAVE_IOCTLSOCKET 1 |
|||
#define HAVE_IOCTLSOCKET_FIONBIO 1 |
|||
#define HAVE_LIMITS_H 1 |
|||
#define HAVE_NET_IF_H 1 |
|||
#define HAVE_RECV 1 |
|||
#define HAVE_RECVFROM 1 |
|||
#define HAVE_SEND 1 |
|||
#define HAVE_STRDUP 1 |
|||
#define HAVE_STRICMP 1 |
|||
#define HAVE_STRUCT_IN6_ADDR 1 |
|||
#define HAVE_STRUCT_TIMEVAL 1 |
|||
#define HAVE_SYS_IOCTL_H 1 |
|||
#define HAVE_SYS_SOCKET_H 1 |
|||
#define HAVE_SYS_STAT_H 1 |
|||
#define HAVE_SYS_TYPES_H 1 |
|||
#define HAVE_TIME_H 1 |
|||
#define HAVE_UNISTD_H 1 |
|||
|
|||
#define NEED_MALLOC_H 1 |
|||
|
|||
#define RETSIGTYPE void |
|||
#define SIZEOF_INT 4 |
|||
#define SIZEOF_SHORT 2 |
|||
#define SIZEOF_SIZE_T 4 |
|||
#define TIME_WITH_SYS_TIME 1 |
|||
|
|||
/* Qualifiers for send(), recv(), recvfrom() and getnameinfo(). */ |
|||
|
|||
#define SEND_TYPE_ARG1 int |
|||
#define SEND_QUAL_ARG2 const |
|||
#define SEND_TYPE_ARG2 void * |
|||
#define SEND_TYPE_ARG3 int |
|||
#define SEND_TYPE_ARG4 int |
|||
#define SEND_TYPE_RETV int |
|||
|
|||
#define RECV_TYPE_ARG1 int |
|||
#define RECV_TYPE_ARG2 void * |
|||
#define RECV_TYPE_ARG3 int |
|||
#define RECV_TYPE_ARG4 int |
|||
#define RECV_TYPE_RETV int |
|||
|
|||
#define RECVFROM_TYPE_ARG1 int |
|||
#define RECVFROM_TYPE_ARG2 void |
|||
#define RECVFROM_TYPE_ARG3 int |
|||
#define RECVFROM_TYPE_ARG4 int |
|||
#define RECVFROM_TYPE_ARG5 struct sockaddr |
|||
#define RECVFROM_TYPE_ARG6 int |
|||
#define RECVFROM_TYPE_RETV int |
|||
#define RECVFROM_TYPE_ARG2_IS_VOID 1 |
|||
|
|||
#define BSD |
|||
|
|||
#if defined(__HIGHC__) || \ |
|||
(defined(__GNUC__) && (__GNUC__ < 4)) |
|||
#define ssize_t int |
|||
#endif |
|||
|
|||
/* Target HAVE_x section */ |
|||
|
|||
#if defined(DJGPP) |
|||
#define HAVE_STRCASECMP 1 |
|||
#define HAVE_STRNCASECMP 1 |
|||
#define HAVE_SYS_TIME_H 1 |
|||
#define HAVE_VARIADIC_MACROS_GCC 1 |
|||
|
|||
/* Because djgpp <= 2.03 doesn't have snprintf() etc. */ |
|||
#if (DJGPP_MINOR < 4) |
|||
#define _MPRINTF_REPLACE |
|||
#endif |
|||
|
|||
#elif defined(__WATCOMC__) |
|||
#define HAVE_STRCASECMP 1 |
|||
|
|||
#elif defined(__HIGHC__) |
|||
#define HAVE_SYS_TIME_H 1 |
|||
#endif |
|||
|
|||
#ifdef WATT32 |
|||
#define HAVE_AF_INET6 1 |
|||
#define HAVE_ARPA_INET_H 1 |
|||
#define HAVE_ARPA_NAMESER_H 1 |
|||
#define HAVE_CLOSESOCKET_CAMEL 1 |
|||
#define HAVE_GETHOSTNAME 1 |
|||
#define HAVE_NETDB_H 1 |
|||
#define HAVE_NETINET_IN_H 1 |
|||
#define HAVE_NETINET_TCP_H 1 |
|||
#define HAVE_PF_INET6 1 |
|||
#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1 |
|||
#define HAVE_STRUCT_ADDRINFO 1 |
|||
#define HAVE_STRUCT_IN6_ADDR 1 |
|||
#define HAVE_STRUCT_SOCKADDR_IN6 1 |
|||
#define HAVE_SYS_SOCKET_H 1 |
|||
#define HAVE_SYS_UIO_H 1 |
|||
#define NS_INADDRSZ 4 |
|||
#define HAVE_STRUCT_SOCKADDR_IN6 1 |
|||
#define CloseSocket(s) close_s((s)) |
|||
#endif |
|||
|
|||
#undef word |
|||
#undef byte |
|||
|
|||
#endif /* HEADER_CONFIG_DOS_H */ |
|||
|
File diff suppressed because it is too large
File diff suppressed because it is too large
@ -0,0 +1,513 @@ |
|||
/* ares_config.h. Generated from ares_config.h.in by configure. */ |
|||
/* ares_config.h.in. Generated from configure.ac by autoheader. */ |
|||
|
|||
/* Define if building universal (internal helper macro) */ |
|||
/* #undef AC_APPLE_UNIVERSAL_BUILD */ |
|||
|
|||
/* define this if ares is built for a big endian system */ |
|||
/* #undef ARES_BIG_ENDIAN */ |
|||
|
|||
/* when building as static part of libcurl */ |
|||
/* #undef BUILDING_LIBCURL */ |
|||
|
|||
/* when building c-ares library */ |
|||
/* #undef CARES_BUILDING_LIBRARY */ |
|||
|
|||
/* when not building a shared library */ |
|||
/* #undef CARES_STATICLIB */ |
|||
|
|||
/* Define to 1 to enable hiding of library internal symbols. */ |
|||
#define CARES_SYMBOL_HIDING 1 |
|||
|
|||
/* Definition to make a library symbol externally visible. */ |
|||
#define CARES_SYMBOL_SCOPE_EXTERN __attribute__ ((visibility ("default"))) |
|||
|
|||
/* if a /etc/inet dir is being used */ |
|||
/* #undef ETC_INET */ |
|||
|
|||
/* Define to the type qualifier of arg 1 for getnameinfo. */ |
|||
#define GETNAMEINFO_QUAL_ARG1 const |
|||
|
|||
/* Define to the type of arg 1 for getnameinfo. */ |
|||
#define GETNAMEINFO_TYPE_ARG1 struct sockaddr * |
|||
|
|||
/* Define to the type of arg 2 for getnameinfo. */ |
|||
#define GETNAMEINFO_TYPE_ARG2 socklen_t |
|||
|
|||
/* Define to the type of args 4 and 6 for getnameinfo. */ |
|||
#define GETNAMEINFO_TYPE_ARG46 int |
|||
|
|||
/* Define to the type of arg 7 for getnameinfo. */ |
|||
#define GETNAMEINFO_TYPE_ARG7 int |
|||
|
|||
/* Specifies the number of arguments to getservbyport_r */ |
|||
/* #undef GETSERVBYPORT_R_ARGS */ |
|||
|
|||
/* Specifies the size of the buffer to pass to getservbyport_r */ |
|||
/* #undef GETSERVBYPORT_R_BUFSIZE */ |
|||
|
|||
/* Define to 1 if you have AF_INET6. */ |
|||
#define HAVE_AF_INET6 1 |
|||
|
|||
/* Define to 1 if you have the <arpa/inet.h> header file. */ |
|||
#define HAVE_ARPA_INET_H 1 |
|||
|
|||
/* Define to 1 if you have the <arpa/nameser_compat.h> header file. */ |
|||
#define HAVE_ARPA_NAMESER_COMPAT_H 1 |
|||
|
|||
/* Define to 1 if you have the <arpa/nameser.h> header file. */ |
|||
#define HAVE_ARPA_NAMESER_H 1 |
|||
|
|||
/* Define to 1 if you have the <assert.h> header file. */ |
|||
#define HAVE_ASSERT_H 1 |
|||
|
|||
/* Define to 1 if you have the `bitncmp' function. */ |
|||
/* #undef HAVE_BITNCMP */ |
|||
|
|||
/* Define to 1 if bool is an available type. */ |
|||
#define HAVE_BOOL_T 1 |
|||
|
|||
/* Define to 1 if you have the clock_gettime function and monotonic timer. */ |
|||
/* #undef HAVE_CLOCK_GETTIME_MONOTONIC */ |
|||
|
|||
/* Define to 1 if you have the closesocket function. */ |
|||
/* #undef HAVE_CLOSESOCKET */ |
|||
|
|||
/* Define to 1 if you have the CloseSocket camel case function. */ |
|||
/* #undef HAVE_CLOSESOCKET_CAMEL */ |
|||
|
|||
/* Define to 1 if you have the connect function. */ |
|||
#define HAVE_CONNECT 1 |
|||
|
|||
/* Define to 1 if you have the <dlfcn.h> header file. */ |
|||
#define HAVE_DLFCN_H 1 |
|||
|
|||
/* Define to 1 if you have the <errno.h> header file. */ |
|||
#define HAVE_ERRNO_H 1 |
|||
|
|||
/* Define to 1 if you have the fcntl function. */ |
|||
#define HAVE_FCNTL 1 |
|||
|
|||
/* Define to 1 if you have the <fcntl.h> header file. */ |
|||
#define HAVE_FCNTL_H 1 |
|||
|
|||
/* Define to 1 if you have a working fcntl O_NONBLOCK function. */ |
|||
#define HAVE_FCNTL_O_NONBLOCK 1 |
|||
|
|||
/* Define to 1 if you have the freeaddrinfo function. */ |
|||
#define HAVE_FREEADDRINFO 1 |
|||
|
|||
/* Define to 1 if you have a working getaddrinfo function. */ |
|||
#define HAVE_GETADDRINFO 1 |
|||
|
|||
/* Define to 1 if the getaddrinfo function is threadsafe. */ |
|||
/* #undef HAVE_GETADDRINFO_THREADSAFE */ |
|||
|
|||
/* Define to 1 if you have the gethostbyaddr function. */ |
|||
#define HAVE_GETHOSTBYADDR 1 |
|||
|
|||
/* Define to 1 if you have the gethostbyname function. */ |
|||
#define HAVE_GETHOSTBYNAME 1 |
|||
|
|||
/* Define to 1 if you have the gethostname function. */ |
|||
#define HAVE_GETHOSTNAME 1 |
|||
|
|||
/* Define to 1 if you have the getnameinfo function. */ |
|||
#define HAVE_GETNAMEINFO 1 |
|||
|
|||
/* Define to 1 if you have the getservbyport_r function. */ |
|||
/* #undef HAVE_GETSERVBYPORT_R */ |
|||
|
|||
/* Define to 1 if you have the `gettimeofday' function. */ |
|||
#define HAVE_GETTIMEOFDAY 1 |
|||
|
|||
/* Define to 1 if you have the `if_indextoname' function. */ |
|||
#define HAVE_IF_INDEXTONAME 1 |
|||
|
|||
/* Define to 1 if you have the `inet_net_pton' function. */ |
|||
/* #undef HAVE_INET_NET_PTON */ |
|||
|
|||
/* Define to 1 if inet_net_pton supports IPv6. */ |
|||
/* #undef HAVE_INET_NET_PTON_IPV6 */ |
|||
|
|||
/* Define to 1 if you have a IPv6 capable working inet_ntop function. */ |
|||
#define HAVE_INET_NTOP 1 |
|||
|
|||
/* Define to 1 if you have a IPv6 capable working inet_pton function. */ |
|||
#define HAVE_INET_PTON 1 |
|||
|
|||
/* Define to 1 if you have the <inttypes.h> header file. */ |
|||
#define HAVE_INTTYPES_H 1 |
|||
|
|||
/* Define to 1 if you have the ioctl function. */ |
|||
#define HAVE_IOCTL 1 |
|||
|
|||
/* Define to 1 if you have the ioctlsocket function. */ |
|||
/* #undef HAVE_IOCTLSOCKET */ |
|||
|
|||
/* Define to 1 if you have the IoctlSocket camel case function. */ |
|||
/* #undef HAVE_IOCTLSOCKET_CAMEL */ |
|||
|
|||
/* Define to 1 if you have a working IoctlSocket camel case FIONBIO function.
|
|||
*/ |
|||
/* #undef HAVE_IOCTLSOCKET_CAMEL_FIONBIO */ |
|||
|
|||
/* Define to 1 if you have a working ioctlsocket FIONBIO function. */ |
|||
/* #undef HAVE_IOCTLSOCKET_FIONBIO */ |
|||
|
|||
/* Define to 1 if you have a working ioctl FIONBIO function. */ |
|||
#define HAVE_IOCTL_FIONBIO 1 |
|||
|
|||
/* Define to 1 if you have a working ioctl SIOCGIFADDR function. */ |
|||
#define HAVE_IOCTL_SIOCGIFADDR 1 |
|||
|
|||
/* Define to 1 if you have the `resolve' library (-lresolve). */ |
|||
/* #undef HAVE_LIBRESOLVE */ |
|||
|
|||
/* Define to 1 if you have the <limits.h> header file. */ |
|||
#define HAVE_LIMITS_H 1 |
|||
|
|||
/* if your compiler supports LL */ |
|||
#define HAVE_LL 1 |
|||
|
|||
/* Define to 1 if the compiler supports the 'long long' data type. */ |
|||
#define HAVE_LONGLONG 1 |
|||
|
|||
/* Define to 1 if you have the malloc.h header file. */ |
|||
#define HAVE_MALLOC_H 1 |
|||
|
|||
/* Define to 1 if you have the memory.h header file. */ |
|||
#define HAVE_MEMORY_H 1 |
|||
|
|||
/* Define to 1 if you have the MSG_NOSIGNAL flag. */ |
|||
#define HAVE_MSG_NOSIGNAL 1 |
|||
|
|||
/* Define to 1 if you have the <netdb.h> header file. */ |
|||
#define HAVE_NETDB_H 1 |
|||
|
|||
/* Define to 1 if you have the <netinet/in.h> header file. */ |
|||
#define HAVE_NETINET_IN_H 1 |
|||
|
|||
/* Define to 1 if you have the <netinet/tcp.h> header file. */ |
|||
#define HAVE_NETINET_TCP_H 1 |
|||
|
|||
/* Define to 1 if you have the <net/if.h> header file. */ |
|||
#define HAVE_NET_IF_H 1 |
|||
|
|||
/* Define to 1 if you have PF_INET6. */ |
|||
#define HAVE_PF_INET6 1 |
|||
|
|||
/* Define to 1 if you have the recv function. */ |
|||
#define HAVE_RECV 1 |
|||
|
|||
/* Define to 1 if you have the recvfrom function. */ |
|||
#define HAVE_RECVFROM 1 |
|||
|
|||
/* Define to 1 if you have the send function. */ |
|||
#define HAVE_SEND 1 |
|||
|
|||
/* Define to 1 if you have the setsockopt function. */ |
|||
#define HAVE_SETSOCKOPT 1 |
|||
|
|||
/* Define to 1 if you have a working setsockopt SO_NONBLOCK function. */ |
|||
/* #undef HAVE_SETSOCKOPT_SO_NONBLOCK */ |
|||
|
|||
/* Define to 1 if you have the <signal.h> header file. */ |
|||
#define HAVE_SIGNAL_H 1 |
|||
|
|||
/* Define to 1 if sig_atomic_t is an available typedef. */ |
|||
#define HAVE_SIG_ATOMIC_T 1 |
|||
|
|||
/* Define to 1 if sig_atomic_t is already defined as volatile. */ |
|||
/* #undef HAVE_SIG_ATOMIC_T_VOLATILE */ |
|||
|
|||
/* Define to 1 if your struct sockaddr_in6 has sin6_scope_id. */ |
|||
#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1 |
|||
|
|||
/* Define to 1 if you have the socket function. */ |
|||
#define HAVE_SOCKET 1 |
|||
|
|||
/* Define to 1 if you have the <socket.h> header file. */ |
|||
/* #undef HAVE_SOCKET_H */ |
|||
|
|||
/* Define to 1 if you have the <stdbool.h> header file. */ |
|||
#define HAVE_STDBOOL_H 1 |
|||
|
|||
/* Define to 1 if you have the <stdint.h> header file. */ |
|||
#define HAVE_STDINT_H 1 |
|||
|
|||
/* Define to 1 if you have the <stdlib.h> header file. */ |
|||
#define HAVE_STDLIB_H 1 |
|||
|
|||
/* Define to 1 if you have the strcasecmp function. */ |
|||
#define HAVE_STRCASECMP 1 |
|||
|
|||
/* Define to 1 if you have the strcmpi function. */ |
|||
/* #undef HAVE_STRCMPI */ |
|||
|
|||
/* Define to 1 if you have the strdup function. */ |
|||
#define HAVE_STRDUP 1 |
|||
|
|||
/* Define to 1 if you have the stricmp function. */ |
|||
/* #undef HAVE_STRICMP */ |
|||
|
|||
/* Define to 1 if you have the <strings.h> header file. */ |
|||
#define HAVE_STRINGS_H 1 |
|||
|
|||
/* Define to 1 if you have the <string.h> header file. */ |
|||
#define HAVE_STRING_H 1 |
|||
|
|||
/* Define to 1 if you have the strncasecmp function. */ |
|||
#define HAVE_STRNCASECMP 1 |
|||
|
|||
/* Define to 1 if you have the strncmpi function. */ |
|||
/* #undef HAVE_STRNCMPI */ |
|||
|
|||
/* Define to 1 if you have the strnicmp function. */ |
|||
/* #undef HAVE_STRNICMP */ |
|||
|
|||
/* Define to 1 if you have the <stropts.h> header file. */ |
|||
/* #undef HAVE_STROPTS_H */ |
|||
|
|||
/* Define to 1 if you have struct addrinfo. */ |
|||
#define HAVE_STRUCT_ADDRINFO 1 |
|||
|
|||
/* Define to 1 if you have struct in6_addr. */ |
|||
#define HAVE_STRUCT_IN6_ADDR 1 |
|||
|
|||
/* Define to 1 if you have struct sockaddr_in6. */ |
|||
#define HAVE_STRUCT_SOCKADDR_IN6 1 |
|||
|
|||
/* if struct sockaddr_storage is defined */ |
|||
#define HAVE_STRUCT_SOCKADDR_STORAGE 1 |
|||
|
|||
/* Define to 1 if you have the timeval struct. */ |
|||
#define HAVE_STRUCT_TIMEVAL 1 |
|||
|
|||
/* Define to 1 if you have the <sys/ioctl.h> header file. */ |
|||
#define HAVE_SYS_IOCTL_H 1 |
|||
|
|||
/* Define to 1 if you have the <sys/param.h> header file. */ |
|||
#define HAVE_SYS_PARAM_H 1 |
|||
|
|||
/* Define to 1 if you have the <sys/select.h> header file. */ |
|||
#define HAVE_SYS_SELECT_H 1 |
|||
|
|||
/* Define to 1 if you have the <sys/socket.h> header file. */ |
|||
#define HAVE_SYS_SOCKET_H 1 |
|||
|
|||
/* Define to 1 if you have the <sys/stat.h> header file. */ |
|||
#define HAVE_SYS_STAT_H 1 |
|||
|
|||
/* Define to 1 if you have the <sys/time.h> header file. */ |
|||
#define HAVE_SYS_TIME_H 1 |
|||
|
|||
/* Define to 1 if you have the <sys/types.h> header file. */ |
|||
#define HAVE_SYS_TYPES_H 1 |
|||
|
|||
/* Define to 1 if you have the <sys/uio.h> header file. */ |
|||
#define HAVE_SYS_UIO_H 1 |
|||
|
|||
/* Define to 1 if you have the <time.h> header file. */ |
|||
#define HAVE_TIME_H 1 |
|||
|
|||
/* Define to 1 if you have the <unistd.h> header file. */ |
|||
#define HAVE_UNISTD_H 1 |
|||
|
|||
/* Define to 1 if you have the windows.h header file. */ |
|||
/* #undef HAVE_WINDOWS_H */ |
|||
|
|||
/* Define to 1 if you have the winsock2.h header file. */ |
|||
/* #undef HAVE_WINSOCK2_H */ |
|||
|
|||
/* Define to 1 if you have the winsock.h header file. */ |
|||
/* #undef HAVE_WINSOCK_H */ |
|||
|
|||
/* Define to 1 if you have the writev function. */ |
|||
#define HAVE_WRITEV 1 |
|||
|
|||
/* Define to 1 if you have the ws2tcpip.h header file. */ |
|||
/* #undef HAVE_WS2TCPIP_H */ |
|||
|
|||
/* Define to the sub-directory in which libtool stores uninstalled libraries.
|
|||
*/ |
|||
#define LT_OBJDIR ".libs/" |
|||
|
|||
/* Define to 1 if you are building a native Windows target. */ |
|||
/* #undef NATIVE_WINDOWS */ |
|||
|
|||
/* Define to 1 if you need the malloc.h header file even with stdlib.h */ |
|||
/* #undef NEED_MALLOC_H */ |
|||
|
|||
/* Define to 1 if you need the memory.h header file even with stdlib.h */ |
|||
/* #undef NEED_MEMORY_H */ |
|||
|
|||
/* Define to 1 if _REENTRANT preprocessor symbol must be defined. */ |
|||
/* #undef NEED_REENTRANT */ |
|||
|
|||
/* Define to 1 if _THREAD_SAFE preprocessor symbol must be defined. */ |
|||
/* #undef NEED_THREAD_SAFE */ |
|||
|
|||
/* Define to 1 if your C compiler doesn't accept -c and -o together. */ |
|||
/* #undef NO_MINUS_C_MINUS_O */ |
|||
|
|||
/* cpu-machine-OS */ |
|||
#define OS "i686-pc-cygwin" |
|||
|
|||
/* Name of package */ |
|||
#define PACKAGE "c-ares" |
|||
|
|||
/* Define to the address where bug reports for this package should be sent. */ |
|||
#define PACKAGE_BUGREPORT "c-ares mailing list => http://cool.haxx.se/mailman/listinfo/c-ares"
|
|||
|
|||
/* Define to the full name of this package. */ |
|||
#define PACKAGE_NAME "c-ares" |
|||
|
|||
/* Define to the full name and version of this package. */ |
|||
#define PACKAGE_STRING "c-ares 1.7.1" |
|||
|
|||
/* Define to the one symbol short name of this package. */ |
|||
#define PACKAGE_TARNAME "c-ares" |
|||
|
|||
/* Define to the home page for this package. */ |
|||
#define PACKAGE_URL "" |
|||
|
|||
/* Define to the version of this package. */ |
|||
#define PACKAGE_VERSION "1.7.1" |
|||
|
|||
/* a suitable file/device to read random data from */ |
|||
#define RANDOM_FILE "/dev/urandom" |
|||
|
|||
/* Define to the type of arg 1 for recvfrom. */ |
|||
#define RECVFROM_TYPE_ARG1 int |
|||
|
|||
/* Define to the type pointed by arg 2 for recvfrom. */ |
|||
#define RECVFROM_TYPE_ARG2 void |
|||
|
|||
/* Define to 1 if the type pointed by arg 2 for recvfrom is void. */ |
|||
#define RECVFROM_TYPE_ARG2_IS_VOID 1 |
|||
|
|||
/* Define to the type of arg 3 for recvfrom. */ |
|||
#define RECVFROM_TYPE_ARG3 size_t |
|||
|
|||
/* Define to the type of arg 4 for recvfrom. */ |
|||
#define RECVFROM_TYPE_ARG4 int |
|||
|
|||
/* Define to the type pointed by arg 5 for recvfrom. */ |
|||
#define RECVFROM_TYPE_ARG5 struct sockaddr |
|||
|
|||
/* Define to 1 if the type pointed by arg 5 for recvfrom is void. */ |
|||
/* #undef RECVFROM_TYPE_ARG5_IS_VOID */ |
|||
|
|||
/* Define to the type pointed by arg 6 for recvfrom. */ |
|||
#define RECVFROM_TYPE_ARG6 socklen_t |
|||
|
|||
/* Define to 1 if the type pointed by arg 6 for recvfrom is void. */ |
|||
/* #undef RECVFROM_TYPE_ARG6_IS_VOID */ |
|||
|
|||
/* Define to the function return type for recvfrom. */ |
|||
#define RECVFROM_TYPE_RETV int |
|||
|
|||
/* Define to the type of arg 1 for recv. */ |
|||
#define RECV_TYPE_ARG1 int |
|||
|
|||
/* Define to the type of arg 2 for recv. */ |
|||
#define RECV_TYPE_ARG2 void * |
|||
|
|||
/* Define to the type of arg 3 for recv. */ |
|||
#define RECV_TYPE_ARG3 size_t |
|||
|
|||
/* Define to the type of arg 4 for recv. */ |
|||
#define RECV_TYPE_ARG4 int |
|||
|
|||
/* Define to the function return type for recv. */ |
|||
#define RECV_TYPE_RETV int |
|||
|
|||
/* Define as the return type of signal handlers (`int' or `void'). */ |
|||
#define RETSIGTYPE void |
|||
|
|||
/* Define to the type qualifier of arg 2 for send. */ |
|||
#define SEND_QUAL_ARG2 const |
|||
|
|||
/* Define to the type of arg 1 for send. */ |
|||
#define SEND_TYPE_ARG1 int |
|||
|
|||
/* Define to the type of arg 2 for send. */ |
|||
#define SEND_TYPE_ARG2 void * |
|||
|
|||
/* Define to the type of arg 3 for send. */ |
|||
#define SEND_TYPE_ARG3 size_t |
|||
|
|||
/* Define to the type of arg 4 for send. */ |
|||
#define SEND_TYPE_ARG4 int |
|||
|
|||
/* Define to the function return type for send. */ |
|||
#define SEND_TYPE_RETV int |
|||
|
|||
/* The size of `int', as computed by sizeof. */ |
|||
#define SIZEOF_INT 4 |
|||
|
|||
/* The size of `long', as computed by sizeof. */ |
|||
#define SIZEOF_LONG 4 |
|||
|
|||
/* The size of `size_t', as computed by sizeof. */ |
|||
#define SIZEOF_SIZE_T 4 |
|||
|
|||
/* The size of `struct in6_addr', as computed by sizeof. */ |
|||
#define SIZEOF_STRUCT_IN6_ADDR 16 |
|||
|
|||
/* The size of `struct in_addr', as computed by sizeof. */ |
|||
#define SIZEOF_STRUCT_IN_ADDR 4 |
|||
|
|||
/* The size of `time_t', as computed by sizeof. */ |
|||
#define SIZEOF_TIME_T 4 |
|||
|
|||
/* Define to 1 if you have the ANSI C header files. */ |
|||
#define STDC_HEADERS 1 |
|||
|
|||
/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */ |
|||
#define TIME_WITH_SYS_TIME 1 |
|||
|
|||
/* Define to disable non-blocking sockets. */ |
|||
/* #undef USE_BLOCKING_SOCKETS */ |
|||
|
|||
/* Version number of package */ |
|||
#define VERSION "1.7.1" |
|||
|
|||
/* Define to avoid automatic inclusion of winsock.h */ |
|||
/* #undef WIN32_LEAN_AND_MEAN */ |
|||
|
|||
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
|
|||
significant byte first (like Motorola and SPARC, unlike Intel). */ |
|||
#if defined AC_APPLE_UNIVERSAL_BUILD |
|||
# if defined __BIG_ENDIAN__ |
|||
# define WORDS_BIGENDIAN 1 |
|||
# endif |
|||
#else |
|||
# ifndef WORDS_BIGENDIAN |
|||
/* # undef WORDS_BIGENDIAN */ |
|||
# endif |
|||
#endif |
|||
|
|||
/* Define to 1 if OS is AIX. */ |
|||
#ifndef _ALL_SOURCE |
|||
/* # undef _ALL_SOURCE */ |
|||
#endif |
|||
|
|||
/* Number of bits in a file offset, on hosts where this is settable. */ |
|||
/* #undef _FILE_OFFSET_BITS */ |
|||
|
|||
/* Define for large files, on AIX-style hosts. */ |
|||
/* #undef _LARGE_FILES */ |
|||
|
|||
/* Define to empty if `const' does not conform to ANSI C. */ |
|||
/* #undef const */ |
|||
|
|||
/* Type to use in place of in_addr_t when system does not provide it. */ |
|||
/* #undef in_addr_t */ |
|||
|
|||
/* Define to `unsigned int' if <sys/types.h> does not define. */ |
|||
/* #undef size_t */ |
|||
|
|||
/* the signed version of size_t */ |
|||
/* #undef ssize_t */ |
@ -0,0 +1,513 @@ |
|||
/* ares_config.h. Generated from ares_config.h.in by configure. */ |
|||
/* ares_config.h.in. Generated from configure.ac by autoheader. */ |
|||
|
|||
/* Define if building universal (internal helper macro) */ |
|||
/* #undef AC_APPLE_UNIVERSAL_BUILD */ |
|||
|
|||
/* define this if ares is built for a big endian system */ |
|||
/* #undef ARES_BIG_ENDIAN */ |
|||
|
|||
/* when building as static part of libcurl */ |
|||
/* #undef BUILDING_LIBCURL */ |
|||
|
|||
/* when building c-ares library */ |
|||
/* #undef CARES_BUILDING_LIBRARY */ |
|||
|
|||
/* when not building a shared library */ |
|||
/* #undef CARES_STATICLIB */ |
|||
|
|||
/* Define to 1 to enable hiding of library internal symbols. */ |
|||
#define CARES_SYMBOL_HIDING 1 |
|||
|
|||
/* Definition to make a library symbol externally visible. */ |
|||
#define CARES_SYMBOL_SCOPE_EXTERN __attribute__ ((visibility ("default"))) |
|||
|
|||
/* if a /etc/inet dir is being used */ |
|||
/* #undef ETC_INET */ |
|||
|
|||
/* Define to the type qualifier of arg 1 for getnameinfo. */ |
|||
#define GETNAMEINFO_QUAL_ARG1 const |
|||
|
|||
/* Define to the type of arg 1 for getnameinfo. */ |
|||
#define GETNAMEINFO_TYPE_ARG1 struct sockaddr * |
|||
|
|||
/* Define to the type of arg 2 for getnameinfo. */ |
|||
#define GETNAMEINFO_TYPE_ARG2 socklen_t |
|||
|
|||
/* Define to the type of args 4 and 6 for getnameinfo. */ |
|||
#define GETNAMEINFO_TYPE_ARG46 socklen_t |
|||
|
|||
/* Define to the type of arg 7 for getnameinfo. */ |
|||
#define GETNAMEINFO_TYPE_ARG7 int |
|||
|
|||
/* Specifies the number of arguments to getservbyport_r */ |
|||
/* #undef GETSERVBYPORT_R_ARGS */ |
|||
|
|||
/* Specifies the size of the buffer to pass to getservbyport_r */ |
|||
/* #undef GETSERVBYPORT_R_BUFSIZE */ |
|||
|
|||
/* Define to 1 if you have AF_INET6. */ |
|||
#define HAVE_AF_INET6 1 |
|||
|
|||
/* Define to 1 if you have the <arpa/inet.h> header file. */ |
|||
#define HAVE_ARPA_INET_H 1 |
|||
|
|||
/* Define to 1 if you have the <arpa/nameser_compat.h> header file. */ |
|||
#define HAVE_ARPA_NAMESER_COMPAT_H 1 |
|||
|
|||
/* Define to 1 if you have the <arpa/nameser.h> header file. */ |
|||
#define HAVE_ARPA_NAMESER_H 1 |
|||
|
|||
/* Define to 1 if you have the <assert.h> header file. */ |
|||
#define HAVE_ASSERT_H 1 |
|||
|
|||
/* Define to 1 if you have the `bitncmp' function. */ |
|||
/* #undef HAVE_BITNCMP */ |
|||
|
|||
/* Define to 1 if bool is an available type. */ |
|||
#define HAVE_BOOL_T 1 |
|||
|
|||
/* Define to 1 if you have the clock_gettime function and monotonic timer. */ |
|||
/* #undef HAVE_CLOCK_GETTIME_MONOTONIC */ |
|||
|
|||
/* Define to 1 if you have the closesocket function. */ |
|||
/* #undef HAVE_CLOSESOCKET */ |
|||
|
|||
/* Define to 1 if you have the CloseSocket camel case function. */ |
|||
/* #undef HAVE_CLOSESOCKET_CAMEL */ |
|||
|
|||
/* Define to 1 if you have the connect function. */ |
|||
#define HAVE_CONNECT 1 |
|||
|
|||
/* Define to 1 if you have the <dlfcn.h> header file. */ |
|||
#define HAVE_DLFCN_H 1 |
|||
|
|||
/* Define to 1 if you have the <errno.h> header file. */ |
|||
#define HAVE_ERRNO_H 1 |
|||
|
|||
/* Define to 1 if you have the fcntl function. */ |
|||
#define HAVE_FCNTL 1 |
|||
|
|||
/* Define to 1 if you have the <fcntl.h> header file. */ |
|||
#define HAVE_FCNTL_H 1 |
|||
|
|||
/* Define to 1 if you have a working fcntl O_NONBLOCK function. */ |
|||
#define HAVE_FCNTL_O_NONBLOCK 1 |
|||
|
|||
/* Define to 1 if you have the freeaddrinfo function. */ |
|||
#define HAVE_FREEADDRINFO 1 |
|||
|
|||
/* Define to 1 if you have a working getaddrinfo function. */ |
|||
#define HAVE_GETADDRINFO 1 |
|||
|
|||
/* Define to 1 if the getaddrinfo function is threadsafe. */ |
|||
#define HAVE_GETADDRINFO_THREADSAFE 1 |
|||
|
|||
/* Define to 1 if you have the gethostbyaddr function. */ |
|||
#define HAVE_GETHOSTBYADDR 1 |
|||
|
|||
/* Define to 1 if you have the gethostbyname function. */ |
|||
#define HAVE_GETHOSTBYNAME 1 |
|||
|
|||
/* Define to 1 if you have the gethostname function. */ |
|||
#define HAVE_GETHOSTNAME 1 |
|||
|
|||
/* Define to 1 if you have the getnameinfo function. */ |
|||
#define HAVE_GETNAMEINFO 1 |
|||
|
|||
/* Define to 1 if you have the getservbyport_r function. */ |
|||
/* #undef HAVE_GETSERVBYPORT_R */ |
|||
|
|||
/* Define to 1 if you have the `gettimeofday' function. */ |
|||
#define HAVE_GETTIMEOFDAY 1 |
|||
|
|||
/* Define to 1 if you have the `if_indextoname' function. */ |
|||
#define HAVE_IF_INDEXTONAME 1 |
|||
|
|||
/* Define to 1 if you have the `inet_net_pton' function. */ |
|||
#define HAVE_INET_NET_PTON 1 |
|||
|
|||
/* Define to 1 if inet_net_pton supports IPv6. */ |
|||
#define HAVE_INET_NET_PTON_IPV6 1 |
|||
|
|||
/* Define to 1 if you have a IPv6 capable working inet_ntop function. */ |
|||
#define HAVE_INET_NTOP 1 |
|||
|
|||
/* Define to 1 if you have a IPv6 capable working inet_pton function. */ |
|||
#define HAVE_INET_PTON 1 |
|||
|
|||
/* Define to 1 if you have the <inttypes.h> header file. */ |
|||
#define HAVE_INTTYPES_H 1 |
|||
|
|||
/* Define to 1 if you have the ioctl function. */ |
|||
#define HAVE_IOCTL 1 |
|||
|
|||
/* Define to 1 if you have the ioctlsocket function. */ |
|||
/* #undef HAVE_IOCTLSOCKET */ |
|||
|
|||
/* Define to 1 if you have the IoctlSocket camel case function. */ |
|||
/* #undef HAVE_IOCTLSOCKET_CAMEL */ |
|||
|
|||
/* Define to 1 if you have a working IoctlSocket camel case FIONBIO function.
|
|||
*/ |
|||
/* #undef HAVE_IOCTLSOCKET_CAMEL_FIONBIO */ |
|||
|
|||
/* Define to 1 if you have a working ioctlsocket FIONBIO function. */ |
|||
/* #undef HAVE_IOCTLSOCKET_FIONBIO */ |
|||
|
|||
/* Define to 1 if you have a working ioctl FIONBIO function. */ |
|||
#define HAVE_IOCTL_FIONBIO 1 |
|||
|
|||
/* Define to 1 if you have a working ioctl SIOCGIFADDR function. */ |
|||
#define HAVE_IOCTL_SIOCGIFADDR 1 |
|||
|
|||
/* Define to 1 if you have the `resolve' library (-lresolve). */ |
|||
/* #undef HAVE_LIBRESOLVE */ |
|||
|
|||
/* Define to 1 if you have the <limits.h> header file. */ |
|||
#define HAVE_LIMITS_H 1 |
|||
|
|||
/* if your compiler supports LL */ |
|||
#define HAVE_LL 1 |
|||
|
|||
/* Define to 1 if the compiler supports the 'long long' data type. */ |
|||
#define HAVE_LONGLONG 1 |
|||
|
|||
/* Define to 1 if you have the malloc.h header file. */ |
|||
/* #undef HAVE_MALLOC_H */ |
|||
|
|||
/* Define to 1 if you have the memory.h header file. */ |
|||
#define HAVE_MEMORY_H 1 |
|||
|
|||
/* Define to 1 if you have the MSG_NOSIGNAL flag. */ |
|||
/* #undef HAVE_MSG_NOSIGNAL */ |
|||
|
|||
/* Define to 1 if you have the <netdb.h> header file. */ |
|||
#define HAVE_NETDB_H 1 |
|||
|
|||
/* Define to 1 if you have the <netinet/in.h> header file. */ |
|||
#define HAVE_NETINET_IN_H 1 |
|||
|
|||
/* Define to 1 if you have the <netinet/tcp.h> header file. */ |
|||
#define HAVE_NETINET_TCP_H 1 |
|||
|
|||
/* Define to 1 if you have the <net/if.h> header file. */ |
|||
#define HAVE_NET_IF_H 1 |
|||
|
|||
/* Define to 1 if you have PF_INET6. */ |
|||
#define HAVE_PF_INET6 1 |
|||
|
|||
/* Define to 1 if you have the recv function. */ |
|||
#define HAVE_RECV 1 |
|||
|
|||
/* Define to 1 if you have the recvfrom function. */ |
|||
#define HAVE_RECVFROM 1 |
|||
|
|||
/* Define to 1 if you have the send function. */ |
|||
#define HAVE_SEND 1 |
|||
|
|||
/* Define to 1 if you have the setsockopt function. */ |
|||
#define HAVE_SETSOCKOPT 1 |
|||
|
|||
/* Define to 1 if you have a working setsockopt SO_NONBLOCK function. */ |
|||
/* #undef HAVE_SETSOCKOPT_SO_NONBLOCK */ |
|||
|
|||
/* Define to 1 if you have the <signal.h> header file. */ |
|||
#define HAVE_SIGNAL_H 1 |
|||
|
|||
/* Define to 1 if sig_atomic_t is an available typedef. */ |
|||
#define HAVE_SIG_ATOMIC_T 1 |
|||
|
|||
/* Define to 1 if sig_atomic_t is already defined as volatile. */ |
|||
/* #undef HAVE_SIG_ATOMIC_T_VOLATILE */ |
|||
|
|||
/* Define to 1 if your struct sockaddr_in6 has sin6_scope_id. */ |
|||
#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1 |
|||
|
|||
/* Define to 1 if you have the socket function. */ |
|||
#define HAVE_SOCKET 1 |
|||
|
|||
/* Define to 1 if you have the <socket.h> header file. */ |
|||
/* #undef HAVE_SOCKET_H */ |
|||
|
|||
/* Define to 1 if you have the <stdbool.h> header file. */ |
|||
#define HAVE_STDBOOL_H 1 |
|||
|
|||
/* Define to 1 if you have the <stdint.h> header file. */ |
|||
#define HAVE_STDINT_H 1 |
|||
|
|||
/* Define to 1 if you have the <stdlib.h> header file. */ |
|||
#define HAVE_STDLIB_H 1 |
|||
|
|||
/* Define to 1 if you have the strcasecmp function. */ |
|||
#define HAVE_STRCASECMP 1 |
|||
|
|||
/* Define to 1 if you have the strcmpi function. */ |
|||
/* #undef HAVE_STRCMPI */ |
|||
|
|||
/* Define to 1 if you have the strdup function. */ |
|||
#define HAVE_STRDUP 1 |
|||
|
|||
/* Define to 1 if you have the stricmp function. */ |
|||
/* #undef HAVE_STRICMP */ |
|||
|
|||
/* Define to 1 if you have the <strings.h> header file. */ |
|||
#define HAVE_STRINGS_H 1 |
|||
|
|||
/* Define to 1 if you have the <string.h> header file. */ |
|||
#define HAVE_STRING_H 1 |
|||
|
|||
/* Define to 1 if you have the strncasecmp function. */ |
|||
#define HAVE_STRNCASECMP 1 |
|||
|
|||
/* Define to 1 if you have the strncmpi function. */ |
|||
/* #undef HAVE_STRNCMPI */ |
|||
|
|||
/* Define to 1 if you have the strnicmp function. */ |
|||
/* #undef HAVE_STRNICMP */ |
|||
|
|||
/* Define to 1 if you have the <stropts.h> header file. */ |
|||
/* #undef HAVE_STROPTS_H */ |
|||
|
|||
/* Define to 1 if you have struct addrinfo. */ |
|||
#define HAVE_STRUCT_ADDRINFO 1 |
|||
|
|||
/* Define to 1 if you have struct in6_addr. */ |
|||
#define HAVE_STRUCT_IN6_ADDR 1 |
|||
|
|||
/* Define to 1 if you have struct sockaddr_in6. */ |
|||
#define HAVE_STRUCT_SOCKADDR_IN6 1 |
|||
|
|||
/* if struct sockaddr_storage is defined */ |
|||
#define HAVE_STRUCT_SOCKADDR_STORAGE 1 |
|||
|
|||
/* Define to 1 if you have the timeval struct. */ |
|||
#define HAVE_STRUCT_TIMEVAL 1 |
|||
|
|||
/* Define to 1 if you have the <sys/ioctl.h> header file. */ |
|||
#define HAVE_SYS_IOCTL_H 1 |
|||
|
|||
/* Define to 1 if you have the <sys/param.h> header file. */ |
|||
#define HAVE_SYS_PARAM_H 1 |
|||
|
|||
/* Define to 1 if you have the <sys/select.h> header file. */ |
|||
#define HAVE_SYS_SELECT_H 1 |
|||
|
|||
/* Define to 1 if you have the <sys/socket.h> header file. */ |
|||
#define HAVE_SYS_SOCKET_H 1 |
|||
|
|||
/* Define to 1 if you have the <sys/stat.h> header file. */ |
|||
#define HAVE_SYS_STAT_H 1 |
|||
|
|||
/* Define to 1 if you have the <sys/time.h> header file. */ |
|||
#define HAVE_SYS_TIME_H 1 |
|||
|
|||
/* Define to 1 if you have the <sys/types.h> header file. */ |
|||
#define HAVE_SYS_TYPES_H 1 |
|||
|
|||
/* Define to 1 if you have the <sys/uio.h> header file. */ |
|||
#define HAVE_SYS_UIO_H 1 |
|||
|
|||
/* Define to 1 if you have the <time.h> header file. */ |
|||
#define HAVE_TIME_H 1 |
|||
|
|||
/* Define to 1 if you have the <unistd.h> header file. */ |
|||
#define HAVE_UNISTD_H 1 |
|||
|
|||
/* Define to 1 if you have the windows.h header file. */ |
|||
/* #undef HAVE_WINDOWS_H */ |
|||
|
|||
/* Define to 1 if you have the winsock2.h header file. */ |
|||
/* #undef HAVE_WINSOCK2_H */ |
|||
|
|||
/* Define to 1 if you have the winsock.h header file. */ |
|||
/* #undef HAVE_WINSOCK_H */ |
|||
|
|||
/* Define to 1 if you have the writev function. */ |
|||
#define HAVE_WRITEV 1 |
|||
|
|||
/* Define to 1 if you have the ws2tcpip.h header file. */ |
|||
/* #undef HAVE_WS2TCPIP_H */ |
|||
|
|||
/* Define to the sub-directory in which libtool stores uninstalled libraries.
|
|||
*/ |
|||
#define LT_OBJDIR ".libs/" |
|||
|
|||
/* Define to 1 if you are building a native Windows target. */ |
|||
/* #undef NATIVE_WINDOWS */ |
|||
|
|||
/* Define to 1 if you need the malloc.h header file even with stdlib.h */ |
|||
/* #undef NEED_MALLOC_H */ |
|||
|
|||
/* Define to 1 if you need the memory.h header file even with stdlib.h */ |
|||
/* #undef NEED_MEMORY_H */ |
|||
|
|||
/* Define to 1 if _REENTRANT preprocessor symbol must be defined. */ |
|||
/* #undef NEED_REENTRANT */ |
|||
|
|||
/* Define to 1 if _THREAD_SAFE preprocessor symbol must be defined. */ |
|||
/* #undef NEED_THREAD_SAFE */ |
|||
|
|||
/* Define to 1 if your C compiler doesn't accept -c and -o together. */ |
|||
/* #undef NO_MINUS_C_MINUS_O */ |
|||
|
|||
/* cpu-machine-OS */ |
|||
#define OS "i386-apple-darwin9.8.0" |
|||
|
|||
/* Name of package */ |
|||
#define PACKAGE "c-ares" |
|||
|
|||
/* Define to the address where bug reports for this package should be sent. */ |
|||
#define PACKAGE_BUGREPORT "c-ares mailing list => http://cool.haxx.se/mailman/listinfo/c-ares"
|
|||
|
|||
/* Define to the full name of this package. */ |
|||
#define PACKAGE_NAME "c-ares" |
|||
|
|||
/* Define to the full name and version of this package. */ |
|||
#define PACKAGE_STRING "c-ares 1.7.1" |
|||
|
|||
/* Define to the one symbol short name of this package. */ |
|||
#define PACKAGE_TARNAME "c-ares" |
|||
|
|||
/* Define to the home page for this package. */ |
|||
#define PACKAGE_URL "" |
|||
|
|||
/* Define to the version of this package. */ |
|||
#define PACKAGE_VERSION "1.7.1" |
|||
|
|||
/* a suitable file/device to read random data from */ |
|||
#define RANDOM_FILE "/dev/urandom" |
|||
|
|||
/* Define to the type of arg 1 for recvfrom. */ |
|||
#define RECVFROM_TYPE_ARG1 int |
|||
|
|||
/* Define to the type pointed by arg 2 for recvfrom. */ |
|||
#define RECVFROM_TYPE_ARG2 void |
|||
|
|||
/* Define to 1 if the type pointed by arg 2 for recvfrom is void. */ |
|||
#define RECVFROM_TYPE_ARG2_IS_VOID 1 |
|||
|
|||
/* Define to the type of arg 3 for recvfrom. */ |
|||
#define RECVFROM_TYPE_ARG3 size_t |
|||
|
|||
/* Define to the type of arg 4 for recvfrom. */ |
|||
#define RECVFROM_TYPE_ARG4 int |
|||
|
|||
/* Define to the type pointed by arg 5 for recvfrom. */ |
|||
#define RECVFROM_TYPE_ARG5 struct sockaddr |
|||
|
|||
/* Define to 1 if the type pointed by arg 5 for recvfrom is void. */ |
|||
/* #undef RECVFROM_TYPE_ARG5_IS_VOID */ |
|||
|
|||
/* Define to the type pointed by arg 6 for recvfrom. */ |
|||
#define RECVFROM_TYPE_ARG6 socklen_t |
|||
|
|||
/* Define to 1 if the type pointed by arg 6 for recvfrom is void. */ |
|||
/* #undef RECVFROM_TYPE_ARG6_IS_VOID */ |
|||
|
|||
/* Define to the function return type for recvfrom. */ |
|||
#define RECVFROM_TYPE_RETV ssize_t |
|||
|
|||
/* Define to the type of arg 1 for recv. */ |
|||
#define RECV_TYPE_ARG1 int |
|||
|
|||
/* Define to the type of arg 2 for recv. */ |
|||
#define RECV_TYPE_ARG2 void * |
|||
|
|||
/* Define to the type of arg 3 for recv. */ |
|||
#define RECV_TYPE_ARG3 size_t |
|||
|
|||
/* Define to the type of arg 4 for recv. */ |
|||
#define RECV_TYPE_ARG4 int |
|||
|
|||
/* Define to the function return type for recv. */ |
|||
#define RECV_TYPE_RETV ssize_t |
|||
|
|||
/* Define as the return type of signal handlers (`int' or `void'). */ |
|||
#define RETSIGTYPE void |
|||
|
|||
/* Define to the type qualifier of arg 2 for send. */ |
|||
#define SEND_QUAL_ARG2 const |
|||
|
|||
/* Define to the type of arg 1 for send. */ |
|||
#define SEND_TYPE_ARG1 int |
|||
|
|||
/* Define to the type of arg 2 for send. */ |
|||
#define SEND_TYPE_ARG2 void * |
|||
|
|||
/* Define to the type of arg 3 for send. */ |
|||
#define SEND_TYPE_ARG3 size_t |
|||
|
|||
/* Define to the type of arg 4 for send. */ |
|||
#define SEND_TYPE_ARG4 int |
|||
|
|||
/* Define to the function return type for send. */ |
|||
#define SEND_TYPE_RETV ssize_t |
|||
|
|||
/* The size of `int', as computed by sizeof. */ |
|||
#define SIZEOF_INT 4 |
|||
|
|||
/* The size of `long', as computed by sizeof. */ |
|||
#define SIZEOF_LONG 4 |
|||
|
|||
/* The size of `size_t', as computed by sizeof. */ |
|||
#define SIZEOF_SIZE_T 4 |
|||
|
|||
/* The size of `struct in6_addr', as computed by sizeof. */ |
|||
#define SIZEOF_STRUCT_IN6_ADDR 16 |
|||
|
|||
/* The size of `struct in_addr', as computed by sizeof. */ |
|||
#define SIZEOF_STRUCT_IN_ADDR 4 |
|||
|
|||
/* The size of `time_t', as computed by sizeof. */ |
|||
#define SIZEOF_TIME_T 4 |
|||
|
|||
/* Define to 1 if you have the ANSI C header files. */ |
|||
#define STDC_HEADERS 1 |
|||
|
|||
/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */ |
|||
#define TIME_WITH_SYS_TIME 1 |
|||
|
|||
/* Define to disable non-blocking sockets. */ |
|||
/* #undef USE_BLOCKING_SOCKETS */ |
|||
|
|||
/* Version number of package */ |
|||
#define VERSION "1.7.1" |
|||
|
|||
/* Define to avoid automatic inclusion of winsock.h */ |
|||
/* #undef WIN32_LEAN_AND_MEAN */ |
|||
|
|||
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
|
|||
significant byte first (like Motorola and SPARC, unlike Intel). */ |
|||
#if defined AC_APPLE_UNIVERSAL_BUILD |
|||
# if defined __BIG_ENDIAN__ |
|||
# define WORDS_BIGENDIAN 1 |
|||
# endif |
|||
#else |
|||
# ifndef WORDS_BIGENDIAN |
|||
/* # undef WORDS_BIGENDIAN */ |
|||
# endif |
|||
#endif |
|||
|
|||
/* Define to 1 if OS is AIX. */ |
|||
#ifndef _ALL_SOURCE |
|||
/* # undef _ALL_SOURCE */ |
|||
#endif |
|||
|
|||
/* Number of bits in a file offset, on hosts where this is settable. */ |
|||
/* #undef _FILE_OFFSET_BITS */ |
|||
|
|||
/* Define for large files, on AIX-style hosts. */ |
|||
/* #undef _LARGE_FILES */ |
|||
|
|||
/* Define to empty if `const' does not conform to ANSI C. */ |
|||
/* #undef const */ |
|||
|
|||
/* Type to use in place of in_addr_t when system does not provide it. */ |
|||
/* #undef in_addr_t */ |
|||
|
|||
/* Define to `unsigned int' if <sys/types.h> does not define. */ |
|||
/* #undef size_t */ |
|||
|
|||
/* the signed version of size_t */ |
|||
/* #undef ssize_t */ |
@ -0,0 +1,513 @@ |
|||
/* ares_config.h. Generated from ares_config.h.in by configure. */ |
|||
/* ares_config.h.in. Generated from configure.ac by autoheader. */ |
|||
|
|||
/* Define if building universal (internal helper macro) */ |
|||
/* #undef AC_APPLE_UNIVERSAL_BUILD */ |
|||
|
|||
/* define this if ares is built for a big endian system */ |
|||
/* #undef ARES_BIG_ENDIAN */ |
|||
|
|||
/* when building as static part of libcurl */ |
|||
/* #undef BUILDING_LIBCURL */ |
|||
|
|||
/* when building c-ares library */ |
|||
/* #undef CARES_BUILDING_LIBRARY */ |
|||
|
|||
/* when not building a shared library */ |
|||
/* #undef CARES_STATICLIB */ |
|||
|
|||
/* Define to 1 to enable hiding of library internal symbols. */ |
|||
#define CARES_SYMBOL_HIDING 1 |
|||
|
|||
/* Definition to make a library symbol externally visible. */ |
|||
#define CARES_SYMBOL_SCOPE_EXTERN __attribute__ ((visibility ("default"))) |
|||
|
|||
/* if a /etc/inet dir is being used */ |
|||
/* #undef ETC_INET */ |
|||
|
|||
/* Define to the type qualifier of arg 1 for getnameinfo. */ |
|||
#define GETNAMEINFO_QUAL_ARG1 const |
|||
|
|||
/* Define to the type of arg 1 for getnameinfo. */ |
|||
#define GETNAMEINFO_TYPE_ARG1 struct sockaddr * |
|||
|
|||
/* Define to the type of arg 2 for getnameinfo. */ |
|||
#define GETNAMEINFO_TYPE_ARG2 socklen_t |
|||
|
|||
/* Define to the type of args 4 and 6 for getnameinfo. */ |
|||
#define GETNAMEINFO_TYPE_ARG46 size_t |
|||
|
|||
/* Define to the type of arg 7 for getnameinfo. */ |
|||
#define GETNAMEINFO_TYPE_ARG7 int |
|||
|
|||
/* Specifies the number of arguments to getservbyport_r */ |
|||
#define GETSERVBYPORT_R_ARGS 6 |
|||
|
|||
/* Specifies the size of the buffer to pass to getservbyport_r */ |
|||
#define GETSERVBYPORT_R_BUFSIZE 4096 |
|||
|
|||
/* Define to 1 if you have AF_INET6. */ |
|||
#define HAVE_AF_INET6 1 |
|||
|
|||
/* Define to 1 if you have the <arpa/inet.h> header file. */ |
|||
#define HAVE_ARPA_INET_H 1 |
|||
|
|||
/* Define to 1 if you have the <arpa/nameser_compat.h> header file. */ |
|||
#define HAVE_ARPA_NAMESER_COMPAT_H 1 |
|||
|
|||
/* Define to 1 if you have the <arpa/nameser.h> header file. */ |
|||
#define HAVE_ARPA_NAMESER_H 1 |
|||
|
|||
/* Define to 1 if you have the <assert.h> header file. */ |
|||
#define HAVE_ASSERT_H 1 |
|||
|
|||
/* Define to 1 if you have the `bitncmp' function. */ |
|||
/* #undef HAVE_BITNCMP */ |
|||
|
|||
/* Define to 1 if bool is an available type. */ |
|||
#define HAVE_BOOL_T 1 |
|||
|
|||
/* Define to 1 if you have the clock_gettime function and monotonic timer. */ |
|||
#define HAVE_CLOCK_GETTIME_MONOTONIC 1 |
|||
|
|||
/* Define to 1 if you have the closesocket function. */ |
|||
/* #undef HAVE_CLOSESOCKET */ |
|||
|
|||
/* Define to 1 if you have the CloseSocket camel case function. */ |
|||
/* #undef HAVE_CLOSESOCKET_CAMEL */ |
|||
|
|||
/* Define to 1 if you have the connect function. */ |
|||
#define HAVE_CONNECT 1 |
|||
|
|||
/* Define to 1 if you have the <dlfcn.h> header file. */ |
|||
#define HAVE_DLFCN_H 1 |
|||
|
|||
/* Define to 1 if you have the <errno.h> header file. */ |
|||
#define HAVE_ERRNO_H 1 |
|||
|
|||
/* Define to 1 if you have the fcntl function. */ |
|||
#define HAVE_FCNTL 1 |
|||
|
|||
/* Define to 1 if you have the <fcntl.h> header file. */ |
|||
#define HAVE_FCNTL_H 1 |
|||
|
|||
/* Define to 1 if you have a working fcntl O_NONBLOCK function. */ |
|||
#define HAVE_FCNTL_O_NONBLOCK 1 |
|||
|
|||
/* Define to 1 if you have the freeaddrinfo function. */ |
|||
#define HAVE_FREEADDRINFO 1 |
|||
|
|||
/* Define to 1 if you have a working getaddrinfo function. */ |
|||
#define HAVE_GETADDRINFO 1 |
|||
|
|||
/* Define to 1 if the getaddrinfo function is threadsafe. */ |
|||
#define HAVE_GETADDRINFO_THREADSAFE 1 |
|||
|
|||
/* Define to 1 if you have the gethostbyaddr function. */ |
|||
#define HAVE_GETHOSTBYADDR 1 |
|||
|
|||
/* Define to 1 if you have the gethostbyname function. */ |
|||
#define HAVE_GETHOSTBYNAME 1 |
|||
|
|||
/* Define to 1 if you have the gethostname function. */ |
|||
#define HAVE_GETHOSTNAME 1 |
|||
|
|||
/* Define to 1 if you have the getnameinfo function. */ |
|||
#define HAVE_GETNAMEINFO 1 |
|||
|
|||
/* Define to 1 if you have the getservbyport_r function. */ |
|||
#define HAVE_GETSERVBYPORT_R 1 |
|||
|
|||
/* Define to 1 if you have the `gettimeofday' function. */ |
|||
#define HAVE_GETTIMEOFDAY 1 |
|||
|
|||
/* Define to 1 if you have the `if_indextoname' function. */ |
|||
#define HAVE_IF_INDEXTONAME 1 |
|||
|
|||
/* Define to 1 if you have the `inet_net_pton' function. */ |
|||
#define HAVE_INET_NET_PTON 1 |
|||
|
|||
/* Define to 1 if inet_net_pton supports IPv6. */ |
|||
/* #undef HAVE_INET_NET_PTON_IPV6 */ |
|||
|
|||
/* Define to 1 if you have a IPv6 capable working inet_ntop function. */ |
|||
#define HAVE_INET_NTOP 1 |
|||
|
|||
/* Define to 1 if you have a IPv6 capable working inet_pton function. */ |
|||
#define HAVE_INET_PTON 1 |
|||
|
|||
/* Define to 1 if you have the <inttypes.h> header file. */ |
|||
#define HAVE_INTTYPES_H 1 |
|||
|
|||
/* Define to 1 if you have the ioctl function. */ |
|||
#define HAVE_IOCTL 1 |
|||
|
|||
/* Define to 1 if you have the ioctlsocket function. */ |
|||
/* #undef HAVE_IOCTLSOCKET */ |
|||
|
|||
/* Define to 1 if you have the IoctlSocket camel case function. */ |
|||
/* #undef HAVE_IOCTLSOCKET_CAMEL */ |
|||
|
|||
/* Define to 1 if you have a working IoctlSocket camel case FIONBIO function.
|
|||
*/ |
|||
/* #undef HAVE_IOCTLSOCKET_CAMEL_FIONBIO */ |
|||
|
|||
/* Define to 1 if you have a working ioctlsocket FIONBIO function. */ |
|||
/* #undef HAVE_IOCTLSOCKET_FIONBIO */ |
|||
|
|||
/* Define to 1 if you have a working ioctl FIONBIO function. */ |
|||
#define HAVE_IOCTL_FIONBIO 1 |
|||
|
|||
/* Define to 1 if you have a working ioctl SIOCGIFADDR function. */ |
|||
#define HAVE_IOCTL_SIOCGIFADDR 1 |
|||
|
|||
/* Define to 1 if you have the `resolve' library (-lresolve). */ |
|||
/* #undef HAVE_LIBRESOLVE */ |
|||
|
|||
/* Define to 1 if you have the <limits.h> header file. */ |
|||
#define HAVE_LIMITS_H 1 |
|||
|
|||
/* if your compiler supports LL */ |
|||
#define HAVE_LL 1 |
|||
|
|||
/* Define to 1 if the compiler supports the 'long long' data type. */ |
|||
#define HAVE_LONGLONG 1 |
|||
|
|||
/* Define to 1 if you have the malloc.h header file. */ |
|||
/* #undef HAVE_MALLOC_H */ |
|||
|
|||
/* Define to 1 if you have the memory.h header file. */ |
|||
#define HAVE_MEMORY_H 1 |
|||
|
|||
/* Define to 1 if you have the MSG_NOSIGNAL flag. */ |
|||
#define HAVE_MSG_NOSIGNAL 1 |
|||
|
|||
/* Define to 1 if you have the <netdb.h> header file. */ |
|||
#define HAVE_NETDB_H 1 |
|||
|
|||
/* Define to 1 if you have the <netinet/in.h> header file. */ |
|||
#define HAVE_NETINET_IN_H 1 |
|||
|
|||
/* Define to 1 if you have the <netinet/tcp.h> header file. */ |
|||
#define HAVE_NETINET_TCP_H 1 |
|||
|
|||
/* Define to 1 if you have the <net/if.h> header file. */ |
|||
#define HAVE_NET_IF_H 1 |
|||
|
|||
/* Define to 1 if you have PF_INET6. */ |
|||
#define HAVE_PF_INET6 1 |
|||
|
|||
/* Define to 1 if you have the recv function. */ |
|||
#define HAVE_RECV 1 |
|||
|
|||
/* Define to 1 if you have the recvfrom function. */ |
|||
#define HAVE_RECVFROM 1 |
|||
|
|||
/* Define to 1 if you have the send function. */ |
|||
#define HAVE_SEND 1 |
|||
|
|||
/* Define to 1 if you have the setsockopt function. */ |
|||
#define HAVE_SETSOCKOPT 1 |
|||
|
|||
/* Define to 1 if you have a working setsockopt SO_NONBLOCK function. */ |
|||
/* #undef HAVE_SETSOCKOPT_SO_NONBLOCK */ |
|||
|
|||
/* Define to 1 if you have the <signal.h> header file. */ |
|||
#define HAVE_SIGNAL_H 1 |
|||
|
|||
/* Define to 1 if sig_atomic_t is an available typedef. */ |
|||
#define HAVE_SIG_ATOMIC_T 1 |
|||
|
|||
/* Define to 1 if sig_atomic_t is already defined as volatile. */ |
|||
/* #undef HAVE_SIG_ATOMIC_T_VOLATILE */ |
|||
|
|||
/* Define to 1 if your struct sockaddr_in6 has sin6_scope_id. */ |
|||
#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1 |
|||
|
|||
/* Define to 1 if you have the socket function. */ |
|||
#define HAVE_SOCKET 1 |
|||
|
|||
/* Define to 1 if you have the <socket.h> header file. */ |
|||
/* #undef HAVE_SOCKET_H */ |
|||
|
|||
/* Define to 1 if you have the <stdbool.h> header file. */ |
|||
#define HAVE_STDBOOL_H 1 |
|||
|
|||
/* Define to 1 if you have the <stdint.h> header file. */ |
|||
#define HAVE_STDINT_H 1 |
|||
|
|||
/* Define to 1 if you have the <stdlib.h> header file. */ |
|||
#define HAVE_STDLIB_H 1 |
|||
|
|||
/* Define to 1 if you have the strcasecmp function. */ |
|||
#define HAVE_STRCASECMP 1 |
|||
|
|||
/* Define to 1 if you have the strcmpi function. */ |
|||
/* #undef HAVE_STRCMPI */ |
|||
|
|||
/* Define to 1 if you have the strdup function. */ |
|||
#define HAVE_STRDUP 1 |
|||
|
|||
/* Define to 1 if you have the stricmp function. */ |
|||
/* #undef HAVE_STRICMP */ |
|||
|
|||
/* Define to 1 if you have the <strings.h> header file. */ |
|||
#define HAVE_STRINGS_H 1 |
|||
|
|||
/* Define to 1 if you have the <string.h> header file. */ |
|||
#define HAVE_STRING_H 1 |
|||
|
|||
/* Define to 1 if you have the strncasecmp function. */ |
|||
#define HAVE_STRNCASECMP 1 |
|||
|
|||
/* Define to 1 if you have the strncmpi function. */ |
|||
/* #undef HAVE_STRNCMPI */ |
|||
|
|||
/* Define to 1 if you have the strnicmp function. */ |
|||
/* #undef HAVE_STRNICMP */ |
|||
|
|||
/* Define to 1 if you have the <stropts.h> header file. */ |
|||
/* #undef HAVE_STROPTS_H */ |
|||
|
|||
/* Define to 1 if you have struct addrinfo. */ |
|||
#define HAVE_STRUCT_ADDRINFO 1 |
|||
|
|||
/* Define to 1 if you have struct in6_addr. */ |
|||
#define HAVE_STRUCT_IN6_ADDR 1 |
|||
|
|||
/* Define to 1 if you have struct sockaddr_in6. */ |
|||
#define HAVE_STRUCT_SOCKADDR_IN6 1 |
|||
|
|||
/* if struct sockaddr_storage is defined */ |
|||
#define HAVE_STRUCT_SOCKADDR_STORAGE 1 |
|||
|
|||
/* Define to 1 if you have the timeval struct. */ |
|||
#define HAVE_STRUCT_TIMEVAL 1 |
|||
|
|||
/* Define to 1 if you have the <sys/ioctl.h> header file. */ |
|||
#define HAVE_SYS_IOCTL_H 1 |
|||
|
|||
/* Define to 1 if you have the <sys/param.h> header file. */ |
|||
#define HAVE_SYS_PARAM_H 1 |
|||
|
|||
/* Define to 1 if you have the <sys/select.h> header file. */ |
|||
#define HAVE_SYS_SELECT_H 1 |
|||
|
|||
/* Define to 1 if you have the <sys/socket.h> header file. */ |
|||
#define HAVE_SYS_SOCKET_H 1 |
|||
|
|||
/* Define to 1 if you have the <sys/stat.h> header file. */ |
|||
#define HAVE_SYS_STAT_H 1 |
|||
|
|||
/* Define to 1 if you have the <sys/time.h> header file. */ |
|||
#define HAVE_SYS_TIME_H 1 |
|||
|
|||
/* Define to 1 if you have the <sys/types.h> header file. */ |
|||
#define HAVE_SYS_TYPES_H 1 |
|||
|
|||
/* Define to 1 if you have the <sys/uio.h> header file. */ |
|||
#define HAVE_SYS_UIO_H 1 |
|||
|
|||
/* Define to 1 if you have the <time.h> header file. */ |
|||
#define HAVE_TIME_H 1 |
|||
|
|||
/* Define to 1 if you have the <unistd.h> header file. */ |
|||
#define HAVE_UNISTD_H 1 |
|||
|
|||
/* Define to 1 if you have the windows.h header file. */ |
|||
/* #undef HAVE_WINDOWS_H */ |
|||
|
|||
/* Define to 1 if you have the winsock2.h header file. */ |
|||
/* #undef HAVE_WINSOCK2_H */ |
|||
|
|||
/* Define to 1 if you have the winsock.h header file. */ |
|||
/* #undef HAVE_WINSOCK_H */ |
|||
|
|||
/* Define to 1 if you have the writev function. */ |
|||
#define HAVE_WRITEV 1 |
|||
|
|||
/* Define to 1 if you have the ws2tcpip.h header file. */ |
|||
/* #undef HAVE_WS2TCPIP_H */ |
|||
|
|||
/* Define to the sub-directory in which libtool stores uninstalled libraries.
|
|||
*/ |
|||
#define LT_OBJDIR ".libs/" |
|||
|
|||
/* Define to 1 if you are building a native Windows target. */ |
|||
/* #undef NATIVE_WINDOWS */ |
|||
|
|||
/* Define to 1 if you need the malloc.h header file even with stdlib.h */ |
|||
/* #undef NEED_MALLOC_H */ |
|||
|
|||
/* Define to 1 if you need the memory.h header file even with stdlib.h */ |
|||
/* #undef NEED_MEMORY_H */ |
|||
|
|||
/* Define to 1 if _REENTRANT preprocessor symbol must be defined. */ |
|||
/* #undef NEED_REENTRANT */ |
|||
|
|||
/* Define to 1 if _THREAD_SAFE preprocessor symbol must be defined. */ |
|||
/* #undef NEED_THREAD_SAFE */ |
|||
|
|||
/* Define to 1 if your C compiler doesn't accept -c and -o together. */ |
|||
/* #undef NO_MINUS_C_MINUS_O */ |
|||
|
|||
/* cpu-machine-OS */ |
|||
#define OS "i386-portbld-freebsd8.0" |
|||
|
|||
/* Name of package */ |
|||
#define PACKAGE "c-ares" |
|||
|
|||
/* Define to the address where bug reports for this package should be sent. */ |
|||
#define PACKAGE_BUGREPORT "c-ares mailing list => http://cool.haxx.se/mailman/listinfo/c-ares"
|
|||
|
|||
/* Define to the full name of this package. */ |
|||
#define PACKAGE_NAME "c-ares" |
|||
|
|||
/* Define to the full name and version of this package. */ |
|||
#define PACKAGE_STRING "c-ares 1.7.1" |
|||
|
|||
/* Define to the one symbol short name of this package. */ |
|||
#define PACKAGE_TARNAME "c-ares" |
|||
|
|||
/* Define to the home page for this package. */ |
|||
#define PACKAGE_URL "" |
|||
|
|||
/* Define to the version of this package. */ |
|||
#define PACKAGE_VERSION "1.7.1" |
|||
|
|||
/* a suitable file/device to read random data from */ |
|||
#define RANDOM_FILE "/dev/urandom" |
|||
|
|||
/* Define to the type of arg 1 for recvfrom. */ |
|||
#define RECVFROM_TYPE_ARG1 int |
|||
|
|||
/* Define to the type pointed by arg 2 for recvfrom. */ |
|||
#define RECVFROM_TYPE_ARG2 void |
|||
|
|||
/* Define to 1 if the type pointed by arg 2 for recvfrom is void. */ |
|||
#define RECVFROM_TYPE_ARG2_IS_VOID 1 |
|||
|
|||
/* Define to the type of arg 3 for recvfrom. */ |
|||
#define RECVFROM_TYPE_ARG3 size_t |
|||
|
|||
/* Define to the type of arg 4 for recvfrom. */ |
|||
#define RECVFROM_TYPE_ARG4 int |
|||
|
|||
/* Define to the type pointed by arg 5 for recvfrom. */ |
|||
#define RECVFROM_TYPE_ARG5 struct sockaddr |
|||
|
|||
/* Define to 1 if the type pointed by arg 5 for recvfrom is void. */ |
|||
/* #undef RECVFROM_TYPE_ARG5_IS_VOID */ |
|||
|
|||
/* Define to the type pointed by arg 6 for recvfrom. */ |
|||
#define RECVFROM_TYPE_ARG6 socklen_t |
|||
|
|||
/* Define to 1 if the type pointed by arg 6 for recvfrom is void. */ |
|||
/* #undef RECVFROM_TYPE_ARG6_IS_VOID */ |
|||
|
|||
/* Define to the function return type for recvfrom. */ |
|||
#define RECVFROM_TYPE_RETV int |
|||
|
|||
/* Define to the type of arg 1 for recv. */ |
|||
#define RECV_TYPE_ARG1 int |
|||
|
|||
/* Define to the type of arg 2 for recv. */ |
|||
#define RECV_TYPE_ARG2 void * |
|||
|
|||
/* Define to the type of arg 3 for recv. */ |
|||
#define RECV_TYPE_ARG3 size_t |
|||
|
|||
/* Define to the type of arg 4 for recv. */ |
|||
#define RECV_TYPE_ARG4 int |
|||
|
|||
/* Define to the function return type for recv. */ |
|||
#define RECV_TYPE_RETV int |
|||
|
|||
/* Define as the return type of signal handlers (`int' or `void'). */ |
|||
#define RETSIGTYPE void |
|||
|
|||
/* Define to the type qualifier of arg 2 for send. */ |
|||
#define SEND_QUAL_ARG2 const |
|||
|
|||
/* Define to the type of arg 1 for send. */ |
|||
#define SEND_TYPE_ARG1 int |
|||
|
|||
/* Define to the type of arg 2 for send. */ |
|||
#define SEND_TYPE_ARG2 void * |
|||
|
|||
/* Define to the type of arg 3 for send. */ |
|||
#define SEND_TYPE_ARG3 size_t |
|||
|
|||
/* Define to the type of arg 4 for send. */ |
|||
#define SEND_TYPE_ARG4 int |
|||
|
|||
/* Define to the function return type for send. */ |
|||
#define SEND_TYPE_RETV int |
|||
|
|||
/* The size of `int', as computed by sizeof. */ |
|||
#define SIZEOF_INT 4 |
|||
|
|||
/* The size of `long', as computed by sizeof. */ |
|||
#define SIZEOF_LONG 4 |
|||
|
|||
/* The size of `size_t', as computed by sizeof. */ |
|||
#define SIZEOF_SIZE_T 4 |
|||
|
|||
/* The size of `struct in6_addr', as computed by sizeof. */ |
|||
#define SIZEOF_STRUCT_IN6_ADDR 16 |
|||
|
|||
/* The size of `struct in_addr', as computed by sizeof. */ |
|||
#define SIZEOF_STRUCT_IN_ADDR 4 |
|||
|
|||
/* The size of `time_t', as computed by sizeof. */ |
|||
#define SIZEOF_TIME_T 4 |
|||
|
|||
/* Define to 1 if you have the ANSI C header files. */ |
|||
#define STDC_HEADERS 1 |
|||
|
|||
/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */ |
|||
#define TIME_WITH_SYS_TIME 1 |
|||
|
|||
/* Define to disable non-blocking sockets. */ |
|||
/* #undef USE_BLOCKING_SOCKETS */ |
|||
|
|||
/* Version number of package */ |
|||
#define VERSION "1.7.1" |
|||
|
|||
/* Define to avoid automatic inclusion of winsock.h */ |
|||
/* #undef WIN32_LEAN_AND_MEAN */ |
|||
|
|||
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
|
|||
significant byte first (like Motorola and SPARC, unlike Intel). */ |
|||
#if defined AC_APPLE_UNIVERSAL_BUILD |
|||
# if defined __BIG_ENDIAN__ |
|||
# define WORDS_BIGENDIAN 1 |
|||
# endif |
|||
#else |
|||
# ifndef WORDS_BIGENDIAN |
|||
/* # undef WORDS_BIGENDIAN */ |
|||
# endif |
|||
#endif |
|||
|
|||
/* Define to 1 if OS is AIX. */ |
|||
#ifndef _ALL_SOURCE |
|||
/* # undef _ALL_SOURCE */ |
|||
#endif |
|||
|
|||
/* Number of bits in a file offset, on hosts where this is settable. */ |
|||
/* #undef _FILE_OFFSET_BITS */ |
|||
|
|||
/* Define for large files, on AIX-style hosts. */ |
|||
/* #undef _LARGE_FILES */ |
|||
|
|||
/* Define to empty if `const' does not conform to ANSI C. */ |
|||
/* #undef const */ |
|||
|
|||
/* Type to use in place of in_addr_t when system does not provide it. */ |
|||
/* #undef in_addr_t */ |
|||
|
|||
/* Define to `unsigned int' if <sys/types.h> does not define. */ |
|||
/* #undef size_t */ |
|||
|
|||
/* the signed version of size_t */ |
|||
/* #undef ssize_t */ |
@ -0,0 +1,513 @@ |
|||
/* ares_config.h. Generated from ares_config.h.in by configure. */ |
|||
/* ares_config.h.in. Generated from configure.ac by autoheader. */ |
|||
|
|||
/* Define if building universal (internal helper macro) */ |
|||
/* #undef AC_APPLE_UNIVERSAL_BUILD */ |
|||
|
|||
/* define this if ares is built for a big endian system */ |
|||
/* #undef ARES_BIG_ENDIAN */ |
|||
|
|||
/* when building as static part of libcurl */ |
|||
/* #undef BUILDING_LIBCURL */ |
|||
|
|||
/* when building c-ares library */ |
|||
/* #undef CARES_BUILDING_LIBRARY */ |
|||
|
|||
/* when not building a shared library */ |
|||
/* #undef CARES_STATICLIB */ |
|||
|
|||
/* Define to 1 to enable hiding of library internal symbols. */ |
|||
#define CARES_SYMBOL_HIDING 1 |
|||
|
|||
/* Definition to make a library symbol externally visible. */ |
|||
#define CARES_SYMBOL_SCOPE_EXTERN __attribute__ ((visibility ("default"))) |
|||
|
|||
/* if a /etc/inet dir is being used */ |
|||
/* #undef ETC_INET */ |
|||
|
|||
/* Define to the type qualifier of arg 1 for getnameinfo. */ |
|||
#define GETNAMEINFO_QUAL_ARG1 const |
|||
|
|||
/* Define to the type of arg 1 for getnameinfo. */ |
|||
#define GETNAMEINFO_TYPE_ARG1 struct sockaddr * |
|||
|
|||
/* Define to the type of arg 2 for getnameinfo. */ |
|||
#define GETNAMEINFO_TYPE_ARG2 socklen_t |
|||
|
|||
/* Define to the type of args 4 and 6 for getnameinfo. */ |
|||
#define GETNAMEINFO_TYPE_ARG46 size_t |
|||
|
|||
/* Define to the type of arg 7 for getnameinfo. */ |
|||
#define GETNAMEINFO_TYPE_ARG7 unsigned int |
|||
|
|||
/* Specifies the number of arguments to getservbyport_r */ |
|||
#define GETSERVBYPORT_R_ARGS 6 |
|||
|
|||
/* Specifies the size of the buffer to pass to getservbyport_r */ |
|||
#define GETSERVBYPORT_R_BUFSIZE 4096 |
|||
|
|||
/* Define to 1 if you have AF_INET6. */ |
|||
#define HAVE_AF_INET6 1 |
|||
|
|||
/* Define to 1 if you have the <arpa/inet.h> header file. */ |
|||
#define HAVE_ARPA_INET_H 1 |
|||
|
|||
/* Define to 1 if you have the <arpa/nameser_compat.h> header file. */ |
|||
#define HAVE_ARPA_NAMESER_COMPAT_H 1 |
|||
|
|||
/* Define to 1 if you have the <arpa/nameser.h> header file. */ |
|||
#define HAVE_ARPA_NAMESER_H 1 |
|||
|
|||
/* Define to 1 if you have the <assert.h> header file. */ |
|||
#define HAVE_ASSERT_H 1 |
|||
|
|||
/* Define to 1 if you have the `bitncmp' function. */ |
|||
/* #undef HAVE_BITNCMP */ |
|||
|
|||
/* Define to 1 if bool is an available type. */ |
|||
#define HAVE_BOOL_T 1 |
|||
|
|||
/* Define to 1 if you have the clock_gettime function and monotonic timer. */ |
|||
#define HAVE_CLOCK_GETTIME_MONOTONIC 1 |
|||
|
|||
/* Define to 1 if you have the closesocket function. */ |
|||
/* #undef HAVE_CLOSESOCKET */ |
|||
|
|||
/* Define to 1 if you have the CloseSocket camel case function. */ |
|||
/* #undef HAVE_CLOSESOCKET_CAMEL */ |
|||
|
|||
/* Define to 1 if you have the connect function. */ |
|||
#define HAVE_CONNECT 1 |
|||
|
|||
/* Define to 1 if you have the <dlfcn.h> header file. */ |
|||
#define HAVE_DLFCN_H 1 |
|||
|
|||
/* Define to 1 if you have the <errno.h> header file. */ |
|||
#define HAVE_ERRNO_H 1 |
|||
|
|||
/* Define to 1 if you have the fcntl function. */ |
|||
#define HAVE_FCNTL 1 |
|||
|
|||
/* Define to 1 if you have the <fcntl.h> header file. */ |
|||
#define HAVE_FCNTL_H 1 |
|||
|
|||
/* Define to 1 if you have a working fcntl O_NONBLOCK function. */ |
|||
#define HAVE_FCNTL_O_NONBLOCK 1 |
|||
|
|||
/* Define to 1 if you have the freeaddrinfo function. */ |
|||
#define HAVE_FREEADDRINFO 1 |
|||
|
|||
/* Define to 1 if you have a working getaddrinfo function. */ |
|||
#define HAVE_GETADDRINFO 1 |
|||
|
|||
/* Define to 1 if the getaddrinfo function is threadsafe. */ |
|||
#define HAVE_GETADDRINFO_THREADSAFE 1 |
|||
|
|||
/* Define to 1 if you have the gethostbyaddr function. */ |
|||
#define HAVE_GETHOSTBYADDR 1 |
|||
|
|||
/* Define to 1 if you have the gethostbyname function. */ |
|||
#define HAVE_GETHOSTBYNAME 1 |
|||
|
|||
/* Define to 1 if you have the gethostname function. */ |
|||
#define HAVE_GETHOSTNAME 1 |
|||
|
|||
/* Define to 1 if you have the getnameinfo function. */ |
|||
#define HAVE_GETNAMEINFO 1 |
|||
|
|||
/* Define to 1 if you have the getservbyport_r function. */ |
|||
#define HAVE_GETSERVBYPORT_R 1 |
|||
|
|||
/* Define to 1 if you have the `gettimeofday' function. */ |
|||
#define HAVE_GETTIMEOFDAY 1 |
|||
|
|||
/* Define to 1 if you have the `if_indextoname' function. */ |
|||
#define HAVE_IF_INDEXTONAME 1 |
|||
|
|||
/* Define to 1 if you have the `inet_net_pton' function. */ |
|||
/* #undef HAVE_INET_NET_PTON */ |
|||
|
|||
/* Define to 1 if inet_net_pton supports IPv6. */ |
|||
/* #undef HAVE_INET_NET_PTON_IPV6 */ |
|||
|
|||
/* Define to 1 if you have a IPv6 capable working inet_ntop function. */ |
|||
#define HAVE_INET_NTOP 1 |
|||
|
|||
/* Define to 1 if you have a IPv6 capable working inet_pton function. */ |
|||
#define HAVE_INET_PTON 1 |
|||
|
|||
/* Define to 1 if you have the <inttypes.h> header file. */ |
|||
#define HAVE_INTTYPES_H 1 |
|||
|
|||
/* Define to 1 if you have the ioctl function. */ |
|||
#define HAVE_IOCTL 1 |
|||
|
|||
/* Define to 1 if you have the ioctlsocket function. */ |
|||
/* #undef HAVE_IOCTLSOCKET */ |
|||
|
|||
/* Define to 1 if you have the IoctlSocket camel case function. */ |
|||
/* #undef HAVE_IOCTLSOCKET_CAMEL */ |
|||
|
|||
/* Define to 1 if you have a working IoctlSocket camel case FIONBIO function.
|
|||
*/ |
|||
/* #undef HAVE_IOCTLSOCKET_CAMEL_FIONBIO */ |
|||
|
|||
/* Define to 1 if you have a working ioctlsocket FIONBIO function. */ |
|||
/* #undef HAVE_IOCTLSOCKET_FIONBIO */ |
|||
|
|||
/* Define to 1 if you have a working ioctl FIONBIO function. */ |
|||
#define HAVE_IOCTL_FIONBIO 1 |
|||
|
|||
/* Define to 1 if you have a working ioctl SIOCGIFADDR function. */ |
|||
#define HAVE_IOCTL_SIOCGIFADDR 1 |
|||
|
|||
/* Define to 1 if you have the `resolve' library (-lresolve). */ |
|||
/* #undef HAVE_LIBRESOLVE */ |
|||
|
|||
/* Define to 1 if you have the <limits.h> header file. */ |
|||
#define HAVE_LIMITS_H 1 |
|||
|
|||
/* if your compiler supports LL */ |
|||
#define HAVE_LL 1 |
|||
|
|||
/* Define to 1 if the compiler supports the 'long long' data type. */ |
|||
#define HAVE_LONGLONG 1 |
|||
|
|||
/* Define to 1 if you have the malloc.h header file. */ |
|||
#define HAVE_MALLOC_H 1 |
|||
|
|||
/* Define to 1 if you have the memory.h header file. */ |
|||
#define HAVE_MEMORY_H 1 |
|||
|
|||
/* Define to 1 if you have the MSG_NOSIGNAL flag. */ |
|||
#define HAVE_MSG_NOSIGNAL 1 |
|||
|
|||
/* Define to 1 if you have the <netdb.h> header file. */ |
|||
#define HAVE_NETDB_H 1 |
|||
|
|||
/* Define to 1 if you have the <netinet/in.h> header file. */ |
|||
#define HAVE_NETINET_IN_H 1 |
|||
|
|||
/* Define to 1 if you have the <netinet/tcp.h> header file. */ |
|||
#define HAVE_NETINET_TCP_H 1 |
|||
|
|||
/* Define to 1 if you have the <net/if.h> header file. */ |
|||
#define HAVE_NET_IF_H 1 |
|||
|
|||
/* Define to 1 if you have PF_INET6. */ |
|||
#define HAVE_PF_INET6 1 |
|||
|
|||
/* Define to 1 if you have the recv function. */ |
|||
#define HAVE_RECV 1 |
|||
|
|||
/* Define to 1 if you have the recvfrom function. */ |
|||
#define HAVE_RECVFROM 1 |
|||
|
|||
/* Define to 1 if you have the send function. */ |
|||
#define HAVE_SEND 1 |
|||
|
|||
/* Define to 1 if you have the setsockopt function. */ |
|||
#define HAVE_SETSOCKOPT 1 |
|||
|
|||
/* Define to 1 if you have a working setsockopt SO_NONBLOCK function. */ |
|||
/* #undef HAVE_SETSOCKOPT_SO_NONBLOCK */ |
|||
|
|||
/* Define to 1 if you have the <signal.h> header file. */ |
|||
#define HAVE_SIGNAL_H 1 |
|||
|
|||
/* Define to 1 if sig_atomic_t is an available typedef. */ |
|||
#define HAVE_SIG_ATOMIC_T 1 |
|||
|
|||
/* Define to 1 if sig_atomic_t is already defined as volatile. */ |
|||
/* #undef HAVE_SIG_ATOMIC_T_VOLATILE */ |
|||
|
|||
/* Define to 1 if your struct sockaddr_in6 has sin6_scope_id. */ |
|||
#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1 |
|||
|
|||
/* Define to 1 if you have the socket function. */ |
|||
#define HAVE_SOCKET 1 |
|||
|
|||
/* Define to 1 if you have the <socket.h> header file. */ |
|||
/* #undef HAVE_SOCKET_H */ |
|||
|
|||
/* Define to 1 if you have the <stdbool.h> header file. */ |
|||
#define HAVE_STDBOOL_H 1 |
|||
|
|||
/* Define to 1 if you have the <stdint.h> header file. */ |
|||
#define HAVE_STDINT_H 1 |
|||
|
|||
/* Define to 1 if you have the <stdlib.h> header file. */ |
|||
#define HAVE_STDLIB_H 1 |
|||
|
|||
/* Define to 1 if you have the strcasecmp function. */ |
|||
#define HAVE_STRCASECMP 1 |
|||
|
|||
/* Define to 1 if you have the strcmpi function. */ |
|||
/* #undef HAVE_STRCMPI */ |
|||
|
|||
/* Define to 1 if you have the strdup function. */ |
|||
#define HAVE_STRDUP 1 |
|||
|
|||
/* Define to 1 if you have the stricmp function. */ |
|||
/* #undef HAVE_STRICMP */ |
|||
|
|||
/* Define to 1 if you have the <strings.h> header file. */ |
|||
#define HAVE_STRINGS_H 1 |
|||
|
|||
/* Define to 1 if you have the <string.h> header file. */ |
|||
#define HAVE_STRING_H 1 |
|||
|
|||
/* Define to 1 if you have the strncasecmp function. */ |
|||
#define HAVE_STRNCASECMP 1 |
|||
|
|||
/* Define to 1 if you have the strncmpi function. */ |
|||
/* #undef HAVE_STRNCMPI */ |
|||
|
|||
/* Define to 1 if you have the strnicmp function. */ |
|||
/* #undef HAVE_STRNICMP */ |
|||
|
|||
/* Define to 1 if you have the <stropts.h> header file. */ |
|||
#define HAVE_STROPTS_H 1 |
|||
|
|||
/* Define to 1 if you have struct addrinfo. */ |
|||
#define HAVE_STRUCT_ADDRINFO 1 |
|||
|
|||
/* Define to 1 if you have struct in6_addr. */ |
|||
#define HAVE_STRUCT_IN6_ADDR 1 |
|||
|
|||
/* Define to 1 if you have struct sockaddr_in6. */ |
|||
#define HAVE_STRUCT_SOCKADDR_IN6 1 |
|||
|
|||
/* if struct sockaddr_storage is defined */ |
|||
#define HAVE_STRUCT_SOCKADDR_STORAGE 1 |
|||
|
|||
/* Define to 1 if you have the timeval struct. */ |
|||
#define HAVE_STRUCT_TIMEVAL 1 |
|||
|
|||
/* Define to 1 if you have the <sys/ioctl.h> header file. */ |
|||
#define HAVE_SYS_IOCTL_H 1 |
|||
|
|||
/* Define to 1 if you have the <sys/param.h> header file. */ |
|||
#define HAVE_SYS_PARAM_H 1 |
|||
|
|||
/* Define to 1 if you have the <sys/select.h> header file. */ |
|||
#define HAVE_SYS_SELECT_H 1 |
|||
|
|||
/* Define to 1 if you have the <sys/socket.h> header file. */ |
|||
#define HAVE_SYS_SOCKET_H 1 |
|||
|
|||
/* Define to 1 if you have the <sys/stat.h> header file. */ |
|||
#define HAVE_SYS_STAT_H 1 |
|||
|
|||
/* Define to 1 if you have the <sys/time.h> header file. */ |
|||
#define HAVE_SYS_TIME_H 1 |
|||
|
|||
/* Define to 1 if you have the <sys/types.h> header file. */ |
|||
#define HAVE_SYS_TYPES_H 1 |
|||
|
|||
/* Define to 1 if you have the <sys/uio.h> header file. */ |
|||
#define HAVE_SYS_UIO_H 1 |
|||
|
|||
/* Define to 1 if you have the <time.h> header file. */ |
|||
#define HAVE_TIME_H 1 |
|||
|
|||
/* Define to 1 if you have the <unistd.h> header file. */ |
|||
#define HAVE_UNISTD_H 1 |
|||
|
|||
/* Define to 1 if you have the windows.h header file. */ |
|||
/* #undef HAVE_WINDOWS_H */ |
|||
|
|||
/* Define to 1 if you have the winsock2.h header file. */ |
|||
/* #undef HAVE_WINSOCK2_H */ |
|||
|
|||
/* Define to 1 if you have the winsock.h header file. */ |
|||
/* #undef HAVE_WINSOCK_H */ |
|||
|
|||
/* Define to 1 if you have the writev function. */ |
|||
#define HAVE_WRITEV 1 |
|||
|
|||
/* Define to 1 if you have the ws2tcpip.h header file. */ |
|||
/* #undef HAVE_WS2TCPIP_H */ |
|||
|
|||
/* Define to the sub-directory in which libtool stores uninstalled libraries.
|
|||
*/ |
|||
#define LT_OBJDIR ".libs/" |
|||
|
|||
/* Define to 1 if you are building a native Windows target. */ |
|||
/* #undef NATIVE_WINDOWS */ |
|||
|
|||
/* Define to 1 if you need the malloc.h header file even with stdlib.h */ |
|||
/* #undef NEED_MALLOC_H */ |
|||
|
|||
/* Define to 1 if you need the memory.h header file even with stdlib.h */ |
|||
/* #undef NEED_MEMORY_H */ |
|||
|
|||
/* Define to 1 if _REENTRANT preprocessor symbol must be defined. */ |
|||
/* #undef NEED_REENTRANT */ |
|||
|
|||
/* Define to 1 if _THREAD_SAFE preprocessor symbol must be defined. */ |
|||
/* #undef NEED_THREAD_SAFE */ |
|||
|
|||
/* Define to 1 if your C compiler doesn't accept -c and -o together. */ |
|||
/* #undef NO_MINUS_C_MINUS_O */ |
|||
|
|||
/* cpu-machine-OS */ |
|||
#define OS "i686-pc-linux-gnu" |
|||
|
|||
/* Name of package */ |
|||
#define PACKAGE "c-ares" |
|||
|
|||
/* Define to the address where bug reports for this package should be sent. */ |
|||
#define PACKAGE_BUGREPORT "c-ares mailing list => http://cool.haxx.se/mailman/listinfo/c-ares"
|
|||
|
|||
/* Define to the full name of this package. */ |
|||
#define PACKAGE_NAME "c-ares" |
|||
|
|||
/* Define to the full name and version of this package. */ |
|||
#define PACKAGE_STRING "c-ares 1.7.1" |
|||
|
|||
/* Define to the one symbol short name of this package. */ |
|||
#define PACKAGE_TARNAME "c-ares" |
|||
|
|||
/* Define to the home page for this package. */ |
|||
#define PACKAGE_URL "" |
|||
|
|||
/* Define to the version of this package. */ |
|||
#define PACKAGE_VERSION "1.7.1" |
|||
|
|||
/* a suitable file/device to read random data from */ |
|||
#define RANDOM_FILE "/dev/urandom" |
|||
|
|||
/* Define to the type of arg 1 for recvfrom. */ |
|||
#define RECVFROM_TYPE_ARG1 int |
|||
|
|||
/* Define to the type pointed by arg 2 for recvfrom. */ |
|||
#define RECVFROM_TYPE_ARG2 void |
|||
|
|||
/* Define to 1 if the type pointed by arg 2 for recvfrom is void. */ |
|||
#define RECVFROM_TYPE_ARG2_IS_VOID 1 |
|||
|
|||
/* Define to the type of arg 3 for recvfrom. */ |
|||
#define RECVFROM_TYPE_ARG3 size_t |
|||
|
|||
/* Define to the type of arg 4 for recvfrom. */ |
|||
#define RECVFROM_TYPE_ARG4 int |
|||
|
|||
/* Define to the type pointed by arg 5 for recvfrom. */ |
|||
#define RECVFROM_TYPE_ARG5 struct sockaddr |
|||
|
|||
/* Define to 1 if the type pointed by arg 5 for recvfrom is void. */ |
|||
/* #undef RECVFROM_TYPE_ARG5_IS_VOID */ |
|||
|
|||
/* Define to the type pointed by arg 6 for recvfrom. */ |
|||
#define RECVFROM_TYPE_ARG6 socklen_t |
|||
|
|||
/* Define to 1 if the type pointed by arg 6 for recvfrom is void. */ |
|||
/* #undef RECVFROM_TYPE_ARG6_IS_VOID */ |
|||
|
|||
/* Define to the function return type for recvfrom. */ |
|||
#define RECVFROM_TYPE_RETV int |
|||
|
|||
/* Define to the type of arg 1 for recv. */ |
|||
#define RECV_TYPE_ARG1 int |
|||
|
|||
/* Define to the type of arg 2 for recv. */ |
|||
#define RECV_TYPE_ARG2 void * |
|||
|
|||
/* Define to the type of arg 3 for recv. */ |
|||
#define RECV_TYPE_ARG3 size_t |
|||
|
|||
/* Define to the type of arg 4 for recv. */ |
|||
#define RECV_TYPE_ARG4 int |
|||
|
|||
/* Define to the function return type for recv. */ |
|||
#define RECV_TYPE_RETV int |
|||
|
|||
/* Define as the return type of signal handlers (`int' or `void'). */ |
|||
#define RETSIGTYPE void |
|||
|
|||
/* Define to the type qualifier of arg 2 for send. */ |
|||
#define SEND_QUAL_ARG2 const |
|||
|
|||
/* Define to the type of arg 1 for send. */ |
|||
#define SEND_TYPE_ARG1 int |
|||
|
|||
/* Define to the type of arg 2 for send. */ |
|||
#define SEND_TYPE_ARG2 void * |
|||
|
|||
/* Define to the type of arg 3 for send. */ |
|||
#define SEND_TYPE_ARG3 size_t |
|||
|
|||
/* Define to the type of arg 4 for send. */ |
|||
#define SEND_TYPE_ARG4 int |
|||
|
|||
/* Define to the function return type for send. */ |
|||
#define SEND_TYPE_RETV int |
|||
|
|||
/* The size of `int', as computed by sizeof. */ |
|||
#define SIZEOF_INT 4 |
|||
|
|||
/* The size of `long', as computed by sizeof. */ |
|||
#define SIZEOF_LONG 4 |
|||
|
|||
/* The size of `size_t', as computed by sizeof. */ |
|||
#define SIZEOF_SIZE_T 4 |
|||
|
|||
/* The size of `struct in6_addr', as computed by sizeof. */ |
|||
#define SIZEOF_STRUCT_IN6_ADDR 16 |
|||
|
|||
/* The size of `struct in_addr', as computed by sizeof. */ |
|||
#define SIZEOF_STRUCT_IN_ADDR 4 |
|||
|
|||
/* The size of `time_t', as computed by sizeof. */ |
|||
#define SIZEOF_TIME_T 4 |
|||
|
|||
/* Define to 1 if you have the ANSI C header files. */ |
|||
#define STDC_HEADERS 1 |
|||
|
|||
/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */ |
|||
#define TIME_WITH_SYS_TIME 1 |
|||
|
|||
/* Define to disable non-blocking sockets. */ |
|||
/* #undef USE_BLOCKING_SOCKETS */ |
|||
|
|||
/* Version number of package */ |
|||
#define VERSION "1.7.1" |
|||
|
|||
/* Define to avoid automatic inclusion of winsock.h */ |
|||
/* #undef WIN32_LEAN_AND_MEAN */ |
|||
|
|||
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
|
|||
significant byte first (like Motorola and SPARC, unlike Intel). */ |
|||
#if defined AC_APPLE_UNIVERSAL_BUILD |
|||
# if defined __BIG_ENDIAN__ |
|||
# define WORDS_BIGENDIAN 1 |
|||
# endif |
|||
#else |
|||
# ifndef WORDS_BIGENDIAN |
|||
/* # undef WORDS_BIGENDIAN */ |
|||
# endif |
|||
#endif |
|||
|
|||
/* Define to 1 if OS is AIX. */ |
|||
#ifndef _ALL_SOURCE |
|||
/* # undef _ALL_SOURCE */ |
|||
#endif |
|||
|
|||
/* Number of bits in a file offset, on hosts where this is settable. */ |
|||
#define _FILE_OFFSET_BITS 64 |
|||
|
|||
/* Define for large files, on AIX-style hosts. */ |
|||
/* #undef _LARGE_FILES */ |
|||
|
|||
/* Define to empty if `const' does not conform to ANSI C. */ |
|||
/* #undef const */ |
|||
|
|||
/* Type to use in place of in_addr_t when system does not provide it. */ |
|||
/* #undef in_addr_t */ |
|||
|
|||
/* Define to `unsigned int' if <sys/types.h> does not define. */ |
|||
/* #undef size_t */ |
|||
|
|||
/* the signed version of size_t */ |
|||
/* #undef ssize_t */ |
@ -0,0 +1,513 @@ |
|||
/* ares_config.h. Generated from ares_config.h.in by configure. */ |
|||
/* ares_config.h.in. Generated from configure.ac by autoheader. */ |
|||
|
|||
/* Define if building universal (internal helper macro) */ |
|||
/* #undef AC_APPLE_UNIVERSAL_BUILD */ |
|||
|
|||
/* define this if ares is built for a big endian system */ |
|||
/* #undef ARES_BIG_ENDIAN */ |
|||
|
|||
/* when building as static part of libcurl */ |
|||
/* #undef BUILDING_LIBCURL */ |
|||
|
|||
/* when building c-ares library */ |
|||
/* #undef CARES_BUILDING_LIBRARY */ |
|||
|
|||
/* when not building a shared library */ |
|||
/* #undef CARES_STATICLIB */ |
|||
|
|||
/* Define to 1 to enable hiding of library internal symbols. */ |
|||
/* #undef CARES_SYMBOL_HIDING */ |
|||
|
|||
/* Definition to make a library symbol externally visible. */ |
|||
/* #undef CARES_SYMBOL_SCOPE_EXTERN */ |
|||
|
|||
/* if a /etc/inet dir is being used */ |
|||
/* #undef ETC_INET */ |
|||
|
|||
/* Define to the type qualifier of arg 1 for getnameinfo. */ |
|||
#define GETNAMEINFO_QUAL_ARG1 const |
|||
|
|||
/* Define to the type of arg 1 for getnameinfo. */ |
|||
#define GETNAMEINFO_TYPE_ARG1 struct sockaddr * |
|||
|
|||
/* Define to the type of arg 2 for getnameinfo. */ |
|||
#define GETNAMEINFO_TYPE_ARG2 socklen_t |
|||
|
|||
/* Define to the type of args 4 and 6 for getnameinfo. */ |
|||
#define GETNAMEINFO_TYPE_ARG46 size_t |
|||
|
|||
/* Define to the type of arg 7 for getnameinfo. */ |
|||
#define GETNAMEINFO_TYPE_ARG7 int |
|||
|
|||
/* Specifies the number of arguments to getservbyport_r */ |
|||
#define GETSERVBYPORT_R_ARGS 4 |
|||
|
|||
/* Specifies the size of the buffer to pass to getservbyport_r */ |
|||
#define GETSERVBYPORT_R_BUFSIZE sizeof(struct servent_data) |
|||
|
|||
/* Define to 1 if you have AF_INET6. */ |
|||
#define HAVE_AF_INET6 1 |
|||
|
|||
/* Define to 1 if you have the <arpa/inet.h> header file. */ |
|||
#define HAVE_ARPA_INET_H 1 |
|||
|
|||
/* Define to 1 if you have the <arpa/nameser_compat.h> header file. */ |
|||
/* #undef HAVE_ARPA_NAMESER_COMPAT_H */ |
|||
|
|||
/* Define to 1 if you have the <arpa/nameser.h> header file. */ |
|||
#define HAVE_ARPA_NAMESER_H 1 |
|||
|
|||
/* Define to 1 if you have the <assert.h> header file. */ |
|||
#define HAVE_ASSERT_H 1 |
|||
|
|||
/* Define to 1 if you have the `bitncmp' function. */ |
|||
/* #undef HAVE_BITNCMP */ |
|||
|
|||
/* Define to 1 if bool is an available type. */ |
|||
#define HAVE_BOOL_T 1 |
|||
|
|||
/* Define to 1 if you have the clock_gettime function and monotonic timer. */ |
|||
#define HAVE_CLOCK_GETTIME_MONOTONIC 1 |
|||
|
|||
/* Define to 1 if you have the closesocket function. */ |
|||
/* #undef HAVE_CLOSESOCKET */ |
|||
|
|||
/* Define to 1 if you have the CloseSocket camel case function. */ |
|||
/* #undef HAVE_CLOSESOCKET_CAMEL */ |
|||
|
|||
/* Define to 1 if you have the connect function. */ |
|||
#define HAVE_CONNECT 1 |
|||
|
|||
/* Define to 1 if you have the <dlfcn.h> header file. */ |
|||
#define HAVE_DLFCN_H 1 |
|||
|
|||
/* Define to 1 if you have the <errno.h> header file. */ |
|||
#define HAVE_ERRNO_H 1 |
|||
|
|||
/* Define to 1 if you have the fcntl function. */ |
|||
#define HAVE_FCNTL 1 |
|||
|
|||
/* Define to 1 if you have the <fcntl.h> header file. */ |
|||
#define HAVE_FCNTL_H 1 |
|||
|
|||
/* Define to 1 if you have a working fcntl O_NONBLOCK function. */ |
|||
#define HAVE_FCNTL_O_NONBLOCK 1 |
|||
|
|||
/* Define to 1 if you have the freeaddrinfo function. */ |
|||
#define HAVE_FREEADDRINFO 1 |
|||
|
|||
/* Define to 1 if you have a working getaddrinfo function. */ |
|||
#define HAVE_GETADDRINFO 1 |
|||
|
|||
/* Define to 1 if the getaddrinfo function is threadsafe. */ |
|||
/* #undef HAVE_GETADDRINFO_THREADSAFE */ |
|||
|
|||
/* Define to 1 if you have the gethostbyaddr function. */ |
|||
#define HAVE_GETHOSTBYADDR 1 |
|||
|
|||
/* Define to 1 if you have the gethostbyname function. */ |
|||
#define HAVE_GETHOSTBYNAME 1 |
|||
|
|||
/* Define to 1 if you have the gethostname function. */ |
|||
#define HAVE_GETHOSTNAME 1 |
|||
|
|||
/* Define to 1 if you have the getnameinfo function. */ |
|||
#define HAVE_GETNAMEINFO 1 |
|||
|
|||
/* Define to 1 if you have the getservbyport_r function. */ |
|||
#define HAVE_GETSERVBYPORT_R 1 |
|||
|
|||
/* Define to 1 if you have the `gettimeofday' function. */ |
|||
#define HAVE_GETTIMEOFDAY 1 |
|||
|
|||
/* Define to 1 if you have the `if_indextoname' function. */ |
|||
#define HAVE_IF_INDEXTONAME 1 |
|||
|
|||
/* Define to 1 if you have the `inet_net_pton' function. */ |
|||
#define HAVE_INET_NET_PTON 1 |
|||
|
|||
/* Define to 1 if inet_net_pton supports IPv6. */ |
|||
/* #undef HAVE_INET_NET_PTON_IPV6 */ |
|||
|
|||
/* Define to 1 if you have a IPv6 capable working inet_ntop function. */ |
|||
#define HAVE_INET_NTOP 1 |
|||
|
|||
/* Define to 1 if you have a IPv6 capable working inet_pton function. */ |
|||
#define HAVE_INET_PTON 1 |
|||
|
|||
/* Define to 1 if you have the <inttypes.h> header file. */ |
|||
#define HAVE_INTTYPES_H 1 |
|||
|
|||
/* Define to 1 if you have the ioctl function. */ |
|||
#define HAVE_IOCTL 1 |
|||
|
|||
/* Define to 1 if you have the ioctlsocket function. */ |
|||
/* #undef HAVE_IOCTLSOCKET */ |
|||
|
|||
/* Define to 1 if you have the IoctlSocket camel case function. */ |
|||
/* #undef HAVE_IOCTLSOCKET_CAMEL */ |
|||
|
|||
/* Define to 1 if you have a working IoctlSocket camel case FIONBIO function.
|
|||
*/ |
|||
/* #undef HAVE_IOCTLSOCKET_CAMEL_FIONBIO */ |
|||
|
|||
/* Define to 1 if you have a working ioctlsocket FIONBIO function. */ |
|||
/* #undef HAVE_IOCTLSOCKET_FIONBIO */ |
|||
|
|||
/* Define to 1 if you have a working ioctl FIONBIO function. */ |
|||
#define HAVE_IOCTL_FIONBIO 1 |
|||
|
|||
/* Define to 1 if you have a working ioctl SIOCGIFADDR function. */ |
|||
#define HAVE_IOCTL_SIOCGIFADDR 1 |
|||
|
|||
/* Define to 1 if you have the `resolve' library (-lresolve). */ |
|||
/* #undef HAVE_LIBRESOLVE */ |
|||
|
|||
/* Define to 1 if you have the <limits.h> header file. */ |
|||
#define HAVE_LIMITS_H 1 |
|||
|
|||
/* if your compiler supports LL */ |
|||
#define HAVE_LL 1 |
|||
|
|||
/* Define to 1 if the compiler supports the 'long long' data type. */ |
|||
#define HAVE_LONGLONG 1 |
|||
|
|||
/* Define to 1 if you have the malloc.h header file. */ |
|||
#define HAVE_MALLOC_H 1 |
|||
|
|||
/* Define to 1 if you have the memory.h header file. */ |
|||
#define HAVE_MEMORY_H 1 |
|||
|
|||
/* Define to 1 if you have the MSG_NOSIGNAL flag. */ |
|||
/* #undef HAVE_MSG_NOSIGNAL */ |
|||
|
|||
/* Define to 1 if you have the <netdb.h> header file. */ |
|||
#define HAVE_NETDB_H 1 |
|||
|
|||
/* Define to 1 if you have the <netinet/in.h> header file. */ |
|||
#define HAVE_NETINET_IN_H 1 |
|||
|
|||
/* Define to 1 if you have the <netinet/tcp.h> header file. */ |
|||
#define HAVE_NETINET_TCP_H 1 |
|||
|
|||
/* Define to 1 if you have the <net/if.h> header file. */ |
|||
#define HAVE_NET_IF_H 1 |
|||
|
|||
/* Define to 1 if you have PF_INET6. */ |
|||
#define HAVE_PF_INET6 1 |
|||
|
|||
/* Define to 1 if you have the recv function. */ |
|||
#define HAVE_RECV 1 |
|||
|
|||
/* Define to 1 if you have the recvfrom function. */ |
|||
#define HAVE_RECVFROM 1 |
|||
|
|||
/* Define to 1 if you have the send function. */ |
|||
#define HAVE_SEND 1 |
|||
|
|||
/* Define to 1 if you have the setsockopt function. */ |
|||
#define HAVE_SETSOCKOPT 1 |
|||
|
|||
/* Define to 1 if you have a working setsockopt SO_NONBLOCK function. */ |
|||
/* #undef HAVE_SETSOCKOPT_SO_NONBLOCK */ |
|||
|
|||
/* Define to 1 if you have the <signal.h> header file. */ |
|||
#define HAVE_SIGNAL_H 1 |
|||
|
|||
/* Define to 1 if sig_atomic_t is an available typedef. */ |
|||
#define HAVE_SIG_ATOMIC_T 1 |
|||
|
|||
/* Define to 1 if sig_atomic_t is already defined as volatile. */ |
|||
/* #undef HAVE_SIG_ATOMIC_T_VOLATILE */ |
|||
|
|||
/* Define to 1 if your struct sockaddr_in6 has sin6_scope_id. */ |
|||
#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1 |
|||
|
|||
/* Define to 1 if you have the socket function. */ |
|||
#define HAVE_SOCKET 1 |
|||
|
|||
/* Define to 1 if you have the <socket.h> header file. */ |
|||
/* #undef HAVE_SOCKET_H */ |
|||
|
|||
/* Define to 1 if you have the <stdbool.h> header file. */ |
|||
#define HAVE_STDBOOL_H 1 |
|||
|
|||
/* Define to 1 if you have the <stdint.h> header file. */ |
|||
#define HAVE_STDINT_H 1 |
|||
|
|||
/* Define to 1 if you have the <stdlib.h> header file. */ |
|||
#define HAVE_STDLIB_H 1 |
|||
|
|||
/* Define to 1 if you have the strcasecmp function. */ |
|||
#define HAVE_STRCASECMP 1 |
|||
|
|||
/* Define to 1 if you have the strcmpi function. */ |
|||
/* #undef HAVE_STRCMPI */ |
|||
|
|||
/* Define to 1 if you have the strdup function. */ |
|||
#define HAVE_STRDUP 1 |
|||
|
|||
/* Define to 1 if you have the stricmp function. */ |
|||
/* #undef HAVE_STRICMP */ |
|||
|
|||
/* Define to 1 if you have the <strings.h> header file. */ |
|||
#define HAVE_STRINGS_H 1 |
|||
|
|||
/* Define to 1 if you have the <string.h> header file. */ |
|||
#define HAVE_STRING_H 1 |
|||
|
|||
/* Define to 1 if you have the strncasecmp function. */ |
|||
#define HAVE_STRNCASECMP 1 |
|||
|
|||
/* Define to 1 if you have the strncmpi function. */ |
|||
/* #undef HAVE_STRNCMPI */ |
|||
|
|||
/* Define to 1 if you have the strnicmp function. */ |
|||
/* #undef HAVE_STRNICMP */ |
|||
|
|||
/* Define to 1 if you have the <stropts.h> header file. */ |
|||
/* #undef HAVE_STROPTS_H */ |
|||
|
|||
/* Define to 1 if you have struct addrinfo. */ |
|||
#define HAVE_STRUCT_ADDRINFO 1 |
|||
|
|||
/* Define to 1 if you have struct in6_addr. */ |
|||
#define HAVE_STRUCT_IN6_ADDR 1 |
|||
|
|||
/* Define to 1 if you have struct sockaddr_in6. */ |
|||
#define HAVE_STRUCT_SOCKADDR_IN6 1 |
|||
|
|||
/* if struct sockaddr_storage is defined */ |
|||
#define HAVE_STRUCT_SOCKADDR_STORAGE 1 |
|||
|
|||
/* Define to 1 if you have the timeval struct. */ |
|||
#define HAVE_STRUCT_TIMEVAL 1 |
|||
|
|||
/* Define to 1 if you have the <sys/ioctl.h> header file. */ |
|||
#define HAVE_SYS_IOCTL_H 1 |
|||
|
|||
/* Define to 1 if you have the <sys/param.h> header file. */ |
|||
#define HAVE_SYS_PARAM_H 1 |
|||
|
|||
/* Define to 1 if you have the <sys/select.h> header file. */ |
|||
#define HAVE_SYS_SELECT_H 1 |
|||
|
|||
/* Define to 1 if you have the <sys/socket.h> header file. */ |
|||
#define HAVE_SYS_SOCKET_H 1 |
|||
|
|||
/* Define to 1 if you have the <sys/stat.h> header file. */ |
|||
#define HAVE_SYS_STAT_H 1 |
|||
|
|||
/* Define to 1 if you have the <sys/time.h> header file. */ |
|||
#define HAVE_SYS_TIME_H 1 |
|||
|
|||
/* Define to 1 if you have the <sys/types.h> header file. */ |
|||
#define HAVE_SYS_TYPES_H 1 |
|||
|
|||
/* Define to 1 if you have the <sys/uio.h> header file. */ |
|||
#define HAVE_SYS_UIO_H 1 |
|||
|
|||
/* Define to 1 if you have the <time.h> header file. */ |
|||
#define HAVE_TIME_H 1 |
|||
|
|||
/* Define to 1 if you have the <unistd.h> header file. */ |
|||
#define HAVE_UNISTD_H 1 |
|||
|
|||
/* Define to 1 if you have the windows.h header file. */ |
|||
/* #undef HAVE_WINDOWS_H */ |
|||
|
|||
/* Define to 1 if you have the winsock2.h header file. */ |
|||
/* #undef HAVE_WINSOCK2_H */ |
|||
|
|||
/* Define to 1 if you have the winsock.h header file. */ |
|||
/* #undef HAVE_WINSOCK_H */ |
|||
|
|||
/* Define to 1 if you have the writev function. */ |
|||
#define HAVE_WRITEV 1 |
|||
|
|||
/* Define to 1 if you have the ws2tcpip.h header file. */ |
|||
/* #undef HAVE_WS2TCPIP_H */ |
|||
|
|||
/* Define to the sub-directory in which libtool stores uninstalled libraries.
|
|||
*/ |
|||
#define LT_OBJDIR ".libs/" |
|||
|
|||
/* Define to 1 if you are building a native Windows target. */ |
|||
/* #undef NATIVE_WINDOWS */ |
|||
|
|||
/* Define to 1 if you need the malloc.h header file even with stdlib.h */ |
|||
/* #undef NEED_MALLOC_H */ |
|||
|
|||
/* Define to 1 if you need the memory.h header file even with stdlib.h */ |
|||
/* #undef NEED_MEMORY_H */ |
|||
|
|||
/* Define to 1 if _REENTRANT preprocessor symbol must be defined. */ |
|||
/* #undef NEED_REENTRANT */ |
|||
|
|||
/* Define to 1 if _THREAD_SAFE preprocessor symbol must be defined. */ |
|||
/* #undef NEED_THREAD_SAFE */ |
|||
|
|||
/* Define to 1 if your C compiler doesn't accept -c and -o together. */ |
|||
/* #undef NO_MINUS_C_MINUS_O */ |
|||
|
|||
/* cpu-machine-OS */ |
|||
#define OS "i386-unknown-openbsd4.7" |
|||
|
|||
/* Name of package */ |
|||
#define PACKAGE "c-ares" |
|||
|
|||
/* Define to the address where bug reports for this package should be sent. */ |
|||
#define PACKAGE_BUGREPORT "c-ares mailing list => http://cool.haxx.se/mailman/listinfo/c-ares"
|
|||
|
|||
/* Define to the full name of this package. */ |
|||
#define PACKAGE_NAME "c-ares" |
|||
|
|||
/* Define to the full name and version of this package. */ |
|||
#define PACKAGE_STRING "c-ares 1.7.1" |
|||
|
|||
/* Define to the one symbol short name of this package. */ |
|||
#define PACKAGE_TARNAME "c-ares" |
|||
|
|||
/* Define to the home page for this package. */ |
|||
#define PACKAGE_URL "" |
|||
|
|||
/* Define to the version of this package. */ |
|||
#define PACKAGE_VERSION "1.7.1" |
|||
|
|||
/* a suitable file/device to read random data from */ |
|||
#define RANDOM_FILE "/dev/urandom" |
|||
|
|||
/* Define to the type of arg 1 for recvfrom. */ |
|||
#define RECVFROM_TYPE_ARG1 int |
|||
|
|||
/* Define to the type pointed by arg 2 for recvfrom. */ |
|||
#define RECVFROM_TYPE_ARG2 void |
|||
|
|||
/* Define to 1 if the type pointed by arg 2 for recvfrom is void. */ |
|||
#define RECVFROM_TYPE_ARG2_IS_VOID 1 |
|||
|
|||
/* Define to the type of arg 3 for recvfrom. */ |
|||
#define RECVFROM_TYPE_ARG3 size_t |
|||
|
|||
/* Define to the type of arg 4 for recvfrom. */ |
|||
#define RECVFROM_TYPE_ARG4 int |
|||
|
|||
/* Define to the type pointed by arg 5 for recvfrom. */ |
|||
#define RECVFROM_TYPE_ARG5 struct sockaddr |
|||
|
|||
/* Define to 1 if the type pointed by arg 5 for recvfrom is void. */ |
|||
/* #undef RECVFROM_TYPE_ARG5_IS_VOID */ |
|||
|
|||
/* Define to the type pointed by arg 6 for recvfrom. */ |
|||
#define RECVFROM_TYPE_ARG6 socklen_t |
|||
|
|||
/* Define to 1 if the type pointed by arg 6 for recvfrom is void. */ |
|||
/* #undef RECVFROM_TYPE_ARG6_IS_VOID */ |
|||
|
|||
/* Define to the function return type for recvfrom. */ |
|||
#define RECVFROM_TYPE_RETV int |
|||
|
|||
/* Define to the type of arg 1 for recv. */ |
|||
#define RECV_TYPE_ARG1 int |
|||
|
|||
/* Define to the type of arg 2 for recv. */ |
|||
#define RECV_TYPE_ARG2 void * |
|||
|
|||
/* Define to the type of arg 3 for recv. */ |
|||
#define RECV_TYPE_ARG3 size_t |
|||
|
|||
/* Define to the type of arg 4 for recv. */ |
|||
#define RECV_TYPE_ARG4 int |
|||
|
|||
/* Define to the function return type for recv. */ |
|||
#define RECV_TYPE_RETV int |
|||
|
|||
/* Define as the return type of signal handlers (`int' or `void'). */ |
|||
#define RETSIGTYPE void |
|||
|
|||
/* Define to the type qualifier of arg 2 for send. */ |
|||
#define SEND_QUAL_ARG2 const |
|||
|
|||
/* Define to the type of arg 1 for send. */ |
|||
#define SEND_TYPE_ARG1 int |
|||
|
|||
/* Define to the type of arg 2 for send. */ |
|||
#define SEND_TYPE_ARG2 void * |
|||
|
|||
/* Define to the type of arg 3 for send. */ |
|||
#define SEND_TYPE_ARG3 size_t |
|||
|
|||
/* Define to the type of arg 4 for send. */ |
|||
#define SEND_TYPE_ARG4 int |
|||
|
|||
/* Define to the function return type for send. */ |
|||
#define SEND_TYPE_RETV int |
|||
|
|||
/* The size of `int', as computed by sizeof. */ |
|||
#define SIZEOF_INT 4 |
|||
|
|||
/* The size of `long', as computed by sizeof. */ |
|||
#define SIZEOF_LONG 4 |
|||
|
|||
/* The size of `size_t', as computed by sizeof. */ |
|||
#define SIZEOF_SIZE_T 4 |
|||
|
|||
/* The size of `struct in6_addr', as computed by sizeof. */ |
|||
#define SIZEOF_STRUCT_IN6_ADDR 16 |
|||
|
|||
/* The size of `struct in_addr', as computed by sizeof. */ |
|||
#define SIZEOF_STRUCT_IN_ADDR 4 |
|||
|
|||
/* The size of `time_t', as computed by sizeof. */ |
|||
#define SIZEOF_TIME_T 4 |
|||
|
|||
/* Define to 1 if you have the ANSI C header files. */ |
|||
#define STDC_HEADERS 1 |
|||
|
|||
/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */ |
|||
#define TIME_WITH_SYS_TIME 1 |
|||
|
|||
/* Define to disable non-blocking sockets. */ |
|||
/* #undef USE_BLOCKING_SOCKETS */ |
|||
|
|||
/* Version number of package */ |
|||
#define VERSION "1.7.1" |
|||
|
|||
/* Define to avoid automatic inclusion of winsock.h */ |
|||
/* #undef WIN32_LEAN_AND_MEAN */ |
|||
|
|||
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
|
|||
significant byte first (like Motorola and SPARC, unlike Intel). */ |
|||
#if defined AC_APPLE_UNIVERSAL_BUILD |
|||
# if defined __BIG_ENDIAN__ |
|||
# define WORDS_BIGENDIAN 1 |
|||
# endif |
|||
#else |
|||
# ifndef WORDS_BIGENDIAN |
|||
/* # undef WORDS_BIGENDIAN */ |
|||
# endif |
|||
#endif |
|||
|
|||
/* Define to 1 if OS is AIX. */ |
|||
#ifndef _ALL_SOURCE |
|||
/* # undef _ALL_SOURCE */ |
|||
#endif |
|||
|
|||
/* Number of bits in a file offset, on hosts where this is settable. */ |
|||
/* #undef _FILE_OFFSET_BITS */ |
|||
|
|||
/* Define for large files, on AIX-style hosts. */ |
|||
/* #undef _LARGE_FILES */ |
|||
|
|||
/* Define to empty if `const' does not conform to ANSI C. */ |
|||
/* #undef const */ |
|||
|
|||
/* Type to use in place of in_addr_t when system does not provide it. */ |
|||
/* #undef in_addr_t */ |
|||
|
|||
/* Define to `unsigned int' if <sys/types.h> does not define. */ |
|||
/* #undef size_t */ |
|||
|
|||
/* the signed version of size_t */ |
|||
/* #undef ssize_t */ |
@ -0,0 +1,513 @@ |
|||
/* ares_config.h. Generated from ares_config.h.in by configure. */ |
|||
/* ares_config.h.in. Generated from configure.ac by autoheader. */ |
|||
|
|||
/* Define if building universal (internal helper macro) */ |
|||
/* #undef AC_APPLE_UNIVERSAL_BUILD */ |
|||
|
|||
/* define this if ares is built for a big endian system */ |
|||
/* #undef ARES_BIG_ENDIAN */ |
|||
|
|||
/* when building as static part of libcurl */ |
|||
/* #undef BUILDING_LIBCURL */ |
|||
|
|||
/* when building c-ares library */ |
|||
/* #undef CARES_BUILDING_LIBRARY */ |
|||
|
|||
/* when not building a shared library */ |
|||
#define CARES_STATICLIB 1 |
|||
|
|||
/* Define to 1 to enable hiding of library internal symbols. */ |
|||
/* #undef CARES_SYMBOL_HIDING */ |
|||
|
|||
/* Definition to make a library symbol externally visible. */ |
|||
/* #undef CARES_SYMBOL_SCOPE_EXTERN */ |
|||
|
|||
/* if a /etc/inet dir is being used */ |
|||
/* #undef ETC_INET */ |
|||
|
|||
/* Define to the type qualifier of arg 1 for getnameinfo. */ |
|||
/* #undef GETNAMEINFO_QUAL_ARG1 */ |
|||
|
|||
/* Define to the type of arg 1 for getnameinfo. */ |
|||
/* #undef GETNAMEINFO_TYPE_ARG1 */ |
|||
|
|||
/* Define to the type of arg 2 for getnameinfo. */ |
|||
/* #undef GETNAMEINFO_TYPE_ARG2 */ |
|||
|
|||
/* Define to the type of args 4 and 6 for getnameinfo. */ |
|||
/* #undef GETNAMEINFO_TYPE_ARG46 */ |
|||
|
|||
/* Define to the type of arg 7 for getnameinfo. */ |
|||
/* #undef GETNAMEINFO_TYPE_ARG7 */ |
|||
|
|||
/* Specifies the number of arguments to getservbyport_r */ |
|||
/* #undef GETSERVBYPORT_R_ARGS */ |
|||
|
|||
/* Specifies the size of the buffer to pass to getservbyport_r */ |
|||
/* #undef GETSERVBYPORT_R_BUFSIZE */ |
|||
|
|||
/* Define to 1 if you have AF_INET6. */ |
|||
#define HAVE_AF_INET6 1 |
|||
|
|||
/* Define to 1 if you have the <arpa/inet.h> header file. */ |
|||
/* #undef HAVE_ARPA_INET_H */ |
|||
|
|||
/* Define to 1 if you have the <arpa/nameser_compat.h> header file. */ |
|||
/* #undef HAVE_ARPA_NAMESER_COMPAT_H */ |
|||
|
|||
/* Define to 1 if you have the <arpa/nameser.h> header file. */ |
|||
/* #undef HAVE_ARPA_NAMESER_H */ |
|||
|
|||
/* Define to 1 if you have the <assert.h> header file. */ |
|||
#define HAVE_ASSERT_H 1 |
|||
|
|||
/* Define to 1 if you have the `bitncmp' function. */ |
|||
/* #undef HAVE_BITNCMP */ |
|||
|
|||
/* Define to 1 if bool is an available type. */ |
|||
#define HAVE_BOOL_T 1 |
|||
|
|||
/* Define to 1 if you have the clock_gettime function and monotonic timer. */ |
|||
/* #undef HAVE_CLOCK_GETTIME_MONOTONIC */ |
|||
|
|||
/* Define to 1 if you have the closesocket function. */ |
|||
#define HAVE_CLOSESOCKET 1 |
|||
|
|||
/* Define to 1 if you have the CloseSocket camel case function. */ |
|||
/* #undef HAVE_CLOSESOCKET_CAMEL */ |
|||
|
|||
/* Define to 1 if you have the connect function. */ |
|||
#define HAVE_CONNECT 1 |
|||
|
|||
/* Define to 1 if you have the <dlfcn.h> header file. */ |
|||
/* #undef HAVE_DLFCN_H */ |
|||
|
|||
/* Define to 1 if you have the <errno.h> header file. */ |
|||
#define HAVE_ERRNO_H 1 |
|||
|
|||
/* Define to 1 if you have the fcntl function. */ |
|||
/* #undef HAVE_FCNTL */ |
|||
|
|||
/* Define to 1 if you have the <fcntl.h> header file. */ |
|||
#define HAVE_FCNTL_H 1 |
|||
|
|||
/* Define to 1 if you have a working fcntl O_NONBLOCK function. */ |
|||
/* #undef HAVE_FCNTL_O_NONBLOCK */ |
|||
|
|||
/* Define to 1 if you have the freeaddrinfo function. */ |
|||
/* #undef HAVE_FREEADDRINFO */ |
|||
|
|||
/* Define to 1 if you have a working getaddrinfo function. */ |
|||
/* #undef HAVE_GETADDRINFO */ |
|||
|
|||
/* Define to 1 if the getaddrinfo function is threadsafe. */ |
|||
/* #undef HAVE_GETADDRINFO_THREADSAFE */ |
|||
|
|||
/* Define to 1 if you have the gethostbyaddr function. */ |
|||
#define HAVE_GETHOSTBYADDR 1 |
|||
|
|||
/* Define to 1 if you have the gethostbyname function. */ |
|||
#define HAVE_GETHOSTBYNAME 1 |
|||
|
|||
/* Define to 1 if you have the gethostname function. */ |
|||
#define HAVE_GETHOSTNAME 1 |
|||
|
|||
/* Define to 1 if you have the getnameinfo function. */ |
|||
/* #undef HAVE_GETNAMEINFO */ |
|||
|
|||
/* Define to 1 if you have the getservbyport_r function. */ |
|||
/* #undef HAVE_GETSERVBYPORT_R */ |
|||
|
|||
/* Define to 1 if you have the `gettimeofday' function. */ |
|||
#define HAVE_GETTIMEOFDAY 1 |
|||
|
|||
/* Define to 1 if you have the `if_indextoname' function. */ |
|||
/* #undef HAVE_IF_INDEXTONAME */ |
|||
|
|||
/* Define to 1 if you have the `inet_net_pton' function. */ |
|||
/* #undef HAVE_INET_NET_PTON */ |
|||
|
|||
/* Define to 1 if inet_net_pton supports IPv6. */ |
|||
/* #undef HAVE_INET_NET_PTON_IPV6 */ |
|||
|
|||
/* Define to 1 if you have a IPv6 capable working inet_ntop function. */ |
|||
/* #undef HAVE_INET_NTOP */ |
|||
|
|||
/* Define to 1 if you have a IPv6 capable working inet_pton function. */ |
|||
/* #undef HAVE_INET_PTON */ |
|||
|
|||
/* Define to 1 if you have the <inttypes.h> header file. */ |
|||
#define HAVE_INTTYPES_H 1 |
|||
|
|||
/* Define to 1 if you have the ioctl function. */ |
|||
/* #undef HAVE_IOCTL */ |
|||
|
|||
/* Define to 1 if you have the ioctlsocket function. */ |
|||
#define HAVE_IOCTLSOCKET 1 |
|||
|
|||
/* Define to 1 if you have the IoctlSocket camel case function. */ |
|||
/* #undef HAVE_IOCTLSOCKET_CAMEL */ |
|||
|
|||
/* Define to 1 if you have a working IoctlSocket camel case FIONBIO function.
|
|||
*/ |
|||
/* #undef HAVE_IOCTLSOCKET_CAMEL_FIONBIO */ |
|||
|
|||
/* Define to 1 if you have a working ioctlsocket FIONBIO function. */ |
|||
#define HAVE_IOCTLSOCKET_FIONBIO 1 |
|||
|
|||
/* Define to 1 if you have a working ioctl FIONBIO function. */ |
|||
/* #undef HAVE_IOCTL_FIONBIO */ |
|||
|
|||
/* Define to 1 if you have a working ioctl SIOCGIFADDR function. */ |
|||
/* #undef HAVE_IOCTL_SIOCGIFADDR */ |
|||
|
|||
/* Define to 1 if you have the `resolve' library (-lresolve). */ |
|||
/* #undef HAVE_LIBRESOLVE */ |
|||
|
|||
/* Define to 1 if you have the <limits.h> header file. */ |
|||
#define HAVE_LIMITS_H 1 |
|||
|
|||
/* if your compiler supports LL */ |
|||
#define HAVE_LL 1 |
|||
|
|||
/* Define to 1 if the compiler supports the 'long long' data type. */ |
|||
#define HAVE_LONGLONG 1 |
|||
|
|||
/* Define to 1 if you have the malloc.h header file. */ |
|||
#define HAVE_MALLOC_H 1 |
|||
|
|||
/* Define to 1 if you have the memory.h header file. */ |
|||
#define HAVE_MEMORY_H 1 |
|||
|
|||
/* Define to 1 if you have the MSG_NOSIGNAL flag. */ |
|||
/* #undef HAVE_MSG_NOSIGNAL */ |
|||
|
|||
/* Define to 1 if you have the <netdb.h> header file. */ |
|||
/* #undef HAVE_NETDB_H */ |
|||
|
|||
/* Define to 1 if you have the <netinet/in.h> header file. */ |
|||
/* #undef HAVE_NETINET_IN_H */ |
|||
|
|||
/* Define to 1 if you have the <netinet/tcp.h> header file. */ |
|||
/* #undef HAVE_NETINET_TCP_H */ |
|||
|
|||
/* Define to 1 if you have the <net/if.h> header file. */ |
|||
/* #undef HAVE_NET_IF_H */ |
|||
|
|||
/* Define to 1 if you have PF_INET6. */ |
|||
#define HAVE_PF_INET6 1 |
|||
|
|||
/* Define to 1 if you have the recv function. */ |
|||
#define HAVE_RECV 1 |
|||
|
|||
/* Define to 1 if you have the recvfrom function. */ |
|||
#define HAVE_RECVFROM 1 |
|||
|
|||
/* Define to 1 if you have the send function. */ |
|||
#define HAVE_SEND 1 |
|||
|
|||
/* Define to 1 if you have the setsockopt function. */ |
|||
#define HAVE_SETSOCKOPT 1 |
|||
|
|||
/* Define to 1 if you have a working setsockopt SO_NONBLOCK function. */ |
|||
/* #undef HAVE_SETSOCKOPT_SO_NONBLOCK */ |
|||
|
|||
/* Define to 1 if you have the <signal.h> header file. */ |
|||
#define HAVE_SIGNAL_H 1 |
|||
|
|||
/* Define to 1 if sig_atomic_t is an available typedef. */ |
|||
#define HAVE_SIG_ATOMIC_T 1 |
|||
|
|||
/* Define to 1 if sig_atomic_t is already defined as volatile. */ |
|||
/* #undef HAVE_SIG_ATOMIC_T_VOLATILE */ |
|||
|
|||
/* Define to 1 if your struct sockaddr_in6 has sin6_scope_id. */ |
|||
#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1 |
|||
|
|||
/* Define to 1 if you have the socket function. */ |
|||
#define HAVE_SOCKET 1 |
|||
|
|||
/* Define to 1 if you have the <socket.h> header file. */ |
|||
/* #undef HAVE_SOCKET_H */ |
|||
|
|||
/* Define to 1 if you have the <stdbool.h> header file. */ |
|||
#define HAVE_STDBOOL_H 1 |
|||
|
|||
/* Define to 1 if you have the <stdint.h> header file. */ |
|||
#define HAVE_STDINT_H 1 |
|||
|
|||
/* Define to 1 if you have the <stdlib.h> header file. */ |
|||
#define HAVE_STDLIB_H 1 |
|||
|
|||
/* Define to 1 if you have the strcasecmp function. */ |
|||
#define HAVE_STRCASECMP 1 |
|||
|
|||
/* Define to 1 if you have the strcmpi function. */ |
|||
#define HAVE_STRCMPI 1 |
|||
|
|||
/* Define to 1 if you have the strdup function. */ |
|||
#define HAVE_STRDUP 1 |
|||
|
|||
/* Define to 1 if you have the stricmp function. */ |
|||
#define HAVE_STRICMP 1 |
|||
|
|||
/* Define to 1 if you have the <strings.h> header file. */ |
|||
#define HAVE_STRINGS_H 1 |
|||
|
|||
/* Define to 1 if you have the <string.h> header file. */ |
|||
#define HAVE_STRING_H 1 |
|||
|
|||
/* Define to 1 if you have the strncasecmp function. */ |
|||
#define HAVE_STRNCASECMP 1 |
|||
|
|||
/* Define to 1 if you have the strncmpi function. */ |
|||
/* #undef HAVE_STRNCMPI */ |
|||
|
|||
/* Define to 1 if you have the strnicmp function. */ |
|||
/* #undef HAVE_STRNICMP */ |
|||
|
|||
/* Define to 1 if you have the <stropts.h> header file. */ |
|||
/* #undef HAVE_STROPTS_H */ |
|||
|
|||
/* Define to 1 if you have struct addrinfo. */ |
|||
#define HAVE_STRUCT_ADDRINFO 1 |
|||
|
|||
/* Define to 1 if you have struct in6_addr. */ |
|||
#define HAVE_STRUCT_IN6_ADDR 1 |
|||
|
|||
/* Define to 1 if you have struct sockaddr_in6. */ |
|||
#define HAVE_STRUCT_SOCKADDR_IN6 1 |
|||
|
|||
/* if struct sockaddr_storage is defined */ |
|||
#define HAVE_STRUCT_SOCKADDR_STORAGE 1 |
|||
|
|||
/* Define to 1 if you have the timeval struct. */ |
|||
#define HAVE_STRUCT_TIMEVAL 1 |
|||
|
|||
/* Define to 1 if you have the <sys/ioctl.h> header file. */ |
|||
/* #undef HAVE_SYS_IOCTL_H */ |
|||
|
|||
/* Define to 1 if you have the <sys/param.h> header file. */ |
|||
#define HAVE_SYS_PARAM_H 1 |
|||
|
|||
/* Define to 1 if you have the <sys/select.h> header file. */ |
|||
/* #undef HAVE_SYS_SELECT_H */ |
|||
|
|||
/* Define to 1 if you have the <sys/socket.h> header file. */ |
|||
/* #undef HAVE_SYS_SOCKET_H */ |
|||
|
|||
/* Define to 1 if you have the <sys/stat.h> header file. */ |
|||
#define HAVE_SYS_STAT_H 1 |
|||
|
|||
/* Define to 1 if you have the <sys/time.h> header file. */ |
|||
#define HAVE_SYS_TIME_H 1 |
|||
|
|||
/* Define to 1 if you have the <sys/types.h> header file. */ |
|||
#define HAVE_SYS_TYPES_H 1 |
|||
|
|||
/* Define to 1 if you have the <sys/uio.h> header file. */ |
|||
/* #undef HAVE_SYS_UIO_H */ |
|||
|
|||
/* Define to 1 if you have the <time.h> header file. */ |
|||
#define HAVE_TIME_H 1 |
|||
|
|||
/* Define to 1 if you have the <unistd.h> header file. */ |
|||
#define HAVE_UNISTD_H 1 |
|||
|
|||
/* Define to 1 if you have the windows.h header file. */ |
|||
#define HAVE_WINDOWS_H 1 |
|||
|
|||
/* Define to 1 if you have the winsock2.h header file. */ |
|||
#define HAVE_WINSOCK2_H 1 |
|||
|
|||
/* Define to 1 if you have the winsock.h header file. */ |
|||
#define HAVE_WINSOCK_H 1 |
|||
|
|||
/* Define to 1 if you have the writev function. */ |
|||
/* #undef HAVE_WRITEV */ |
|||
|
|||
/* Define to 1 if you have the ws2tcpip.h header file. */ |
|||
#define HAVE_WS2TCPIP_H 1 |
|||
|
|||
/* Define to the sub-directory in which libtool stores uninstalled libraries.
|
|||
*/ |
|||
#define LT_OBJDIR ".libs/" |
|||
|
|||
/* Define to 1 if you are building a native Windows target. */ |
|||
#define NATIVE_WINDOWS 1 |
|||
|
|||
/* Define to 1 if you need the malloc.h header file even with stdlib.h */ |
|||
/* #undef NEED_MALLOC_H */ |
|||
|
|||
/* Define to 1 if you need the memory.h header file even with stdlib.h */ |
|||
/* #undef NEED_MEMORY_H */ |
|||
|
|||
/* Define to 1 if _REENTRANT preprocessor symbol must be defined. */ |
|||
/* #undef NEED_REENTRANT */ |
|||
|
|||
/* Define to 1 if _THREAD_SAFE preprocessor symbol must be defined. */ |
|||
/* #undef NEED_THREAD_SAFE */ |
|||
|
|||
/* Define to 1 if your C compiler doesn't accept -c and -o together. */ |
|||
/* #undef NO_MINUS_C_MINUS_O */ |
|||
|
|||
/* cpu-machine-OS */ |
|||
#define OS "i686-pc-mingw32" |
|||
|
|||
/* Name of package */ |
|||
#define PACKAGE "c-ares" |
|||
|
|||
/* Define to the address where bug reports for this package should be sent. */ |
|||
#define PACKAGE_BUGREPORT "c-ares mailing list => http://cool.haxx.se/mailman/listinfo/c-ares"
|
|||
|
|||
/* Define to the full name of this package. */ |
|||
#define PACKAGE_NAME "c-ares" |
|||
|
|||
/* Define to the full name and version of this package. */ |
|||
#define PACKAGE_STRING "c-ares 1.7.3" |
|||
|
|||
/* Define to the one symbol short name of this package. */ |
|||
#define PACKAGE_TARNAME "c-ares" |
|||
|
|||
/* Define to the home page for this package. */ |
|||
#define PACKAGE_URL "" |
|||
|
|||
/* Define to the version of this package. */ |
|||
#define PACKAGE_VERSION "1.7.3" |
|||
|
|||
/* a suitable file/device to read random data from */ |
|||
#define RANDOM_FILE "/dev/urandom" |
|||
|
|||
/* Define to the type of arg 1 for recvfrom. */ |
|||
#define RECVFROM_TYPE_ARG1 SOCKET |
|||
|
|||
/* Define to the type pointed by arg 2 for recvfrom. */ |
|||
#define RECVFROM_TYPE_ARG2 char |
|||
|
|||
/* Define to 1 if the type pointed by arg 2 for recvfrom is void. */ |
|||
/* #undef RECVFROM_TYPE_ARG2_IS_VOID */ |
|||
|
|||
/* Define to the type of arg 3 for recvfrom. */ |
|||
#define RECVFROM_TYPE_ARG3 int |
|||
|
|||
/* Define to the type of arg 4 for recvfrom. */ |
|||
#define RECVFROM_TYPE_ARG4 int |
|||
|
|||
/* Define to the type pointed by arg 5 for recvfrom. */ |
|||
#define RECVFROM_TYPE_ARG5 struct sockaddr |
|||
|
|||
/* Define to 1 if the type pointed by arg 5 for recvfrom is void. */ |
|||
/* #undef RECVFROM_TYPE_ARG5_IS_VOID */ |
|||
|
|||
/* Define to the type pointed by arg 6 for recvfrom. */ |
|||
#define RECVFROM_TYPE_ARG6 int |
|||
|
|||
/* Define to 1 if the type pointed by arg 6 for recvfrom is void. */ |
|||
/* #undef RECVFROM_TYPE_ARG6_IS_VOID */ |
|||
|
|||
/* Define to the function return type for recvfrom. */ |
|||
#define RECVFROM_TYPE_RETV int |
|||
|
|||
/* Define to the type of arg 1 for recv. */ |
|||
#define RECV_TYPE_ARG1 SOCKET |
|||
|
|||
/* Define to the type of arg 2 for recv. */ |
|||
#define RECV_TYPE_ARG2 char * |
|||
|
|||
/* Define to the type of arg 3 for recv. */ |
|||
#define RECV_TYPE_ARG3 int |
|||
|
|||
/* Define to the type of arg 4 for recv. */ |
|||
#define RECV_TYPE_ARG4 int |
|||
|
|||
/* Define to the function return type for recv. */ |
|||
#define RECV_TYPE_RETV int |
|||
|
|||
/* Define as the return type of signal handlers (`int' or `void'). */ |
|||
#define RETSIGTYPE void |
|||
|
|||
/* Define to the type qualifier of arg 2 for send. */ |
|||
#define SEND_QUAL_ARG2 const |
|||
|
|||
/* Define to the type of arg 1 for send. */ |
|||
#define SEND_TYPE_ARG1 SOCKET |
|||
|
|||
/* Define to the type of arg 2 for send. */ |
|||
#define SEND_TYPE_ARG2 char * |
|||
|
|||
/* Define to the type of arg 3 for send. */ |
|||
#define SEND_TYPE_ARG3 int |
|||
|
|||
/* Define to the type of arg 4 for send. */ |
|||
#define SEND_TYPE_ARG4 int |
|||
|
|||
/* Define to the function return type for send. */ |
|||
#define SEND_TYPE_RETV int |
|||
|
|||
/* The size of `int', as computed by sizeof. */ |
|||
#define SIZEOF_INT 4 |
|||
|
|||
/* The size of `long', as computed by sizeof. */ |
|||
#define SIZEOF_LONG 4 |
|||
|
|||
/* The size of `size_t', as computed by sizeof. */ |
|||
#define SIZEOF_SIZE_T 4 |
|||
|
|||
/* The size of `struct in6_addr', as computed by sizeof. */ |
|||
#define SIZEOF_STRUCT_IN6_ADDR 16 |
|||
|
|||
/* The size of `struct in_addr', as computed by sizeof. */ |
|||
#define SIZEOF_STRUCT_IN_ADDR 4 |
|||
|
|||
/* The size of `time_t', as computed by sizeof. */ |
|||
#define SIZEOF_TIME_T 4 |
|||
|
|||
/* Define to 1 if you have the ANSI C header files. */ |
|||
#define STDC_HEADERS 1 |
|||
|
|||
/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */ |
|||
#define TIME_WITH_SYS_TIME 1 |
|||
|
|||
/* Define to disable non-blocking sockets. */ |
|||
/* #undef USE_BLOCKING_SOCKETS */ |
|||
|
|||
/* Version number of package */ |
|||
#define VERSION "1.7.3" |
|||
|
|||
/* Define to avoid automatic inclusion of winsock.h */ |
|||
#define WIN32_LEAN_AND_MEAN 1 |
|||
|
|||
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
|
|||
significant byte first (like Motorola and SPARC, unlike Intel). */ |
|||
#if defined AC_APPLE_UNIVERSAL_BUILD |
|||
# if defined __BIG_ENDIAN__ |
|||
# define WORDS_BIGENDIAN 1 |
|||
# endif |
|||
#else |
|||
# ifndef WORDS_BIGENDIAN |
|||
/* # undef WORDS_BIGENDIAN */ |
|||
# endif |
|||
#endif |
|||
|
|||
/* Define to 1 if OS is AIX. */ |
|||
#ifndef _ALL_SOURCE |
|||
/* # undef _ALL_SOURCE */ |
|||
#endif |
|||
|
|||
/* Number of bits in a file offset, on hosts where this is settable. */ |
|||
/* #undef _FILE_OFFSET_BITS */ |
|||
|
|||
/* Define for large files, on AIX-style hosts. */ |
|||
/* #undef _LARGE_FILES */ |
|||
|
|||
/* Define to empty if `const' does not conform to ANSI C. */ |
|||
/* #undef const */ |
|||
|
|||
/* Type to use in place of in_addr_t when system does not provide it. */ |
|||
#define in_addr_t unsigned long |
|||
|
|||
/* Define to `unsigned int' if <sys/types.h> does not define. */ |
|||
/* #undef size_t */ |
|||
|
|||
/* the signed version of size_t */ |
|||
/* #undef ssize_t */ |
File diff suppressed because it is too large
@ -1,889 +0,0 @@ |
|||
AC_PREREQ(2.57) |
|||
|
|||
dnl Version not hardcoded here. Fetched later from ares_version.h |
|||
AC_INIT([c-ares], [1.7.4], |
|||
[c-ares mailing list: http://cool.haxx.se/mailman/listinfo/c-ares]) |
|||
|
|||
CARES_OVERRIDE_AUTOCONF |
|||
|
|||
AC_CONFIG_SRCDIR([ares_ipv6.h]) |
|||
AM_CONFIG_HEADER([ares_config.h ares_build.h]) |
|||
AM_MAINTAINER_MODE |
|||
|
|||
CARES_CHECK_OPTION_DEBUG |
|||
CARES_CHECK_OPTION_OPTIMIZE |
|||
CARES_CHECK_OPTION_WARNINGS |
|||
CARES_CHECK_OPTION_WERROR |
|||
CARES_CHECK_OPTION_CURLDEBUG |
|||
CARES_CHECK_OPTION_SYMBOL_HIDING |
|||
|
|||
CARES_CHECK_PATH_SEPARATOR_REQUIRED |
|||
|
|||
dnl SED is mandatory for configure process and libtool. |
|||
dnl Set it now, allowing it to be changed later. |
|||
AC_PATH_PROG([SED], [sed], [not_found], |
|||
[$PATH:/usr/bin:/usr/local/bin]) |
|||
if test -z "$SED" || test "$SED" = "not_found"; then |
|||
AC_MSG_ERROR([sed not found in PATH. Cannot continue without sed.]) |
|||
fi |
|||
AC_SUBST([SED]) |
|||
|
|||
dnl GREP is mandatory for configure process and libtool. |
|||
dnl Set it now, allowing it to be changed later. |
|||
AC_PATH_PROG([GREP], [grep], [not_found], |
|||
[$PATH:/usr/bin:/usr/local/bin]) |
|||
if test -z "$GREP" || test "$GREP" = "not_found"; then |
|||
AC_MSG_ERROR([grep not found in PATH. Cannot continue without grep.]) |
|||
fi |
|||
AC_SUBST([GREP]) |
|||
|
|||
dnl EGREP is mandatory for configure process and libtool. |
|||
dnl Set it now, allowing it to be changed later. |
|||
if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then |
|||
AC_MSG_CHECKING([for egrep]) |
|||
EGREP="$GREP -E" |
|||
AC_MSG_RESULT([$EGREP]) |
|||
else |
|||
AC_PATH_PROG([EGREP], [egrep], [not_found], |
|||
[$PATH:/usr/bin:/usr/local/bin]) |
|||
fi |
|||
if test -z "$EGREP" || test "$EGREP" = "not_found"; then |
|||
AC_MSG_ERROR([egrep not found in PATH. Cannot continue without egrep.]) |
|||
fi |
|||
AC_SUBST([EGREP]) |
|||
|
|||
dnl AR is mandatory for configure process and libtool. |
|||
dnl This is target dependent, so check it as a tool. |
|||
AC_PATH_TOOL([AR], [ar], [not_found], |
|||
[$PATH:/usr/bin:/usr/local/bin]) |
|||
if test -z "$AR" || test "$AR" = "not_found"; then |
|||
AC_MSG_ERROR([ar not found in PATH. Cannot continue without ar.]) |
|||
fi |
|||
AC_SUBST([AR]) |
|||
|
|||
dnl Remove non-configure distributed ares_build.h |
|||
if test -f ${srcdir}/ares_build.h; then |
|||
rm -f ${srcdir}/ares_build.h |
|||
fi |
|||
|
|||
dnl Fetch c-ares version from ares_version.h |
|||
VERSION=`$SED -ne 's/^#define ARES_VERSION_STR "\(.*\)"/\1/p' ${srcdir}/ares_version.h` |
|||
AM_INIT_AUTOMAKE([c-ares], [$VERSION]) |
|||
AC_MSG_CHECKING([c-ares version]) |
|||
AC_MSG_RESULT([$VERSION]) |
|||
|
|||
dnl |
|||
dnl Detect the canonical host and target build environment |
|||
dnl |
|||
|
|||
AC_CANONICAL_HOST |
|||
dnl Get system canonical name |
|||
AC_DEFINE_UNQUOTED(OS, "${host}", [cpu-machine-OS]) |
|||
|
|||
CARES_CHECK_PROG_CC |
|||
AM_PROG_CC_C_O |
|||
AC_PROG_INSTALL |
|||
|
|||
dnl This defines _ALL_SOURCE for AIX |
|||
CARES_CHECK_AIX_ALL_SOURCE |
|||
|
|||
dnl Our configure and build reentrant settings |
|||
CARES_CONFIGURE_THREAD_SAFE |
|||
CARES_CONFIGURE_REENTRANT |
|||
|
|||
dnl check for how to do large files |
|||
AC_SYS_LARGEFILE |
|||
|
|||
case $host_os in |
|||
solaris*) |
|||
AC_DEFINE(ETC_INET, 1, [if a /etc/inet dir is being used]) |
|||
;; |
|||
esac |
|||
|
|||
dnl support building of Windows DLLs |
|||
AC_LIBTOOL_WIN32_DLL |
|||
|
|||
dnl force libtool to build static libraries with PIC on AMD64-Linux & FreeBSD |
|||
AC_MSG_CHECKING([if arch-OS host is AMD64-Linux/FreeBSD (to build static libraries with PIC)]) |
|||
case $host in |
|||
x86_64*linux*|amd64*freebsd*|ia64*freebsd*) |
|||
AC_MSG_RESULT([yes]) |
|||
with_pic=yes |
|||
;; |
|||
*) |
|||
AC_MSG_RESULT([no]) |
|||
;; |
|||
esac |
|||
|
|||
AC_MSG_CHECKING([if compiler is icc (to build with PIC)]) |
|||
case $CC in |
|||
icc | */icc) |
|||
AC_MSG_RESULT([yes]) |
|||
with_pic=yes |
|||
;; |
|||
*) |
|||
AC_MSG_RESULT([no]) |
|||
;; |
|||
esac |
|||
|
|||
dnl libtool setup |
|||
AC_PROG_LIBTOOL |
|||
|
|||
AC_MSG_CHECKING([if we need CARES_BUILDING_LIBRARY]) |
|||
case $host in |
|||
*-*-mingw*) |
|||
AC_DEFINE(CARES_BUILDING_LIBRARY, 1, [when building c-ares library]) |
|||
AC_MSG_RESULT(yes) |
|||
AC_MSG_CHECKING([if we need CARES_STATICLIB]) |
|||
if test "X$enable_shared" = "Xno" |
|||
then |
|||
AC_DEFINE(CARES_STATICLIB, 1, [when not building a shared library]) |
|||
AC_MSG_RESULT(yes) |
|||
else |
|||
AC_MSG_RESULT(no) |
|||
fi |
|||
;; |
|||
*) |
|||
AC_MSG_RESULT(no) |
|||
;; |
|||
esac |
|||
|
|||
dnl ********************************************************************** |
|||
dnl platform/compiler/architecture specific checks/flags |
|||
dnl ********************************************************************** |
|||
|
|||
CARES_CHECK_COMPILER |
|||
CARES_SET_COMPILER_BASIC_OPTS |
|||
CARES_SET_COMPILER_DEBUG_OPTS |
|||
CARES_SET_COMPILER_OPTIMIZE_OPTS |
|||
CARES_SET_COMPILER_WARNING_OPTS |
|||
|
|||
if test "$compiler_id" = "INTEL_UNIX_C"; then |
|||
# |
|||
if test "$compiler_num" -ge "1000"; then |
|||
dnl icc 10.X or later |
|||
CFLAGS="$CFLAGS -shared-intel" |
|||
elif test "$compiler_num" -ge "900"; then |
|||
dnl icc 9.X specific |
|||
CFLAGS="$CFLAGS -i-dynamic" |
|||
fi |
|||
# |
|||
fi |
|||
|
|||
CARES_CHECK_COMPILER_HALT_ON_ERROR |
|||
CARES_CHECK_COMPILER_ARRAY_SIZE_NEGATIVE |
|||
CARES_CHECK_COMPILER_SYMBOL_HIDING |
|||
|
|||
CARES_CHECK_NO_UNDEFINED |
|||
AM_CONDITIONAL(NO_UNDEFINED, test x$need_no_undefined = xyes) |
|||
|
|||
CARES_CHECK_CURLDEBUG |
|||
AM_CONDITIONAL(CURLDEBUG, test x$want_curldebug = xyes) |
|||
|
|||
dnl ********************************************************************** |
|||
dnl Compilation based checks should not be done before this point. |
|||
dnl ********************************************************************** |
|||
|
|||
dnl ********************************************************************** |
|||
dnl Make sure that our checks for headers windows.h winsock.h winsock2.h |
|||
dnl and ws2tcpip.h take precedence over any other further checks which |
|||
dnl could be done later using AC_CHECK_HEADER or AC_CHECK_HEADERS for |
|||
dnl this specific header files. And do them before its results are used. |
|||
dnl ********************************************************************** |
|||
|
|||
CURL_CHECK_HEADER_WINDOWS |
|||
CURL_CHECK_NATIVE_WINDOWS |
|||
case X-"$ac_cv_native_windows" in |
|||
X-yes) |
|||
CURL_CHECK_HEADER_WINSOCK |
|||
CURL_CHECK_HEADER_WINSOCK2 |
|||
CURL_CHECK_HEADER_WS2TCPIP |
|||
;; |
|||
*) |
|||
ac_cv_header_winsock_h="no" |
|||
ac_cv_header_winsock2_h="no" |
|||
ac_cv_header_ws2tcpip_h="no" |
|||
;; |
|||
esac |
|||
|
|||
dnl ********************************************************************** |
|||
dnl Checks for libraries. |
|||
dnl ********************************************************************** |
|||
|
|||
CARES_CHECK_LIB_XNET |
|||
|
|||
dnl gethostbyname without lib or in the nsl lib? |
|||
AC_CHECK_FUNC(gethostbyname, |
|||
[HAVE_GETHOSTBYNAME="1" |
|||
], |
|||
[ AC_CHECK_LIB(nsl, gethostbyname, |
|||
[HAVE_GETHOSTBYNAME="1" |
|||
LIBS="$LIBS -lnsl" |
|||
]) |
|||
]) |
|||
|
|||
if test "$HAVE_GETHOSTBYNAME" != "1" |
|||
then |
|||
dnl gethostbyname in the socket lib? |
|||
AC_CHECK_LIB(socket, gethostbyname, |
|||
[HAVE_GETHOSTBYNAME="1" |
|||
LIBS="$LIBS -lsocket" |
|||
]) |
|||
fi |
|||
|
|||
dnl At least one system has been identified to require BOTH nsl and socket |
|||
dnl libs at the same time to link properly. |
|||
if test "$HAVE_GETHOSTBYNAME" != "1" |
|||
then |
|||
AC_MSG_CHECKING([for gethostbyname with both nsl and socket libs]) |
|||
my_ac_save_LIBS=$LIBS |
|||
LIBS="-lnsl -lsocket $LIBS" |
|||
AC_LINK_IFELSE([ |
|||
AC_LANG_PROGRAM([[ |
|||
]],[[ |
|||
gethostbyname(); |
|||
]]) |
|||
],[ |
|||
AC_MSG_RESULT([yes]) |
|||
HAVE_GETHOSTBYNAME="1" |
|||
],[ |
|||
AC_MSG_RESULT([no]) |
|||
LIBS=$my_ac_save_LIBS |
|||
]) |
|||
fi |
|||
|
|||
if test "$HAVE_GETHOSTBYNAME" != "1" |
|||
then |
|||
dnl This is for winsock systems |
|||
if test "$ac_cv_header_windows_h" = "yes"; then |
|||
if test "$ac_cv_header_winsock_h" = "yes"; then |
|||
case $host in |
|||
*-*-mingw32ce*) |
|||
winsock_LIB="-lwinsock" |
|||
;; |
|||
*) |
|||
winsock_LIB="-lwsock32" |
|||
;; |
|||
esac |
|||
fi |
|||
if test "$ac_cv_header_winsock2_h" = "yes"; then |
|||
winsock_LIB="-lws2_32" |
|||
fi |
|||
if test ! -z "$winsock_LIB"; then |
|||
my_ac_save_LIBS=$LIBS |
|||
LIBS="$winsock_LIB $LIBS" |
|||
AC_MSG_CHECKING([for gethostbyname in $winsock_LIB]) |
|||
AC_LINK_IFELSE([ |
|||
AC_LANG_PROGRAM([[ |
|||
#ifdef HAVE_WINDOWS_H |
|||
#ifndef WIN32_LEAN_AND_MEAN |
|||
#define WIN32_LEAN_AND_MEAN |
|||
#endif |
|||
#include <windows.h> |
|||
#ifdef HAVE_WINSOCK2_H |
|||
#include <winsock2.h> |
|||
#else |
|||
#ifdef HAVE_WINSOCK_H |
|||
#include <winsock.h> |
|||
#endif |
|||
#endif |
|||
#endif |
|||
]],[[ |
|||
gethostbyname("www.dummysite.com"); |
|||
]]) |
|||
],[ |
|||
AC_MSG_RESULT([yes]) |
|||
HAVE_GETHOSTBYNAME="1" |
|||
],[ |
|||
AC_MSG_RESULT([no]) |
|||
winsock_LIB="" |
|||
LIBS=$my_ac_save_LIBS |
|||
]) |
|||
fi |
|||
fi |
|||
fi |
|||
|
|||
if test "$HAVE_GETHOSTBYNAME" != "1" |
|||
then |
|||
dnl This is for Minix 3.1 |
|||
AC_MSG_CHECKING([for gethostbyname for Minix 3]) |
|||
AC_LINK_IFELSE([ |
|||
AC_LANG_PROGRAM([[ |
|||
/* Older Minix versions may need <net/gen/netdb.h> here instead */ |
|||
#include <netdb.h> |
|||
]],[[ |
|||
gethostbyname("www.dummysite.com"); |
|||
]]) |
|||
],[ |
|||
AC_MSG_RESULT([yes]) |
|||
HAVE_GETHOSTBYNAME="1" |
|||
],[ |
|||
AC_MSG_RESULT([no]) |
|||
]) |
|||
fi |
|||
|
|||
if test "$HAVE_GETHOSTBYNAME" != "1" |
|||
then |
|||
dnl This is for eCos with a stubbed DNS implementation |
|||
AC_MSG_CHECKING([for gethostbyname for eCos]) |
|||
AC_LINK_IFELSE([ |
|||
AC_LANG_PROGRAM([[ |
|||
#include <stdio.h> |
|||
#include <netdb.h> |
|||
]],[[ |
|||
gethostbyname("www.dummysite.com"); |
|||
]]) |
|||
],[ |
|||
AC_MSG_RESULT([yes]) |
|||
HAVE_GETHOSTBYNAME="1" |
|||
],[ |
|||
AC_MSG_RESULT([no]) |
|||
]) |
|||
fi |
|||
|
|||
if test "$HAVE_GETHOSTBYNAME" != "1" |
|||
then |
|||
dnl gethostbyname in the net lib - for BeOS |
|||
AC_CHECK_LIB(net, gethostbyname, |
|||
[HAVE_GETHOSTBYNAME="1" |
|||
LIBS="$LIBS -lnet" |
|||
]) |
|||
fi |
|||
|
|||
|
|||
if test "$HAVE_GETHOSTBYNAME" != "1"; then |
|||
AC_MSG_ERROR([couldn't find libraries for gethostbyname()]) |
|||
fi |
|||
|
|||
dnl resolve lib? |
|||
AC_CHECK_FUNC(strcasecmp, , [ AC_CHECK_LIB(resolve, strcasecmp) ]) |
|||
|
|||
if test "$ac_cv_lib_resolve_strcasecmp" = "$ac_cv_func_strcasecmp"; then |
|||
AC_CHECK_LIB(resolve, strcasecmp, |
|||
[LIBS="-lresolve $LIBS"], |
|||
, |
|||
-lnsl) |
|||
fi |
|||
ac_cv_func_strcasecmp="no" |
|||
|
|||
CARES_CHECK_LIBS_CONNECT |
|||
|
|||
dnl ********************************************************************** |
|||
dnl In case that function clock_gettime with monotonic timer is available, |
|||
dnl check for additional required libraries. |
|||
dnl ********************************************************************** |
|||
CURL_CHECK_LIBS_CLOCK_GETTIME_MONOTONIC |
|||
|
|||
AC_MSG_CHECKING([whether to use libgcc]) |
|||
AC_ARG_ENABLE(libgcc, |
|||
AC_HELP_STRING([--enable-libgcc],[use libgcc when linking]), |
|||
[ case "$enableval" in |
|||
yes) |
|||
LIBS="$LIBS -lgcc" |
|||
AC_MSG_RESULT(yes) |
|||
;; |
|||
*) AC_MSG_RESULT(no) |
|||
;; |
|||
esac ], |
|||
AC_MSG_RESULT(no) |
|||
) |
|||
|
|||
|
|||
dnl Let's hope this split URL remains working: |
|||
dnl http://publibn.boulder.ibm.com/doc_link/en_US/a_doc_lib/aixprggd/ \ |
|||
dnl genprogc/thread_quick_ref.htm |
|||
|
|||
|
|||
dnl ********************************************************************** |
|||
dnl Back to "normal" configuring |
|||
dnl ********************************************************************** |
|||
|
|||
dnl Checks for header files. |
|||
AC_HEADER_STDC |
|||
|
|||
CURL_CHECK_HEADER_MALLOC |
|||
CURL_CHECK_HEADER_MEMORY |
|||
|
|||
dnl check for a few basic system headers we need |
|||
AC_CHECK_HEADERS( |
|||
sys/types.h \ |
|||
sys/time.h \ |
|||
sys/select.h \ |
|||
sys/socket.h \ |
|||
sys/ioctl.h \ |
|||
sys/param.h \ |
|||
sys/uio.h \ |
|||
assert.h \ |
|||
netdb.h \ |
|||
netinet/in.h \ |
|||
netinet/tcp.h \ |
|||
net/if.h \ |
|||
errno.h \ |
|||
socket.h \ |
|||
strings.h \ |
|||
stdbool.h \ |
|||
time.h \ |
|||
limits.h \ |
|||
arpa/nameser.h \ |
|||
arpa/nameser_compat.h \ |
|||
arpa/inet.h, |
|||
dnl to do if not found |
|||
[], |
|||
dnl to do if found |
|||
[], |
|||
dnl default includes |
|||
[ |
|||
#ifdef HAVE_SYS_TYPES_H |
|||
#include <sys/types.h> |
|||
#endif |
|||
#ifdef HAVE_SYS_TIME_H |
|||
#include <sys/time.h> |
|||
#endif |
|||
dnl We do this default-include simply to make sure that the nameser_compat.h |
|||
dnl header *REALLY* can be include after the new nameser.h. It seems AIX 5.1 |
|||
dnl (and others?) is not designed to allow this. |
|||
#ifdef HAVE_ARPA_NAMESER_H |
|||
#include <arpa/nameser.h> |
|||
#endif |
|||
|
|||
dnl *Sigh* these are needed in order for net/if.h to get properly detected. |
|||
#ifdef HAVE_SYS_SOCKET_H |
|||
#include <sys/socket.h> |
|||
#endif |
|||
#ifdef HAVE_NETINET_IN_H |
|||
#include <netinet/in.h> |
|||
#endif |
|||
] |
|||
) |
|||
|
|||
dnl Checks for typedefs, structures, and compiler characteristics. |
|||
AC_C_CONST |
|||
AC_TYPE_SIZE_T |
|||
AC_HEADER_TIME |
|||
CURL_CHECK_STRUCT_TIMEVAL |
|||
|
|||
AC_CHECK_SIZEOF(size_t) |
|||
AC_CHECK_SIZEOF(int) |
|||
AC_CHECK_SIZEOF(long) |
|||
CARES_CONFIGURE_LONG |
|||
AC_CHECK_SIZEOF(time_t) |
|||
|
|||
AC_CHECK_TYPE(long long, |
|||
[AC_DEFINE(HAVE_LONGLONG, 1, |
|||
[Define to 1 if the compiler supports the 'long long' data type.])] |
|||
longlong="yes" |
|||
) |
|||
|
|||
if test "xyes" = "x$longlong"; then |
|||
AC_MSG_CHECKING([if numberLL works]) |
|||
AC_COMPILE_IFELSE([ |
|||
AC_LANG_PROGRAM([[ |
|||
]],[[ |
|||
long long val = 1000LL; |
|||
]]) |
|||
],[ |
|||
AC_MSG_RESULT([yes]) |
|||
AC_DEFINE(HAVE_LL, 1, [if your compiler supports LL]) |
|||
],[ |
|||
AC_MSG_RESULT([no]) |
|||
]) |
|||
fi |
|||
|
|||
|
|||
# check for ssize_t |
|||
AC_CHECK_TYPE(ssize_t, , |
|||
AC_DEFINE(ssize_t, int, [the signed version of size_t])) |
|||
|
|||
# check for bool type |
|||
AC_CHECK_TYPE([bool],[ |
|||
AC_DEFINE(HAVE_BOOL_T, 1, |
|||
[Define to 1 if bool is an available type.]) |
|||
], ,[ |
|||
#ifdef HAVE_SYS_TYPES_H |
|||
#include <sys/types.h> |
|||
#endif |
|||
#ifdef HAVE_STDBOOL_H |
|||
#include <stdbool.h> |
|||
#endif |
|||
]) |
|||
|
|||
CARES_CONFIGURE_ARES_SOCKLEN_T |
|||
|
|||
TYPE_IN_ADDR_T |
|||
|
|||
TYPE_SOCKADDR_STORAGE |
|||
|
|||
TYPE_SIG_ATOMIC_T |
|||
|
|||
AC_TYPE_SIGNAL |
|||
|
|||
CURL_CHECK_FUNC_RECV |
|||
CURL_CHECK_FUNC_RECVFROM |
|||
CURL_CHECK_FUNC_SEND |
|||
CURL_CHECK_MSG_NOSIGNAL |
|||
|
|||
CARES_CHECK_FUNC_CLOSESOCKET |
|||
CARES_CHECK_FUNC_CLOSESOCKET_CAMEL |
|||
CARES_CHECK_FUNC_CONNECT |
|||
CARES_CHECK_FUNC_FCNTL |
|||
CARES_CHECK_FUNC_FREEADDRINFO |
|||
CARES_CHECK_FUNC_GETADDRINFO |
|||
CARES_CHECK_FUNC_GETHOSTBYADDR |
|||
CARES_CHECK_FUNC_GETHOSTBYNAME |
|||
CARES_CHECK_FUNC_GETHOSTNAME |
|||
CARES_CHECK_FUNC_GETSERVBYPORT_R |
|||
CARES_CHECK_FUNC_INET_NTOP |
|||
CARES_CHECK_FUNC_INET_PTON |
|||
CARES_CHECK_FUNC_IOCTL |
|||
CARES_CHECK_FUNC_IOCTLSOCKET |
|||
CARES_CHECK_FUNC_IOCTLSOCKET_CAMEL |
|||
CARES_CHECK_FUNC_SETSOCKOPT |
|||
CARES_CHECK_FUNC_SOCKET |
|||
CARES_CHECK_FUNC_STRCASECMP |
|||
CARES_CHECK_FUNC_STRCMPI |
|||
CARES_CHECK_FUNC_STRDUP |
|||
CARES_CHECK_FUNC_STRICMP |
|||
CARES_CHECK_FUNC_STRNCASECMP |
|||
CARES_CHECK_FUNC_STRNCMPI |
|||
CARES_CHECK_FUNC_STRNICMP |
|||
CARES_CHECK_FUNC_WRITEV |
|||
|
|||
|
|||
dnl check for AF_INET6 |
|||
CARES_CHECK_CONSTANT( |
|||
[ |
|||
#undef inline |
|||
#ifdef HAVE_WINDOWS_H |
|||
#ifndef WIN32_LEAN_AND_MEAN |
|||
#define WIN32_LEAN_AND_MEAN |
|||
#endif |
|||
#include <windows.h> |
|||
#ifdef HAVE_WINSOCK2_H |
|||
#include <winsock2.h> |
|||
#endif |
|||
#else |
|||
#ifdef HAVE_SYS_TYPES_H |
|||
#include <sys/types.h> |
|||
#endif |
|||
#ifdef HAVE_SYS_SOCKET_H |
|||
#include <sys/socket.h> |
|||
#endif |
|||
#endif |
|||
], [PF_INET6], |
|||
AC_DEFINE_UNQUOTED(HAVE_PF_INET6,1,[Define to 1 if you have PF_INET6.]) |
|||
) |
|||
|
|||
dnl check for PF_INET6 |
|||
CARES_CHECK_CONSTANT( |
|||
[ |
|||
#undef inline |
|||
#ifdef HAVE_WINDOWS_H |
|||
#ifndef WIN32_LEAN_AND_MEAN |
|||
#define WIN32_LEAN_AND_MEAN |
|||
#endif |
|||
#include <windows.h> |
|||
#ifdef HAVE_WINSOCK2_H |
|||
#include <winsock2.h> |
|||
#endif |
|||
#else |
|||
#ifdef HAVE_SYS_TYPES_H |
|||
#include <sys/types.h> |
|||
#endif |
|||
#ifdef HAVE_SYS_SOCKET_H |
|||
#include <sys/socket.h> |
|||
#endif |
|||
#endif |
|||
], [AF_INET6], |
|||
AC_DEFINE_UNQUOTED(HAVE_AF_INET6,1,[Define to 1 if you have AF_INET6.]) |
|||
) |
|||
|
|||
|
|||
dnl check for the in6_addr structure |
|||
CARES_CHECK_STRUCT( |
|||
[ |
|||
#undef inline |
|||
#ifdef HAVE_WINDOWS_H |
|||
#ifndef WIN32_LEAN_AND_MEAN |
|||
#define WIN32_LEAN_AND_MEAN |
|||
#endif |
|||
#include <windows.h> |
|||
#ifdef HAVE_WINSOCK2_H |
|||
#include <winsock2.h> |
|||
#ifdef HAVE_WS2TCPIP_H |
|||
#include <ws2tcpip.h> |
|||
#endif |
|||
#endif |
|||
#else |
|||
#ifdef HAVE_SYS_TYPES_H |
|||
#include <sys/types.h> |
|||
#endif |
|||
#ifdef HAVE_NETINET_IN_H |
|||
#include <netinet/in.h> |
|||
#endif |
|||
#endif |
|||
], [in6_addr], |
|||
AC_DEFINE_UNQUOTED(HAVE_STRUCT_IN6_ADDR,1,[Define to 1 if you have struct in6_addr.]) |
|||
) |
|||
|
|||
dnl check for the sockaddr_in6 structure |
|||
CARES_CHECK_STRUCT( |
|||
[ |
|||
#undef inline |
|||
#ifdef HAVE_WINDOWS_H |
|||
#ifndef WIN32_LEAN_AND_MEAN |
|||
#define WIN32_LEAN_AND_MEAN |
|||
#endif |
|||
#include <windows.h> |
|||
#ifdef HAVE_WINSOCK2_H |
|||
#include <winsock2.h> |
|||
#ifdef HAVE_WS2TCPIP_H |
|||
#include <ws2tcpip.h> |
|||
#endif |
|||
#endif |
|||
#else |
|||
#ifdef HAVE_SYS_TYPES_H |
|||
#include <sys/types.h> |
|||
#endif |
|||
#ifdef HAVE_NETINET_IN_H |
|||
#include <netinet/in.h> |
|||
#endif |
|||
#endif |
|||
], [sockaddr_in6], |
|||
AC_DEFINE_UNQUOTED(HAVE_STRUCT_SOCKADDR_IN6,1, |
|||
[Define to 1 if you have struct sockaddr_in6.]) ac_have_sockaddr_in6=yes |
|||
) |
|||
|
|||
AC_CHECK_MEMBER(struct sockaddr_in6.sin6_scope_id, |
|||
AC_DEFINE_UNQUOTED(HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID,1, |
|||
[Define to 1 if your struct sockaddr_in6 has sin6_scope_id.]) |
|||
, , |
|||
[ |
|||
#undef inline |
|||
#ifdef HAVE_WINDOWS_H |
|||
#ifndef WIN32_LEAN_AND_MEAN |
|||
#define WIN32_LEAN_AND_MEAN |
|||
#endif |
|||
#include <windows.h> |
|||
#ifdef HAVE_WINSOCK2_H |
|||
#include <winsock2.h> |
|||
#ifdef HAVE_WS2TCPIP_H |
|||
#include <ws2tcpip.h> |
|||
#endif |
|||
#endif |
|||
#else |
|||
#ifdef HAVE_SYS_TYPES_H |
|||
#include <sys/types.h> |
|||
#endif |
|||
#ifdef HAVE_NETINET_IN_H |
|||
#include <netinet/in.h> |
|||
#endif |
|||
#endif |
|||
]) |
|||
|
|||
dnl check for the addrinfo structure |
|||
AC_CHECK_MEMBER(struct addrinfo.ai_flags, |
|||
AC_DEFINE_UNQUOTED(HAVE_STRUCT_ADDRINFO,1, |
|||
[Define to 1 if you have struct addrinfo.]),, |
|||
[ |
|||
#undef inline |
|||
#ifdef HAVE_WINDOWS_H |
|||
#ifndef WIN32_LEAN_AND_MEAN |
|||
#define WIN32_LEAN_AND_MEAN |
|||
#endif |
|||
#include <windows.h> |
|||
#ifdef HAVE_WINSOCK2_H |
|||
#include <winsock2.h> |
|||
#ifdef HAVE_WS2TCPIP_H |
|||
#include <ws2tcpip.h> |
|||
#endif |
|||
#endif |
|||
#else |
|||
#ifdef HAVE_SYS_TYPES_H |
|||
#include <sys/types.h> |
|||
#endif |
|||
#ifdef HAVE_NETINET_IN_H |
|||
#include <netinet/in.h> |
|||
#endif |
|||
#ifdef HAVE_SYS_SOCKET_H |
|||
#include <sys/socket.h> |
|||
#endif |
|||
#ifdef HAVE_NETDB_H |
|||
#include <netdb.h> |
|||
#endif |
|||
#endif |
|||
] |
|||
) |
|||
|
|||
|
|||
AC_CHECK_FUNCS([bitncmp \ |
|||
gettimeofday \ |
|||
if_indextoname |
|||
],[ |
|||
],[ |
|||
func="$ac_func" |
|||
AC_MSG_CHECKING([deeper for $func]) |
|||
AC_LINK_IFELSE([ |
|||
AC_LANG_PROGRAM([[ |
|||
]],[[ |
|||
$func (); |
|||
]]) |
|||
],[ |
|||
AC_MSG_RESULT([yes]) |
|||
eval "ac_cv_func_$func=yes" |
|||
AC_DEFINE_UNQUOTED(AS_TR_CPP([HAVE_$func]), [1], |
|||
[Define to 1 if you have the $func function.]) |
|||
],[ |
|||
AC_MSG_RESULT([but still no]) |
|||
]) |
|||
]) |
|||
|
|||
|
|||
dnl Check for inet_net_pton |
|||
AC_CHECK_FUNCS(inet_net_pton) |
|||
dnl Again, some systems have it, but not IPv6 |
|||
if test "$ac_cv_func_inet_net_pton" = "yes" ; then |
|||
AC_MSG_CHECKING(if inet_net_pton supports IPv6) |
|||
AC_TRY_RUN( |
|||
[ |
|||
#ifdef HAVE_SYS_TYPES_H |
|||
#include <sys/types.h> |
|||
#endif |
|||
#ifdef HAVE_SYS_SOCKET_H |
|||
#include <sys/socket.h> |
|||
#endif |
|||
#ifdef HAVE_NETINET_IN_H |
|||
#include <netinet/in.h> |
|||
#endif |
|||
int main() |
|||
{ |
|||
struct in6_addr addr6; |
|||
if (inet_net_pton(AF_INET6, "::1", &addr6, sizeof(addr6)) < 1) |
|||
exit(1); |
|||
else |
|||
exit(0); |
|||
} |
|||
], [ |
|||
AC_MSG_RESULT(yes) |
|||
AC_DEFINE_UNQUOTED(HAVE_INET_NET_PTON_IPV6,1,[Define to 1 if inet_net_pton supports IPv6.]) |
|||
], AC_MSG_RESULT(no),AC_MSG_RESULT(no)) |
|||
fi |
|||
|
|||
|
|||
AC_CHECK_SIZEOF(struct in6_addr, , |
|||
[ |
|||
#undef inline |
|||
#ifdef HAVE_WINDOWS_H |
|||
#ifndef WIN32_LEAN_AND_MEAN |
|||
#define WIN32_LEAN_AND_MEAN |
|||
#endif |
|||
#include <windows.h> |
|||
#ifdef HAVE_WINSOCK2_H |
|||
#include <winsock2.h> |
|||
#ifdef HAVE_WS2TCPIP_H |
|||
#include <ws2tcpip.h> |
|||
#endif |
|||
#endif |
|||
#else |
|||
#ifdef HAVE_SYS_TYPES_H |
|||
#include <sys/types.h> |
|||
#endif |
|||
#ifdef HAVE_SYS_SOCKET_H |
|||
#include <sys/socket.h> |
|||
#endif |
|||
#ifdef HAVE_NETINET_IN_H |
|||
#include <netinet/in.h> |
|||
#endif |
|||
#endif |
|||
] |
|||
) |
|||
|
|||
AC_CHECK_SIZEOF(struct in_addr, , |
|||
[ |
|||
#undef inline |
|||
#ifdef HAVE_WINDOWS_H |
|||
#ifndef WIN32_LEAN_AND_MEAN |
|||
#define WIN32_LEAN_AND_MEAN |
|||
#endif |
|||
#include <windows.h> |
|||
#ifdef HAVE_WINSOCK2_H |
|||
#include <winsock2.h> |
|||
#ifdef HAVE_WS2TCPIP_H |
|||
#include <ws2tcpip.h> |
|||
#endif |
|||
#endif |
|||
#else |
|||
#ifdef HAVE_SYS_TYPES_H |
|||
#include <sys/types.h> |
|||
#endif |
|||
#ifdef HAVE_SYS_SOCKET_H |
|||
#include <sys/socket.h> |
|||
#endif |
|||
#ifdef HAVE_NETINET_IN_H |
|||
#include <netinet/in.h> |
|||
#endif |
|||
#endif |
|||
] |
|||
) |
|||
|
|||
|
|||
dnl Check if the getnameinfo function is available |
|||
dnl and get the types of five of its arguments. |
|||
CURL_CHECK_FUNC_GETNAMEINFO |
|||
|
|||
|
|||
AC_C_BIGENDIAN( |
|||
[AC_DEFINE(ARES_BIG_ENDIAN, 1, |
|||
[define this if ares is built for a big endian system])], |
|||
, |
|||
[AC_MSG_WARN([couldn't figure out endianess, assuming little endian!])] |
|||
) |
|||
|
|||
dnl Check for user-specified random device |
|||
AC_ARG_WITH(random, |
|||
AC_HELP_STRING([--with-random=FILE], |
|||
[read randomness from FILE (default=/dev/urandom)]), |
|||
[ RANDOM_FILE="$withval" ], |
|||
[ |
|||
dnl Check for random device. If we're cross compiling, we can't |
|||
dnl check, and it's better to assume it doesn't exist than it is |
|||
dnl to fail on AC_CHECK_FILE or later. |
|||
if test "$cross_compiling" = "no"; then |
|||
AC_CHECK_FILE("/dev/urandom", [ RANDOM_FILE="/dev/urandom"] ) |
|||
else |
|||
AC_MSG_WARN([cannot check for /dev/urandom while cross compiling; assuming none]) |
|||
fi |
|||
|
|||
] |
|||
) |
|||
if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then |
|||
AC_SUBST(RANDOM_FILE) |
|||
AC_DEFINE_UNQUOTED(RANDOM_FILE, "$RANDOM_FILE", |
|||
[a suitable file/device to read random data from]) |
|||
fi |
|||
|
|||
CARES_CHECK_OPTION_NONBLOCKING |
|||
CARES_CHECK_NONBLOCKING_SOCKET |
|||
|
|||
CARES_CONFIGURE_SYMBOL_HIDING |
|||
|
|||
CARES_PRIVATE_LIBS="$LIBS" |
|||
AC_SUBST(CARES_PRIVATE_LIBS) |
|||
|
|||
CARES_CFLAG_EXTRAS="" |
|||
if test X"$want_werror" == Xyes; then |
|||
CARES_CFLAG_EXTRAS="-Werror" |
|||
fi |
|||
AC_SUBST(CARES_CFLAG_EXTRAS) |
|||
|
|||
dnl squeeze whitespace out of some variables |
|||
|
|||
squeeze CFLAGS |
|||
squeeze CPPFLAGS |
|||
squeeze DEFS |
|||
squeeze LDFLAGS |
|||
squeeze LIBS |
|||
|
|||
squeeze CARES_PRIVATE_LIBS |
|||
|
|||
AC_CONFIG_FILES([Makefile libcares.pc]) |
|||
AC_OUTPUT |
@ -1,530 +0,0 @@ |
|||
#! /bin/sh |
|||
# depcomp - compile a program generating dependencies as side-effects |
|||
|
|||
scriptversion=2005-07-09.11 |
|||
|
|||
# Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc. |
|||
|
|||
# This program is free software; you can redistribute it and/or modify |
|||
# it under the terms of the GNU General Public License as published by |
|||
# the Free Software Foundation; either version 2, or (at your option) |
|||
# any later version. |
|||
|
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU General Public License for more details. |
|||
|
|||
# You should have received a copy of the GNU General Public License |
|||
# along with this program; if not, write to the Free Software |
|||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
|||
# 02110-1301, USA. |
|||
|
|||
# As a special exception to the GNU General Public License, if you |
|||
# distribute this file as part of a program that contains a |
|||
# configuration script generated by Autoconf, you may include it under |
|||
# the same distribution terms that you use for the rest of that program. |
|||
|
|||
# Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>. |
|||
|
|||
case $1 in |
|||
'') |
|||
echo "$0: No command. Try \`$0 --help' for more information." 1>&2 |
|||
exit 1; |
|||
;; |
|||
-h | --h*) |
|||
cat <<\EOF |
|||
Usage: depcomp [--help] [--version] PROGRAM [ARGS] |
|||
|
|||
Run PROGRAMS ARGS to compile a file, generating dependencies |
|||
as side-effects. |
|||
|
|||
Environment variables: |
|||
depmode Dependency tracking mode. |
|||
source Source file read by `PROGRAMS ARGS'. |
|||
object Object file output by `PROGRAMS ARGS'. |
|||
DEPDIR directory where to store dependencies. |
|||
depfile Dependency file to output. |
|||
tmpdepfile Temporary file to use when outputing dependencies. |
|||
libtool Whether libtool is used (yes/no). |
|||
|
|||
Report bugs to <bug-automake@gnu.org>. |
|||
EOF |
|||
exit $? |
|||
;; |
|||
-v | --v*) |
|||
echo "depcomp $scriptversion" |
|||
exit $? |
|||
;; |
|||
esac |
|||
|
|||
if test -z "$depmode" || test -z "$source" || test -z "$object"; then |
|||
echo "depcomp: Variables source, object and depmode must be set" 1>&2 |
|||
exit 1 |
|||
fi |
|||
|
|||
# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po. |
|||
depfile=${depfile-`echo "$object" | |
|||
sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} |
|||
tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} |
|||
|
|||
rm -f "$tmpdepfile" |
|||
|
|||
# Some modes work just like other modes, but use different flags. We |
|||
# parameterize here, but still list the modes in the big case below, |
|||
# to make depend.m4 easier to write. Note that we *cannot* use a case |
|||
# here, because this file can only contain one case statement. |
|||
if test "$depmode" = hp; then |
|||
# HP compiler uses -M and no extra arg. |
|||
gccflag=-M |
|||
depmode=gcc |
|||
fi |
|||
|
|||
if test "$depmode" = dashXmstdout; then |
|||
# This is just like dashmstdout with a different argument. |
|||
dashmflag=-xM |
|||
depmode=dashmstdout |
|||
fi |
|||
|
|||
case "$depmode" in |
|||
gcc3) |
|||
## gcc 3 implements dependency tracking that does exactly what |
|||
## we want. Yay! Note: for some reason libtool 1.4 doesn't like |
|||
## it if -MD -MP comes after the -MF stuff. Hmm. |
|||
"$@" -MT "$object" -MD -MP -MF "$tmpdepfile" |
|||
stat=$? |
|||
if test $stat -eq 0; then : |
|||
else |
|||
rm -f "$tmpdepfile" |
|||
exit $stat |
|||
fi |
|||
mv "$tmpdepfile" "$depfile" |
|||
;; |
|||
|
|||
gcc) |
|||
## There are various ways to get dependency output from gcc. Here's |
|||
## why we pick this rather obscure method: |
|||
## - Don't want to use -MD because we'd like the dependencies to end |
|||
## up in a subdir. Having to rename by hand is ugly. |
|||
## (We might end up doing this anyway to support other compilers.) |
|||
## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like |
|||
## -MM, not -M (despite what the docs say). |
|||
## - Using -M directly means running the compiler twice (even worse |
|||
## than renaming). |
|||
if test -z "$gccflag"; then |
|||
gccflag=-MD, |
|||
fi |
|||
"$@" -Wp,"$gccflag$tmpdepfile" |
|||
stat=$? |
|||
if test $stat -eq 0; then : |
|||
else |
|||
rm -f "$tmpdepfile" |
|||
exit $stat |
|||
fi |
|||
rm -f "$depfile" |
|||
echo "$object : \\" > "$depfile" |
|||
alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz |
|||
## The second -e expression handles DOS-style file names with drive letters. |
|||
sed -e 's/^[^:]*: / /' \ |
|||
-e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" |
|||
## This next piece of magic avoids the `deleted header file' problem. |
|||
## The problem is that when a header file which appears in a .P file |
|||
## is deleted, the dependency causes make to die (because there is |
|||
## typically no way to rebuild the header). We avoid this by adding |
|||
## dummy dependencies for each header file. Too bad gcc doesn't do |
|||
## this for us directly. |
|||
tr ' ' ' |
|||
' < "$tmpdepfile" | |
|||
## Some versions of gcc put a space before the `:'. On the theory |
|||
## that the space means something, we add a space to the output as |
|||
## well. |
|||
## Some versions of the HPUX 10.20 sed can't process this invocation |
|||
## correctly. Breaking it into two sed invocations is a workaround. |
|||
sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" |
|||
rm -f "$tmpdepfile" |
|||
;; |
|||
|
|||
hp) |
|||
# This case exists only to let depend.m4 do its work. It works by |
|||
# looking at the text of this script. This case will never be run, |
|||
# since it is checked for above. |
|||
exit 1 |
|||
;; |
|||
|
|||
sgi) |
|||
if test "$libtool" = yes; then |
|||
"$@" "-Wp,-MDupdate,$tmpdepfile" |
|||
else |
|||
"$@" -MDupdate "$tmpdepfile" |
|||
fi |
|||
stat=$? |
|||
if test $stat -eq 0; then : |
|||
else |
|||
rm -f "$tmpdepfile" |
|||
exit $stat |
|||
fi |
|||
rm -f "$depfile" |
|||
|
|||
if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files |
|||
echo "$object : \\" > "$depfile" |
|||
|
|||
# Clip off the initial element (the dependent). Don't try to be |
|||
# clever and replace this with sed code, as IRIX sed won't handle |
|||
# lines with more than a fixed number of characters (4096 in |
|||
# IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; |
|||
# the IRIX cc adds comments like `#:fec' to the end of the |
|||
# dependency line. |
|||
tr ' ' ' |
|||
' < "$tmpdepfile" \ |
|||
| sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \ |
|||
tr ' |
|||
' ' ' >> $depfile |
|||
echo >> $depfile |
|||
|
|||
# The second pass generates a dummy entry for each header file. |
|||
tr ' ' ' |
|||
' < "$tmpdepfile" \ |
|||
| sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ |
|||
>> $depfile |
|||
else |
|||
# The sourcefile does not contain any dependencies, so just |
|||
# store a dummy comment line, to avoid errors with the Makefile |
|||
# "include basename.Plo" scheme. |
|||
echo "#dummy" > "$depfile" |
|||
fi |
|||
rm -f "$tmpdepfile" |
|||
;; |
|||
|
|||
aix) |
|||
# The C for AIX Compiler uses -M and outputs the dependencies |
|||
# in a .u file. In older versions, this file always lives in the |
|||
# current directory. Also, the AIX compiler puts `$object:' at the |
|||
# start of each line; $object doesn't have directory information. |
|||
# Version 6 uses the directory in both cases. |
|||
stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'` |
|||
tmpdepfile="$stripped.u" |
|||
if test "$libtool" = yes; then |
|||
"$@" -Wc,-M |
|||
else |
|||
"$@" -M |
|||
fi |
|||
stat=$? |
|||
|
|||
if test -f "$tmpdepfile"; then : |
|||
else |
|||
stripped=`echo "$stripped" | sed 's,^.*/,,'` |
|||
tmpdepfile="$stripped.u" |
|||
fi |
|||
|
|||
if test $stat -eq 0; then : |
|||
else |
|||
rm -f "$tmpdepfile" |
|||
exit $stat |
|||
fi |
|||
|
|||
if test -f "$tmpdepfile"; then |
|||
outname="$stripped.o" |
|||
# Each line is of the form `foo.o: dependent.h'. |
|||
# Do two passes, one to just change these to |
|||
# `$object: dependent.h' and one to simply `dependent.h:'. |
|||
sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile" |
|||
sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile" |
|||
else |
|||
# The sourcefile does not contain any dependencies, so just |
|||
# store a dummy comment line, to avoid errors with the Makefile |
|||
# "include basename.Plo" scheme. |
|||
echo "#dummy" > "$depfile" |
|||
fi |
|||
rm -f "$tmpdepfile" |
|||
;; |
|||
|
|||
icc) |
|||
# Intel's C compiler understands `-MD -MF file'. However on |
|||
# icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c |
|||
# ICC 7.0 will fill foo.d with something like |
|||
# foo.o: sub/foo.c |
|||
# foo.o: sub/foo.h |
|||
# which is wrong. We want: |
|||
# sub/foo.o: sub/foo.c |
|||
# sub/foo.o: sub/foo.h |
|||
# sub/foo.c: |
|||
# sub/foo.h: |
|||
# ICC 7.1 will output |
|||
# foo.o: sub/foo.c sub/foo.h |
|||
# and will wrap long lines using \ : |
|||
# foo.o: sub/foo.c ... \ |
|||
# sub/foo.h ... \ |
|||
# ... |
|||
|
|||
"$@" -MD -MF "$tmpdepfile" |
|||
stat=$? |
|||
if test $stat -eq 0; then : |
|||
else |
|||
rm -f "$tmpdepfile" |
|||
exit $stat |
|||
fi |
|||
rm -f "$depfile" |
|||
# Each line is of the form `foo.o: dependent.h', |
|||
# or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'. |
|||
# Do two passes, one to just change these to |
|||
# `$object: dependent.h' and one to simply `dependent.h:'. |
|||
sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" |
|||
# Some versions of the HPUX 10.20 sed can't process this invocation |
|||
# correctly. Breaking it into two sed invocations is a workaround. |
|||
sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" | |
|||
sed -e 's/$/ :/' >> "$depfile" |
|||
rm -f "$tmpdepfile" |
|||
;; |
|||
|
|||
tru64) |
|||
# The Tru64 compiler uses -MD to generate dependencies as a side |
|||
# effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'. |
|||
# At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put |
|||
# dependencies in `foo.d' instead, so we check for that too. |
|||
# Subdirectories are respected. |
|||
dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` |
|||
test "x$dir" = "x$object" && dir= |
|||
base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` |
|||
|
|||
if test "$libtool" = yes; then |
|||
# With Tru64 cc, shared objects can also be used to make a |
|||
# static library. This mecanism is used in libtool 1.4 series to |
|||
# handle both shared and static libraries in a single compilation. |
|||
# With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d. |
|||
# |
|||
# With libtool 1.5 this exception was removed, and libtool now |
|||
# generates 2 separate objects for the 2 libraries. These two |
|||
# compilations output dependencies in in $dir.libs/$base.o.d and |
|||
# in $dir$base.o.d. We have to check for both files, because |
|||
# one of the two compilations can be disabled. We should prefer |
|||
# $dir$base.o.d over $dir.libs/$base.o.d because the latter is |
|||
# automatically cleaned when .libs/ is deleted, while ignoring |
|||
# the former would cause a distcleancheck panic. |
|||
tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4 |
|||
tmpdepfile2=$dir$base.o.d # libtool 1.5 |
|||
tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5 |
|||
tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504 |
|||
"$@" -Wc,-MD |
|||
else |
|||
tmpdepfile1=$dir$base.o.d |
|||
tmpdepfile2=$dir$base.d |
|||
tmpdepfile3=$dir$base.d |
|||
tmpdepfile4=$dir$base.d |
|||
"$@" -MD |
|||
fi |
|||
|
|||
stat=$? |
|||
if test $stat -eq 0; then : |
|||
else |
|||
rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" |
|||
exit $stat |
|||
fi |
|||
|
|||
for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" |
|||
do |
|||
test -f "$tmpdepfile" && break |
|||
done |
|||
if test -f "$tmpdepfile"; then |
|||
sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" |
|||
# That's a tab and a space in the []. |
|||
sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" |
|||
else |
|||
echo "#dummy" > "$depfile" |
|||
fi |
|||
rm -f "$tmpdepfile" |
|||
;; |
|||
|
|||
#nosideeffect) |
|||
# This comment above is used by automake to tell side-effect |
|||
# dependency tracking mechanisms from slower ones. |
|||
|
|||
dashmstdout) |
|||
# Important note: in order to support this mode, a compiler *must* |
|||
# always write the preprocessed file to stdout, regardless of -o. |
|||
"$@" || exit $? |
|||
|
|||
# Remove the call to Libtool. |
|||
if test "$libtool" = yes; then |
|||
while test $1 != '--mode=compile'; do |
|||
shift |
|||
done |
|||
shift |
|||
fi |
|||
|
|||
# Remove `-o $object'. |
|||
IFS=" " |
|||
for arg |
|||
do |
|||
case $arg in |
|||
-o) |
|||
shift |
|||
;; |
|||
$object) |
|||
shift |
|||
;; |
|||
*) |
|||
set fnord "$@" "$arg" |
|||
shift # fnord |
|||
shift # $arg |
|||
;; |
|||
esac |
|||
done |
|||
|
|||
test -z "$dashmflag" && dashmflag=-M |
|||
# Require at least two characters before searching for `:' |
|||
# in the target name. This is to cope with DOS-style filenames: |
|||
# a dependency such as `c:/foo/bar' could be seen as target `c' otherwise. |
|||
"$@" $dashmflag | |
|||
sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile" |
|||
rm -f "$depfile" |
|||
cat < "$tmpdepfile" > "$depfile" |
|||
tr ' ' ' |
|||
' < "$tmpdepfile" | \ |
|||
## Some versions of the HPUX 10.20 sed can't process this invocation |
|||
## correctly. Breaking it into two sed invocations is a workaround. |
|||
sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" |
|||
rm -f "$tmpdepfile" |
|||
;; |
|||
|
|||
dashXmstdout) |
|||
# This case only exists to satisfy depend.m4. It is never actually |
|||
# run, as this mode is specially recognized in the preamble. |
|||
exit 1 |
|||
;; |
|||
|
|||
makedepend) |
|||
"$@" || exit $? |
|||
# Remove any Libtool call |
|||
if test "$libtool" = yes; then |
|||
while test $1 != '--mode=compile'; do |
|||
shift |
|||
done |
|||
shift |
|||
fi |
|||
# X makedepend |
|||
shift |
|||
cleared=no |
|||
for arg in "$@"; do |
|||
case $cleared in |
|||
no) |
|||
set ""; shift |
|||
cleared=yes ;; |
|||
esac |
|||
case "$arg" in |
|||
-D*|-I*) |
|||
set fnord "$@" "$arg"; shift ;; |
|||
# Strip any option that makedepend may not understand. Remove |
|||
# the object too, otherwise makedepend will parse it as a source file. |
|||
-*|$object) |
|||
;; |
|||
*) |
|||
set fnord "$@" "$arg"; shift ;; |
|||
esac |
|||
done |
|||
obj_suffix="`echo $object | sed 's/^.*\././'`" |
|||
touch "$tmpdepfile" |
|||
${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" |
|||
rm -f "$depfile" |
|||
cat < "$tmpdepfile" > "$depfile" |
|||
sed '1,2d' "$tmpdepfile" | tr ' ' ' |
|||
' | \ |
|||
## Some versions of the HPUX 10.20 sed can't process this invocation |
|||
## correctly. Breaking it into two sed invocations is a workaround. |
|||
sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" |
|||
rm -f "$tmpdepfile" "$tmpdepfile".bak |
|||
;; |
|||
|
|||
cpp) |
|||
# Important note: in order to support this mode, a compiler *must* |
|||
# always write the preprocessed file to stdout. |
|||
"$@" || exit $? |
|||
|
|||
# Remove the call to Libtool. |
|||
if test "$libtool" = yes; then |
|||
while test $1 != '--mode=compile'; do |
|||
shift |
|||
done |
|||
shift |
|||
fi |
|||
|
|||
# Remove `-o $object'. |
|||
IFS=" " |
|||
for arg |
|||
do |
|||
case $arg in |
|||
-o) |
|||
shift |
|||
;; |
|||
$object) |
|||
shift |
|||
;; |
|||
*) |
|||
set fnord "$@" "$arg" |
|||
shift # fnord |
|||
shift # $arg |
|||
;; |
|||
esac |
|||
done |
|||
|
|||
"$@" -E | |
|||
sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ |
|||
-e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' | |
|||
sed '$ s: \\$::' > "$tmpdepfile" |
|||
rm -f "$depfile" |
|||
echo "$object : \\" > "$depfile" |
|||
cat < "$tmpdepfile" >> "$depfile" |
|||
sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" |
|||
rm -f "$tmpdepfile" |
|||
;; |
|||
|
|||
msvisualcpp) |
|||
# Important note: in order to support this mode, a compiler *must* |
|||
# always write the preprocessed file to stdout, regardless of -o, |
|||
# because we must use -o when running libtool. |
|||
"$@" || exit $? |
|||
IFS=" " |
|||
for arg |
|||
do |
|||
case "$arg" in |
|||
"-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") |
|||
set fnord "$@" |
|||
shift |
|||
shift |
|||
;; |
|||
*) |
|||
set fnord "$@" "$arg" |
|||
shift |
|||
shift |
|||
;; |
|||
esac |
|||
done |
|||
"$@" -E | |
|||
sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile" |
|||
rm -f "$depfile" |
|||
echo "$object : \\" > "$depfile" |
|||
. "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile" |
|||
echo " " >> "$depfile" |
|||
. "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile" |
|||
rm -f "$tmpdepfile" |
|||
;; |
|||
|
|||
none) |
|||
exec "$@" |
|||
;; |
|||
|
|||
*) |
|||
echo "Unknown depmode $depmode" 1>&2 |
|||
exit 1 |
|||
;; |
|||
esac |
|||
|
|||
exit 0 |
|||
|
|||
# Local Variables: |
|||
# mode: shell-script |
|||
# sh-indentation: 2 |
|||
# eval: (add-hook 'write-file-hooks 'time-stamp) |
|||
# time-stamp-start: "scriptversion=" |
|||
# time-stamp-format: "%:y-%02m-%02d.%02H" |
|||
# time-stamp-end: "$" |
|||
# End: |
@ -1,250 +0,0 @@ |
|||
#!/bin/sh |
|||
# |
|||
# install - install a program, script, or datafile |
|||
# This comes from X11R5 (mit/util/scripts/install.sh). |
|||
# |
|||
# Copyright 1991 by the Massachusetts Institute of Technology |
|||
# |
|||
# Permission to use, copy, modify, distribute, and sell this software and its |
|||
# documentation for any purpose is hereby granted without fee, provided that |
|||
# the above copyright notice appear in all copies and that both that |
|||
# copyright notice and this permission notice appear in supporting |
|||
# documentation, and that the name of M.I.T. not be used in advertising or |
|||
# publicity pertaining to distribution of the software without specific, |
|||
# written prior permission. M.I.T. makes no representations about the |
|||
# suitability of this software for any purpose. It is provided "as is" |
|||
# without express or implied warranty. |
|||
# |
|||
# Calling this script install-sh is preferred over install.sh, to prevent |
|||
# `make' implicit rules from creating a file called install from it |
|||
# when there is no Makefile. |
|||
# |
|||
# This script is compatible with the BSD install script, but was written |
|||
# from scratch. It can only install one file at a time, a restriction |
|||
# shared with many OS's install programs. |
|||
|
|||
|
|||
# set DOITPROG to echo to test this script |
|||
|
|||
# Don't use :- since 4.3BSD and earlier shells don't like it. |
|||
doit="${DOITPROG-}" |
|||
|
|||
|
|||
# put in absolute paths if you don't have them in your path; or use env. vars. |
|||
|
|||
mvprog="${MVPROG-mv}" |
|||
cpprog="${CPPROG-cp}" |
|||
chmodprog="${CHMODPROG-chmod}" |
|||
chownprog="${CHOWNPROG-chown}" |
|||
chgrpprog="${CHGRPPROG-chgrp}" |
|||
stripprog="${STRIPPROG-strip}" |
|||
rmprog="${RMPROG-rm}" |
|||
mkdirprog="${MKDIRPROG-mkdir}" |
|||
|
|||
transformbasename="" |
|||
transform_arg="" |
|||
instcmd="$mvprog" |
|||
chmodcmd="$chmodprog 0755" |
|||
chowncmd="" |
|||
chgrpcmd="" |
|||
stripcmd="" |
|||
rmcmd="$rmprog -f" |
|||
mvcmd="$mvprog" |
|||
src="" |
|||
dst="" |
|||
dir_arg="" |
|||
|
|||
while [ x"$1" != x ]; do |
|||
case $1 in |
|||
-c) instcmd="$cpprog" |
|||
shift |
|||
continue;; |
|||
|
|||
-d) dir_arg=true |
|||
shift |
|||
continue;; |
|||
|
|||
-m) chmodcmd="$chmodprog $2" |
|||
shift |
|||
shift |
|||
continue;; |
|||
|
|||
-o) chowncmd="$chownprog $2" |
|||
shift |
|||
shift |
|||
continue;; |
|||
|
|||
-g) chgrpcmd="$chgrpprog $2" |
|||
shift |
|||
shift |
|||
continue;; |
|||
|
|||
-s) stripcmd="$stripprog" |
|||
shift |
|||
continue;; |
|||
|
|||
-t=*) transformarg=`echo $1 | sed 's/-t=//'` |
|||
shift |
|||
continue;; |
|||
|
|||
-b=*) transformbasename=`echo $1 | sed 's/-b=//'` |
|||
shift |
|||
continue;; |
|||
|
|||
*) if [ x"$src" = x ] |
|||
then |
|||
src=$1 |
|||
else |
|||
# this colon is to work around a 386BSD /bin/sh bug |
|||
: |
|||
dst=$1 |
|||
fi |
|||
shift |
|||
continue;; |
|||
esac |
|||
done |
|||
|
|||
if [ x"$src" = x ] |
|||
then |
|||
echo "install: no input file specified" |
|||
exit 1 |
|||
else |
|||
true |
|||
fi |
|||
|
|||
if [ x"$dir_arg" != x ]; then |
|||
dst=$src |
|||
src="" |
|||
|
|||
if [ -d $dst ]; then |
|||
instcmd=: |
|||
else |
|||
instcmd=mkdir |
|||
fi |
|||
else |
|||
|
|||
# Waiting for this to be detected by the "$instcmd $src $dsttmp" command |
|||
# might cause directories to be created, which would be especially bad |
|||
# if $src (and thus $dsttmp) contains '*'. |
|||
|
|||
if [ -f $src -o -d $src ] |
|||
then |
|||
true |
|||
else |
|||
echo "install: $src does not exist" |
|||
exit 1 |
|||
fi |
|||
|
|||
if [ x"$dst" = x ] |
|||
then |
|||
echo "install: no destination specified" |
|||
exit 1 |
|||
else |
|||
true |
|||
fi |
|||
|
|||
# If destination is a directory, append the input filename; if your system |
|||
# does not like double slashes in filenames, you may need to add some logic |
|||
|
|||
if [ -d $dst ] |
|||
then |
|||
dst="$dst"/`basename $src` |
|||
else |
|||
true |
|||
fi |
|||
fi |
|||
|
|||
## this sed command emulates the dirname command |
|||
dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'` |
|||
|
|||
# Make sure that the destination directory exists. |
|||
# this part is taken from Noah Friedman's mkinstalldirs script |
|||
|
|||
# Skip lots of stat calls in the usual case. |
|||
if [ ! -d "$dstdir" ]; then |
|||
defaultIFS=' |
|||
' |
|||
IFS="${IFS-${defaultIFS}}" |
|||
|
|||
oIFS="${IFS}" |
|||
# Some sh's can't handle IFS=/ for some reason. |
|||
IFS='%' |
|||
set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'` |
|||
IFS="${oIFS}" |
|||
|
|||
pathcomp='' |
|||
|
|||
while [ $# -ne 0 ] ; do |
|||
pathcomp="${pathcomp}${1}" |
|||
shift |
|||
|
|||
if [ ! -d "${pathcomp}" ] ; |
|||
then |
|||
$mkdirprog "${pathcomp}" |
|||
else |
|||
true |
|||
fi |
|||
|
|||
pathcomp="${pathcomp}/" |
|||
done |
|||
fi |
|||
|
|||
if [ x"$dir_arg" != x ] |
|||
then |
|||
$doit $instcmd $dst && |
|||
|
|||
if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi && |
|||
if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi && |
|||
if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi && |
|||
if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi |
|||
else |
|||
|
|||
# If we're going to rename the final executable, determine the name now. |
|||
|
|||
if [ x"$transformarg" = x ] |
|||
then |
|||
dstfile=`basename $dst` |
|||
else |
|||
dstfile=`basename $dst $transformbasename | |
|||
sed $transformarg`$transformbasename |
|||
fi |
|||
|
|||
# don't allow the sed command to completely eliminate the filename |
|||
|
|||
if [ x"$dstfile" = x ] |
|||
then |
|||
dstfile=`basename $dst` |
|||
else |
|||
true |
|||
fi |
|||
|
|||
# Make a temp file name in the proper directory. |
|||
|
|||
dsttmp=$dstdir/#inst.$$# |
|||
|
|||
# Move or copy the file name to the temp name |
|||
|
|||
$doit $instcmd $src $dsttmp && |
|||
|
|||
trap "rm -f ${dsttmp}" 0 && |
|||
|
|||
# and set any options; do chmod last to preserve setuid bits |
|||
|
|||
# If any of these fail, we abort the whole thing. If we want to |
|||
# ignore errors from any of these, just make sure not to ignore |
|||
# errors from the above "$doit $instcmd $src $dsttmp" command. |
|||
|
|||
if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi && |
|||
if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi && |
|||
if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi && |
|||
if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi && |
|||
|
|||
# Now rename the file to the real destination. |
|||
|
|||
$doit $rmcmd -f $dstdir/$dstfile && |
|||
$doit $mvcmd $dsttmp $dstdir/$dstfile |
|||
|
|||
fi && |
|||
|
|||
|
|||
exit 0 |
@ -1,20 +0,0 @@ |
|||
#*************************************************************************** |
|||
# Project ___ __ _ _ __ ___ ___ |
|||
# / __|____ / _` | '__/ _ \/ __| |
|||
# | (_|_____| (_| | | | __/\__ \ |
|||
# \___| \__,_|_| \___||___/ |
|||
# |
|||
prefix=@prefix@ |
|||
exec_prefix=@exec_prefix@ |
|||
libdir=@libdir@ |
|||
includedir=@includedir@ |
|||
|
|||
Name: c-ares |
|||
URL: http://daniel.haxx.se/projects/c-ares/ |
|||
Description: asynchronous DNS lookup library |
|||
Version: @VERSION@ |
|||
Requires: |
|||
Requires.private: |
|||
Cflags: -I${includedir} |
|||
Libs: -L${libdir} -lcares |
|||
Libs.private: @CARES_PRIVATE_LIBS@ |
File diff suppressed because it is too large
File diff suppressed because it is too large
@ -1,352 +0,0 @@ |
|||
#*************************************************************************** |
|||
# $Id$ |
|||
# |
|||
# Copyright (C) 2008 - 2010 by Daniel Stenberg et al |
|||
# |
|||
# Permission to use, copy, modify, and distribute this software and its |
|||
# documentation for any purpose and without fee is hereby granted, provided |
|||
# that the above copyright notice appear in all copies and that both that |
|||
# copyright notice and this permission notice appear in supporting |
|||
# documentation, and that the name of M.I.T. not be used in advertising or |
|||
# publicity pertaining to distribution of the software without specific, |
|||
# written prior permission. M.I.T. makes no representations about the |
|||
# suitability of this software for any purpose. It is provided "as is" |
|||
# without express or implied warranty. |
|||
# |
|||
#*************************************************************************** |
|||
|
|||
# File version for 'aclocal' use. Keep it a single number. |
|||
# serial 9 |
|||
|
|||
|
|||
dnl CARES_CHECK_OPTION_CURLDEBUG |
|||
dnl ------------------------------------------------- |
|||
dnl Verify if configure has been invoked with option |
|||
dnl --enable-curldebug or --disable-curldebug, and set |
|||
dnl shell variable want_curldebug value as appropriate. |
|||
|
|||
AC_DEFUN([CARES_CHECK_OPTION_CURLDEBUG], [ |
|||
AC_BEFORE([$0],[CARES_CHECK_CURLDEBUG])dnl |
|||
AC_MSG_CHECKING([whether to enable curl debug memory tracking]) |
|||
OPT_CURLDEBUG_BUILD="default" |
|||
AC_ARG_ENABLE(curldebug, |
|||
AC_HELP_STRING([--enable-curldebug],[Enable curl debug memory tracking]) |
|||
AC_HELP_STRING([--disable-curldebug],[Disable curl debug memory tracking]), |
|||
OPT_CURLDEBUG_BUILD=$enableval) |
|||
case "$OPT_CURLDEBUG_BUILD" in |
|||
no) |
|||
dnl --disable-curldebug option used |
|||
want_curldebug="no" |
|||
;; |
|||
default) |
|||
dnl configure option not specified |
|||
want_curldebug="no" |
|||
;; |
|||
*) |
|||
dnl --enable-curldebug option used. |
|||
dnl The use of this option value is a request to enable curl's |
|||
dnl debug memory tracking for the c-ares library. This is a big |
|||
dnl hack that can only be done when a whole bunch of requisites |
|||
dnl are simultaneously satisfied. Later on, these requisites are |
|||
dnl verified and if they are not fully satisfied the option will |
|||
dnl be ignored and act as if --disable-curldebug had been given |
|||
dnl setting shell variable want_curldebug to 'no'. |
|||
want_curldebug="yes" |
|||
;; |
|||
esac |
|||
AC_MSG_RESULT([$want_curldebug]) |
|||
]) |
|||
|
|||
|
|||
dnl CARES_CHECK_OPTION_DEBUG |
|||
dnl ------------------------------------------------- |
|||
dnl Verify if configure has been invoked with option |
|||
dnl --enable-debug or --disable-debug, and set shell |
|||
dnl variable want_debug value as appropriate. |
|||
|
|||
AC_DEFUN([CARES_CHECK_OPTION_DEBUG], [ |
|||
AC_BEFORE([$0],[CARES_CHECK_OPTION_WARNINGS])dnl |
|||
AC_BEFORE([$0],[CARES_CHECK_OPTION_CURLDEBUG])dnl |
|||
AC_BEFORE([$0],[CARES_CHECK_PROG_CC])dnl |
|||
AC_MSG_CHECKING([whether to enable debug build options]) |
|||
OPT_DEBUG_BUILD="default" |
|||
AC_ARG_ENABLE(debug, |
|||
AC_HELP_STRING([--enable-debug],[Enable debug build options]) |
|||
AC_HELP_STRING([--disable-debug],[Disable debug build options]), |
|||
OPT_DEBUG_BUILD=$enableval) |
|||
case "$OPT_DEBUG_BUILD" in |
|||
no) |
|||
dnl --disable-debug option used |
|||
want_debug="no" |
|||
;; |
|||
default) |
|||
dnl configure option not specified |
|||
want_debug="no" |
|||
;; |
|||
*) |
|||
dnl --enable-debug option used |
|||
want_debug="yes" |
|||
;; |
|||
esac |
|||
AC_MSG_RESULT([$want_debug]) |
|||
]) |
|||
|
|||
|
|||
dnl CARES_CHECK_OPTION_NONBLOCKING |
|||
dnl ------------------------------------------------- |
|||
dnl Verify if configure has been invoked with option |
|||
dnl --enable-nonblocking or --disable-nonblocking, and |
|||
dnl set shell variable want_nonblocking as appropriate. |
|||
|
|||
AC_DEFUN([CARES_CHECK_OPTION_NONBLOCKING], [ |
|||
AC_BEFORE([$0],[CARES_CHECK_NONBLOCKING_SOCKET])dnl |
|||
AC_MSG_CHECKING([whether to enable non-blocking communications]) |
|||
OPT_NONBLOCKING="default" |
|||
AC_ARG_ENABLE(nonblocking, |
|||
AC_HELP_STRING([--enable-nonblocking],[Enable non-blocking communications]) |
|||
AC_HELP_STRING([--disable-nonblocking],[Disable non-blocking communications]), |
|||
OPT_NONBLOCKING=$enableval) |
|||
case "$OPT_NONBLOCKING" in |
|||
no) |
|||
dnl --disable-nonblocking option used |
|||
want_nonblocking="no" |
|||
;; |
|||
default) |
|||
dnl configure option not specified |
|||
want_nonblocking="yes" |
|||
;; |
|||
*) |
|||
dnl --enable-nonblocking option used |
|||
want_nonblocking="yes" |
|||
;; |
|||
esac |
|||
AC_MSG_RESULT([$want_nonblocking]) |
|||
]) |
|||
|
|||
|
|||
dnl CARES_CHECK_OPTION_OPTIMIZE |
|||
dnl ------------------------------------------------- |
|||
dnl Verify if configure has been invoked with option |
|||
dnl --enable-optimize or --disable-optimize, and set |
|||
dnl shell variable want_optimize value as appropriate. |
|||
|
|||
AC_DEFUN([CARES_CHECK_OPTION_OPTIMIZE], [ |
|||
AC_REQUIRE([CARES_CHECK_OPTION_DEBUG])dnl |
|||
AC_BEFORE([$0],[CARES_CHECK_PROG_CC])dnl |
|||
AC_MSG_CHECKING([whether to enable compiler optimizer]) |
|||
OPT_COMPILER_OPTIMIZE="default" |
|||
AC_ARG_ENABLE(optimize, |
|||
AC_HELP_STRING([--enable-optimize(=OPT)],[Enable compiler optimizations (default=-O2)]) |
|||
AC_HELP_STRING([--disable-optimize],[Disable compiler optimizations]), |
|||
OPT_COMPILER_OPTIMIZE=$enableval) |
|||
case "$OPT_COMPILER_OPTIMIZE" in |
|||
no) |
|||
dnl --disable-optimize option used. We will handle this as |
|||
dnl a request to disable compiler optimizations if possible. |
|||
dnl If the compiler is known CFLAGS and CPPFLAGS will be |
|||
dnl overridden, otherwise this can not be honored. |
|||
want_optimize="no" |
|||
AC_MSG_RESULT([no]) |
|||
;; |
|||
default) |
|||
dnl configure's optimize option not specified. Initially we will |
|||
dnl handle this as a a request contrary to configure's setting |
|||
dnl for --enable-debug. IOW, initially, for debug-enabled builds |
|||
dnl this will be handled as a request to disable optimizations if |
|||
dnl possible, and for debug-disabled builds this will be handled |
|||
dnl initially as a request to enable optimizations if possible. |
|||
dnl Finally, if the compiler is known and CFLAGS and CPPFLAGS do |
|||
dnl not have any optimizer flag the request will be honored, in |
|||
dnl any other case the request can not be honored. |
|||
dnl IOW, existing optimizer flags defined in CFLAGS or CPPFLAGS |
|||
dnl will always take precedence over any initial assumption. |
|||
if test "$want_debug" = "yes"; then |
|||
want_optimize="assume_no" |
|||
AC_MSG_RESULT([not specified (assuming no)]) |
|||
else |
|||
want_optimize="assume_yes" |
|||
AC_MSG_RESULT([not specified (assuming yes)]) |
|||
fi |
|||
;; |
|||
*) |
|||
dnl --enable-optimize option used. We will handle this as |
|||
dnl a request to enable compiler optimizations if possible. |
|||
dnl If the compiler is known CFLAGS and CPPFLAGS will be |
|||
dnl overridden, otherwise this can not be honored. |
|||
want_optimize="yes" |
|||
AC_MSG_RESULT([yes]) |
|||
;; |
|||
esac |
|||
]) |
|||
|
|||
|
|||
dnl CARES_CHECK_OPTION_SYMBOL_HIDING |
|||
dnl ------------------------------------------------- |
|||
dnl Verify if configure has been invoked with option |
|||
dnl --enable-symbol-hiding or --disable-symbol-hiding, |
|||
dnl setting shell variable want_symbol_hiding value. |
|||
|
|||
AC_DEFUN([CARES_CHECK_OPTION_SYMBOL_HIDING], [ |
|||
AC_BEFORE([$0],[CARES_CHECK_COMPILER_SYMBOL_HIDING])dnl |
|||
AC_MSG_CHECKING([whether to enable hiding of library internal symbols]) |
|||
OPT_SYMBOL_HIDING="default" |
|||
AC_ARG_ENABLE(symbol-hiding, |
|||
AC_HELP_STRING([--enable-symbol-hiding],[Enable hiding of library internal symbols]) |
|||
AC_HELP_STRING([--disable-symbol-hiding],[Disable hiding of library internal symbols]), |
|||
OPT_SYMBOL_HIDING=$enableval) |
|||
case "$OPT_SYMBOL_HIDING" in |
|||
no) |
|||
dnl --disable-symbol-hiding option used. |
|||
dnl This is an indication to not attempt hiding of library internal |
|||
dnl symbols. Default symbol visibility will be used, which normally |
|||
dnl exposes all library internal symbols. |
|||
want_symbol_hiding="no" |
|||
AC_MSG_RESULT([no]) |
|||
;; |
|||
default) |
|||
dnl configure's symbol-hiding option not specified. |
|||
dnl Handle this as if --enable-symbol-hiding option was given. |
|||
want_symbol_hiding="yes" |
|||
AC_MSG_RESULT([yes]) |
|||
;; |
|||
*) |
|||
dnl --enable-symbol-hiding option used. |
|||
dnl This is an indication to attempt hiding of library internal |
|||
dnl symbols. This is only supported on some compilers/linkers. |
|||
want_symbol_hiding="yes" |
|||
AC_MSG_RESULT([yes]) |
|||
;; |
|||
esac |
|||
]) |
|||
|
|||
|
|||
dnl CARES_CHECK_OPTION_WARNINGS |
|||
dnl ------------------------------------------------- |
|||
dnl Verify if configure has been invoked with option |
|||
dnl --enable-warnings or --disable-warnings, and set |
|||
dnl shell variable want_warnings as appropriate. |
|||
|
|||
AC_DEFUN([CARES_CHECK_OPTION_WARNINGS], [ |
|||
AC_REQUIRE([CARES_CHECK_OPTION_DEBUG])dnl |
|||
AC_BEFORE([$0],[CARES_CHECK_OPTION_WERROR])dnl |
|||
AC_BEFORE([$0],[CARES_CHECK_PROG_CC])dnl |
|||
AC_MSG_CHECKING([whether to enable strict compiler warnings]) |
|||
OPT_COMPILER_WARNINGS="default" |
|||
AC_ARG_ENABLE(warnings, |
|||
AC_HELP_STRING([--enable-warnings],[Enable strict compiler warnings]) |
|||
AC_HELP_STRING([--disable-warnings],[Disable strict compiler warnings]), |
|||
OPT_COMPILER_WARNINGS=$enableval) |
|||
case "$OPT_COMPILER_WARNINGS" in |
|||
no) |
|||
dnl --disable-warnings option used |
|||
want_warnings="no" |
|||
;; |
|||
default) |
|||
dnl configure option not specified, so |
|||
dnl use same setting as --enable-debug |
|||
want_warnings="$want_debug" |
|||
;; |
|||
*) |
|||
dnl --enable-warnings option used |
|||
want_warnings="yes" |
|||
;; |
|||
esac |
|||
AC_MSG_RESULT([$want_warnings]) |
|||
]) |
|||
|
|||
dnl CARES_CHECK_OPTION_WERROR |
|||
dnl ------------------------------------------------- |
|||
dnl Verify if configure has been invoked with option |
|||
dnl --enable-werror or --disable-werror, and set |
|||
dnl shell variable want_werror as appropriate. |
|||
|
|||
AC_DEFUN([CARES_CHECK_OPTION_WERROR], [ |
|||
AC_BEFORE([$0],[CARES_CHECK_COMPILER])dnl |
|||
AC_MSG_CHECKING([whether to enable compiler warnings as errors]) |
|||
OPT_COMPILER_WERROR="default" |
|||
AC_ARG_ENABLE(werror, |
|||
AC_HELP_STRING([--enable-werror],[Enable compiler warnings as errors]) |
|||
AC_HELP_STRING([--disable-werror],[Disable compiler warnings as errors]), |
|||
OPT_COMPILER_WERROR=$enableval) |
|||
case "$OPT_COMPILER_WERROR" in |
|||
no) |
|||
dnl --disable-werror option used |
|||
want_werror="no" |
|||
;; |
|||
default) |
|||
dnl configure option not specified |
|||
want_werror="no" |
|||
;; |
|||
*) |
|||
dnl --enable-werror option used |
|||
want_werror="yes" |
|||
;; |
|||
esac |
|||
AC_MSG_RESULT([$want_werror]) |
|||
]) |
|||
|
|||
|
|||
dnl CARES_CHECK_NONBLOCKING_SOCKET |
|||
dnl ------------------------------------------------- |
|||
dnl Check for how to set a socket into non-blocking state. |
|||
|
|||
AC_DEFUN([CARES_CHECK_NONBLOCKING_SOCKET], [ |
|||
AC_REQUIRE([CARES_CHECK_OPTION_NONBLOCKING])dnl |
|||
AC_REQUIRE([CARES_CHECK_FUNC_FCNTL])dnl |
|||
AC_REQUIRE([CARES_CHECK_FUNC_IOCTL])dnl |
|||
AC_REQUIRE([CARES_CHECK_FUNC_IOCTLSOCKET])dnl |
|||
AC_REQUIRE([CARES_CHECK_FUNC_IOCTLSOCKET_CAMEL])dnl |
|||
AC_REQUIRE([CARES_CHECK_FUNC_SETSOCKOPT])dnl |
|||
# |
|||
tst_method="unknown" |
|||
if test "$want_nonblocking" = "yes"; then |
|||
AC_MSG_CHECKING([how to set a socket into non-blocking mode]) |
|||
if test "x$ac_cv_func_fcntl_o_nonblock" = "xyes"; then |
|||
tst_method="fcntl O_NONBLOCK" |
|||
elif test "x$ac_cv_func_ioctl_fionbio" = "xyes"; then |
|||
tst_method="ioctl FIONBIO" |
|||
elif test "x$ac_cv_func_ioctlsocket_fionbio" = "xyes"; then |
|||
tst_method="ioctlsocket FIONBIO" |
|||
elif test "x$ac_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then |
|||
tst_method="IoctlSocket FIONBIO" |
|||
elif test "x$ac_cv_func_setsockopt_so_nonblock" = "xyes"; then |
|||
tst_method="setsockopt SO_NONBLOCK" |
|||
fi |
|||
AC_MSG_RESULT([$tst_method]) |
|||
if test "$tst_method" = "unknown"; then |
|||
AC_MSG_WARN([cannot determine non-blocking socket method.]) |
|||
fi |
|||
fi |
|||
if test "$tst_method" = "unknown"; then |
|||
AC_DEFINE_UNQUOTED(USE_BLOCKING_SOCKETS, 1, |
|||
[Define to disable non-blocking sockets.]) |
|||
AC_MSG_WARN([non-blocking sockets disabled.]) |
|||
fi |
|||
]) |
|||
|
|||
|
|||
dnl CARES_CONFIGURE_SYMBOL_HIDING |
|||
dnl ------------------------------------------------- |
|||
dnl Depending on --enable-symbol-hiding or --disable-symbol-hiding |
|||
dnl configure option, and compiler capability to actually honor such |
|||
dnl option, this will modify compiler flags as appropriate and also |
|||
dnl provide needed definitions for configuration file. |
|||
dnl This macro should not be used until all compilation tests have |
|||
dnl been done to prevent interferences on other tests. |
|||
|
|||
AC_DEFUN([CARES_CONFIGURE_SYMBOL_HIDING], [ |
|||
AC_MSG_CHECKING([whether hiding of library internal symbols will actually happen]) |
|||
if test x"$ac_cv_native_windows" != "xyes" && |
|||
test "$want_symbol_hiding" = "yes" && |
|||
test "$supports_symbol_hiding" = "yes"; then |
|||
CFLAGS="$CFLAGS $symbol_hiding_CFLAGS" |
|||
AC_DEFINE_UNQUOTED(CARES_SYMBOL_HIDING, 1, |
|||
[Define to 1 to enable hiding of library internal symbols.]) |
|||
AC_DEFINE_UNQUOTED(CARES_SYMBOL_SCOPE_EXTERN, $symbol_hiding_EXTERN, |
|||
[Definition to make a library symbol externally visible.]) |
|||
AC_MSG_RESULT([yes]) |
|||
else |
|||
AC_MSG_RESULT([no]) |
|||
fi |
|||
]) |
|||
|
File diff suppressed because it is too large
@ -1,102 +0,0 @@ |
|||
#*************************************************************************** |
|||
# $Id$ |
|||
#*************************************************************************** |
|||
|
|||
# File version for 'aclocal' use. Keep it a single number. |
|||
# serial 3 |
|||
|
|||
dnl CARES_OVERRIDE_AUTOCONF |
|||
dnl ------------------------------------------------- |
|||
dnl Placing a call to this macro in configure.ac after |
|||
dnl the one to AC_INIT will make macros in this file |
|||
dnl visible to the rest of the compilation overriding |
|||
dnl those from Autoconf. |
|||
|
|||
AC_DEFUN([CARES_OVERRIDE_AUTOCONF], [ |
|||
AC_BEFORE([$0],[AC_PROG_LIBTOOL]) |
|||
# using cares-override.m4 |
|||
]) |
|||
|
|||
dnl Override some Libtool tests |
|||
dnl ------------------------------------------------- |
|||
dnl This is done to prevent Libtool 1.5.X from doing |
|||
dnl unnecesary C++, Fortran and Java tests and reduce |
|||
dnl resulting configure script by nearly 300 Kb. |
|||
|
|||
m4_define([AC_LIBTOOL_LANG_CXX_CONFIG],[:]) |
|||
m4_define([AC_LIBTOOL_LANG_F77_CONFIG],[:]) |
|||
m4_define([AC_LIBTOOL_LANG_GCJ_CONFIG],[:]) |
|||
|
|||
dnl Override Autoconf's AC_LANG_PROGRAM (C) |
|||
dnl ------------------------------------------------- |
|||
dnl This is done to prevent compiler warning |
|||
dnl 'function declaration isn't a prototype' |
|||
dnl in function main. This requires at least |
|||
dnl a c89 compiler and does not suport K&R. |
|||
|
|||
m4_define([AC_LANG_PROGRAM(C)], |
|||
[$1 |
|||
int main (void) |
|||
{ |
|||
$2 |
|||
; |
|||
return 0; |
|||
}]) |
|||
|
|||
dnl Override Autoconf's AC_LANG_CALL (C) |
|||
dnl ------------------------------------------------- |
|||
dnl This is a backport of Autoconf's 2.60 with the |
|||
dnl embedded comments that hit the resulting script |
|||
dnl removed. This is done to reduce configure size |
|||
dnl and use fixed macro across Autoconf versions. |
|||
|
|||
m4_define([AC_LANG_CALL(C)], |
|||
[AC_LANG_PROGRAM([$1 |
|||
m4_if([$2], [main], , |
|||
[ |
|||
#ifdef __cplusplus |
|||
extern "C" |
|||
#endif |
|||
char $2 ();])], [return $2 ();])]) |
|||
|
|||
dnl Override Autoconf's AC_LANG_FUNC_LINK_TRY (C) |
|||
dnl ------------------------------------------------- |
|||
dnl This is a backport of Autoconf's 2.60 with the |
|||
dnl embedded comments that hit the resulting script |
|||
dnl removed. This is done to reduce configure size |
|||
dnl and use fixed macro across Autoconf versions. |
|||
|
|||
m4_define([AC_LANG_FUNC_LINK_TRY(C)], |
|||
[AC_LANG_PROGRAM( |
|||
[ |
|||
#define $1 innocuous_$1 |
|||
#ifdef __STDC__ |
|||
# include <limits.h> |
|||
#else |
|||
# include <assert.h> |
|||
#endif |
|||
#undef $1 |
|||
#ifdef __cplusplus |
|||
extern "C" |
|||
#endif |
|||
char $1 (); |
|||
#if defined __stub_$1 || defined __stub___$1 |
|||
choke me |
|||
#endif |
|||
], [return $1 ();])]) |
|||
|
|||
dnl Override Autoconf's PATH_SEPARATOR check |
|||
dnl ------------------------------------------------- |
|||
dnl This is done to ensure that the same check is |
|||
dnl used across different Autoconf versions and to |
|||
dnl allow us to use this macro early enough in the |
|||
dnl configure script. |
|||
|
|||
m4_defun([_AS_PATH_SEPARATOR_PREPARE], |
|||
[CARES_CHECK_PATH_SEPARATOR |
|||
m4_define([$0],[])]) |
|||
|
|||
m4_defun([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR], |
|||
[CARES_CHECK_PATH_SEPARATOR |
|||
m4_define([$0],[])]) |
|||
|
@ -1,611 +0,0 @@ |
|||
#*************************************************************************** |
|||
# $Id$ |
|||
# |
|||
# Copyright (C) 2008 - 2009 by Daniel Stenberg et al |
|||
# |
|||
# Permission to use, copy, modify, and distribute this software and its |
|||
# documentation for any purpose and without fee is hereby granted, provided |
|||
# that the above copyright notice appear in all copies and that both that |
|||
# copyright notice and this permission notice appear in supporting |
|||
# documentation, and that the name of M.I.T. not be used in advertising or |
|||
# publicity pertaining to distribution of the software without specific, |
|||
# written prior permission. M.I.T. makes no representations about the |
|||
# suitability of this software for any purpose. It is provided "as is" |
|||
# without express or implied warranty. |
|||
# |
|||
#*************************************************************************** |
|||
|
|||
# File version for 'aclocal' use. Keep it a single number. |
|||
# serial 6 |
|||
|
|||
dnl Note 1 |
|||
dnl ------ |
|||
dnl None of the CARES_CHECK_NEED_REENTRANT_* macros shall use HAVE_FOO_H to |
|||
dnl conditionally include header files. These macros are used early in the |
|||
dnl configure process much before header file availability is known. |
|||
|
|||
|
|||
dnl CARES_CHECK_NEED_REENTRANT_ERRNO |
|||
dnl ------------------------------------------------- |
|||
dnl Checks if the preprocessor _REENTRANT definition |
|||
dnl makes errno available as a preprocessor macro. |
|||
|
|||
AC_DEFUN([CARES_CHECK_NEED_REENTRANT_ERRNO], [ |
|||
AC_COMPILE_IFELSE([ |
|||
AC_LANG_PROGRAM([[ |
|||
#include <errno.h> |
|||
]],[[ |
|||
if(0 != errno) |
|||
return 1; |
|||
]]) |
|||
],[ |
|||
tmp_errno="yes" |
|||
],[ |
|||
tmp_errno="no" |
|||
]) |
|||
if test "$tmp_errno" = "yes"; then |
|||
AC_COMPILE_IFELSE([ |
|||
AC_LANG_PROGRAM([[ |
|||
#include <errno.h> |
|||
]],[[ |
|||
#ifdef errno |
|||
int dummy=1; |
|||
#else |
|||
force compilation error |
|||
#endif |
|||
]]) |
|||
],[ |
|||
tmp_errno="errno_macro_defined" |
|||
],[ |
|||
AC_COMPILE_IFELSE([ |
|||
AC_LANG_PROGRAM([[ |
|||
#define _REENTRANT |
|||
#include <errno.h> |
|||
]],[[ |
|||
#ifdef errno |
|||
int dummy=1; |
|||
#else |
|||
force compilation error |
|||
#endif |
|||
]]) |
|||
],[ |
|||
tmp_errno="errno_macro_needs_reentrant" |
|||
tmp_need_reentrant="yes" |
|||
]) |
|||
]) |
|||
fi |
|||
]) |
|||
|
|||
|
|||
dnl CARES_CHECK_NEED_REENTRANT_GMTIME_R |
|||
dnl ------------------------------------------------- |
|||
dnl Checks if the preprocessor _REENTRANT definition |
|||
dnl makes function gmtime_r compiler visible. |
|||
|
|||
AC_DEFUN([CARES_CHECK_NEED_REENTRANT_GMTIME_R], [ |
|||
AC_LINK_IFELSE([ |
|||
AC_LANG_FUNC_LINK_TRY([gmtime_r]) |
|||
],[ |
|||
tmp_gmtime_r="yes" |
|||
],[ |
|||
tmp_gmtime_r="no" |
|||
]) |
|||
if test "$tmp_gmtime_r" = "yes"; then |
|||
AC_EGREP_CPP([gmtime_r],[ |
|||
#include <sys/types.h> |
|||
#include <time.h> |
|||
],[ |
|||
tmp_gmtime_r="proto_declared" |
|||
],[ |
|||
AC_EGREP_CPP([gmtime_r],[ |
|||
#define _REENTRANT |
|||
#include <sys/types.h> |
|||
#include <time.h> |
|||
],[ |
|||
tmp_gmtime_r="proto_needs_reentrant" |
|||
tmp_need_reentrant="yes" |
|||
]) |
|||
]) |
|||
fi |
|||
]) |
|||
|
|||
|
|||
dnl CARES_CHECK_NEED_REENTRANT_LOCALTIME_R |
|||
dnl ------------------------------------------------- |
|||
dnl Checks if the preprocessor _REENTRANT definition |
|||
dnl makes function localtime_r compiler visible. |
|||
|
|||
AC_DEFUN([CARES_CHECK_NEED_REENTRANT_LOCALTIME_R], [ |
|||
AC_LINK_IFELSE([ |
|||
AC_LANG_FUNC_LINK_TRY([localtime_r]) |
|||
],[ |
|||
tmp_localtime_r="yes" |
|||
],[ |
|||
tmp_localtime_r="no" |
|||
]) |
|||
if test "$tmp_localtime_r" = "yes"; then |
|||
AC_EGREP_CPP([localtime_r],[ |
|||
#include <sys/types.h> |
|||
#include <time.h> |
|||
],[ |
|||
tmp_localtime_r="proto_declared" |
|||
],[ |
|||
AC_EGREP_CPP([localtime_r],[ |
|||
#define _REENTRANT |
|||
#include <sys/types.h> |
|||
#include <time.h> |
|||
],[ |
|||
tmp_localtime_r="proto_needs_reentrant" |
|||
tmp_need_reentrant="yes" |
|||
]) |
|||
]) |
|||
fi |
|||
]) |
|||
|
|||
|
|||
dnl CARES_CHECK_NEED_REENTRANT_STRERROR_R |
|||
dnl ------------------------------------------------- |
|||
dnl Checks if the preprocessor _REENTRANT definition |
|||
dnl makes function strerror_r compiler visible. |
|||
|
|||
AC_DEFUN([CARES_CHECK_NEED_REENTRANT_STRERROR_R], [ |
|||
AC_LINK_IFELSE([ |
|||
AC_LANG_FUNC_LINK_TRY([strerror_r]) |
|||
],[ |
|||
tmp_strerror_r="yes" |
|||
],[ |
|||
tmp_strerror_r="no" |
|||
]) |
|||
if test "$tmp_strerror_r" = "yes"; then |
|||
AC_EGREP_CPP([strerror_r],[ |
|||
#include <sys/types.h> |
|||
#include <string.h> |
|||
],[ |
|||
tmp_strerror_r="proto_declared" |
|||
],[ |
|||
AC_EGREP_CPP([strerror_r],[ |
|||
#define _REENTRANT |
|||
#include <sys/types.h> |
|||
#include <string.h> |
|||
],[ |
|||
tmp_strerror_r="proto_needs_reentrant" |
|||
tmp_need_reentrant="yes" |
|||
]) |
|||
]) |
|||
fi |
|||
]) |
|||
|
|||
|
|||
dnl CARES_CHECK_NEED_REENTRANT_STRTOK_R |
|||
dnl ------------------------------------------------- |
|||
dnl Checks if the preprocessor _REENTRANT definition |
|||
dnl makes function strtok_r compiler visible. |
|||
|
|||
AC_DEFUN([CARES_CHECK_NEED_REENTRANT_STRTOK_R], [ |
|||
AC_LINK_IFELSE([ |
|||
AC_LANG_FUNC_LINK_TRY([strtok_r]) |
|||
],[ |
|||
tmp_strtok_r="yes" |
|||
],[ |
|||
tmp_strtok_r="no" |
|||
]) |
|||
if test "$tmp_strtok_r" = "yes"; then |
|||
AC_EGREP_CPP([strtok_r],[ |
|||
#include <sys/types.h> |
|||
#include <string.h> |
|||
],[ |
|||
tmp_strtok_r="proto_declared" |
|||
],[ |
|||
AC_EGREP_CPP([strtok_r],[ |
|||
#define _REENTRANT |
|||
#include <sys/types.h> |
|||
#include <string.h> |
|||
],[ |
|||
tmp_strtok_r="proto_needs_reentrant" |
|||
tmp_need_reentrant="yes" |
|||
]) |
|||
]) |
|||
fi |
|||
]) |
|||
|
|||
|
|||
dnl CARES_CHECK_NEED_REENTRANT_INET_NTOA_R |
|||
dnl ------------------------------------------------- |
|||
dnl Checks if the preprocessor _REENTRANT definition |
|||
dnl makes function inet_ntoa_r compiler visible. |
|||
|
|||
AC_DEFUN([CARES_CHECK_NEED_REENTRANT_INET_NTOA_R], [ |
|||
AC_LINK_IFELSE([ |
|||
AC_LANG_FUNC_LINK_TRY([inet_ntoa_r]) |
|||
],[ |
|||
tmp_inet_ntoa_r="yes" |
|||
],[ |
|||
tmp_inet_ntoa_r="no" |
|||
]) |
|||
if test "$tmp_inet_ntoa_r" = "yes"; then |
|||
AC_EGREP_CPP([inet_ntoa_r],[ |
|||
#include <sys/types.h> |
|||
#include <sys/socket.h> |
|||
#include <netinet/in.h> |
|||
#include <arpa/inet.h> |
|||
],[ |
|||
tmp_inet_ntoa_r="proto_declared" |
|||
],[ |
|||
AC_EGREP_CPP([inet_ntoa_r],[ |
|||
#define _REENTRANT |
|||
#include <sys/types.h> |
|||
#include <sys/socket.h> |
|||
#include <netinet/in.h> |
|||
#include <arpa/inet.h> |
|||
],[ |
|||
tmp_inet_ntoa_r="proto_needs_reentrant" |
|||
tmp_need_reentrant="yes" |
|||
]) |
|||
]) |
|||
fi |
|||
]) |
|||
|
|||
|
|||
dnl CARES_CHECK_NEED_REENTRANT_GETHOSTBYADDR_R |
|||
dnl ------------------------------------------------- |
|||
dnl Checks if the preprocessor _REENTRANT definition |
|||
dnl makes function gethostbyaddr_r compiler visible. |
|||
|
|||
AC_DEFUN([CARES_CHECK_NEED_REENTRANT_GETHOSTBYADDR_R], [ |
|||
AC_LINK_IFELSE([ |
|||
AC_LANG_FUNC_LINK_TRY([gethostbyaddr_r]) |
|||
],[ |
|||
tmp_gethostbyaddr_r="yes" |
|||
],[ |
|||
tmp_gethostbyaddr_r="no" |
|||
]) |
|||
if test "$tmp_gethostbyaddr_r" = "yes"; then |
|||
AC_EGREP_CPP([gethostbyaddr_r],[ |
|||
#include <sys/types.h> |
|||
#include <netdb.h> |
|||
],[ |
|||
tmp_gethostbyaddr_r="proto_declared" |
|||
],[ |
|||
AC_EGREP_CPP([gethostbyaddr_r],[ |
|||
#define _REENTRANT |
|||
#include <sys/types.h> |
|||
#include <netdb.h> |
|||
],[ |
|||
tmp_gethostbyaddr_r="proto_needs_reentrant" |
|||
tmp_need_reentrant="yes" |
|||
]) |
|||
]) |
|||
fi |
|||
]) |
|||
|
|||
|
|||
dnl CARES_CHECK_NEED_REENTRANT_GETHOSTBYNAME_R |
|||
dnl ------------------------------------------------- |
|||
dnl Checks if the preprocessor _REENTRANT definition |
|||
dnl makes function gethostbyname_r compiler visible. |
|||
|
|||
AC_DEFUN([CARES_CHECK_NEED_REENTRANT_GETHOSTBYNAME_R], [ |
|||
AC_LINK_IFELSE([ |
|||
AC_LANG_FUNC_LINK_TRY([gethostbyname_r]) |
|||
],[ |
|||
tmp_gethostbyname_r="yes" |
|||
],[ |
|||
tmp_gethostbyname_r="no" |
|||
]) |
|||
if test "$tmp_gethostbyname_r" = "yes"; then |
|||
AC_EGREP_CPP([gethostbyname_r],[ |
|||
#include <sys/types.h> |
|||
#include <netdb.h> |
|||
],[ |
|||
tmp_gethostbyname_r="proto_declared" |
|||
],[ |
|||
AC_EGREP_CPP([gethostbyname_r],[ |
|||
#define _REENTRANT |
|||
#include <sys/types.h> |
|||
#include <netdb.h> |
|||
],[ |
|||
tmp_gethostbyname_r="proto_needs_reentrant" |
|||
tmp_need_reentrant="yes" |
|||
]) |
|||
]) |
|||
fi |
|||
]) |
|||
|
|||
|
|||
dnl CARES_CHECK_NEED_REENTRANT_GETPROTOBYNAME_R |
|||
dnl ------------------------------------------------- |
|||
dnl Checks if the preprocessor _REENTRANT definition |
|||
dnl makes function getprotobyname_r compiler visible. |
|||
|
|||
AC_DEFUN([CARES_CHECK_NEED_REENTRANT_GETPROTOBYNAME_R], [ |
|||
AC_LINK_IFELSE([ |
|||
AC_LANG_FUNC_LINK_TRY([getprotobyname_r]) |
|||
],[ |
|||
tmp_getprotobyname_r="yes" |
|||
],[ |
|||
tmp_getprotobyname_r="no" |
|||
]) |
|||
if test "$tmp_getprotobyname_r" = "yes"; then |
|||
AC_EGREP_CPP([getprotobyname_r],[ |
|||
#include <sys/types.h> |
|||
#include <netdb.h> |
|||
],[ |
|||
tmp_getprotobyname_r="proto_declared" |
|||
],[ |
|||
AC_EGREP_CPP([getprotobyname_r],[ |
|||
#define _REENTRANT |
|||
#include <sys/types.h> |
|||
#include <netdb.h> |
|||
],[ |
|||
tmp_getprotobyname_r="proto_needs_reentrant" |
|||
tmp_need_reentrant="yes" |
|||
]) |
|||
]) |
|||
fi |
|||
]) |
|||
|
|||
|
|||
dnl CARES_CHECK_NEED_REENTRANT_GETSERVBYPORT_R |
|||
dnl ------------------------------------------------- |
|||
dnl Checks if the preprocessor _REENTRANT definition |
|||
dnl makes function getservbyport_r compiler visible. |
|||
|
|||
AC_DEFUN([CARES_CHECK_NEED_REENTRANT_GETSERVBYPORT_R], [ |
|||
AC_LINK_IFELSE([ |
|||
AC_LANG_FUNC_LINK_TRY([getservbyport_r]) |
|||
],[ |
|||
tmp_getservbyport_r="yes" |
|||
],[ |
|||
tmp_getservbyport_r="no" |
|||
]) |
|||
if test "$tmp_getservbyport_r" = "yes"; then |
|||
AC_EGREP_CPP([getservbyport_r],[ |
|||
#include <sys/types.h> |
|||
#include <netdb.h> |
|||
],[ |
|||
tmp_getservbyport_r="proto_declared" |
|||
],[ |
|||
AC_EGREP_CPP([getservbyport_r],[ |
|||
#define _REENTRANT |
|||
#include <sys/types.h> |
|||
#include <netdb.h> |
|||
],[ |
|||
tmp_getservbyport_r="proto_needs_reentrant" |
|||
tmp_need_reentrant="yes" |
|||
]) |
|||
]) |
|||
fi |
|||
]) |
|||
|
|||
|
|||
dnl CARES_CHECK_NEED_REENTRANT_FUNCTIONS_R |
|||
dnl ------------------------------------------------- |
|||
dnl Checks if the preprocessor _REENTRANT definition |
|||
dnl makes several _r functions compiler visible. |
|||
dnl Internal macro for CARES_CONFIGURE_REENTRANT. |
|||
|
|||
AC_DEFUN([CARES_CHECK_NEED_REENTRANT_FUNCTIONS_R], [ |
|||
if test "$tmp_need_reentrant" = "no"; then |
|||
CARES_CHECK_NEED_REENTRANT_GMTIME_R |
|||
fi |
|||
if test "$tmp_need_reentrant" = "no"; then |
|||
CARES_CHECK_NEED_REENTRANT_LOCALTIME_R |
|||
fi |
|||
if test "$tmp_need_reentrant" = "no"; then |
|||
CARES_CHECK_NEED_REENTRANT_STRERROR_R |
|||
fi |
|||
if test "$tmp_need_reentrant" = "no"; then |
|||
CARES_CHECK_NEED_REENTRANT_STRTOK_R |
|||
fi |
|||
if test "$tmp_need_reentrant" = "no"; then |
|||
CARES_CHECK_NEED_REENTRANT_INET_NTOA_R |
|||
fi |
|||
if test "$tmp_need_reentrant" = "no"; then |
|||
CARES_CHECK_NEED_REENTRANT_GETHOSTBYADDR_R |
|||
fi |
|||
if test "$tmp_need_reentrant" = "no"; then |
|||
CARES_CHECK_NEED_REENTRANT_GETHOSTBYNAME_R |
|||
fi |
|||
if test "$tmp_need_reentrant" = "no"; then |
|||
CARES_CHECK_NEED_REENTRANT_GETPROTOBYNAME_R |
|||
fi |
|||
if test "$tmp_need_reentrant" = "no"; then |
|||
CARES_CHECK_NEED_REENTRANT_GETSERVBYPORT_R |
|||
fi |
|||
]) |
|||
|
|||
|
|||
dnl CARES_CHECK_NEED_REENTRANT_SYSTEM |
|||
dnl ------------------------------------------------- |
|||
dnl Checks if the preprocessor _REENTRANT definition |
|||
dnl must be unconditionally done for this platform. |
|||
dnl Internal macro for CARES_CONFIGURE_REENTRANT. |
|||
|
|||
AC_DEFUN([CARES_CHECK_NEED_REENTRANT_SYSTEM], [ |
|||
case $host_os in |
|||
solaris*) |
|||
tmp_need_reentrant="yes" |
|||
;; |
|||
*) |
|||
tmp_need_reentrant="no" |
|||
;; |
|||
esac |
|||
]) |
|||
|
|||
|
|||
dnl CARES_CHECK_NEED_THREAD_SAFE_SYSTEM |
|||
dnl ------------------------------------------------- |
|||
dnl Checks if the preprocessor _THREAD_SAFE definition |
|||
dnl must be unconditionally done for this platform. |
|||
dnl Internal macro for CARES_CONFIGURE_THREAD_SAFE. |
|||
|
|||
AC_DEFUN([CARES_CHECK_NEED_THREAD_SAFE_SYSTEM], [ |
|||
case $host_os in |
|||
aix[[123]].* | aix4.[[012]].*) |
|||
dnl aix 4.2 and older |
|||
tmp_need_thread_safe="no" |
|||
;; |
|||
aix*) |
|||
dnl AIX 4.3 and newer |
|||
tmp_need_thread_safe="yes" |
|||
;; |
|||
*) |
|||
tmp_need_thread_safe="no" |
|||
;; |
|||
esac |
|||
]) |
|||
|
|||
|
|||
dnl CARES_CONFIGURE_FROM_NOW_ON_WITH_REENTRANT |
|||
dnl ------------------------------------------------- |
|||
dnl This macro ensures that configuration tests done |
|||
dnl after this will execute with preprocessor symbol |
|||
dnl _REENTRANT defined. This macro also ensures that |
|||
dnl the generated config file defines NEED_REENTRANT |
|||
dnl and that in turn setup.h will define _REENTRANT. |
|||
dnl Internal macro for CARES_CONFIGURE_REENTRANT. |
|||
|
|||
AC_DEFUN([CARES_CONFIGURE_FROM_NOW_ON_WITH_REENTRANT], [ |
|||
AC_DEFINE(NEED_REENTRANT, 1, |
|||
[Define to 1 if _REENTRANT preprocessor symbol must be defined.]) |
|||
cat >>confdefs.h <<_EOF |
|||
#ifndef _REENTRANT |
|||
# define _REENTRANT |
|||
#endif |
|||
_EOF |
|||
]) |
|||
|
|||
|
|||
dnl CARES_CONFIGURE_FROM_NOW_ON_WITH_THREAD_SAFE |
|||
dnl ------------------------------------------------- |
|||
dnl This macro ensures that configuration tests done |
|||
dnl after this will execute with preprocessor symbol |
|||
dnl _THREAD_SAFE defined. This macro also ensures that |
|||
dnl the generated config file defines NEED_THREAD_SAFE |
|||
dnl and that in turn setup.h will define _THREAD_SAFE. |
|||
dnl Internal macro for CARES_CONFIGURE_THREAD_SAFE. |
|||
|
|||
AC_DEFUN([CARES_CONFIGURE_FROM_NOW_ON_WITH_THREAD_SAFE], [ |
|||
AC_DEFINE(NEED_THREAD_SAFE, 1, |
|||
[Define to 1 if _THREAD_SAFE preprocessor symbol must be defined.]) |
|||
cat >>confdefs.h <<_EOF |
|||
#ifndef _THREAD_SAFE |
|||
# define _THREAD_SAFE |
|||
#endif |
|||
_EOF |
|||
]) |
|||
|
|||
|
|||
dnl CARES_CONFIGURE_REENTRANT |
|||
dnl ------------------------------------------------- |
|||
dnl This first checks if the preprocessor _REENTRANT |
|||
dnl symbol is already defined. If it isn't currently |
|||
dnl defined a set of checks are performed to verify |
|||
dnl if its definition is required to make visible to |
|||
dnl the compiler a set of *_r functions. Finally, if |
|||
dnl _REENTRANT is already defined or needed it takes |
|||
dnl care of making adjustments necessary to ensure |
|||
dnl that it is defined equally for further configure |
|||
dnl tests and generated config file. |
|||
|
|||
AC_DEFUN([CARES_CONFIGURE_REENTRANT], [ |
|||
AC_PREREQ([2.50])dnl |
|||
# |
|||
AC_MSG_CHECKING([if _REENTRANT is already defined]) |
|||
AC_COMPILE_IFELSE([ |
|||
AC_LANG_PROGRAM([[ |
|||
]],[[ |
|||
#ifdef _REENTRANT |
|||
int dummy=1; |
|||
#else |
|||
force compilation error |
|||
#endif |
|||
]]) |
|||
],[ |
|||
AC_MSG_RESULT([yes]) |
|||
tmp_reentrant_initially_defined="yes" |
|||
],[ |
|||
AC_MSG_RESULT([no]) |
|||
tmp_reentrant_initially_defined="no" |
|||
]) |
|||
# |
|||
if test "$tmp_reentrant_initially_defined" = "no"; then |
|||
AC_MSG_CHECKING([if _REENTRANT is actually needed]) |
|||
CARES_CHECK_NEED_REENTRANT_SYSTEM |
|||
if test "$tmp_need_reentrant" = "no"; then |
|||
CARES_CHECK_NEED_REENTRANT_ERRNO |
|||
fi |
|||
if test "$tmp_need_reentrant" = "no"; then |
|||
CARES_CHECK_NEED_REENTRANT_FUNCTIONS_R |
|||
fi |
|||
if test "$tmp_need_reentrant" = "yes"; then |
|||
AC_MSG_RESULT([yes]) |
|||
else |
|||
AC_MSG_RESULT([no]) |
|||
fi |
|||
fi |
|||
# |
|||
AC_MSG_CHECKING([if _REENTRANT is onwards defined]) |
|||
if test "$tmp_reentrant_initially_defined" = "yes" || |
|||
test "$tmp_need_reentrant" = "yes"; then |
|||
CARES_CONFIGURE_FROM_NOW_ON_WITH_REENTRANT |
|||
AC_MSG_RESULT([yes]) |
|||
else |
|||
AC_MSG_RESULT([no]) |
|||
fi |
|||
# |
|||
]) |
|||
|
|||
|
|||
dnl CARES_CONFIGURE_THREAD_SAFE |
|||
dnl ------------------------------------------------- |
|||
dnl This first checks if the preprocessor _THREAD_SAFE |
|||
dnl symbol is already defined. If it isn't currently |
|||
dnl defined a set of checks are performed to verify |
|||
dnl if its definition is required. Finally, if |
|||
dnl _THREAD_SAFE is already defined or needed it takes |
|||
dnl care of making adjustments necessary to ensure |
|||
dnl that it is defined equally for further configure |
|||
dnl tests and generated config file. |
|||
|
|||
AC_DEFUN([CARES_CONFIGURE_THREAD_SAFE], [ |
|||
AC_PREREQ([2.50])dnl |
|||
# |
|||
AC_MSG_CHECKING([if _THREAD_SAFE is already defined]) |
|||
AC_COMPILE_IFELSE([ |
|||
AC_LANG_PROGRAM([[ |
|||
]],[[ |
|||
#ifdef _THREAD_SAFE |
|||
int dummy=1; |
|||
#else |
|||
force compilation error |
|||
#endif |
|||
]]) |
|||
],[ |
|||
AC_MSG_RESULT([yes]) |
|||
tmp_thread_safe_initially_defined="yes" |
|||
],[ |
|||
AC_MSG_RESULT([no]) |
|||
tmp_thread_safe_initially_defined="no" |
|||
]) |
|||
# |
|||
if test "$tmp_thread_safe_initially_defined" = "no"; then |
|||
AC_MSG_CHECKING([if _THREAD_SAFE is actually needed]) |
|||
CARES_CHECK_NEED_THREAD_SAFE_SYSTEM |
|||
if test "$tmp_need_thread_safe" = "yes"; then |
|||
AC_MSG_RESULT([yes]) |
|||
else |
|||
AC_MSG_RESULT([no]) |
|||
fi |
|||
fi |
|||
# |
|||
AC_MSG_CHECKING([if _THREAD_SAFE is onwards defined]) |
|||
if test "$tmp_thread_safe_initially_defined" = "yes" || |
|||
test "$tmp_need_thread_safe" = "yes"; then |
|||
CARES_CONFIGURE_FROM_NOW_ON_WITH_THREAD_SAFE |
|||
AC_MSG_RESULT([yes]) |
|||
else |
|||
AC_MSG_RESULT([no]) |
|||
fi |
|||
# |
|||
]) |
@ -1,83 +0,0 @@ |
|||
#*************************************************************************** |
|||
# $Id$ |
|||
# |
|||
# Copyright (C) 2008 - 2009 by Daniel Stenberg et al |
|||
# |
|||
# Permission to use, copy, modify, and distribute this software and its |
|||
# documentation for any purpose and without fee is hereby granted, provided |
|||
# that the above copyright notice appear in all copies and that both that |
|||
# copyright notice and this permission notice appear in supporting |
|||
# documentation, and that the name of M.I.T. not be used in advertising or |
|||
# publicity pertaining to distribution of the software without specific, |
|||
# written prior permission. M.I.T. makes no representations about the |
|||
# suitability of this software for any purpose. It is provided "as is" |
|||
# without express or implied warranty. |
|||
# |
|||
#*************************************************************************** |
|||
|
|||
# File version for 'aclocal' use. Keep it a single number. |
|||
# serial 3 |
|||
|
|||
|
|||
dnl CARES_CHECK_PATH_SEPARATOR |
|||
dnl ------------------------------------------------- |
|||
dnl Check and compute the path separator for us. This |
|||
dnl path separator is the symbol used to diferentiate |
|||
dnl or separate paths inside the PATH environment var. |
|||
|
|||
AC_DEFUN([CARES_CHECK_PATH_SEPARATOR], [ |
|||
if test -z "$cares_cv_PATH_SEPARATOR"; then |
|||
if test -z "$PATH"; then |
|||
AC_MSG_ERROR([PATH not set. Cannot continue without PATH being set.]) |
|||
fi |
|||
dnl Directory count in PATH when using a colon separator. |
|||
tst_dirs_col=0 |
|||
tst_save_IFS=$IFS; IFS=':' |
|||
for tst_dir in $PATH; do |
|||
IFS=$tst_save_IFS |
|||
test -d "$tst_dir" && tst_dirs_col=`expr $tst_dirs_col + 1` |
|||
done |
|||
IFS=$tst_save_IFS |
|||
dnl Directory count in PATH when using a semicolon separator. |
|||
tst_dirs_sem=0 |
|||
tst_save_IFS=$IFS; IFS=';' |
|||
for tst_dir in $PATH; do |
|||
IFS=$tst_save_IFS |
|||
test -d "$tst_dir" && tst_dirs_sem=`expr $tst_dirs_sem + 1` |
|||
done |
|||
IFS=$tst_save_IFS |
|||
if test $tst_dirs_sem -eq $tst_dirs_col; then |
|||
dnl When both counting methods give the same result we do not want to |
|||
dnl chose one over the other, and consider auto-detection not possible. |
|||
if test -z "$PATH_SEPARATOR"; then |
|||
dnl Stop dead until user provides PATH_SEPARATOR definition. |
|||
AC_MSG_ERROR([PATH_SEPARATOR not set. Cannot continue without it.]) |
|||
fi |
|||
else |
|||
dnl Separator with the greater directory count is the auto-detected one. |
|||
if test $tst_dirs_sem -gt $tst_dirs_col; then |
|||
tst_auto_separator=';' |
|||
else |
|||
tst_auto_separator=':' |
|||
fi |
|||
if test -z "$PATH_SEPARATOR"; then |
|||
dnl Simply use the auto-detected one when not already set. |
|||
PATH_SEPARATOR="$tst_auto_separator" |
|||
fi |
|||
fi |
|||
cares_cv_PATH_SEPARATOR="$PATH_SEPARATOR" |
|||
fi |
|||
AC_SUBST([PATH_SEPARATOR]) |
|||
AC_SUBST([PATH]) |
|||
]) |
|||
|
|||
|
|||
dnl CARES_CHECK_PATH_SEPARATOR_REQUIRED |
|||
dnl ------------------------------------------------- |
|||
dnl Use this to ensure that the path separator check |
|||
dnl macro is only expanded and included once. |
|||
|
|||
AC_DEFUN([CARES_CHECK_PATH_SEPARATOR_REQUIRED], [ |
|||
AC_REQUIRE([CARES_CHECK_PATH_SEPARATOR])dnl |
|||
]) |
|||
|
File diff suppressed because it is too large
@ -1,368 +0,0 @@ |
|||
# Helper functions for option handling. -*- Autoconf -*- |
|||
# |
|||
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. |
|||
# Written by Gary V. Vaughan, 2004 |
|||
# |
|||
# This file is free software; the Free Software Foundation gives |
|||
# unlimited permission to copy and/or distribute it, with or without |
|||
# modifications, as long as this notice is preserved. |
|||
|
|||
# serial 6 ltoptions.m4 |
|||
|
|||
# This is to help aclocal find these macros, as it can't see m4_define. |
|||
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) |
|||
|
|||
|
|||
# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) |
|||
# ------------------------------------------ |
|||
m4_define([_LT_MANGLE_OPTION], |
|||
[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])]) |
|||
|
|||
|
|||
# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) |
|||
# --------------------------------------- |
|||
# Set option OPTION-NAME for macro MACRO-NAME, and if there is a |
|||
# matching handler defined, dispatch to it. Other OPTION-NAMEs are |
|||
# saved as a flag. |
|||
m4_define([_LT_SET_OPTION], |
|||
[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl |
|||
m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]), |
|||
_LT_MANGLE_DEFUN([$1], [$2]), |
|||
[m4_warning([Unknown $1 option `$2'])])[]dnl |
|||
]) |
|||
|
|||
|
|||
# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET]) |
|||
# ------------------------------------------------------------ |
|||
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. |
|||
m4_define([_LT_IF_OPTION], |
|||
[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])]) |
|||
|
|||
|
|||
# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) |
|||
# ------------------------------------------------------- |
|||
# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME |
|||
# are set. |
|||
m4_define([_LT_UNLESS_OPTIONS], |
|||
[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), |
|||
[m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option), |
|||
[m4_define([$0_found])])])[]dnl |
|||
m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3 |
|||
])[]dnl |
|||
]) |
|||
|
|||
|
|||
# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) |
|||
# ---------------------------------------- |
|||
# OPTION-LIST is a space-separated list of Libtool options associated |
|||
# with MACRO-NAME. If any OPTION has a matching handler declared with |
|||
# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about |
|||
# the unknown option and exit. |
|||
m4_defun([_LT_SET_OPTIONS], |
|||
[# Set options |
|||
m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), |
|||
[_LT_SET_OPTION([$1], _LT_Option)]) |
|||
|
|||
m4_if([$1],[LT_INIT],[ |
|||
dnl |
|||
dnl Simply set some default values (i.e off) if boolean options were not |
|||
dnl specified: |
|||
_LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no |
|||
]) |
|||
_LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no |
|||
]) |
|||
dnl |
|||
dnl If no reference was made to various pairs of opposing options, then |
|||
dnl we run the default mode handler for the pair. For example, if neither |
|||
dnl `shared' nor `disable-shared' was passed, we enable building of shared |
|||
dnl archives by default: |
|||
_LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED]) |
|||
_LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC]) |
|||
_LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC]) |
|||
_LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install], |
|||
[_LT_ENABLE_FAST_INSTALL]) |
|||
]) |
|||
])# _LT_SET_OPTIONS |
|||
|
|||
|
|||
## --------------------------------- ## |
|||
## Macros to handle LT_INIT options. ## |
|||
## --------------------------------- ## |
|||
|
|||
# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) |
|||
# ----------------------------------------- |
|||
m4_define([_LT_MANGLE_DEFUN], |
|||
[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])]) |
|||
|
|||
|
|||
# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) |
|||
# ----------------------------------------------- |
|||
m4_define([LT_OPTION_DEFINE], |
|||
[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl |
|||
])# LT_OPTION_DEFINE |
|||
|
|||
|
|||
# dlopen |
|||
# ------ |
|||
LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes |
|||
]) |
|||
|
|||
AU_DEFUN([AC_LIBTOOL_DLOPEN], |
|||
[_LT_SET_OPTION([LT_INIT], [dlopen]) |
|||
AC_DIAGNOSE([obsolete], |
|||
[$0: Remove this warning and the call to _LT_SET_OPTION when you |
|||
put the `dlopen' option into LT_INIT's first parameter.]) |
|||
]) |
|||
|
|||
dnl aclocal-1.4 backwards compatibility: |
|||
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], []) |
|||
|
|||
|
|||
# win32-dll |
|||
# --------- |
|||
# Declare package support for building win32 dll's. |
|||
LT_OPTION_DEFINE([LT_INIT], [win32-dll], |
|||
[enable_win32_dll=yes |
|||
|
|||
case $host in |
|||
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*) |
|||
AC_CHECK_TOOL(AS, as, false) |
|||
AC_CHECK_TOOL(DLLTOOL, dlltool, false) |
|||
AC_CHECK_TOOL(OBJDUMP, objdump, false) |
|||
;; |
|||
esac |
|||
|
|||
test -z "$AS" && AS=as |
|||
_LT_DECL([], [AS], [0], [Assembler program])dnl |
|||
|
|||
test -z "$DLLTOOL" && DLLTOOL=dlltool |
|||
_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl |
|||
|
|||
test -z "$OBJDUMP" && OBJDUMP=objdump |
|||
_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl |
|||
])# win32-dll |
|||
|
|||
AU_DEFUN([AC_LIBTOOL_WIN32_DLL], |
|||
[AC_REQUIRE([AC_CANONICAL_HOST])dnl |
|||
_LT_SET_OPTION([LT_INIT], [win32-dll]) |
|||
AC_DIAGNOSE([obsolete], |
|||
[$0: Remove this warning and the call to _LT_SET_OPTION when you |
|||
put the `win32-dll' option into LT_INIT's first parameter.]) |
|||
]) |
|||
|
|||
dnl aclocal-1.4 backwards compatibility: |
|||
dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], []) |
|||
|
|||
|
|||
# _LT_ENABLE_SHARED([DEFAULT]) |
|||
# ---------------------------- |
|||
# implement the --enable-shared flag, and supports the `shared' and |
|||
# `disable-shared' LT_INIT options. |
|||
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. |
|||
m4_define([_LT_ENABLE_SHARED], |
|||
[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl |
|||
AC_ARG_ENABLE([shared], |
|||
[AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@], |
|||
[build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])], |
|||
[p=${PACKAGE-default} |
|||
case $enableval in |
|||
yes) enable_shared=yes ;; |
|||
no) enable_shared=no ;; |
|||
*) |
|||
enable_shared=no |
|||
# Look at the argument we got. We use all the common list separators. |
|||
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
|||
for pkg in $enableval; do |
|||
IFS="$lt_save_ifs" |
|||
if test "X$pkg" = "X$p"; then |
|||
enable_shared=yes |
|||
fi |
|||
done |
|||
IFS="$lt_save_ifs" |
|||
;; |
|||
esac], |
|||
[enable_shared=]_LT_ENABLE_SHARED_DEFAULT) |
|||
|
|||
_LT_DECL([build_libtool_libs], [enable_shared], [0], |
|||
[Whether or not to build shared libraries]) |
|||
])# _LT_ENABLE_SHARED |
|||
|
|||
LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])]) |
|||
LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])]) |
|||
|
|||
# Old names: |
|||
AC_DEFUN([AC_ENABLE_SHARED], |
|||
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared]) |
|||
]) |
|||
|
|||
AC_DEFUN([AC_DISABLE_SHARED], |
|||
[_LT_SET_OPTION([LT_INIT], [disable-shared]) |
|||
]) |
|||
|
|||
AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) |
|||
AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) |
|||
|
|||
dnl aclocal-1.4 backwards compatibility: |
|||
dnl AC_DEFUN([AM_ENABLE_SHARED], []) |
|||
dnl AC_DEFUN([AM_DISABLE_SHARED], []) |
|||
|
|||
|
|||
|
|||
# _LT_ENABLE_STATIC([DEFAULT]) |
|||
# ---------------------------- |
|||
# implement the --enable-static flag, and support the `static' and |
|||
# `disable-static' LT_INIT options. |
|||
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. |
|||
m4_define([_LT_ENABLE_STATIC], |
|||
[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl |
|||
AC_ARG_ENABLE([static], |
|||
[AS_HELP_STRING([--enable-static@<:@=PKGS@:>@], |
|||
[build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])], |
|||
[p=${PACKAGE-default} |
|||
case $enableval in |
|||
yes) enable_static=yes ;; |
|||
no) enable_static=no ;; |
|||
*) |
|||
enable_static=no |
|||
# Look at the argument we got. We use all the common list separators. |
|||
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
|||
for pkg in $enableval; do |
|||
IFS="$lt_save_ifs" |
|||
if test "X$pkg" = "X$p"; then |
|||
enable_static=yes |
|||
fi |
|||
done |
|||
IFS="$lt_save_ifs" |
|||
;; |
|||
esac], |
|||
[enable_static=]_LT_ENABLE_STATIC_DEFAULT) |
|||
|
|||
_LT_DECL([build_old_libs], [enable_static], [0], |
|||
[Whether or not to build static libraries]) |
|||
])# _LT_ENABLE_STATIC |
|||
|
|||
LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])]) |
|||
LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])]) |
|||
|
|||
# Old names: |
|||
AC_DEFUN([AC_ENABLE_STATIC], |
|||
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) |
|||
]) |
|||
|
|||
AC_DEFUN([AC_DISABLE_STATIC], |
|||
[_LT_SET_OPTION([LT_INIT], [disable-static]) |
|||
]) |
|||
|
|||
AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) |
|||
AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) |
|||
|
|||
dnl aclocal-1.4 backwards compatibility: |
|||
dnl AC_DEFUN([AM_ENABLE_STATIC], []) |
|||
dnl AC_DEFUN([AM_DISABLE_STATIC], []) |
|||
|
|||
|
|||
|
|||
# _LT_ENABLE_FAST_INSTALL([DEFAULT]) |
|||
# ---------------------------------- |
|||
# implement the --enable-fast-install flag, and support the `fast-install' |
|||
# and `disable-fast-install' LT_INIT options. |
|||
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. |
|||
m4_define([_LT_ENABLE_FAST_INSTALL], |
|||
[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl |
|||
AC_ARG_ENABLE([fast-install], |
|||
[AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], |
|||
[optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], |
|||
[p=${PACKAGE-default} |
|||
case $enableval in |
|||
yes) enable_fast_install=yes ;; |
|||
no) enable_fast_install=no ;; |
|||
*) |
|||
enable_fast_install=no |
|||
# Look at the argument we got. We use all the common list separators. |
|||
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
|||
for pkg in $enableval; do |
|||
IFS="$lt_save_ifs" |
|||
if test "X$pkg" = "X$p"; then |
|||
enable_fast_install=yes |
|||
fi |
|||
done |
|||
IFS="$lt_save_ifs" |
|||
;; |
|||
esac], |
|||
[enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT) |
|||
|
|||
_LT_DECL([fast_install], [enable_fast_install], [0], |
|||
[Whether or not to optimize for fast installation])dnl |
|||
])# _LT_ENABLE_FAST_INSTALL |
|||
|
|||
LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])]) |
|||
LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])]) |
|||
|
|||
# Old names: |
|||
AU_DEFUN([AC_ENABLE_FAST_INSTALL], |
|||
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) |
|||
AC_DIAGNOSE([obsolete], |
|||
[$0: Remove this warning and the call to _LT_SET_OPTION when you put |
|||
the `fast-install' option into LT_INIT's first parameter.]) |
|||
]) |
|||
|
|||
AU_DEFUN([AC_DISABLE_FAST_INSTALL], |
|||
[_LT_SET_OPTION([LT_INIT], [disable-fast-install]) |
|||
AC_DIAGNOSE([obsolete], |
|||
[$0: Remove this warning and the call to _LT_SET_OPTION when you put |
|||
the `disable-fast-install' option into LT_INIT's first parameter.]) |
|||
]) |
|||
|
|||
dnl aclocal-1.4 backwards compatibility: |
|||
dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], []) |
|||
dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) |
|||
|
|||
|
|||
# _LT_WITH_PIC([MODE]) |
|||
# -------------------- |
|||
# implement the --with-pic flag, and support the `pic-only' and `no-pic' |
|||
# LT_INIT options. |
|||
# MODE is either `yes' or `no'. If omitted, it defaults to `both'. |
|||
m4_define([_LT_WITH_PIC], |
|||
[AC_ARG_WITH([pic], |
|||
[AS_HELP_STRING([--with-pic], |
|||
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])], |
|||
[pic_mode="$withval"], |
|||
[pic_mode=default]) |
|||
|
|||
test -z "$pic_mode" && pic_mode=m4_default([$1], [default]) |
|||
|
|||
_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl |
|||
])# _LT_WITH_PIC |
|||
|
|||
LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])]) |
|||
LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])]) |
|||
|
|||
# Old name: |
|||
AU_DEFUN([AC_LIBTOOL_PICMODE], |
|||
[_LT_SET_OPTION([LT_INIT], [pic-only]) |
|||
AC_DIAGNOSE([obsolete], |
|||
[$0: Remove this warning and the call to _LT_SET_OPTION when you |
|||
put the `pic-only' option into LT_INIT's first parameter.]) |
|||
]) |
|||
|
|||
dnl aclocal-1.4 backwards compatibility: |
|||
dnl AC_DEFUN([AC_LIBTOOL_PICMODE], []) |
|||
|
|||
## ----------------- ## |
|||
## LTDL_INIT Options ## |
|||
## ----------------- ## |
|||
|
|||
m4_define([_LTDL_MODE], []) |
|||
LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive], |
|||
[m4_define([_LTDL_MODE], [nonrecursive])]) |
|||
LT_OPTION_DEFINE([LTDL_INIT], [recursive], |
|||
[m4_define([_LTDL_MODE], [recursive])]) |
|||
LT_OPTION_DEFINE([LTDL_INIT], [subproject], |
|||
[m4_define([_LTDL_MODE], [subproject])]) |
|||
|
|||
m4_define([_LTDL_TYPE], []) |
|||
LT_OPTION_DEFINE([LTDL_INIT], [installable], |
|||
[m4_define([_LTDL_TYPE], [installable])]) |
|||
LT_OPTION_DEFINE([LTDL_INIT], [convenience], |
|||
[m4_define([_LTDL_TYPE], [convenience])]) |
@ -1,123 +0,0 @@ |
|||
# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- |
|||
# |
|||
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. |
|||
# Written by Gary V. Vaughan, 2004 |
|||
# |
|||
# This file is free software; the Free Software Foundation gives |
|||
# unlimited permission to copy and/or distribute it, with or without |
|||
# modifications, as long as this notice is preserved. |
|||
|
|||
# serial 6 ltsugar.m4 |
|||
|
|||
# This is to help aclocal find these macros, as it can't see m4_define. |
|||
AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) |
|||
|
|||
|
|||
# lt_join(SEP, ARG1, [ARG2...]) |
|||
# ----------------------------- |
|||
# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their |
|||
# associated separator. |
|||
# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier |
|||
# versions in m4sugar had bugs. |
|||
m4_define([lt_join], |
|||
[m4_if([$#], [1], [], |
|||
[$#], [2], [[$2]], |
|||
[m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])]) |
|||
m4_define([_lt_join], |
|||
[m4_if([$#$2], [2], [], |
|||
[m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])]) |
|||
|
|||
|
|||
# lt_car(LIST) |
|||
# lt_cdr(LIST) |
|||
# ------------ |
|||
# Manipulate m4 lists. |
|||
# These macros are necessary as long as will still need to support |
|||
# Autoconf-2.59 which quotes differently. |
|||
m4_define([lt_car], [[$1]]) |
|||
m4_define([lt_cdr], |
|||
[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])], |
|||
[$#], 1, [], |
|||
[m4_dquote(m4_shift($@))])]) |
|||
m4_define([lt_unquote], $1) |
|||
|
|||
|
|||
# lt_append(MACRO-NAME, STRING, [SEPARATOR]) |
|||
# ------------------------------------------ |
|||
# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'. |
|||
# Note that neither SEPARATOR nor STRING are expanded; they are appended |
|||
# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked). |
|||
# No SEPARATOR is output if MACRO-NAME was previously undefined (different |
|||
# than defined and empty). |
|||
# |
|||
# This macro is needed until we can rely on Autoconf 2.62, since earlier |
|||
# versions of m4sugar mistakenly expanded SEPARATOR but not STRING. |
|||
m4_define([lt_append], |
|||
[m4_define([$1], |
|||
m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])]) |
|||
|
|||
|
|||
|
|||
# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...]) |
|||
# ---------------------------------------------------------- |
|||
# Produce a SEP delimited list of all paired combinations of elements of |
|||
# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list |
|||
# has the form PREFIXmINFIXSUFFIXn. |
|||
# Needed until we can rely on m4_combine added in Autoconf 2.62. |
|||
m4_define([lt_combine], |
|||
[m4_if(m4_eval([$# > 3]), [1], |
|||
[m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl |
|||
[[m4_foreach([_Lt_prefix], [$2], |
|||
[m4_foreach([_Lt_suffix], |
|||
]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[, |
|||
[_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])]) |
|||
|
|||
|
|||
# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ]) |
|||
# ----------------------------------------------------------------------- |
|||
# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited |
|||
# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. |
|||
m4_define([lt_if_append_uniq], |
|||
[m4_ifdef([$1], |
|||
[m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1], |
|||
[lt_append([$1], [$2], [$3])$4], |
|||
[$5])], |
|||
[lt_append([$1], [$2], [$3])$4])]) |
|||
|
|||
|
|||
# lt_dict_add(DICT, KEY, VALUE) |
|||
# ----------------------------- |
|||
m4_define([lt_dict_add], |
|||
[m4_define([$1($2)], [$3])]) |
|||
|
|||
|
|||
# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE) |
|||
# -------------------------------------------- |
|||
m4_define([lt_dict_add_subkey], |
|||
[m4_define([$1($2:$3)], [$4])]) |
|||
|
|||
|
|||
# lt_dict_fetch(DICT, KEY, [SUBKEY]) |
|||
# ---------------------------------- |
|||
m4_define([lt_dict_fetch], |
|||
[m4_ifval([$3], |
|||
m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]), |
|||
m4_ifdef([$1($2)], [m4_defn([$1($2)])]))]) |
|||
|
|||
|
|||
# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE]) |
|||
# ----------------------------------------------------------------- |
|||
m4_define([lt_if_dict_fetch], |
|||
[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4], |
|||
[$5], |
|||
[$6])]) |
|||
|
|||
|
|||
# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) |
|||
# -------------------------------------------------------------- |
|||
m4_define([lt_dict_filter], |
|||
[m4_if([$5], [], [], |
|||
[lt_join(m4_quote(m4_default([$4], [[, ]])), |
|||
lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]), |
|||
[lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl |
|||
]) |
@ -1,23 +0,0 @@ |
|||
# ltversion.m4 -- version numbers -*- Autoconf -*- |
|||
# |
|||
# Copyright (C) 2004 Free Software Foundation, Inc. |
|||
# Written by Scott James Remnant, 2004 |
|||
# |
|||
# This file is free software; the Free Software Foundation gives |
|||
# unlimited permission to copy and/or distribute it, with or without |
|||
# modifications, as long as this notice is preserved. |
|||
|
|||
# Generated from ltversion.in. |
|||
|
|||
# serial 3017 ltversion.m4 |
|||
# This file is part of GNU Libtool |
|||
|
|||
m4_define([LT_PACKAGE_VERSION], [2.2.6b]) |
|||
m4_define([LT_PACKAGE_REVISION], [1.3017]) |
|||
|
|||
AC_DEFUN([LTVERSION_VERSION], |
|||
[macro_version='2.2.6b' |
|||
macro_revision='1.3017' |
|||
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) |
|||
_LT_DECL(, macro_revision, 0) |
|||
]) |
@ -1,92 +0,0 @@ |
|||
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- |
|||
# |
|||
# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc. |
|||
# Written by Scott James Remnant, 2004. |
|||
# |
|||
# This file is free software; the Free Software Foundation gives |
|||
# unlimited permission to copy and/or distribute it, with or without |
|||
# modifications, as long as this notice is preserved. |
|||
|
|||
# serial 4 lt~obsolete.m4 |
|||
|
|||
# These exist entirely to fool aclocal when bootstrapping libtool. |
|||
# |
|||
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN) |
|||
# which have later been changed to m4_define as they aren't part of the |
|||
# exported API, or moved to Autoconf or Automake where they belong. |
|||
# |
|||
# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN |
|||
# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us |
|||
# using a macro with the same name in our local m4/libtool.m4 it'll |
|||
# pull the old libtool.m4 in (it doesn't see our shiny new m4_define |
|||
# and doesn't know about Autoconf macros at all.) |
|||
# |
|||
# So we provide this file, which has a silly filename so it's always |
|||
# included after everything else. This provides aclocal with the |
|||
# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything |
|||
# because those macros already exist, or will be overwritten later. |
|||
# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. |
|||
# |
|||
# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here. |
|||
# Yes, that means every name once taken will need to remain here until |
|||
# we give up compatibility with versions before 1.7, at which point |
|||
# we need to keep only those names which we still refer to. |
|||
|
|||
# This is to help aclocal find these macros, as it can't see m4_define. |
|||
AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])]) |
|||
|
|||
m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])]) |
|||
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])]) |
|||
m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])]) |
|||
m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])]) |
|||
m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])]) |
|||
m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])]) |
|||
m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])]) |
|||
m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])]) |
|||
m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])]) |
|||
m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])]) |
|||
m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])]) |
|||
m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])]) |
|||
m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])]) |
|||
m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])]) |
|||
m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])]) |
|||
m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])]) |
|||
m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])]) |
|||
m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])]) |
|||
m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])]) |
|||
m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])]) |
|||
m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])]) |
|||
m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])]) |
|||
m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])]) |
|||
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])]) |
|||
m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])]) |
|||
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])]) |
|||
m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])]) |
|||
m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])]) |
|||
m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])]) |
|||
m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])]) |
|||
m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])]) |
|||
m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])]) |
|||
m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])]) |
|||
m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])]) |
|||
m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])]) |
|||
m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])]) |
|||
m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])]) |
|||
m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])]) |
|||
m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])]) |
|||
m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) |
|||
m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) |
|||
m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) |
|||
m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])]) |
|||
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) |
|||
m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) |
|||
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]) |
|||
m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])]) |
|||
m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])]) |
|||
m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])]) |
|||
m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])]) |
|||
m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])]) |
|||
m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])]) |
|||
m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) |
|||
m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) |
|||
m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) |
@ -1,74 +0,0 @@ |
|||
#!/usr/bin/env perl |
|||
|
|||
$version = $ARGV[0]; |
|||
|
|||
if($version eq "") { |
|||
print "Enter version number!\n"; |
|||
exit; |
|||
} |
|||
|
|||
if(!-f "ares.h") { |
|||
print "run this script in the ares source root dir\n"; |
|||
exit; |
|||
} |
|||
|
|||
my ($major, $minor, $patch)=split(/\./, $version); |
|||
|
|||
$major += 0; |
|||
$minor += 0; |
|||
$patch += 0; |
|||
|
|||
open(VER, "<ares_version.h") || |
|||
die "can't open ares_version.h"; |
|||
open(NEWV, ">ares_version.h.dist"); |
|||
while(<VER>) { |
|||
$_ =~ s/^\#define ARES_VERSION_MAJOR .*/\#define ARES_VERSION_MAJOR $major/; |
|||
$_ =~ s/^\#define ARES_VERSION_MINOR .*/\#define ARES_VERSION_MINOR $minor/; |
|||
$_ =~ s/^\#define ARES_VERSION_PATCH .*/\#define ARES_VERSION_PATCH $patch/; |
|||
$_ =~ s/^\#define ARES_VERSION_STR .*/\#define ARES_VERSION_STR \"$version\"/; |
|||
|
|||
print NEWV $_; |
|||
} |
|||
close(VER); |
|||
close(NEWV); |
|||
print "ares_version.h.dist created\n"; |
|||
|
|||
if(!-f "configure") { |
|||
print "running buildconf\n"; |
|||
`./buildconf`; |
|||
} |
|||
print "adding $version in the configure.ac file\n"; |
|||
`sed -e 's/AC_INIT.*/AC_INIT([c-ares], [$version],/' < configure.ac > configure.ac.dist`; |
|||
|
|||
# now make a new configure script with this |
|||
print "makes a new configure script\n"; |
|||
`autoconf configure.ac.dist >configure`; |
|||
|
|||
# now run this new configure to get a fine makefile |
|||
print "running configure\n"; |
|||
`./configure`; |
|||
|
|||
# generate HTML versions of man pages |
|||
# Deactivated for now. It seems that man pages need some adjustments |
|||
# relative to paragraph and/or line breaks for proper html formatting. |
|||
# EXTRA_DIST will need $(HTMLPAGES) when this is fully activated. |
|||
# print "running make html\n"; |
|||
# `make -s html`; |
|||
|
|||
# generate PDF versions of man pages |
|||
print "running make pdf\n"; |
|||
`make -s pdf`; |
|||
|
|||
# now make the actual tarball |
|||
print "running make dist\n"; |
|||
`make dist VERSION=$version`; |
|||
|
|||
# remove temporay sourced man pages |
|||
`make -s clean-sourced-manpages`; |
|||
|
|||
print "removing temporary configure.ac file\n"; |
|||
`rm configure.ac.dist`; |
|||
print "removing temporary ares_version.h file\n"; |
|||
`rm ares_version.h.dist`; |
|||
|
|||
print "NOTE: now tag this release!\n"; |
@ -1,360 +0,0 @@ |
|||
#! /bin/sh |
|||
# Common stub for a few missing GNU programs while installing. |
|||
|
|||
scriptversion=2005-06-08.21 |
|||
|
|||
# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005 |
|||
# Free Software Foundation, Inc. |
|||
# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996. |
|||
|
|||
# This program is free software; you can redistribute it and/or modify |
|||
# it under the terms of the GNU General Public License as published by |
|||
# the Free Software Foundation; either version 2, or (at your option) |
|||
# any later version. |
|||
|
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU General Public License for more details. |
|||
|
|||
# You should have received a copy of the GNU General Public License |
|||
# along with this program; if not, write to the Free Software |
|||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
|||
# 02110-1301, USA. |
|||
|
|||
# As a special exception to the GNU General Public License, if you |
|||
# distribute this file as part of a program that contains a |
|||
# configuration script generated by Autoconf, you may include it under |
|||
# the same distribution terms that you use for the rest of that program. |
|||
|
|||
if test $# -eq 0; then |
|||
echo 1>&2 "Try \`$0 --help' for more information" |
|||
exit 1 |
|||
fi |
|||
|
|||
run=: |
|||
|
|||
# In the cases where this matters, `missing' is being run in the |
|||
# srcdir already. |
|||
if test -f configure.ac; then |
|||
configure_ac=configure.ac |
|||
else |
|||
configure_ac=configure.in |
|||
fi |
|||
|
|||
msg="missing on your system" |
|||
|
|||
case "$1" in |
|||
--run) |
|||
# Try to run requested program, and just exit if it succeeds. |
|||
run= |
|||
shift |
|||
"$@" && exit 0 |
|||
# Exit code 63 means version mismatch. This often happens |
|||
# when the user try to use an ancient version of a tool on |
|||
# a file that requires a minimum version. In this case we |
|||
# we should proceed has if the program had been absent, or |
|||
# if --run hadn't been passed. |
|||
if test $? = 63; then |
|||
run=: |
|||
msg="probably too old" |
|||
fi |
|||
;; |
|||
|
|||
-h|--h|--he|--hel|--help) |
|||
echo "\ |
|||
$0 [OPTION]... PROGRAM [ARGUMENT]... |
|||
|
|||
Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an |
|||
error status if there is no known handling for PROGRAM. |
|||
|
|||
Options: |
|||
-h, --help display this help and exit |
|||
-v, --version output version information and exit |
|||
--run try to run the given command, and emulate it if it fails |
|||
|
|||
Supported PROGRAM values: |
|||
aclocal touch file \`aclocal.m4' |
|||
autoconf touch file \`configure' |
|||
autoheader touch file \`config.h.in' |
|||
automake touch all \`Makefile.in' files |
|||
bison create \`y.tab.[ch]', if possible, from existing .[ch] |
|||
flex create \`lex.yy.c', if possible, from existing .c |
|||
help2man touch the output file |
|||
lex create \`lex.yy.c', if possible, from existing .c |
|||
makeinfo touch the output file |
|||
tar try tar, gnutar, gtar, then tar without non-portable flags |
|||
yacc create \`y.tab.[ch]', if possible, from existing .[ch] |
|||
|
|||
Send bug reports to <bug-automake@gnu.org>." |
|||
exit $? |
|||
;; |
|||
|
|||
-v|--v|--ve|--ver|--vers|--versi|--versio|--version) |
|||
echo "missing $scriptversion (GNU Automake)" |
|||
exit $? |
|||
;; |
|||
|
|||
-*) |
|||
echo 1>&2 "$0: Unknown \`$1' option" |
|||
echo 1>&2 "Try \`$0 --help' for more information" |
|||
exit 1 |
|||
;; |
|||
|
|||
esac |
|||
|
|||
# Now exit if we have it, but it failed. Also exit now if we |
|||
# don't have it and --version was passed (most likely to detect |
|||
# the program). |
|||
case "$1" in |
|||
lex|yacc) |
|||
# Not GNU programs, they don't have --version. |
|||
;; |
|||
|
|||
tar) |
|||
if test -n "$run"; then |
|||
echo 1>&2 "ERROR: \`tar' requires --run" |
|||
exit 1 |
|||
elif test "x$2" = "x--version" || test "x$2" = "x--help"; then |
|||
exit 1 |
|||
fi |
|||
;; |
|||
|
|||
*) |
|||
if test -z "$run" && ($1 --version) > /dev/null 2>&1; then |
|||
# We have it, but it failed. |
|||
exit 1 |
|||
elif test "x$2" = "x--version" || test "x$2" = "x--help"; then |
|||
# Could not run --version or --help. This is probably someone |
|||
# running `$TOOL --version' or `$TOOL --help' to check whether |
|||
# $TOOL exists and not knowing $TOOL uses missing. |
|||
exit 1 |
|||
fi |
|||
;; |
|||
esac |
|||
|
|||
# If it does not exist, or fails to run (possibly an outdated version), |
|||
# try to emulate it. |
|||
case "$1" in |
|||
aclocal*) |
|||
echo 1>&2 "\ |
|||
WARNING: \`$1' is $msg. You should only need it if |
|||
you modified \`acinclude.m4' or \`${configure_ac}'. You might want |
|||
to install the \`Automake' and \`Perl' packages. Grab them from |
|||
any GNU archive site." |
|||
touch aclocal.m4 |
|||
;; |
|||
|
|||
autoconf) |
|||
echo 1>&2 "\ |
|||
WARNING: \`$1' is $msg. You should only need it if |
|||
you modified \`${configure_ac}'. You might want to install the |
|||
\`Autoconf' and \`GNU m4' packages. Grab them from any GNU |
|||
archive site." |
|||
touch configure |
|||
;; |
|||
|
|||
autoheader) |
|||
echo 1>&2 "\ |
|||
WARNING: \`$1' is $msg. You should only need it if |
|||
you modified \`acconfig.h' or \`${configure_ac}'. You might want |
|||
to install the \`Autoconf' and \`GNU m4' packages. Grab them |
|||
from any GNU archive site." |
|||
files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}` |
|||
test -z "$files" && files="config.h" |
|||
touch_files= |
|||
for f in $files; do |
|||
case "$f" in |
|||
*:*) touch_files="$touch_files "`echo "$f" | |
|||
sed -e 's/^[^:]*://' -e 's/:.*//'`;; |
|||
*) touch_files="$touch_files $f.in";; |
|||
esac |
|||
done |
|||
touch $touch_files |
|||
;; |
|||
|
|||
automake*) |
|||
echo 1>&2 "\ |
|||
WARNING: \`$1' is $msg. You should only need it if |
|||
you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'. |
|||
You might want to install the \`Automake' and \`Perl' packages. |
|||
Grab them from any GNU archive site." |
|||
find . -type f -name Makefile.am -print | |
|||
sed 's/\.am$/.in/' | |
|||
while read f; do touch "$f"; done |
|||
;; |
|||
|
|||
autom4te) |
|||
echo 1>&2 "\ |
|||
WARNING: \`$1' is needed, but is $msg. |
|||
You might have modified some files without having the |
|||
proper tools for further handling them. |
|||
You can get \`$1' as part of \`Autoconf' from any GNU |
|||
archive site." |
|||
|
|||
file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'` |
|||
test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'` |
|||
if test -f "$file"; then |
|||
touch $file |
|||
else |
|||
test -z "$file" || exec >$file |
|||
echo "#! /bin/sh" |
|||
echo "# Created by GNU Automake missing as a replacement of" |
|||
echo "# $ $@" |
|||
echo "exit 0" |
|||
chmod +x $file |
|||
exit 1 |
|||
fi |
|||
;; |
|||
|
|||
bison|yacc) |
|||
echo 1>&2 "\ |
|||
WARNING: \`$1' $msg. You should only need it if |
|||
you modified a \`.y' file. You may need the \`Bison' package |
|||
in order for those modifications to take effect. You can get |
|||
\`Bison' from any GNU archive site." |
|||
rm -f y.tab.c y.tab.h |
|||
if [ $# -ne 1 ]; then |
|||
eval LASTARG="\${$#}" |
|||
case "$LASTARG" in |
|||
*.y) |
|||
SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` |
|||
if [ -f "$SRCFILE" ]; then |
|||
cp "$SRCFILE" y.tab.c |
|||
fi |
|||
SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` |
|||
if [ -f "$SRCFILE" ]; then |
|||
cp "$SRCFILE" y.tab.h |
|||
fi |
|||
;; |
|||
esac |
|||
fi |
|||
if [ ! -f y.tab.h ]; then |
|||
echo >y.tab.h |
|||
fi |
|||
if [ ! -f y.tab.c ]; then |
|||
echo 'main() { return 0; }' >y.tab.c |
|||
fi |
|||
;; |
|||
|
|||
lex|flex) |
|||
echo 1>&2 "\ |
|||
WARNING: \`$1' is $msg. You should only need it if |
|||
you modified a \`.l' file. You may need the \`Flex' package |
|||
in order for those modifications to take effect. You can get |
|||
\`Flex' from any GNU archive site." |
|||
rm -f lex.yy.c |
|||
if [ $# -ne 1 ]; then |
|||
eval LASTARG="\${$#}" |
|||
case "$LASTARG" in |
|||
*.l) |
|||
SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` |
|||
if [ -f "$SRCFILE" ]; then |
|||
cp "$SRCFILE" lex.yy.c |
|||
fi |
|||
;; |
|||
esac |
|||
fi |
|||
if [ ! -f lex.yy.c ]; then |
|||
echo 'main() { return 0; }' >lex.yy.c |
|||
fi |
|||
;; |
|||
|
|||
help2man) |
|||
echo 1>&2 "\ |
|||
WARNING: \`$1' is $msg. You should only need it if |
|||
you modified a dependency of a manual page. You may need the |
|||
\`Help2man' package in order for those modifications to take |
|||
effect. You can get \`Help2man' from any GNU archive site." |
|||
|
|||
file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` |
|||
if test -z "$file"; then |
|||
file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'` |
|||
fi |
|||
if [ -f "$file" ]; then |
|||
touch $file |
|||
else |
|||
test -z "$file" || exec >$file |
|||
echo ".ab help2man is required to generate this page" |
|||
exit 1 |
|||
fi |
|||
;; |
|||
|
|||
makeinfo) |
|||
echo 1>&2 "\ |
|||
WARNING: \`$1' is $msg. You should only need it if |
|||
you modified a \`.texi' or \`.texinfo' file, or any other file |
|||
indirectly affecting the aspect of the manual. The spurious |
|||
call might also be the consequence of using a buggy \`make' (AIX, |
|||
DU, IRIX). You might want to install the \`Texinfo' package or |
|||
the \`GNU make' package. Grab either from any GNU archive site." |
|||
# The file to touch is that specified with -o ... |
|||
file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` |
|||
if test -z "$file"; then |
|||
# ... or it is the one specified with @setfilename ... |
|||
infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` |
|||
file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $infile` |
|||
# ... or it is derived from the source name (dir/f.texi becomes f.info) |
|||
test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info |
|||
fi |
|||
# If the file does not exist, the user really needs makeinfo; |
|||
# let's fail without touching anything. |
|||
test -f $file || exit 1 |
|||
touch $file |
|||
;; |
|||
|
|||
tar) |
|||
shift |
|||
|
|||
# We have already tried tar in the generic part. |
|||
# Look for gnutar/gtar before invocation to avoid ugly error |
|||
# messages. |
|||
if (gnutar --version > /dev/null 2>&1); then |
|||
gnutar "$@" && exit 0 |
|||
fi |
|||
if (gtar --version > /dev/null 2>&1); then |
|||
gtar "$@" && exit 0 |
|||
fi |
|||
firstarg="$1" |
|||
if shift; then |
|||
case "$firstarg" in |
|||
*o*) |
|||
firstarg=`echo "$firstarg" | sed s/o//` |
|||
tar "$firstarg" "$@" && exit 0 |
|||
;; |
|||
esac |
|||
case "$firstarg" in |
|||
*h*) |
|||
firstarg=`echo "$firstarg" | sed s/h//` |
|||
tar "$firstarg" "$@" && exit 0 |
|||
;; |
|||
esac |
|||
fi |
|||
|
|||
echo 1>&2 "\ |
|||
WARNING: I can't seem to be able to run \`tar' with the given arguments. |
|||
You may want to install GNU tar or Free paxutils, or check the |
|||
command line arguments." |
|||
exit 1 |
|||
;; |
|||
|
|||
*) |
|||
echo 1>&2 "\ |
|||
WARNING: \`$1' is needed, and is $msg. |
|||
You might have modified some files without having the |
|||
proper tools for further handling them. Check the \`README' file, |
|||
it often tells you about the needed prerequisites for installing |
|||
this package. You may also peek at any GNU archive site, in case |
|||
some other package would contain this missing \`$1' program." |
|||
exit 1 |
|||
;; |
|||
esac |
|||
|
|||
exit 0 |
|||
|
|||
# Local variables: |
|||
# eval: (add-hook 'write-file-hooks 'time-stamp) |
|||
# time-stamp-start: "scriptversion=" |
|||
# time-stamp-format: "%:y-%02m-%02d.%02H" |
|||
# time-stamp-end: "$" |
|||
# End: |
@ -1,39 +0,0 @@ |
|||
#! /bin/sh |
|||
# mkinstalldirs --- make directory hierarchy |
|||
# Author: Noah Friedman <friedman@prep.ai.mit.edu> |
|||
# Created: 1993-05-16 |
|||
# Public domain |
|||
|
|||
|
|||
errstatus=0 |
|||
|
|||
for file |
|||
do |
|||
set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'` |
|||
shift |
|||
|
|||
pathcomp= |
|||
for d |
|||
do |
|||
pathcomp="$pathcomp$d" |
|||
case "$pathcomp" in |
|||
-* ) pathcomp=./$pathcomp ;; |
|||
esac |
|||
|
|||
if test ! -d "$pathcomp"; then |
|||
echo "mkdir $pathcomp" 1>&2 |
|||
|
|||
mkdir "$pathcomp" || lasterr=$? |
|||
|
|||
if test ! -d "$pathcomp"; then |
|||
errstatus=$lasterr |
|||
fi |
|||
fi |
|||
|
|||
pathcomp="$pathcomp/" |
|||
done |
|||
done |
|||
|
|||
exit $errstatus |
|||
|
|||
# mkinstalldirs ends here |
@ -1,170 +0,0 @@ |
|||
# Microsoft Developer Studio Project File - Name="acountry" - Package Owner=<4> |
|||
# Microsoft Developer Studio Generated Build File, Format Version 6.00 |
|||
# ** DO NOT EDIT ** |
|||
|
|||
# TARGTYPE "Win32 (x86) Console Application" 0x0103 |
|||
|
|||
CFG=acountry - Win32 using cares LIB Debug |
|||
!MESSAGE This is not a valid makefile. To build this project using NMAKE, |
|||
!MESSAGE use the Export Makefile command and run |
|||
!MESSAGE |
|||
!MESSAGE NMAKE /f "vc6acountry.mak". |
|||
!MESSAGE |
|||
!MESSAGE You can specify a configuration when running NMAKE |
|||
!MESSAGE by defining the macro CFG on the command line. For example: |
|||
!MESSAGE |
|||
!MESSAGE NMAKE /f "vc6acountry.mak" CFG="acountry - Win32 using cares LIB Debug" |
|||
!MESSAGE |
|||
!MESSAGE Possible choices for configuration are: |
|||
!MESSAGE |
|||
!MESSAGE "acountry - Win32 using cares DLL Debug" (based on "Win32 (x86) Console Application") |
|||
!MESSAGE "acountry - Win32 using cares DLL Release" (based on "Win32 (x86) Console Application") |
|||
!MESSAGE "acountry - Win32 using cares LIB Debug" (based on "Win32 (x86) Console Application") |
|||
!MESSAGE "acountry - Win32 using cares LIB Release" (based on "Win32 (x86) Console Application") |
|||
!MESSAGE |
|||
|
|||
# Begin Project |
|||
# PROP AllowPerConfigDependencies 0 |
|||
# PROP Scc_ProjName "" |
|||
# PROP Scc_LocalPath "" |
|||
CPP=cl.exe |
|||
RSC=rc.exe |
|||
|
|||
!IF "$(CFG)" == "acountry - Win32 using cares DLL Debug" |
|||
|
|||
# PROP BASE Use_MFC 0 |
|||
# PROP BASE Use_Debug_Libraries 1 |
|||
# PROP BASE Output_Dir "dll-debug" |
|||
# PROP BASE Intermediate_Dir "dll-debug/obj" |
|||
# PROP BASE Target_Dir "" |
|||
# PROP Use_MFC 0 |
|||
# PROP Use_Debug_Libraries 1 |
|||
# PROP Output_Dir "dll-debug" |
|||
# PROP Intermediate_Dir "dll-debug/obj" |
|||
# PROP Ignore_Export_Lib 0 |
|||
# PROP Target_Dir "" |
|||
# ADD BASE CPP /nologo /MDd /W3 /GX /Zi /Od /I "..\.." /D "_DEBUG" /D "WIN32" /D "_CONSOLE" /FD /GZ /c |
|||
# ADD CPP /nologo /MDd /W3 /GX /Zi /Od /I "..\.." /D "_DEBUG" /D "WIN32" /D "_CONSOLE" /FD /GZ /c |
|||
# ADD BASE RSC /l 0x409 /d "_DEBUG" |
|||
# ADD RSC /l 0x409 /d "_DEBUG" |
|||
BSC32=bscmake.exe |
|||
# ADD BASE BSC32 /nologo |
|||
# ADD BSC32 /nologo |
|||
LINK32=link.exe |
|||
# ADD BASE LINK32 caresd.lib ws2_32.lib advapi32.lib kernel32.lib /nologo /subsystem:console /incremental:no /debug /machine:I386 /out:"dll-debug/acountry.exe" /pdbtype:con /libpath:"..\cares\dll-debug" /fixed:no |
|||
# ADD LINK32 caresd.lib ws2_32.lib advapi32.lib kernel32.lib /nologo /subsystem:console /incremental:no /debug /machine:I386 /out:"dll-debug/acountry.exe" /pdbtype:con /libpath:"..\cares\dll-debug" /fixed:no |
|||
|
|||
!ELSEIF "$(CFG)" == "acountry - Win32 using cares DLL Release" |
|||
|
|||
# PROP BASE Use_MFC 0 |
|||
# PROP BASE Use_Debug_Libraries 0 |
|||
# PROP BASE Output_Dir "dll-release" |
|||
# PROP BASE Intermediate_Dir "dll-release/obj" |
|||
# PROP BASE Target_Dir "" |
|||
# PROP Use_MFC 0 |
|||
# PROP Use_Debug_Libraries 0 |
|||
# PROP Output_Dir "dll-release" |
|||
# PROP Intermediate_Dir "dll-release/obj" |
|||
# PROP Ignore_Export_Lib 0 |
|||
# PROP Target_Dir "" |
|||
# ADD BASE CPP /nologo /MD /W3 /GX /O2 /I "..\.." /D "NDEBUG" /D "WIN32" /D "_CONSOLE" /FD /c |
|||
# ADD CPP /nologo /MD /W3 /GX /O2 /I "..\.." /D "NDEBUG" /D "WIN32" /D "_CONSOLE" /FD /c |
|||
# ADD BASE RSC /l 0x409 /d "NDEBUG" |
|||
# ADD RSC /l 0x409 /d "NDEBUG" |
|||
BSC32=bscmake.exe |
|||
# ADD BASE BSC32 /nologo |
|||
# ADD BSC32 /nologo |
|||
LINK32=link.exe |
|||
# ADD BASE LINK32 cares.lib ws2_32.lib advapi32.lib kernel32.lib /nologo /subsystem:console /pdb:none /machine:I386 /out:"dll-release/acountry.exe" /libpath:"..\cares\dll-release" /fixed:no |
|||
# ADD LINK32 cares.lib ws2_32.lib advapi32.lib kernel32.lib /nologo /subsystem:console /pdb:none /machine:I386 /out:"dll-release/acountry.exe" /libpath:"..\cares\dll-release" /fixed:no |
|||
|
|||
!ELSEIF "$(CFG)" == "acountry - Win32 using cares LIB Debug" |
|||
|
|||
# PROP BASE Use_MFC 0 |
|||
# PROP BASE Use_Debug_Libraries 1 |
|||
# PROP BASE Output_Dir "lib-debug" |
|||
# PROP BASE Intermediate_Dir "lib-debug/obj" |
|||
# PROP BASE Target_Dir "" |
|||
# PROP Use_MFC 0 |
|||
# PROP Use_Debug_Libraries 1 |
|||
# PROP Output_Dir "lib-debug" |
|||
# PROP Intermediate_Dir "lib-debug/obj" |
|||
# PROP Ignore_Export_Lib 0 |
|||
# PROP Target_Dir "" |
|||
# ADD BASE CPP /nologo /MDd /W3 /GX /Zi /Od /I "..\.." /D "_DEBUG" /D "WIN32" /D "_CONSOLE" /D "CARES_STATICLIB" /FD /GZ /c |
|||
# ADD CPP /nologo /MDd /W3 /GX /Zi /Od /I "..\.." /D "_DEBUG" /D "WIN32" /D "_CONSOLE" /D "CARES_STATICLIB" /FD /GZ /c |
|||
# ADD BASE RSC /l 0x409 /d "_DEBUG" |
|||
# ADD RSC /l 0x409 /d "_DEBUG" |
|||
BSC32=bscmake.exe |
|||
# ADD BASE BSC32 /nologo |
|||
# ADD BSC32 /nologo |
|||
LINK32=link.exe |
|||
# ADD BASE LINK32 libcaresd.lib ws2_32.lib advapi32.lib kernel32.lib /nologo /subsystem:console /incremental:no /debug /machine:I386 /out:"lib-debug/acountry.exe" /pdbtype:con /libpath:"..\cares\lib-debug" /fixed:no |
|||
# ADD LINK32 libcaresd.lib ws2_32.lib advapi32.lib kernel32.lib /nologo /subsystem:console /incremental:no /debug /machine:I386 /out:"lib-debug/acountry.exe" /pdbtype:con /libpath:"..\cares\lib-debug" /fixed:no |
|||
|
|||
!ELSEIF "$(CFG)" == "acountry - Win32 using cares LIB Release" |
|||
|
|||
# PROP BASE Use_MFC 0 |
|||
# PROP BASE Use_Debug_Libraries 0 |
|||
# PROP BASE Output_Dir "lib-release" |
|||
# PROP BASE Intermediate_Dir "lib-release/obj" |
|||
# PROP BASE Target_Dir "" |
|||
# PROP Use_MFC 0 |
|||
# PROP Use_Debug_Libraries 0 |
|||
# PROP Output_Dir "lib-release" |
|||
# PROP Intermediate_Dir "lib-release/obj" |
|||
# PROP Ignore_Export_Lib 0 |
|||
# PROP Target_Dir "" |
|||
# ADD BASE CPP /nologo /MD /W3 /GX /O2 /I "..\.." /D "NDEBUG" /D "WIN32" /D "_CONSOLE" /D "CARES_STATICLIB" /FD /c |
|||
# ADD CPP /nologo /MD /W3 /GX /O2 /I "..\.." /D "NDEBUG" /D "WIN32" /D "_CONSOLE" /D "CARES_STATICLIB" /FD /c |
|||
# ADD BASE RSC /l 0x409 /d "NDEBUG" |
|||
# ADD RSC /l 0x409 /d "NDEBUG" |
|||
BSC32=bscmake.exe |
|||
# ADD BASE BSC32 /nologo |
|||
# ADD BSC32 /nologo |
|||
LINK32=link.exe |
|||
# ADD BASE LINK32 libcares.lib ws2_32.lib advapi32.lib kernel32.lib /nologo /subsystem:console /pdb:none /machine:I386 /out:"lib-release/acountry.exe" /libpath:"..\cares\lib-release" /fixed:no |
|||
# ADD LINK32 libcares.lib ws2_32.lib advapi32.lib kernel32.lib /nologo /subsystem:console /pdb:none /machine:I386 /out:"lib-release/acountry.exe" /libpath:"..\cares\lib-release" /fixed:no |
|||
|
|||
!ENDIF |
|||
|
|||
# Begin Target |
|||
|
|||
# Name "acountry - Win32 using cares DLL Debug" |
|||
# Name "acountry - Win32 using cares DLL Release" |
|||
# Name "acountry - Win32 using cares LIB Debug" |
|||
# Name "acountry - Win32 using cares LIB Release" |
|||
# Begin Group "Source Files" |
|||
|
|||
# PROP Default_Filter "" |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\acountry.c |
|||
# End Source File |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\ares_getopt.c |
|||
# End Source File |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\ares_strcasecmp.c |
|||
# End Source File |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\inet_net_pton.c |
|||
# End Source File |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\inet_ntop.c |
|||
# End Source File |
|||
# End Group |
|||
# Begin Group "Header Files" |
|||
|
|||
# PROP Default_Filter "" |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\ares_getopt.h |
|||
# End Source File |
|||
# End Group |
|||
# End Target |
|||
# End Project |
@ -1,170 +0,0 @@ |
|||
# Microsoft Developer Studio Project File - Name="adig" - Package Owner=<4> |
|||
# Microsoft Developer Studio Generated Build File, Format Version 6.00 |
|||
# ** DO NOT EDIT ** |
|||
|
|||
# TARGTYPE "Win32 (x86) Console Application" 0x0103 |
|||
|
|||
CFG=adig - Win32 using cares LIB Debug |
|||
!MESSAGE This is not a valid makefile. To build this project using NMAKE, |
|||
!MESSAGE use the Export Makefile command and run |
|||
!MESSAGE |
|||
!MESSAGE NMAKE /f "vc6adig.mak". |
|||
!MESSAGE |
|||
!MESSAGE You can specify a configuration when running NMAKE |
|||
!MESSAGE by defining the macro CFG on the command line. For example: |
|||
!MESSAGE |
|||
!MESSAGE NMAKE /f "vc6adig.mak" CFG="adig - Win32 using cares LIB Debug" |
|||
!MESSAGE |
|||
!MESSAGE Possible choices for configuration are: |
|||
!MESSAGE |
|||
!MESSAGE "adig - Win32 using cares DLL Debug" (based on "Win32 (x86) Console Application") |
|||
!MESSAGE "adig - Win32 using cares DLL Release" (based on "Win32 (x86) Console Application") |
|||
!MESSAGE "adig - Win32 using cares LIB Debug" (based on "Win32 (x86) Console Application") |
|||
!MESSAGE "adig - Win32 using cares LIB Release" (based on "Win32 (x86) Console Application") |
|||
!MESSAGE |
|||
|
|||
# Begin Project |
|||
# PROP AllowPerConfigDependencies 0 |
|||
# PROP Scc_ProjName "" |
|||
# PROP Scc_LocalPath "" |
|||
CPP=cl.exe |
|||
RSC=rc.exe |
|||
|
|||
!IF "$(CFG)" == "adig - Win32 using cares DLL Debug" |
|||
|
|||
# PROP BASE Use_MFC 0 |
|||
# PROP BASE Use_Debug_Libraries 1 |
|||
# PROP BASE Output_Dir "dll-debug" |
|||
# PROP BASE Intermediate_Dir "dll-debug/obj" |
|||
# PROP BASE Target_Dir "" |
|||
# PROP Use_MFC 0 |
|||
# PROP Use_Debug_Libraries 1 |
|||
# PROP Output_Dir "dll-debug" |
|||
# PROP Intermediate_Dir "dll-debug/obj" |
|||
# PROP Ignore_Export_Lib 0 |
|||
# PROP Target_Dir "" |
|||
# ADD BASE CPP /nologo /MDd /W3 /GX /Zi /Od /I "..\.." /D "_DEBUG" /D "WIN32" /D "_CONSOLE" /FD /GZ /c |
|||
# ADD CPP /nologo /MDd /W3 /GX /Zi /Od /I "..\.." /D "_DEBUG" /D "WIN32" /D "_CONSOLE" /FD /GZ /c |
|||
# ADD BASE RSC /l 0x409 /d "_DEBUG" |
|||
# ADD RSC /l 0x409 /d "_DEBUG" |
|||
BSC32=bscmake.exe |
|||
# ADD BASE BSC32 /nologo |
|||
# ADD BSC32 /nologo |
|||
LINK32=link.exe |
|||
# ADD BASE LINK32 caresd.lib ws2_32.lib advapi32.lib kernel32.lib /nologo /subsystem:console /incremental:no /debug /machine:I386 /out:"dll-debug/adig.exe" /pdbtype:con /libpath:"..\cares\dll-debug" /fixed:no |
|||
# ADD LINK32 caresd.lib ws2_32.lib advapi32.lib kernel32.lib /nologo /subsystem:console /incremental:no /debug /machine:I386 /out:"dll-debug/adig.exe" /pdbtype:con /libpath:"..\cares\dll-debug" /fixed:no |
|||
|
|||
!ELSEIF "$(CFG)" == "adig - Win32 using cares DLL Release" |
|||
|
|||
# PROP BASE Use_MFC 0 |
|||
# PROP BASE Use_Debug_Libraries 0 |
|||
# PROP BASE Output_Dir "dll-release" |
|||
# PROP BASE Intermediate_Dir "dll-release/obj" |
|||
# PROP BASE Target_Dir "" |
|||
# PROP Use_MFC 0 |
|||
# PROP Use_Debug_Libraries 0 |
|||
# PROP Output_Dir "dll-release" |
|||
# PROP Intermediate_Dir "dll-release/obj" |
|||
# PROP Ignore_Export_Lib 0 |
|||
# PROP Target_Dir "" |
|||
# ADD BASE CPP /nologo /MD /W3 /GX /O2 /I "..\.." /D "NDEBUG" /D "WIN32" /D "_CONSOLE" /FD /c |
|||
# ADD CPP /nologo /MD /W3 /GX /O2 /I "..\.." /D "NDEBUG" /D "WIN32" /D "_CONSOLE" /FD /c |
|||
# ADD BASE RSC /l 0x409 /d "NDEBUG" |
|||
# ADD RSC /l 0x409 /d "NDEBUG" |
|||
BSC32=bscmake.exe |
|||
# ADD BASE BSC32 /nologo |
|||
# ADD BSC32 /nologo |
|||
LINK32=link.exe |
|||
# ADD BASE LINK32 cares.lib ws2_32.lib advapi32.lib kernel32.lib /nologo /subsystem:console /pdb:none /machine:I386 /out:"dll-release/adig.exe" /libpath:"..\cares\dll-release" /fixed:no |
|||
# ADD LINK32 cares.lib ws2_32.lib advapi32.lib kernel32.lib /nologo /subsystem:console /pdb:none /machine:I386 /out:"dll-release/adig.exe" /libpath:"..\cares\dll-release" /fixed:no |
|||
|
|||
!ELSEIF "$(CFG)" == "adig - Win32 using cares LIB Debug" |
|||
|
|||
# PROP BASE Use_MFC 0 |
|||
# PROP BASE Use_Debug_Libraries 1 |
|||
# PROP BASE Output_Dir "lib-debug" |
|||
# PROP BASE Intermediate_Dir "lib-debug/obj" |
|||
# PROP BASE Target_Dir "" |
|||
# PROP Use_MFC 0 |
|||
# PROP Use_Debug_Libraries 1 |
|||
# PROP Output_Dir "lib-debug" |
|||
# PROP Intermediate_Dir "lib-debug/obj" |
|||
# PROP Ignore_Export_Lib 0 |
|||
# PROP Target_Dir "" |
|||
# ADD BASE CPP /nologo /MDd /W3 /GX /Zi /Od /I "..\.." /D "_DEBUG" /D "WIN32" /D "_CONSOLE" /D "CARES_STATICLIB" /FD /GZ /c |
|||
# ADD CPP /nologo /MDd /W3 /GX /Zi /Od /I "..\.." /D "_DEBUG" /D "WIN32" /D "_CONSOLE" /D "CARES_STATICLIB" /FD /GZ /c |
|||
# ADD BASE RSC /l 0x409 /d "_DEBUG" |
|||
# ADD RSC /l 0x409 /d "_DEBUG" |
|||
BSC32=bscmake.exe |
|||
# ADD BASE BSC32 /nologo |
|||
# ADD BSC32 /nologo |
|||
LINK32=link.exe |
|||
# ADD BASE LINK32 libcaresd.lib ws2_32.lib advapi32.lib kernel32.lib /nologo /subsystem:console /incremental:no /debug /machine:I386 /out:"lib-debug/adig.exe" /pdbtype:con /libpath:"..\cares\lib-debug" /fixed:no |
|||
# ADD LINK32 libcaresd.lib ws2_32.lib advapi32.lib kernel32.lib /nologo /subsystem:console /incremental:no /debug /machine:I386 /out:"lib-debug/adig.exe" /pdbtype:con /libpath:"..\cares\lib-debug" /fixed:no |
|||
|
|||
!ELSEIF "$(CFG)" == "adig - Win32 using cares LIB Release" |
|||
|
|||
# PROP BASE Use_MFC 0 |
|||
# PROP BASE Use_Debug_Libraries 0 |
|||
# PROP BASE Output_Dir "lib-release" |
|||
# PROP BASE Intermediate_Dir "lib-release/obj" |
|||
# PROP BASE Target_Dir "" |
|||
# PROP Use_MFC 0 |
|||
# PROP Use_Debug_Libraries 0 |
|||
# PROP Output_Dir "lib-release" |
|||
# PROP Intermediate_Dir "lib-release/obj" |
|||
# PROP Ignore_Export_Lib 0 |
|||
# PROP Target_Dir "" |
|||
# ADD BASE CPP /nologo /MD /W3 /GX /O2 /I "..\.." /D "NDEBUG" /D "WIN32" /D "_CONSOLE" /D "CARES_STATICLIB" /FD /c |
|||
# ADD CPP /nologo /MD /W3 /GX /O2 /I "..\.." /D "NDEBUG" /D "WIN32" /D "_CONSOLE" /D "CARES_STATICLIB" /FD /c |
|||
# ADD BASE RSC /l 0x409 /d "NDEBUG" |
|||
# ADD RSC /l 0x409 /d "NDEBUG" |
|||
BSC32=bscmake.exe |
|||
# ADD BASE BSC32 /nologo |
|||
# ADD BSC32 /nologo |
|||
LINK32=link.exe |
|||
# ADD BASE LINK32 libcares.lib ws2_32.lib advapi32.lib kernel32.lib /nologo /subsystem:console /pdb:none /machine:I386 /out:"lib-release/adig.exe" /libpath:"..\cares\lib-release" /fixed:no |
|||
# ADD LINK32 libcares.lib ws2_32.lib advapi32.lib kernel32.lib /nologo /subsystem:console /pdb:none /machine:I386 /out:"lib-release/adig.exe" /libpath:"..\cares\lib-release" /fixed:no |
|||
|
|||
!ENDIF |
|||
|
|||
# Begin Target |
|||
|
|||
# Name "adig - Win32 using cares DLL Debug" |
|||
# Name "adig - Win32 using cares DLL Release" |
|||
# Name "adig - Win32 using cares LIB Debug" |
|||
# Name "adig - Win32 using cares LIB Release" |
|||
# Begin Group "Source Files" |
|||
|
|||
# PROP Default_Filter "" |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\adig.c |
|||
# End Source File |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\ares_getopt.c |
|||
# End Source File |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\ares_strcasecmp.c |
|||
# End Source File |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\inet_net_pton.c |
|||
# End Source File |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\inet_ntop.c |
|||
# End Source File |
|||
# End Group |
|||
# Begin Group "Header Files" |
|||
|
|||
# PROP Default_Filter "" |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\ares_getopt.h |
|||
# End Source File |
|||
# End Group |
|||
# End Target |
|||
# End Project |
@ -1,170 +0,0 @@ |
|||
# Microsoft Developer Studio Project File - Name="ahost" - Package Owner=<4> |
|||
# Microsoft Developer Studio Generated Build File, Format Version 6.00 |
|||
# ** DO NOT EDIT ** |
|||
|
|||
# TARGTYPE "Win32 (x86) Console Application" 0x0103 |
|||
|
|||
CFG=ahost - Win32 using cares LIB Debug |
|||
!MESSAGE This is not a valid makefile. To build this project using NMAKE, |
|||
!MESSAGE use the Export Makefile command and run |
|||
!MESSAGE |
|||
!MESSAGE NMAKE /f "vc6ahost.mak". |
|||
!MESSAGE |
|||
!MESSAGE You can specify a configuration when running NMAKE |
|||
!MESSAGE by defining the macro CFG on the command line. For example: |
|||
!MESSAGE |
|||
!MESSAGE NMAKE /f "vc6ahost.mak" CFG="ahost - Win32 using cares LIB Debug" |
|||
!MESSAGE |
|||
!MESSAGE Possible choices for configuration are: |
|||
!MESSAGE |
|||
!MESSAGE "ahost - Win32 using cares DLL Debug" (based on "Win32 (x86) Console Application") |
|||
!MESSAGE "ahost - Win32 using cares DLL Release" (based on "Win32 (x86) Console Application") |
|||
!MESSAGE "ahost - Win32 using cares LIB Debug" (based on "Win32 (x86) Console Application") |
|||
!MESSAGE "ahost - Win32 using cares LIB Release" (based on "Win32 (x86) Console Application") |
|||
!MESSAGE |
|||
|
|||
# Begin Project |
|||
# PROP AllowPerConfigDependencies 0 |
|||
# PROP Scc_ProjName "" |
|||
# PROP Scc_LocalPath "" |
|||
CPP=cl.exe |
|||
RSC=rc.exe |
|||
|
|||
!IF "$(CFG)" == "ahost - Win32 using cares DLL Debug" |
|||
|
|||
# PROP BASE Use_MFC 0 |
|||
# PROP BASE Use_Debug_Libraries 1 |
|||
# PROP BASE Output_Dir "dll-debug" |
|||
# PROP BASE Intermediate_Dir "dll-debug/obj" |
|||
# PROP BASE Target_Dir "" |
|||
# PROP Use_MFC 0 |
|||
# PROP Use_Debug_Libraries 1 |
|||
# PROP Output_Dir "dll-debug" |
|||
# PROP Intermediate_Dir "dll-debug/obj" |
|||
# PROP Ignore_Export_Lib 0 |
|||
# PROP Target_Dir "" |
|||
# ADD BASE CPP /nologo /MDd /W3 /GX /Zi /Od /I "..\.." /D "_DEBUG" /D "WIN32" /D "_CONSOLE" /FD /GZ /c |
|||
# ADD CPP /nologo /MDd /W3 /GX /Zi /Od /I "..\.." /D "_DEBUG" /D "WIN32" /D "_CONSOLE" /FD /GZ /c |
|||
# ADD BASE RSC /l 0x409 /d "_DEBUG" |
|||
# ADD RSC /l 0x409 /d "_DEBUG" |
|||
BSC32=bscmake.exe |
|||
# ADD BASE BSC32 /nologo |
|||
# ADD BSC32 /nologo |
|||
LINK32=link.exe |
|||
# ADD BASE LINK32 caresd.lib ws2_32.lib advapi32.lib kernel32.lib /nologo /subsystem:console /incremental:no /debug /machine:I386 /out:"dll-debug/ahost.exe" /pdbtype:con /libpath:"..\cares\dll-debug" /fixed:no |
|||
# ADD LINK32 caresd.lib ws2_32.lib advapi32.lib kernel32.lib /nologo /subsystem:console /incremental:no /debug /machine:I386 /out:"dll-debug/ahost.exe" /pdbtype:con /libpath:"..\cares\dll-debug" /fixed:no |
|||
|
|||
!ELSEIF "$(CFG)" == "ahost - Win32 using cares DLL Release" |
|||
|
|||
# PROP BASE Use_MFC 0 |
|||
# PROP BASE Use_Debug_Libraries 0 |
|||
# PROP BASE Output_Dir "dll-release" |
|||
# PROP BASE Intermediate_Dir "dll-release/obj" |
|||
# PROP BASE Target_Dir "" |
|||
# PROP Use_MFC 0 |
|||
# PROP Use_Debug_Libraries 0 |
|||
# PROP Output_Dir "dll-release" |
|||
# PROP Intermediate_Dir "dll-release/obj" |
|||
# PROP Ignore_Export_Lib 0 |
|||
# PROP Target_Dir "" |
|||
# ADD BASE CPP /nologo /MD /W3 /GX /O2 /I "..\.." /D "NDEBUG" /D "WIN32" /D "_CONSOLE" /FD /c |
|||
# ADD CPP /nologo /MD /W3 /GX /O2 /I "..\.." /D "NDEBUG" /D "WIN32" /D "_CONSOLE" /FD /c |
|||
# ADD BASE RSC /l 0x409 /d "NDEBUG" |
|||
# ADD RSC /l 0x409 /d "NDEBUG" |
|||
BSC32=bscmake.exe |
|||
# ADD BASE BSC32 /nologo |
|||
# ADD BSC32 /nologo |
|||
LINK32=link.exe |
|||
# ADD BASE LINK32 cares.lib ws2_32.lib advapi32.lib kernel32.lib /nologo /subsystem:console /pdb:none /machine:I386 /out:"dll-release/ahost.exe" /libpath:"..\cares\dll-release" /fixed:no |
|||
# ADD LINK32 cares.lib ws2_32.lib advapi32.lib kernel32.lib /nologo /subsystem:console /pdb:none /machine:I386 /out:"dll-release/ahost.exe" /libpath:"..\cares\dll-release" /fixed:no |
|||
|
|||
!ELSEIF "$(CFG)" == "ahost - Win32 using cares LIB Debug" |
|||
|
|||
# PROP BASE Use_MFC 0 |
|||
# PROP BASE Use_Debug_Libraries 1 |
|||
# PROP BASE Output_Dir "lib-debug" |
|||
# PROP BASE Intermediate_Dir "lib-debug/obj" |
|||
# PROP BASE Target_Dir "" |
|||
# PROP Use_MFC 0 |
|||
# PROP Use_Debug_Libraries 1 |
|||
# PROP Output_Dir "lib-debug" |
|||
# PROP Intermediate_Dir "lib-debug/obj" |
|||
# PROP Ignore_Export_Lib 0 |
|||
# PROP Target_Dir "" |
|||
# ADD BASE CPP /nologo /MDd /W3 /GX /Zi /Od /I "..\.." /D "_DEBUG" /D "WIN32" /D "_CONSOLE" /D "CARES_STATICLIB" /FD /GZ /c |
|||
# ADD CPP /nologo /MDd /W3 /GX /Zi /Od /I "..\.." /D "_DEBUG" /D "WIN32" /D "_CONSOLE" /D "CARES_STATICLIB" /FD /GZ /c |
|||
# ADD BASE RSC /l 0x409 /d "_DEBUG" |
|||
# ADD RSC /l 0x409 /d "_DEBUG" |
|||
BSC32=bscmake.exe |
|||
# ADD BASE BSC32 /nologo |
|||
# ADD BSC32 /nologo |
|||
LINK32=link.exe |
|||
# ADD BASE LINK32 libcaresd.lib ws2_32.lib advapi32.lib kernel32.lib /nologo /subsystem:console /incremental:no /debug /machine:I386 /out:"lib-debug/ahost.exe" /pdbtype:con /libpath:"..\cares\lib-debug" /fixed:no |
|||
# ADD LINK32 libcaresd.lib ws2_32.lib advapi32.lib kernel32.lib /nologo /subsystem:console /incremental:no /debug /machine:I386 /out:"lib-debug/ahost.exe" /pdbtype:con /libpath:"..\cares\lib-debug" /fixed:no |
|||
|
|||
!ELSEIF "$(CFG)" == "ahost - Win32 using cares LIB Release" |
|||
|
|||
# PROP BASE Use_MFC 0 |
|||
# PROP BASE Use_Debug_Libraries 0 |
|||
# PROP BASE Output_Dir "lib-release" |
|||
# PROP BASE Intermediate_Dir "lib-release/obj" |
|||
# PROP BASE Target_Dir "" |
|||
# PROP Use_MFC 0 |
|||
# PROP Use_Debug_Libraries 0 |
|||
# PROP Output_Dir "lib-release" |
|||
# PROP Intermediate_Dir "lib-release/obj" |
|||
# PROP Ignore_Export_Lib 0 |
|||
# PROP Target_Dir "" |
|||
# ADD BASE CPP /nologo /MD /W3 /GX /O2 /I "..\.." /D "NDEBUG" /D "WIN32" /D "_CONSOLE" /D "CARES_STATICLIB" /FD /c |
|||
# ADD CPP /nologo /MD /W3 /GX /O2 /I "..\.." /D "NDEBUG" /D "WIN32" /D "_CONSOLE" /D "CARES_STATICLIB" /FD /c |
|||
# ADD BASE RSC /l 0x409 /d "NDEBUG" |
|||
# ADD RSC /l 0x409 /d "NDEBUG" |
|||
BSC32=bscmake.exe |
|||
# ADD BASE BSC32 /nologo |
|||
# ADD BSC32 /nologo |
|||
LINK32=link.exe |
|||
# ADD BASE LINK32 libcares.lib ws2_32.lib advapi32.lib kernel32.lib /nologo /subsystem:console /pdb:none /machine:I386 /out:"lib-release/ahost.exe" /libpath:"..\cares\lib-release" /fixed:no |
|||
# ADD LINK32 libcares.lib ws2_32.lib advapi32.lib kernel32.lib /nologo /subsystem:console /pdb:none /machine:I386 /out:"lib-release/ahost.exe" /libpath:"..\cares\lib-release" /fixed:no |
|||
|
|||
!ENDIF |
|||
|
|||
# Begin Target |
|||
|
|||
# Name "ahost - Win32 using cares DLL Debug" |
|||
# Name "ahost - Win32 using cares DLL Release" |
|||
# Name "ahost - Win32 using cares LIB Debug" |
|||
# Name "ahost - Win32 using cares LIB Release" |
|||
# Begin Group "Source Files" |
|||
|
|||
# PROP Default_Filter "" |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\ahost.c |
|||
# End Source File |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\ares_getopt.c |
|||
# End Source File |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\ares_strcasecmp.c |
|||
# End Source File |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\inet_net_pton.c |
|||
# End Source File |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\inet_ntop.c |
|||
# End Source File |
|||
# End Group |
|||
# Begin Group "Header Files" |
|||
|
|||
# PROP Default_Filter "" |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\ares_getopt.h |
|||
# End Source File |
|||
# End Group |
|||
# End Target |
|||
# End Project |
@ -1,397 +0,0 @@ |
|||
# Microsoft Developer Studio Project File - Name="cares" - Package Owner=<4> |
|||
# Microsoft Developer Studio Generated Build File, Format Version 6.00 |
|||
# ** DO NOT EDIT ** |
|||
|
|||
# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102 |
|||
# TARGTYPE "Win32 (x86) Static Library" 0x0104 |
|||
|
|||
CFG=cares - Win32 LIB Debug |
|||
!MESSAGE This is not a valid makefile. To build this project using NMAKE, |
|||
!MESSAGE use the Export Makefile command and run |
|||
!MESSAGE |
|||
!MESSAGE NMAKE /f "vc6cares.mak". |
|||
!MESSAGE |
|||
!MESSAGE You can specify a configuration when running NMAKE |
|||
!MESSAGE by defining the macro CFG on the command line. For example: |
|||
!MESSAGE |
|||
!MESSAGE NMAKE /f "vc6cares.mak" CFG="cares - Win32 LIB Debug" |
|||
!MESSAGE |
|||
!MESSAGE Possible choices for configuration are: |
|||
!MESSAGE |
|||
!MESSAGE "cares - Win32 DLL Debug" (based on "Win32 (x86) Dynamic-Link Library") |
|||
!MESSAGE "cares - Win32 DLL Release" (based on "Win32 (x86) Dynamic-Link Library") |
|||
!MESSAGE "cares - Win32 LIB Debug" (based on "Win32 (x86) Static Library") |
|||
!MESSAGE "cares - Win32 LIB Release" (based on "Win32 (x86) Static Library") |
|||
!MESSAGE |
|||
|
|||
# Begin Project |
|||
# PROP AllowPerConfigDependencies 0 |
|||
# PROP Scc_ProjName "" |
|||
# PROP Scc_LocalPath "" |
|||
|
|||
!IF "$(CFG)" == "cares - Win32 DLL Debug" |
|||
|
|||
# PROP BASE Use_MFC 0 |
|||
# PROP BASE Use_Debug_Libraries 1 |
|||
# PROP BASE Output_Dir "dll-debug" |
|||
# PROP BASE Intermediate_Dir "dll-debug/obj" |
|||
# PROP BASE Target_Dir "" |
|||
# PROP Use_MFC 0 |
|||
# PROP Use_Debug_Libraries 1 |
|||
# PROP Output_Dir "dll-debug" |
|||
# PROP Intermediate_Dir "dll-debug/obj" |
|||
# PROP Ignore_Export_Lib 0 |
|||
# PROP Target_Dir "" |
|||
CPP=cl.exe |
|||
# ADD BASE CPP /nologo /MDd /W3 /GX /Zi /Od /I "..\.." /D "_DEBUG" /D "WIN32" /D "DEBUGBUILD" /D "CARES_BUILDING_LIBRARY" /FD /GZ /c |
|||
# ADD CPP /nologo /MDd /W3 /GX /Zi /Od /I "..\.." /D "_DEBUG" /D "WIN32" /D "DEBUGBUILD" /D "CARES_BUILDING_LIBRARY" /FD /GZ /c |
|||
MTL=midl.exe |
|||
# ADD BASE MTL /nologo /D "_DEBUG" /win32 |
|||
# ADD MTL /nologo /D "_DEBUG" /win32 |
|||
RSC=rc.exe |
|||
# ADD BASE RSC /l 0x409 /d "_DEBUG" |
|||
# ADD RSC /l 0x409 /d "_DEBUG" |
|||
BSC32=bscmake.exe |
|||
# ADD BASE BSC32 /nologo |
|||
# ADD BSC32 /nologo |
|||
LINK32=link.exe |
|||
# ADD BASE LINK32 ws2_32.lib advapi32.lib kernel32.lib /nologo /dll /incremental:no /debug /machine:I386 /out:"dll-debug/caresd.dll" /implib:"dll-debug/caresd.lib" /pdbtype:con /fixed:no |
|||
# ADD LINK32 ws2_32.lib advapi32.lib kernel32.lib /nologo /dll /incremental:no /debug /machine:I386 /out:"dll-debug/caresd.dll" /implib:"dll-debug/caresd.lib" /pdbtype:con /fixed:no |
|||
|
|||
!ELSEIF "$(CFG)" == "cares - Win32 DLL Release" |
|||
|
|||
# PROP BASE Use_MFC 0 |
|||
# PROP BASE Use_Debug_Libraries 0 |
|||
# PROP BASE Output_Dir "dll-release" |
|||
# PROP BASE Intermediate_Dir "dll-release/obj" |
|||
# PROP BASE Target_Dir "" |
|||
# PROP Use_MFC 0 |
|||
# PROP Use_Debug_Libraries 0 |
|||
# PROP Output_Dir "dll-release" |
|||
# PROP Intermediate_Dir "dll-release/obj" |
|||
# PROP Ignore_Export_Lib 0 |
|||
# PROP Target_Dir "" |
|||
CPP=cl.exe |
|||
# ADD BASE CPP /nologo /MD /W3 /GX /O2 /I "..\.." /D "NDEBUG" /D "WIN32" /D "CARES_BUILDING_LIBRARY" /FD /c |
|||
# ADD CPP /nologo /MD /W3 /GX /O2 /I "..\.." /D "NDEBUG" /D "WIN32" /D "CARES_BUILDING_LIBRARY" /FD /c |
|||
MTL=midl.exe |
|||
# ADD BASE MTL /nologo /D "NDEBUG" /win32 |
|||
# ADD MTL /nologo /D "NDEBUG" /win32 |
|||
RSC=rc.exe |
|||
# ADD BASE RSC /l 0x409 /d "NDEBUG" |
|||
# ADD RSC /l 0x409 /d "NDEBUG" |
|||
BSC32=bscmake.exe |
|||
# ADD BASE BSC32 /nologo |
|||
# ADD BSC32 /nologo |
|||
LINK32=link.exe |
|||
# ADD BASE LINK32 ws2_32.lib advapi32.lib kernel32.lib /nologo /dll /pdb:none /machine:I386 /out:"dll-release/cares.dll" /implib:"dll-release/cares.lib" /fixed:no /release /incremental:no |
|||
# ADD LINK32 ws2_32.lib advapi32.lib kernel32.lib /nologo /dll /pdb:none /machine:I386 /out:"dll-release/cares.dll" /implib:"dll-release/cares.lib" /fixed:no /release /incremental:no |
|||
|
|||
!ELSEIF "$(CFG)" == "cares - Win32 LIB Debug" |
|||
|
|||
# PROP BASE Use_MFC 0 |
|||
# PROP BASE Use_Debug_Libraries 1 |
|||
# PROP BASE Output_Dir "lib-debug" |
|||
# PROP BASE Intermediate_Dir "lib-debug/obj" |
|||
# PROP BASE Target_Dir "" |
|||
# PROP Use_MFC 0 |
|||
# PROP Use_Debug_Libraries 1 |
|||
# PROP Output_Dir "lib-debug" |
|||
# PROP Intermediate_Dir "lib-debug/obj" |
|||
# PROP Target_Dir "" |
|||
CPP=cl.exe |
|||
# ADD BASE CPP /nologo /MDd /W3 /GX /Zi /Od /I "..\.." /D "_DEBUG" /D "WIN32" /D "DEBUGBUILD" /D "CARES_BUILDING_LIBRARY" /D "CARES_STATICLIB" /FD /GZ /c |
|||
# ADD CPP /nologo /MDd /W3 /GX /Zi /Od /I "..\.." /D "_DEBUG" /D "WIN32" /D "DEBUGBUILD" /D "CARES_BUILDING_LIBRARY" /D "CARES_STATICLIB" /FD /GZ /c |
|||
RSC=rc.exe |
|||
# ADD BASE RSC /l 0x409 /d "_DEBUG" |
|||
# ADD RSC /l 0x409 /d "_DEBUG" |
|||
BSC32=bscmake.exe |
|||
# ADD BASE BSC32 /nologo |
|||
# ADD BSC32 /nologo |
|||
LIB32=link.exe -lib |
|||
# ADD BASE LIB32 /nologo /out:"lib-debug/libcaresd.lib" /machine:I386 |
|||
# ADD LIB32 /nologo /out:"lib-debug/libcaresd.lib" /machine:I386 |
|||
|
|||
!ELSEIF "$(CFG)" == "cares - Win32 LIB Release" |
|||
|
|||
# PROP BASE Use_MFC 0 |
|||
# PROP BASE Use_Debug_Libraries 0 |
|||
# PROP BASE Output_Dir "lib-release" |
|||
# PROP BASE Intermediate_Dir "lib-release/obj" |
|||
# PROP BASE Target_Dir "" |
|||
# PROP Use_MFC 0 |
|||
# PROP Use_Debug_Libraries 0 |
|||
# PROP Output_Dir "lib-release" |
|||
# PROP Intermediate_Dir "lib-release/obj" |
|||
# PROP Target_Dir "" |
|||
CPP=cl.exe |
|||
# ADD BASE CPP /nologo /MD /W3 /GX /O2 /I "..\.." /D "NDEBUG" /D "WIN32" /D "CARES_BUILDING_LIBRARY" /D "CARES_STATICLIB" /FD /c |
|||
# ADD CPP /nologo /MD /W3 /GX /O2 /I "..\.." /D "NDEBUG" /D "WIN32" /D "CARES_BUILDING_LIBRARY" /D "CARES_STATICLIB" /FD /c |
|||
RSC=rc.exe |
|||
# ADD BASE RSC /l 0x409 /d "NDEBUG" |
|||
# ADD RSC /l 0x409 /d "NDEBUG" |
|||
BSC32=bscmake.exe |
|||
# ADD BASE BSC32 /nologo |
|||
# ADD BSC32 /nologo |
|||
LIB32=link.exe -lib |
|||
# ADD BASE LIB32 /nologo /out:"lib-release/libcares.lib" /machine:I386 |
|||
# ADD LIB32 /nologo /out:"lib-release/libcares.lib" /machine:I386 |
|||
|
|||
!ENDIF |
|||
|
|||
# Begin Target |
|||
|
|||
# Name "cares - Win32 DLL Debug" |
|||
# Name "cares - Win32 DLL Release" |
|||
# Name "cares - Win32 LIB Debug" |
|||
# Name "cares - Win32 LIB Release" |
|||
# Begin Group "Source Files" |
|||
|
|||
# PROP Default_Filter "" |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\ares__close_sockets.c |
|||
# End Source File |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\ares__get_hostent.c |
|||
# End Source File |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\ares__read_line.c |
|||
# End Source File |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\ares__timeval.c |
|||
# End Source File |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\ares_cancel.c |
|||
# End Source File |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\ares_data.c |
|||
# End Source File |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\ares_destroy.c |
|||
# End Source File |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\ares_expand_name.c |
|||
# End Source File |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\ares_expand_string.c |
|||
# End Source File |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\ares_fds.c |
|||
# End Source File |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\ares_free_hostent.c |
|||
# End Source File |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\ares_free_string.c |
|||
# End Source File |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\ares_gethostbyaddr.c |
|||
# End Source File |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\ares_gethostbyname.c |
|||
# End Source File |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\ares_getsock.c |
|||
# End Source File |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\ares_init.c |
|||
# End Source File |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\ares_library_init.c |
|||
# End Source File |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\ares_llist.c |
|||
# End Source File |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\ares_mkquery.c |
|||
# End Source File |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\ares_nowarn.c |
|||
# End Source File |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\ares_options.c |
|||
# End Source File |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\ares_parse_a_reply.c |
|||
# End Source File |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\ares_parse_aaaa_reply.c |
|||
# End Source File |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\ares_parse_mx_reply.c |
|||
# End Source File |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\ares_parse_ns_reply.c |
|||
# End Source File |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\ares_parse_ptr_reply.c |
|||
# End Source File |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\ares_parse_srv_reply.c |
|||
# End Source File |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\ares_parse_txt_reply.c |
|||
# End Source File |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\ares_process.c |
|||
# End Source File |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\ares_query.c |
|||
# End Source File |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\ares_search.c |
|||
# End Source File |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\ares_send.c |
|||
# End Source File |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\ares_strcasecmp.c |
|||
# End Source File |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\ares_strerror.c |
|||
# End Source File |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\ares_timeout.c |
|||
# End Source File |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\ares_version.c |
|||
# End Source File |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\ares_writev.c |
|||
# End Source File |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\bitncmp.c |
|||
# End Source File |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\inet_net_pton.c |
|||
# End Source File |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\inet_ntop.c |
|||
# End Source File |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\windows_port.c |
|||
# End Source File |
|||
# End Group |
|||
# Begin Group "Header Files" |
|||
|
|||
# PROP Default_Filter "" |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\ares.h |
|||
# End Source File |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\ares_build.h |
|||
# End Source File |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\ares_data.h |
|||
# End Source File |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\ares_dns.h |
|||
# End Source File |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\ares_ipv6.h |
|||
# End Source File |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\ares_library_init.h |
|||
# End Source File |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\ares_llist.h |
|||
# End Source File |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\ares_nowarn.h |
|||
# End Source File |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\ares_private.h |
|||
# End Source File |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\ares_rules.h |
|||
# End Source File |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\ares_strcasecmp.h |
|||
# End Source File |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\ares_version.h |
|||
# End Source File |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\ares_writev.h |
|||
# End Source File |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\bitncmp.h |
|||
# End Source File |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\inet_net_pton.h |
|||
# End Source File |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\inet_ntop.h |
|||
# End Source File |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\nameser.h |
|||
# End Source File |
|||
# End Group |
|||
# Begin Group "Resource Files" |
|||
|
|||
# PROP Default_Filter "" |
|||
# Begin Source File |
|||
|
|||
SOURCE=..\..\cares.rc |
|||
# End Source File |
|||
# End Group |
|||
# End Target |
|||
# End Project |
@ -1,29 +0,0 @@ |
|||
Microsoft Developer Studio Workspace File, Format Version 6.00 |
|||
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! |
|||
|
|||
############################################################################### |
|||
|
|||
Project: "cares"=".\vc6cares.dsp" - Package Owner=<4> |
|||
|
|||
Package=<5> |
|||
{{{ |
|||
}}} |
|||
|
|||
Package=<4> |
|||
{{{ |
|||
}}} |
|||
|
|||
############################################################################### |
|||
|
|||
Global: |
|||
|
|||
Package=<5> |
|||
{{{ |
|||
}}} |
|||
|
|||
Package=<3> |
|||
{{{ |
|||
}}} |
|||
|
|||
############################################################################### |
|||
|
@ -1,74 +0,0 @@ |
|||
Microsoft Developer Studio Workspace File, Format Version 6.00 |
|||
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! |
|||
|
|||
############################################################################### |
|||
|
|||
Project: "cares"=".\cares\vc6cares.dsp" - Package Owner=<4> |
|||
|
|||
Package=<5> |
|||
{{{ |
|||
}}} |
|||
|
|||
Package=<4> |
|||
{{{ |
|||
}}} |
|||
|
|||
############################################################################### |
|||
|
|||
Project: "acountry"=".\acountry\vc6acountry.dsp" - Package Owner=<4> |
|||
|
|||
Package=<5> |
|||
{{{ |
|||
}}} |
|||
|
|||
Package=<4> |
|||
{{{ |
|||
Begin Project Dependency |
|||
Project_Dep_Name cares |
|||
End Project Dependency |
|||
}}} |
|||
|
|||
############################################################################### |
|||
|
|||
Project: "adig"=".\adig\vc6adig.dsp" - Package Owner=<4> |
|||
|
|||
Package=<5> |
|||
{{{ |
|||
}}} |
|||
|
|||
Package=<4> |
|||
{{{ |
|||
Begin Project Dependency |
|||
Project_Dep_Name cares |
|||
End Project Dependency |
|||
}}} |
|||
|
|||
############################################################################### |
|||
|
|||
Project: "ahost"=".\ahost\vc6ahost.dsp" - Package Owner=<4> |
|||
|
|||
Package=<5> |
|||
{{{ |
|||
}}} |
|||
|
|||
Package=<4> |
|||
{{{ |
|||
Begin Project Dependency |
|||
Project_Dep_Name cares |
|||
End Project Dependency |
|||
}}} |
|||
|
|||
############################################################################### |
|||
|
|||
Global: |
|||
|
|||
Package=<5> |
|||
{{{ |
|||
}}} |
|||
|
|||
Package=<3> |
|||
{{{ |
|||
}}} |
|||
|
|||
############################################################################### |
|||
|
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue