mirror of https://github.com/PurpleI2P/i2pd.git
tharvik
10 years ago
25 changed files with 13627 additions and 106 deletions
@ -1,10 +1,844 @@
@@ -1,10 +1,844 @@
|
||||
UNAME := $(shell uname -s) |
||||
# Makefile.in generated by automake 1.13.4 from Makefile.am.
|
||||
# Makefile. Generated from Makefile.in by configure.
|
||||
|
||||
ifeq ($(UNAME),Darwin) |
||||
include Makefile.osx |
||||
else ifeq ($(UNAME), FreeBSD) |
||||
include Makefile.bsd |
||||
else |
||||
include Makefile.linux |
||||
endif |
||||
# Copyright (C) 1994-2013 Free Software Foundation, Inc.
|
||||
|
||||
# This Makefile.in 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.
|
||||
|
||||
|
||||
|
||||
|
||||
am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' |
||||
am__make_running_with_option = \
|
||||
case $${target_option-} in \
|
||||
?) ;; \
|
||||
*) echo "am__make_running_with_option: internal error: invalid" \
|
||||
"target option '$${target_option-}' specified" >&2; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
has_opt=no; \
|
||||
sane_makeflags=$$MAKEFLAGS; \
|
||||
if $(am__is_gnu_make); then \
|
||||
sane_makeflags=$$MFLAGS; \
|
||||
else \
|
||||
case $$MAKEFLAGS in \
|
||||
*\\[\ \ ]*) \
|
||||
bs=\\; \
|
||||
sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
|
||||
| sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
|
||||
esac; \
|
||||
fi; \
|
||||
skip_next=no; \
|
||||
strip_trailopt () \
|
||||
{ \
|
||||
flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
|
||||
}; \
|
||||
for flg in $$sane_makeflags; do \
|
||||
test $$skip_next = yes && { skip_next=no; continue; }; \
|
||||
case $$flg in \
|
||||
*=*|--*) continue;; \
|
||||
-*I) strip_trailopt 'I'; skip_next=yes;; \
|
||||
-*I?*) strip_trailopt 'I';; \
|
||||
-*O) strip_trailopt 'O'; skip_next=yes;; \
|
||||
-*O?*) strip_trailopt 'O';; \
|
||||
-*l) strip_trailopt 'l'; skip_next=yes;; \
|
||||
-*l?*) strip_trailopt 'l';; \
|
||||
-[dEDm]) skip_next=yes;; \
|
||||
-[JT]) skip_next=yes;; \
|
||||
esac; \
|
||||
case $$flg in \
|
||||
*$$target_option*) has_opt=yes; break;; \
|
||||
esac; \
|
||||
done; \
|
||||
test $$has_opt = yes |
||||
am__make_dryrun = (target_option=n; $(am__make_running_with_option)) |
||||
am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) |
||||
pkgdatadir = $(datadir)/i2pd |
||||
pkgincludedir = $(includedir)/i2pd |
||||
pkglibdir = $(libdir)/i2pd |
||||
pkglibexecdir = $(libexecdir)/i2pd |
||||
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd |
||||
install_sh_DATA = $(install_sh) -c -m 644 |
||||
install_sh_PROGRAM = $(install_sh) -c |
||||
install_sh_SCRIPT = $(install_sh) -c |
||||
INSTALL_HEADER = $(INSTALL_DATA) |
||||
transform = $(program_transform_name) |
||||
NORMAL_INSTALL = : |
||||
PRE_INSTALL = : |
||||
POST_INSTALL = : |
||||
NORMAL_UNINSTALL = : |
||||
PRE_UNINSTALL = : |
||||
POST_UNINSTALL = : |
||||
build_triplet = x86_64-unknown-linux-gnu |
||||
host_triplet = x86_64-unknown-linux-gnu |
||||
bin_PROGRAMS = i2p$(EXEEXT) |
||||
subdir = . |
||||
DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
|
||||
$(top_srcdir)/configure $(am__configure_deps) \
|
||||
$(srcdir)/config.h.in depcomp config.guess config.sub \
|
||||
install-sh missing |
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
||||
am__aclocal_m4_deps = $(top_srcdir)/m4/ax_cxx_compile_stdcxx_11.m4 \
|
||||
$(top_srcdir)/m4/ax_boost_base.m4 \
|
||||
$(top_srcdir)/m4/ax_boost_date_time.m4 \
|
||||
$(top_srcdir)/m4/ax_boost_filesystem.m4 \
|
||||
$(top_srcdir)/m4/ax_boost_program_options.m4 \
|
||||
$(top_srcdir)/m4/ax_boost_regex.m4 \
|
||||
$(top_srcdir)/m4/ax_boost_system.m4 \
|
||||
$(top_srcdir)/m4/ax_pthread.m4 $(top_srcdir)/configure.ac |
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4) |
||||
am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
|
||||
configure.lineno config.status.lineno |
||||
mkinstalldirs = $(install_sh) -d |
||||
CONFIG_HEADER = config.h |
||||
CONFIG_CLEAN_FILES = |
||||
CONFIG_CLEAN_VPATH_FILES = |
||||
am__installdirs = "$(DESTDIR)$(bindir)" |
||||
PROGRAMS = $(bin_PROGRAMS) |
||||
am_i2p_OBJECTS = AddressBook.$(OBJEXT) CryptoConst.$(OBJEXT) \
|
||||
Daemon.$(OBJEXT) DaemonLinux.$(OBJEXT) DaemonWin32.$(OBJEXT) \
|
||||
Garlic.$(OBJEXT) HTTPProxy.$(OBJEXT) HTTPServer.$(OBJEXT) \
|
||||
I2NPProtocol.$(OBJEXT) I2PTunnel.$(OBJEXT) Identity.$(OBJEXT) \
|
||||
LeaseSet.$(OBJEXT) Log.$(OBJEXT) NTCPSession.$(OBJEXT) \
|
||||
NetDb.$(OBJEXT) Reseed.$(OBJEXT) RouterContext.$(OBJEXT) \
|
||||
RouterInfo.$(OBJEXT) SOCKS.$(OBJEXT) SSU.$(OBJEXT) \
|
||||
SSUData.$(OBJEXT) Streaming.$(OBJEXT) TransitTunnel.$(OBJEXT) \
|
||||
Transports.$(OBJEXT) Tunnel.$(OBJEXT) TunnelEndpoint.$(OBJEXT) \
|
||||
TunnelGateway.$(OBJEXT) TunnelPool.$(OBJEXT) UPnP.$(OBJEXT) \
|
||||
aes.$(OBJEXT) base64.$(OBJEXT) i2p.$(OBJEXT) util.$(OBJEXT) |
||||
i2p_OBJECTS = $(am_i2p_OBJECTS) |
||||
i2p_LDADD = $(LDADD) |
||||
AM_V_P = $(am__v_P_$(V)) |
||||
am__v_P_ = $(am__v_P_$(AM_DEFAULT_VERBOSITY)) |
||||
am__v_P_0 = false |
||||
am__v_P_1 = : |
||||
AM_V_GEN = $(am__v_GEN_$(V)) |
||||
am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) |
||||
am__v_GEN_0 = @echo " GEN " $@; |
||||
am__v_GEN_1 = |
||||
AM_V_at = $(am__v_at_$(V)) |
||||
am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) |
||||
am__v_at_0 = @ |
||||
am__v_at_1 = |
||||
DEFAULT_INCLUDES = -I. |
||||
depcomp = $(SHELL) $(top_srcdir)/depcomp |
||||
am__depfiles_maybe = depfiles |
||||
am__mv = mv -f |
||||
CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
|
||||
$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) |
||||
AM_V_CXX = $(am__v_CXX_$(V)) |
||||
am__v_CXX_ = $(am__v_CXX_$(AM_DEFAULT_VERBOSITY)) |
||||
am__v_CXX_0 = @echo " CXX " $@; |
||||
am__v_CXX_1 = |
||||
CXXLD = $(CXX) |
||||
CXXLINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \
|
||||
-o $@ |
||||
AM_V_CXXLD = $(am__v_CXXLD_$(V)) |
||||
am__v_CXXLD_ = $(am__v_CXXLD_$(AM_DEFAULT_VERBOSITY)) |
||||
am__v_CXXLD_0 = @echo " CXXLD " $@; |
||||
am__v_CXXLD_1 = |
||||
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
|
||||
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) |
||||
AM_V_CC = $(am__v_CC_$(V)) |
||||
am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY)) |
||||
am__v_CC_0 = @echo " CC " $@; |
||||
am__v_CC_1 = |
||||
CCLD = $(CC) |
||||
LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ |
||||
AM_V_CCLD = $(am__v_CCLD_$(V)) |
||||
am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY)) |
||||
am__v_CCLD_0 = @echo " CCLD " $@; |
||||
am__v_CCLD_1 = |
||||
SOURCES = $(i2p_SOURCES) |
||||
DIST_SOURCES = $(i2p_SOURCES) |
||||
am__can_run_installinfo = \
|
||||
case $$AM_UPDATE_INFO_DIR in \
|
||||
n|no|NO) false;; \
|
||||
*) (install-info --version) >/dev/null 2>&1;; \
|
||||
esac |
||||
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \
|
||||
$(LISP)config.h.in |
||||
# Read a list of newline-separated strings from the standard input,
|
||||
# and print each of them once, without duplicates. Input order is
|
||||
# *not* preserved.
|
||||
am__uniquify_input = $(AWK) '\
|
||||
BEGIN { nonempty = 0; } \
|
||||
{ items[$$0] = 1; nonempty = 1; } \
|
||||
END { if (nonempty) { for (i in items) print i; }; } \
|
||||
' |
||||
# Make sure the list of sources is unique. This is necessary because,
|
||||
# e.g., the same source file might be shared among _SOURCES variables
|
||||
# for different programs/libraries.
|
||||
am__define_uniq_tagged_files = \
|
||||
list='$(am__tagged_files)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | $(am__uniquify_input)` |
||||
ETAGS = etags |
||||
CTAGS = ctags |
||||
CSCOPE = cscope |
||||
AM_RECURSIVE_TARGETS = cscope |
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) |
||||
distdir = $(PACKAGE)-$(VERSION) |
||||
top_distdir = $(distdir) |
||||
am__remove_distdir = \
|
||||
if test -d "$(distdir)"; then \
|
||||
find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
|
||||
&& rm -rf "$(distdir)" \
|
||||
|| { sleep 5 && rm -rf "$(distdir)"; }; \
|
||||
else :; fi |
||||
am__post_remove_distdir = $(am__remove_distdir) |
||||
DIST_ARCHIVES = $(distdir).tar.gz |
||||
GZIP_ENV = --best |
||||
DIST_TARGETS = dist-gzip |
||||
distuninstallcheck_listfiles = find . -type f -print |
||||
am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
|
||||
| sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' |
||||
distcleancheck_listfiles = find . -type f -print |
||||
ACLOCAL = ${SHELL} /tmp/i2pd/missing aclocal-1.13 |
||||
AMTAR = $${TAR-tar} |
||||
AM_DEFAULT_VERBOSITY = 1 |
||||
AUTOCONF = ${SHELL} /tmp/i2pd/missing autoconf |
||||
AUTOHEADER = ${SHELL} /tmp/i2pd/missing autoheader |
||||
AUTOMAKE = ${SHELL} /tmp/i2pd/missing automake-1.13 |
||||
AWK = gawk |
||||
BOOST_CPPFLAGS = -I/usr/include |
||||
BOOST_DATE_TIME_LIB = -lboost_date_time-mt |
||||
BOOST_FILESYSTEM_LIB = -lboost_filesystem |
||||
BOOST_LDFLAGS = -L/usr/lib64 |
||||
BOOST_PROGRAM_OPTIONS_LIB = -lboost_program_options-mt |
||||
BOOST_REGEX_LIB = -lboost_regex-mt |
||||
BOOST_SYSTEM_LIB = -lboost_system |
||||
CC = gcc |
||||
CCDEPMODE = depmode=gcc3 |
||||
CFLAGS = -g -O2 |
||||
CPP = gcc -E |
||||
CPPFLAGS = |
||||
CXX = g++ |
||||
CXXDEPMODE = depmode=gcc3 |
||||
CXXFLAGS = -g -O2 -std=gnu++11 |
||||
CYGPATH_W = echo |
||||
DEFS = -DHAVE_CONFIG_H |
||||
DEPDIR = .deps |
||||
ECHO_C = |
||||
ECHO_N = -n |
||||
ECHO_T = |
||||
EGREP = /bin/grep -E |
||||
EXEEXT = |
||||
GREP = /bin/grep |
||||
HAVE_CXX11 = |
||||
INSTALL = /usr/bin/install -c |
||||
INSTALL_DATA = ${INSTALL} -m 644 |
||||
INSTALL_PROGRAM = ${INSTALL} |
||||
INSTALL_SCRIPT = ${INSTALL} |
||||
INSTALL_STRIP_PROGRAM = $(install_sh) -c -s |
||||
LDFLAGS = |
||||
LIBOBJS = |
||||
LIBS = -lcryptopp |
||||
LTLIBOBJS = |
||||
MAKEINFO = ${SHELL} /tmp/i2pd/missing makeinfo |
||||
MKDIR_P = /bin/mkdir -p |
||||
OBJEXT = o |
||||
PACKAGE = i2pd |
||||
PACKAGE_BUGREPORT = https://track.privacysolutions.no/projects/i2pd/issues |
||||
PACKAGE_NAME = i2pd |
||||
PACKAGE_STRING = i2pd 0.0.0 |
||||
PACKAGE_TARNAME = i2pd |
||||
PACKAGE_URL = |
||||
PACKAGE_VERSION = 0.0.0 |
||||
PATH_SEPARATOR = : |
||||
PTHREAD_CC = gcc |
||||
PTHREAD_CFLAGS = -pthread |
||||
PTHREAD_LIBS = |
||||
SET_MAKE = |
||||
SHELL = /bin/sh |
||||
STRIP = |
||||
VERSION = 0.0.0 |
||||
abs_builddir = /tmp/i2pd |
||||
abs_srcdir = /tmp/i2pd |
||||
abs_top_builddir = /tmp/i2pd |
||||
abs_top_srcdir = /tmp/i2pd |
||||
ac_ct_CC = gcc |
||||
ac_ct_CXX = g++ |
||||
am__include = include |
||||
am__leading_dot = . |
||||
am__quote = |
||||
am__tar = $${TAR-tar} chof - "$$tardir" |
||||
am__untar = $${TAR-tar} xf - |
||||
ax_pthread_config = |
||||
bindir = ${exec_prefix}/bin |
||||
build = x86_64-unknown-linux-gnu |
||||
build_alias = |
||||
build_cpu = x86_64 |
||||
build_os = linux-gnu |
||||
build_vendor = unknown |
||||
builddir = . |
||||
datadir = ${datarootdir} |
||||
datarootdir = ${prefix}/share |
||||
docdir = ${datarootdir}/doc/${PACKAGE_TARNAME} |
||||
dvidir = ${docdir} |
||||
exec_prefix = ${prefix} |
||||
host = x86_64-unknown-linux-gnu |
||||
host_alias = |
||||
host_cpu = x86_64 |
||||
host_os = linux-gnu |
||||
host_vendor = unknown |
||||
htmldir = ${docdir} |
||||
includedir = ${prefix}/include |
||||
infodir = ${datarootdir}/info |
||||
install_sh = ${SHELL} /tmp/i2pd/install-sh |
||||
libdir = ${exec_prefix}/lib |
||||
libexecdir = ${exec_prefix}/libexec |
||||
localedir = ${datarootdir}/locale |
||||
localstatedir = ${prefix}/var |
||||
mandir = ${datarootdir}/man |
||||
mkdir_p = $(MKDIR_P) |
||||
oldincludedir = /usr/include |
||||
pdfdir = ${docdir} |
||||
prefix = /usr/local |
||||
program_transform_name = s,x,x, |
||||
psdir = ${docdir} |
||||
sbindir = ${exec_prefix}/sbin |
||||
sharedstatedir = ${prefix}/com |
||||
srcdir = . |
||||
sysconfdir = ${prefix}/etc |
||||
target_alias = |
||||
top_build_prefix = |
||||
top_builddir = . |
||||
top_srcdir = . |
||||
i2p_SOURCES = AddressBook.cpp CryptoConst.cpp Daemon.cpp \
|
||||
DaemonLinux.cpp DaemonWin32.cpp Garlic.cpp \
|
||||
HTTPProxy.cpp HTTPServer.cpp I2NPProtocol.cpp \
|
||||
I2PTunnel.cpp Identity.cpp LeaseSet.cpp Log.cpp \
|
||||
NTCPSession.cpp NetDb.cpp Reseed.cpp \
|
||||
RouterContext.cpp RouterInfo.cpp SOCKS.cpp SSU.cpp \
|
||||
SSUData.cpp Streaming.cpp TransitTunnel.cpp \
|
||||
Transports.cpp Tunnel.cpp TunnelEndpoint.cpp \
|
||||
TunnelGateway.cpp TunnelPool.cpp UPnP.cpp aes.cpp \
|
||||
base64.cpp i2p.cpp util.cpp \
|
||||
\
|
||||
AddressBook.h CryptoConst.h Daemon.h ElGamal.h \
|
||||
Garlic.h HTTPProxy.h HTTPServer.h I2NPProtocol.h \
|
||||
I2PEndian.h I2PTunnel.h Identity.h LeaseSet.h \
|
||||
LittleBigEndian.h Log.h NTCPSession.h NetDb.h Queue.h \
|
||||
Reseed.h RouterContext.h RouterInfo.h SOCKS.h SSU.h \
|
||||
SSUData.h Signature.h Streaming.h Timestamp.h \
|
||||
TransitTunnel.h Transports.h Tunnel.h TunnelBase.h \
|
||||
TunnelConfig.h TunnelEndpoint.h TunnelGateway.h \
|
||||
TunnelPool.h UPnP.h aes.h base64.h config.h hmac.h \
|
||||
util.h version.h |
||||
|
||||
AM_LDFLAGS = -lboost_date_time-mt -lboost_filesystem \
|
||||
-lboost_program_options-mt -lboost_regex-mt \
|
||||
-lboost_system |
||||
|
||||
all: config.h |
||||
$(MAKE) $(AM_MAKEFLAGS) all-am |
||||
|
||||
.SUFFIXES: |
||||
.SUFFIXES: .cpp .o .obj |
||||
am--refresh: Makefile |
||||
@: |
||||
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) |
||||
@for dep in $?; do \
|
||||
case '$(am__configure_deps)' in \
|
||||
*$$dep*) \
|
||||
echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \
|
||||
$(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \
|
||||
&& exit 0; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
done; \
|
||||
echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
|
||||
$(am__cd) $(top_srcdir) && \
|
||||
$(AUTOMAKE) --foreign Makefile |
||||
.PRECIOUS: Makefile |
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status |
||||
@case '$?' in \
|
||||
*config.status*) \
|
||||
echo ' $(SHELL) ./config.status'; \
|
||||
$(SHELL) ./config.status;; \
|
||||
*) \
|
||||
echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
|
||||
esac; |
||||
|
||||
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) |
||||
$(SHELL) ./config.status --recheck |
||||
|
||||
$(top_srcdir)/configure: $(am__configure_deps) |
||||
$(am__cd) $(srcdir) && $(AUTOCONF) |
||||
$(ACLOCAL_M4): $(am__aclocal_m4_deps) |
||||
$(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) |
||||
$(am__aclocal_m4_deps): |
||||
|
||||
config.h: stamp-h1 |
||||
@if test ! -f $@; then rm -f stamp-h1; else :; fi |
||||
@if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) stamp-h1; else :; fi |
||||
|
||||
stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status |
||||
@rm -f stamp-h1 |
||||
cd $(top_builddir) && $(SHELL) ./config.status config.h |
||||
$(srcdir)/config.h.in: $(am__configure_deps) |
||||
($(am__cd) $(top_srcdir) && $(AUTOHEADER)) |
||||
rm -f stamp-h1 |
||||
touch $@ |
||||
|
||||
distclean-hdr: |
||||
-rm -f config.h stamp-h1 |
||||
install-binPROGRAMS: $(bin_PROGRAMS) |
||||
@$(NORMAL_INSTALL) |
||||
@list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
|
||||
if test -n "$$list"; then \
|
||||
echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \
|
||||
$(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \
|
||||
fi; \
|
||||
for p in $$list; do echo "$$p $$p"; done | \
|
||||
sed 's/$(EXEEXT)$$//' | \
|
||||
while read p p1; do if test -f $$p \
|
||||
; then echo "$$p"; echo "$$p"; else :; fi; \
|
||||
done | \
|
||||
sed -e 'p;s,.*/,,;n;h' \
|
||||
-e 's|.*|.|' \
|
||||
-e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
|
||||
sed 'N;N;N;s,\n, ,g' | \
|
||||
$(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
|
||||
{ d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
|
||||
if ($$2 == $$4) files[d] = files[d] " " $$1; \
|
||||
else { print "f", $$3 "/" $$4, $$1; } } \
|
||||
END { for (d in files) print "f", d, files[d] }' | \
|
||||
while read type dir files; do \
|
||||
if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
|
||||
test -z "$$files" || { \
|
||||
echo " $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \
|
||||
$(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
|
||||
} \
|
||||
; done |
||||
|
||||
uninstall-binPROGRAMS: |
||||
@$(NORMAL_UNINSTALL) |
||||
@list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
|
||||
files=`for p in $$list; do echo "$$p"; done | \
|
||||
sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
|
||||
-e 's/$$/$(EXEEXT)/' \
|
||||
`; \
|
||||
test -n "$$list" || exit 0; \
|
||||
echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
|
||||
cd "$(DESTDIR)$(bindir)" && rm -f $$files |
||||
|
||||
clean-binPROGRAMS: |
||||
-test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) |
||||
|
||||
i2p$(EXEEXT): $(i2p_OBJECTS) $(i2p_DEPENDENCIES) $(EXTRA_i2p_DEPENDENCIES) |
||||
@rm -f i2p$(EXEEXT) |
||||
$(AM_V_CXXLD)$(CXXLINK) $(i2p_OBJECTS) $(i2p_LDADD) $(LIBS) |
||||
|
||||
mostlyclean-compile: |
||||
-rm -f *.$(OBJEXT) |
||||
|
||||
distclean-compile: |
||||
-rm -f *.tab.c |
||||
|
||||
include ./$(DEPDIR)/AddressBook.Po |
||||
include ./$(DEPDIR)/CryptoConst.Po |
||||
include ./$(DEPDIR)/Daemon.Po |
||||
include ./$(DEPDIR)/DaemonLinux.Po |
||||
include ./$(DEPDIR)/DaemonWin32.Po |
||||
include ./$(DEPDIR)/Garlic.Po |
||||
include ./$(DEPDIR)/HTTPProxy.Po |
||||
include ./$(DEPDIR)/HTTPServer.Po |
||||
include ./$(DEPDIR)/I2NPProtocol.Po |
||||
include ./$(DEPDIR)/I2PTunnel.Po |
||||
include ./$(DEPDIR)/Identity.Po |
||||
include ./$(DEPDIR)/LeaseSet.Po |
||||
include ./$(DEPDIR)/Log.Po |
||||
include ./$(DEPDIR)/NTCPSession.Po |
||||
include ./$(DEPDIR)/NetDb.Po |
||||
include ./$(DEPDIR)/Reseed.Po |
||||
include ./$(DEPDIR)/RouterContext.Po |
||||
include ./$(DEPDIR)/RouterInfo.Po |
||||
include ./$(DEPDIR)/SOCKS.Po |
||||
include ./$(DEPDIR)/SSU.Po |
||||
include ./$(DEPDIR)/SSUData.Po |
||||
include ./$(DEPDIR)/Streaming.Po |
||||
include ./$(DEPDIR)/TransitTunnel.Po |
||||
include ./$(DEPDIR)/Transports.Po |
||||
include ./$(DEPDIR)/Tunnel.Po |
||||
include ./$(DEPDIR)/TunnelEndpoint.Po |
||||
include ./$(DEPDIR)/TunnelGateway.Po |
||||
include ./$(DEPDIR)/TunnelPool.Po |
||||
include ./$(DEPDIR)/UPnP.Po |
||||
include ./$(DEPDIR)/aes.Po |
||||
include ./$(DEPDIR)/base64.Po |
||||
include ./$(DEPDIR)/i2p.Po |
||||
include ./$(DEPDIR)/util.Po |
||||
|
||||
.cpp.o: |
||||
$(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< |
||||
$(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po |
||||
# $(AM_V_CXX)source='$<' object='$@' libtool=no \
|
||||
# DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \
|
||||
# $(AM_V_CXX_no)$(CXXCOMPILE) -c -o $@ $<
|
||||
|
||||
.cpp.obj: |
||||
$(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` |
||||
$(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po |
||||
# $(AM_V_CXX)source='$<' object='$@' libtool=no \
|
||||
# DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \
|
||||
# $(AM_V_CXX_no)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
|
||||
|
||||
ID: $(am__tagged_files) |
||||
$(am__define_uniq_tagged_files); mkid -fID $$unique |
||||
tags: tags-am |
||||
TAGS: tags |
||||
|
||||
tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) |
||||
set x; \
|
||||
here=`pwd`; \
|
||||
$(am__define_uniq_tagged_files); \
|
||||
shift; \
|
||||
if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
|
||||
test -n "$$unique" || unique=$$empty_fix; \
|
||||
if test $$# -gt 0; then \ |
||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||
"$$@" $$unique; \
|
||||
else \
|
||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||
$$unique; \
|
||||
fi; \
|
||||
fi |
||||
ctags: ctags-am |
||||
|
||||
CTAGS: ctags |
||||
ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) |
||||
$(am__define_uniq_tagged_files); \
|
||||
test -z "$(CTAGS_ARGS)$$unique" \
|
||||
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
|
||||
$$unique |
||||
|
||||
GTAGS: |
||||
here=`$(am__cd) $(top_builddir) && pwd` \
|
||||
&& $(am__cd) $(top_srcdir) \
|
||||
&& gtags -i $(GTAGS_ARGS) "$$here" |
||||
cscope: cscope.files |
||||
test ! -s cscope.files \
|
||||
|| $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS) |
||||
clean-cscope: |
||||
-rm -f cscope.files |
||||
cscope.files: clean-cscope cscopelist |
||||
cscopelist: cscopelist-am |
||||
|
||||
cscopelist-am: $(am__tagged_files) |
||||
list='$(am__tagged_files)'; \
|
||||
case "$(srcdir)" in \
|
||||
[\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
|
||||
*) sdir=$(subdir)/$(srcdir) ;; \
|
||||
esac; \
|
||||
for i in $$list; do \
|
||||
if test -f "$$i"; then \
|
||||
echo "$(subdir)/$$i"; \
|
||||
else \
|
||||
echo "$$sdir/$$i"; \
|
||||
fi; \
|
||||
done >> $(top_builddir)/cscope.files |
||||
|
||||
distclean-tags: |
||||
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags |
||||
-rm -f cscope.out cscope.in.out cscope.po.out cscope.files |
||||
|
||||
distdir: $(DISTFILES) |
||||
$(am__remove_distdir) |
||||
test -d "$(distdir)" || mkdir "$(distdir)" |
||||
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||
list='$(DISTFILES)'; \
|
||||
dist_files=`for file in $$list; do echo $$file; done | \
|
||||
sed -e "s|^$$srcdirstrip/||;t" \
|
||||
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
|
||||
case $$dist_files in \
|
||||
*/*) $(MKDIR_P) `echo "$$dist_files" | \
|
||||
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
|
||||
sort -u` ;; \
|
||||
esac; \
|
||||
for file in $$dist_files; do \
|
||||
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
||||
if test -d $$d/$$file; then \
|
||||
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
|
||||
if test -d "$(distdir)/$$file"; then \
|
||||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||
fi; \
|
||||
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
||||
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
|
||||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||
fi; \
|
||||
cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
|
||||
else \
|
||||
test -f "$(distdir)/$$file" \
|
||||
|| cp -p $$d/$$file "$(distdir)/$$file" \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done |
||||
-test -n "$(am__skip_mode_fix)" \
|
||||
|| find "$(distdir)" -type d ! -perm -755 \
|
||||
-exec chmod u+rwx,go+rx {} \; -o \
|
||||
! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
|
||||
! -type d ! -perm -400 -exec chmod a+r {} \; -o \
|
||||
! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
|
||||
|| chmod -R a+r "$(distdir)" |
||||
dist-gzip: distdir |
||||
tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz |
||||
$(am__post_remove_distdir) |
||||
|
||||
dist-bzip2: distdir |
||||
tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2 |
||||
$(am__post_remove_distdir) |
||||
|
||||
dist-lzip: distdir |
||||
tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz |
||||
$(am__post_remove_distdir) |
||||
|
||||
dist-xz: distdir |
||||
tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz |
||||
$(am__post_remove_distdir) |
||||
|
||||
dist-tarZ: distdir |
||||
tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z |
||||
$(am__post_remove_distdir) |
||||
|
||||
dist-shar: distdir |
||||
shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz |
||||
$(am__post_remove_distdir) |
||||
|
||||
dist-zip: distdir |
||||
-rm -f $(distdir).zip |
||||
zip -rq $(distdir).zip $(distdir) |
||||
$(am__post_remove_distdir) |
||||
|
||||
dist dist-all: |
||||
$(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:' |
||||
$(am__post_remove_distdir) |
||||
|
||||
# This target untars the dist file and tries a VPATH configuration. Then
|
||||
# it guarantees that the distribution is self-contained by making another
|
||||
# tarfile.
|
||||
distcheck: dist |
||||
case '$(DIST_ARCHIVES)' in \
|
||||
*.tar.gz*) \
|
||||
GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
|
||||
*.tar.bz2*) \
|
||||
bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
|
||||
*.tar.lz*) \
|
||||
lzip -dc $(distdir).tar.lz | $(am__untar) ;;\
|
||||
*.tar.xz*) \
|
||||
xz -dc $(distdir).tar.xz | $(am__untar) ;;\
|
||||
*.tar.Z*) \
|
||||
uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
|
||||
*.shar.gz*) \
|
||||
GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
|
||||
*.zip*) \
|
||||
unzip $(distdir).zip ;;\
|
||||
esac |
||||
chmod -R a-w $(distdir) |
||||
chmod u+w $(distdir) |
||||
mkdir $(distdir)/_build $(distdir)/_inst |
||||
chmod a-w $(distdir) |
||||
test -d $(distdir)/_build || exit 0; \
|
||||
dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
|
||||
&& dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
|
||||
&& am__cwd=`pwd` \
|
||||
&& $(am__cd) $(distdir)/_build \
|
||||
&& ../configure --srcdir=.. --prefix="$$dc_install_base" \
|
||||
$(AM_DISTCHECK_CONFIGURE_FLAGS) \
|
||||
$(DISTCHECK_CONFIGURE_FLAGS) \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) dvi \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) check \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) install \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) installcheck \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) uninstall \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
|
||||
distuninstallcheck \
|
||||
&& chmod -R a-w "$$dc_install_base" \
|
||||
&& ({ \
|
||||
(cd ../.. && umask 077 && mkdir "$$dc_destdir") \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
|
||||
distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
|
||||
} || { rm -rf "$$dc_destdir"; exit 1; }) \
|
||||
&& rm -rf "$$dc_destdir" \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) dist \
|
||||
&& rm -rf $(DIST_ARCHIVES) \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
|
||||
&& cd "$$am__cwd" \
|
||||
|| exit 1 |
||||
$(am__post_remove_distdir) |
||||
@(echo "$(distdir) archives ready for distribution: "; \
|
||||
list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
|
||||
sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' |
||||
distuninstallcheck: |
||||
@test -n '$(distuninstallcheck_dir)' || { \
|
||||
echo 'ERROR: trying to run $@ with an empty' \
|
||||
'$$(distuninstallcheck_dir)' >&2; \
|
||||
exit 1; \
|
||||
}; \
|
||||
$(am__cd) '$(distuninstallcheck_dir)' || { \
|
||||
echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \
|
||||
exit 1; \
|
||||
}; \
|
||||
test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \
|
||||
|| { echo "ERROR: files left after uninstall:" ; \
|
||||
if test -n "$(DESTDIR)"; then \
|
||||
echo " (check DESTDIR support)"; \
|
||||
fi ; \
|
||||
$(distuninstallcheck_listfiles) ; \
|
||||
exit 1; } >&2 |
||||
distcleancheck: distclean |
||||
@if test '$(srcdir)' = . ; then \
|
||||
echo "ERROR: distcleancheck can only run from a VPATH build" ; \
|
||||
exit 1 ; \
|
||||
fi |
||||
@test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
|
||||
|| { echo "ERROR: files left in build directory after distclean:" ; \
|
||||
$(distcleancheck_listfiles) ; \
|
||||
exit 1; } >&2 |
||||
check-am: all-am |
||||
check: check-am |
||||
all-am: Makefile $(PROGRAMS) config.h |
||||
installdirs: |
||||
for dir in "$(DESTDIR)$(bindir)"; do \
|
||||
test -z "$$dir" || $(MKDIR_P) "$$dir"; \
|
||||
done |
||||
install: install-am |
||||
install-exec: install-exec-am |
||||
install-data: install-data-am |
||||
uninstall: uninstall-am |
||||
|
||||
install-am: all-am |
||||
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am |
||||
|
||||
installcheck: installcheck-am |
||||
install-strip: |
||||
if test -z '$(STRIP)'; then \
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
install; \
|
||||
else \
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
|
||||
fi |
||||
mostlyclean-generic: |
||||
|
||||
clean-generic: |
||||
|
||||
distclean-generic: |
||||
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) |
||||
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) |
||||
|
||||
maintainer-clean-generic: |
||||
@echo "This command is intended for maintainers to use" |
||||
@echo "it deletes files that may require special tools to rebuild." |
||||
clean: clean-am |
||||
|
||||
clean-am: clean-binPROGRAMS clean-generic mostlyclean-am |
||||
|
||||
distclean: distclean-am |
||||
-rm -f $(am__CONFIG_DISTCLEAN_FILES) |
||||
-rm -rf ./$(DEPDIR) |
||||
-rm -f Makefile |
||||
distclean-am: clean-am distclean-compile distclean-generic \ |
||||
distclean-hdr distclean-tags |
||||
|
||||
dvi: dvi-am |
||||
|
||||
dvi-am: |
||||
|
||||
html: html-am |
||||
|
||||
html-am: |
||||
|
||||
info: info-am |
||||
|
||||
info-am: |
||||
|
||||
install-data-am: |
||||
|
||||
install-dvi: install-dvi-am |
||||
|
||||
install-dvi-am: |
||||
|
||||
install-exec-am: install-binPROGRAMS |
||||
|
||||
install-html: install-html-am |
||||
|
||||
install-html-am: |
||||
|
||||
install-info: install-info-am |
||||
|
||||
install-info-am: |
||||
|
||||
install-man: |
||||
|
||||
install-pdf: install-pdf-am |
||||
|
||||
install-pdf-am: |
||||
|
||||
install-ps: install-ps-am |
||||
|
||||
install-ps-am: |
||||
|
||||
installcheck-am: |
||||
|
||||
maintainer-clean: maintainer-clean-am |
||||
-rm -f $(am__CONFIG_DISTCLEAN_FILES) |
||||
-rm -rf $(top_srcdir)/autom4te.cache |
||||
-rm -rf ./$(DEPDIR) |
||||
-rm -f Makefile |
||||
maintainer-clean-am: distclean-am maintainer-clean-generic |
||||
|
||||
mostlyclean: mostlyclean-am |
||||
|
||||
mostlyclean-am: mostlyclean-compile mostlyclean-generic |
||||
|
||||
pdf: pdf-am |
||||
|
||||
pdf-am: |
||||
|
||||
ps: ps-am |
||||
|
||||
ps-am: |
||||
|
||||
uninstall-am: uninstall-binPROGRAMS |
||||
|
||||
.MAKE: all install-am install-strip |
||||
|
||||
.PHONY: CTAGS GTAGS TAGS all all-am am--refresh check check-am clean \ |
||||
clean-binPROGRAMS clean-cscope clean-generic cscope \
|
||||
cscopelist-am ctags ctags-am dist dist-all dist-bzip2 \
|
||||
dist-gzip dist-lzip dist-shar dist-tarZ dist-xz dist-zip \
|
||||
distcheck distclean distclean-compile distclean-generic \
|
||||
distclean-hdr distclean-tags distcleancheck distdir \
|
||||
distuninstallcheck dvi dvi-am html html-am info info-am \
|
||||
install install-am install-binPROGRAMS install-data \
|
||||
install-data-am install-dvi install-dvi-am install-exec \
|
||||
install-exec-am install-html install-html-am install-info \
|
||||
install-info-am install-man install-pdf install-pdf-am \
|
||||
install-ps install-ps-am install-strip installcheck \
|
||||
installcheck-am installdirs maintainer-clean \
|
||||
maintainer-clean-generic mostlyclean mostlyclean-compile \
|
||||
mostlyclean-generic pdf pdf-am ps ps-am tags tags-am uninstall \
|
||||
uninstall-am uninstall-binPROGRAMS |
||||
|
||||
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT: |
||||
|
@ -0,0 +1,26 @@
@@ -0,0 +1,26 @@
|
||||
bin_PROGRAMS = i2p |
||||
i2p_SOURCES = AddressBook.cpp CryptoConst.cpp Daemon.cpp \
|
||||
DaemonLinux.cpp DaemonWin32.cpp Garlic.cpp \
|
||||
HTTPProxy.cpp HTTPServer.cpp I2NPProtocol.cpp \
|
||||
I2PTunnel.cpp Identity.cpp LeaseSet.cpp Log.cpp \
|
||||
NTCPSession.cpp NetDb.cpp Reseed.cpp \
|
||||
RouterContext.cpp RouterInfo.cpp SOCKS.cpp SSU.cpp \
|
||||
SSUData.cpp Streaming.cpp TransitTunnel.cpp \
|
||||
Transports.cpp Tunnel.cpp TunnelEndpoint.cpp \
|
||||
TunnelGateway.cpp TunnelPool.cpp UPnP.cpp aes.cpp \
|
||||
base64.cpp i2p.cpp util.cpp \
|
||||
\
|
||||
AddressBook.h CryptoConst.h Daemon.h ElGamal.h \
|
||||
Garlic.h HTTPProxy.h HTTPServer.h I2NPProtocol.h \
|
||||
I2PEndian.h I2PTunnel.h Identity.h LeaseSet.h \
|
||||
LittleBigEndian.h Log.h NTCPSession.h NetDb.h Queue.h \
|
||||
Reseed.h RouterContext.h RouterInfo.h SOCKS.h SSU.h \
|
||||
SSUData.h Signature.h Streaming.h Timestamp.h \
|
||||
TransitTunnel.h Transports.h Tunnel.h TunnelBase.h \
|
||||
TunnelConfig.h TunnelEndpoint.h TunnelGateway.h \
|
||||
TunnelPool.h UPnP.h aes.h base64.h config.h hmac.h \
|
||||
util.h version.h |
||||
|
||||
AM_LDFLAGS = @BOOST_DATE_TIME_LIB@ @BOOST_FILESYSTEM_LIB@ \
|
||||
@BOOST_PROGRAM_OPTIONS_LIB@ @BOOST_REGEX_LIB@ \
|
||||
@BOOST_SYSTEM_LIB@ |
@ -1,27 +0,0 @@
@@ -1,27 +0,0 @@
|
||||
CC = g++ |
||||
CFLAGS = -std=c++11 -O2 |
||||
include filelist.mk |
||||
INCFLAGS = -I/usr/include/ -I/usr/local/include/ |
||||
LDFLAGS = -Wl,-rpath,/usr/local/lib -L/usr/local/lib -lcryptopp -lboost_system -lboost_date_time -lboost_filesystem -lboost_regex -lboost_program_options -lpthread |
||||
LIBS = |
||||
|
||||
all: obj i2p |
||||
|
||||
i2p: $(OBJECTS:obj/%=obj/%) |
||||
$(CC) -o $@ $^ $(LDFLAGS) $(LIBS) |
||||
|
||||
.SUFFIXES: |
||||
.SUFFIXES: .c .cc .C .cpp .o |
||||
|
||||
obj/%.o : %.cpp |
||||
$(CC) -o $@ $< -c $(CFLAGS) $(INCFLAGS) $(CPU_FLAGS) |
||||
|
||||
obj: |
||||
mkdir -p obj |
||||
|
||||
clean: |
||||
rm -fr obj i2p |
||||
|
||||
.PHONY: all |
||||
.PHONY: clean |
||||
|
@ -0,0 +1,844 @@
@@ -0,0 +1,844 @@
|
||||
# Makefile.in generated by automake 1.13.4 from Makefile.am.
|
||||
# @configure_input@
|
||||
|
||||
# Copyright (C) 1994-2013 Free Software Foundation, Inc.
|
||||
|
||||
# This Makefile.in 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.
|
||||
|
||||
@SET_MAKE@ |
||||
|
||||
VPATH = @srcdir@ |
||||
am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' |
||||
am__make_running_with_option = \
|
||||
case $${target_option-} in \
|
||||
?) ;; \
|
||||
*) echo "am__make_running_with_option: internal error: invalid" \
|
||||
"target option '$${target_option-}' specified" >&2; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
has_opt=no; \
|
||||
sane_makeflags=$$MAKEFLAGS; \
|
||||
if $(am__is_gnu_make); then \
|
||||
sane_makeflags=$$MFLAGS; \
|
||||
else \
|
||||
case $$MAKEFLAGS in \
|
||||
*\\[\ \ ]*) \
|
||||
bs=\\; \
|
||||
sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
|
||||
| sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
|
||||
esac; \
|
||||
fi; \
|
||||
skip_next=no; \
|
||||
strip_trailopt () \
|
||||
{ \
|
||||
flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
|
||||
}; \
|
||||
for flg in $$sane_makeflags; do \
|
||||
test $$skip_next = yes && { skip_next=no; continue; }; \
|
||||
case $$flg in \
|
||||
*=*|--*) continue;; \
|
||||
-*I) strip_trailopt 'I'; skip_next=yes;; \
|
||||
-*I?*) strip_trailopt 'I';; \
|
||||
-*O) strip_trailopt 'O'; skip_next=yes;; \
|
||||
-*O?*) strip_trailopt 'O';; \
|
||||
-*l) strip_trailopt 'l'; skip_next=yes;; \
|
||||
-*l?*) strip_trailopt 'l';; \
|
||||
-[dEDm]) skip_next=yes;; \
|
||||
-[JT]) skip_next=yes;; \
|
||||
esac; \
|
||||
case $$flg in \
|
||||
*$$target_option*) has_opt=yes; break;; \
|
||||
esac; \
|
||||
done; \
|
||||
test $$has_opt = yes |
||||
am__make_dryrun = (target_option=n; $(am__make_running_with_option)) |
||||
am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) |
||||
pkgdatadir = $(datadir)/@PACKAGE@ |
||||
pkgincludedir = $(includedir)/@PACKAGE@ |
||||
pkglibdir = $(libdir)/@PACKAGE@ |
||||
pkglibexecdir = $(libexecdir)/@PACKAGE@ |
||||
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd |
||||
install_sh_DATA = $(install_sh) -c -m 644 |
||||
install_sh_PROGRAM = $(install_sh) -c |
||||
install_sh_SCRIPT = $(install_sh) -c |
||||
INSTALL_HEADER = $(INSTALL_DATA) |
||||
transform = $(program_transform_name) |
||||
NORMAL_INSTALL = : |
||||
PRE_INSTALL = : |
||||
POST_INSTALL = : |
||||
NORMAL_UNINSTALL = : |
||||
PRE_UNINSTALL = : |
||||
POST_UNINSTALL = : |
||||
build_triplet = @build@ |
||||
host_triplet = @host@ |
||||
bin_PROGRAMS = i2p$(EXEEXT) |
||||
subdir = . |
||||
DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
|
||||
$(top_srcdir)/configure $(am__configure_deps) \
|
||||
$(srcdir)/config.h.in depcomp config.guess config.sub \
|
||||
install-sh missing |
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
||||
am__aclocal_m4_deps = $(top_srcdir)/m4/ax_cxx_compile_stdcxx_11.m4 \
|
||||
$(top_srcdir)/m4/ax_boost_base.m4 \
|
||||
$(top_srcdir)/m4/ax_boost_date_time.m4 \
|
||||
$(top_srcdir)/m4/ax_boost_filesystem.m4 \
|
||||
$(top_srcdir)/m4/ax_boost_program_options.m4 \
|
||||
$(top_srcdir)/m4/ax_boost_regex.m4 \
|
||||
$(top_srcdir)/m4/ax_boost_system.m4 \
|
||||
$(top_srcdir)/m4/ax_pthread.m4 $(top_srcdir)/configure.ac |
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4) |
||||
am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
|
||||
configure.lineno config.status.lineno |
||||
mkinstalldirs = $(install_sh) -d |
||||
CONFIG_HEADER = config.h |
||||
CONFIG_CLEAN_FILES = |
||||
CONFIG_CLEAN_VPATH_FILES = |
||||
am__installdirs = "$(DESTDIR)$(bindir)" |
||||
PROGRAMS = $(bin_PROGRAMS) |
||||
am_i2p_OBJECTS = AddressBook.$(OBJEXT) CryptoConst.$(OBJEXT) \
|
||||
Daemon.$(OBJEXT) DaemonLinux.$(OBJEXT) DaemonWin32.$(OBJEXT) \
|
||||
Garlic.$(OBJEXT) HTTPProxy.$(OBJEXT) HTTPServer.$(OBJEXT) \
|
||||
I2NPProtocol.$(OBJEXT) I2PTunnel.$(OBJEXT) Identity.$(OBJEXT) \
|
||||
LeaseSet.$(OBJEXT) Log.$(OBJEXT) NTCPSession.$(OBJEXT) \
|
||||
NetDb.$(OBJEXT) Reseed.$(OBJEXT) RouterContext.$(OBJEXT) \
|
||||
RouterInfo.$(OBJEXT) SOCKS.$(OBJEXT) SSU.$(OBJEXT) \
|
||||
SSUData.$(OBJEXT) Streaming.$(OBJEXT) TransitTunnel.$(OBJEXT) \
|
||||
Transports.$(OBJEXT) Tunnel.$(OBJEXT) TunnelEndpoint.$(OBJEXT) \
|
||||
TunnelGateway.$(OBJEXT) TunnelPool.$(OBJEXT) UPnP.$(OBJEXT) \
|
||||
aes.$(OBJEXT) base64.$(OBJEXT) i2p.$(OBJEXT) util.$(OBJEXT) |
||||
i2p_OBJECTS = $(am_i2p_OBJECTS) |
||||
i2p_LDADD = $(LDADD) |
||||
AM_V_P = $(am__v_P_@AM_V@) |
||||
am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) |
||||
am__v_P_0 = false |
||||
am__v_P_1 = : |
||||
AM_V_GEN = $(am__v_GEN_@AM_V@) |
||||
am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) |
||||
am__v_GEN_0 = @echo " GEN " $@; |
||||
am__v_GEN_1 = |
||||
AM_V_at = $(am__v_at_@AM_V@) |
||||
am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) |
||||
am__v_at_0 = @ |
||||
am__v_at_1 = |
||||
DEFAULT_INCLUDES = -I.@am__isrc@ |
||||
depcomp = $(SHELL) $(top_srcdir)/depcomp |
||||
am__depfiles_maybe = depfiles |
||||
am__mv = mv -f |
||||
CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
|
||||
$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) |
||||
AM_V_CXX = $(am__v_CXX_@AM_V@) |
||||
am__v_CXX_ = $(am__v_CXX_@AM_DEFAULT_V@) |
||||
am__v_CXX_0 = @echo " CXX " $@; |
||||
am__v_CXX_1 = |
||||
CXXLD = $(CXX) |
||||
CXXLINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \
|
||||
-o $@ |
||||
AM_V_CXXLD = $(am__v_CXXLD_@AM_V@) |
||||
am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@) |
||||
am__v_CXXLD_0 = @echo " CXXLD " $@; |
||||
am__v_CXXLD_1 = |
||||
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
|
||||
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) |
||||
AM_V_CC = $(am__v_CC_@AM_V@) |
||||
am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) |
||||
am__v_CC_0 = @echo " CC " $@; |
||||
am__v_CC_1 = |
||||
CCLD = $(CC) |
||||
LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ |
||||
AM_V_CCLD = $(am__v_CCLD_@AM_V@) |
||||
am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) |
||||
am__v_CCLD_0 = @echo " CCLD " $@; |
||||
am__v_CCLD_1 = |
||||
SOURCES = $(i2p_SOURCES) |
||||
DIST_SOURCES = $(i2p_SOURCES) |
||||
am__can_run_installinfo = \
|
||||
case $$AM_UPDATE_INFO_DIR in \
|
||||
n|no|NO) false;; \
|
||||
*) (install-info --version) >/dev/null 2>&1;; \
|
||||
esac |
||||
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \
|
||||
$(LISP)config.h.in |
||||
# Read a list of newline-separated strings from the standard input,
|
||||
# and print each of them once, without duplicates. Input order is
|
||||
# *not* preserved.
|
||||
am__uniquify_input = $(AWK) '\
|
||||
BEGIN { nonempty = 0; } \
|
||||
{ items[$$0] = 1; nonempty = 1; } \
|
||||
END { if (nonempty) { for (i in items) print i; }; } \
|
||||
' |
||||
# Make sure the list of sources is unique. This is necessary because,
|
||||
# e.g., the same source file might be shared among _SOURCES variables
|
||||
# for different programs/libraries.
|
||||
am__define_uniq_tagged_files = \
|
||||
list='$(am__tagged_files)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | $(am__uniquify_input)` |
||||
ETAGS = etags |
||||
CTAGS = ctags |
||||
CSCOPE = cscope |
||||
AM_RECURSIVE_TARGETS = cscope |
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) |
||||
distdir = $(PACKAGE)-$(VERSION) |
||||
top_distdir = $(distdir) |
||||
am__remove_distdir = \
|
||||
if test -d "$(distdir)"; then \
|
||||
find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
|
||||
&& rm -rf "$(distdir)" \
|
||||
|| { sleep 5 && rm -rf "$(distdir)"; }; \
|
||||
else :; fi |
||||
am__post_remove_distdir = $(am__remove_distdir) |
||||
DIST_ARCHIVES = $(distdir).tar.gz |
||||
GZIP_ENV = --best |
||||
DIST_TARGETS = dist-gzip |
||||
distuninstallcheck_listfiles = find . -type f -print |
||||
am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
|
||||
| sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' |
||||
distcleancheck_listfiles = find . -type f -print |
||||
ACLOCAL = @ACLOCAL@ |
||||
AMTAR = @AMTAR@ |
||||
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ |
||||
AUTOCONF = @AUTOCONF@ |
||||
AUTOHEADER = @AUTOHEADER@ |
||||
AUTOMAKE = @AUTOMAKE@ |
||||
AWK = @AWK@ |
||||
BOOST_CPPFLAGS = @BOOST_CPPFLAGS@ |
||||
BOOST_DATE_TIME_LIB = @BOOST_DATE_TIME_LIB@ |
||||
BOOST_FILESYSTEM_LIB = @BOOST_FILESYSTEM_LIB@ |
||||
BOOST_LDFLAGS = @BOOST_LDFLAGS@ |
||||
BOOST_PROGRAM_OPTIONS_LIB = @BOOST_PROGRAM_OPTIONS_LIB@ |
||||
BOOST_REGEX_LIB = @BOOST_REGEX_LIB@ |
||||
BOOST_SYSTEM_LIB = @BOOST_SYSTEM_LIB@ |
||||
CC = @CC@ |
||||
CCDEPMODE = @CCDEPMODE@ |
||||
CFLAGS = @CFLAGS@ |
||||
CPP = @CPP@ |
||||
CPPFLAGS = @CPPFLAGS@ |
||||
CXX = @CXX@ |
||||
CXXDEPMODE = @CXXDEPMODE@ |
||||
CXXFLAGS = @CXXFLAGS@ |
||||
CYGPATH_W = @CYGPATH_W@ |
||||
DEFS = @DEFS@ |
||||
DEPDIR = @DEPDIR@ |
||||
ECHO_C = @ECHO_C@ |
||||
ECHO_N = @ECHO_N@ |
||||
ECHO_T = @ECHO_T@ |
||||
EGREP = @EGREP@ |
||||
EXEEXT = @EXEEXT@ |
||||
GREP = @GREP@ |
||||
HAVE_CXX11 = @HAVE_CXX11@ |
||||
INSTALL = @INSTALL@ |
||||
INSTALL_DATA = @INSTALL_DATA@ |
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@ |
||||
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ |
||||
LDFLAGS = @LDFLAGS@ |
||||
LIBOBJS = @LIBOBJS@ |
||||
LIBS = @LIBS@ |
||||
LTLIBOBJS = @LTLIBOBJS@ |
||||
MAKEINFO = @MAKEINFO@ |
||||
MKDIR_P = @MKDIR_P@ |
||||
OBJEXT = @OBJEXT@ |
||||
PACKAGE = @PACKAGE@ |
||||
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ |
||||
PACKAGE_NAME = @PACKAGE_NAME@ |
||||
PACKAGE_STRING = @PACKAGE_STRING@ |
||||
PACKAGE_TARNAME = @PACKAGE_TARNAME@ |
||||
PACKAGE_URL = @PACKAGE_URL@ |
||||
PACKAGE_VERSION = @PACKAGE_VERSION@ |
||||
PATH_SEPARATOR = @PATH_SEPARATOR@ |
||||
PTHREAD_CC = @PTHREAD_CC@ |
||||
PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ |
||||
PTHREAD_LIBS = @PTHREAD_LIBS@ |
||||
SET_MAKE = @SET_MAKE@ |
||||
SHELL = @SHELL@ |
||||
STRIP = @STRIP@ |
||||
VERSION = @VERSION@ |
||||
abs_builddir = @abs_builddir@ |
||||
abs_srcdir = @abs_srcdir@ |
||||
abs_top_builddir = @abs_top_builddir@ |
||||
abs_top_srcdir = @abs_top_srcdir@ |
||||
ac_ct_CC = @ac_ct_CC@ |
||||
ac_ct_CXX = @ac_ct_CXX@ |
||||
am__include = @am__include@ |
||||
am__leading_dot = @am__leading_dot@ |
||||
am__quote = @am__quote@ |
||||
am__tar = @am__tar@ |
||||
am__untar = @am__untar@ |
||||
ax_pthread_config = @ax_pthread_config@ |
||||
bindir = @bindir@ |
||||
build = @build@ |
||||
build_alias = @build_alias@ |
||||
build_cpu = @build_cpu@ |
||||
build_os = @build_os@ |
||||
build_vendor = @build_vendor@ |
||||
builddir = @builddir@ |
||||
datadir = @datadir@ |
||||
datarootdir = @datarootdir@ |
||||
docdir = @docdir@ |
||||
dvidir = @dvidir@ |
||||
exec_prefix = @exec_prefix@ |
||||
host = @host@ |
||||
host_alias = @host_alias@ |
||||
host_cpu = @host_cpu@ |
||||
host_os = @host_os@ |
||||
host_vendor = @host_vendor@ |
||||
htmldir = @htmldir@ |
||||
includedir = @includedir@ |
||||
infodir = @infodir@ |
||||
install_sh = @install_sh@ |
||||
libdir = @libdir@ |
||||
libexecdir = @libexecdir@ |
||||
localedir = @localedir@ |
||||
localstatedir = @localstatedir@ |
||||
mandir = @mandir@ |
||||
mkdir_p = @mkdir_p@ |
||||
oldincludedir = @oldincludedir@ |
||||
pdfdir = @pdfdir@ |
||||
prefix = @prefix@ |
||||
program_transform_name = @program_transform_name@ |
||||
psdir = @psdir@ |
||||
sbindir = @sbindir@ |
||||
sharedstatedir = @sharedstatedir@ |
||||
srcdir = @srcdir@ |
||||
sysconfdir = @sysconfdir@ |
||||
target_alias = @target_alias@ |
||||
top_build_prefix = @top_build_prefix@ |
||||
top_builddir = @top_builddir@ |
||||
top_srcdir = @top_srcdir@ |
||||
i2p_SOURCES = AddressBook.cpp CryptoConst.cpp Daemon.cpp \
|
||||
DaemonLinux.cpp DaemonWin32.cpp Garlic.cpp \
|
||||
HTTPProxy.cpp HTTPServer.cpp I2NPProtocol.cpp \
|
||||
I2PTunnel.cpp Identity.cpp LeaseSet.cpp Log.cpp \
|
||||
NTCPSession.cpp NetDb.cpp Reseed.cpp \
|
||||
RouterContext.cpp RouterInfo.cpp SOCKS.cpp SSU.cpp \
|
||||
SSUData.cpp Streaming.cpp TransitTunnel.cpp \
|
||||
Transports.cpp Tunnel.cpp TunnelEndpoint.cpp \
|
||||
TunnelGateway.cpp TunnelPool.cpp UPnP.cpp aes.cpp \
|
||||
base64.cpp i2p.cpp util.cpp \
|
||||
\
|
||||
AddressBook.h CryptoConst.h Daemon.h ElGamal.h \
|
||||
Garlic.h HTTPProxy.h HTTPServer.h I2NPProtocol.h \
|
||||
I2PEndian.h I2PTunnel.h Identity.h LeaseSet.h \
|
||||
LittleBigEndian.h Log.h NTCPSession.h NetDb.h Queue.h \
|
||||
Reseed.h RouterContext.h RouterInfo.h SOCKS.h SSU.h \
|
||||
SSUData.h Signature.h Streaming.h Timestamp.h \
|
||||
TransitTunnel.h Transports.h Tunnel.h TunnelBase.h \
|
||||
TunnelConfig.h TunnelEndpoint.h TunnelGateway.h \
|
||||
TunnelPool.h UPnP.h aes.h base64.h config.h hmac.h \
|
||||
util.h version.h |
||||
|
||||
AM_LDFLAGS = @BOOST_DATE_TIME_LIB@ @BOOST_FILESYSTEM_LIB@ \
|
||||
@BOOST_PROGRAM_OPTIONS_LIB@ @BOOST_REGEX_LIB@ \
|
||||
@BOOST_SYSTEM_LIB@ |
||||
|
||||
all: config.h |
||||
$(MAKE) $(AM_MAKEFLAGS) all-am |
||||
|
||||
.SUFFIXES: |
||||
.SUFFIXES: .cpp .o .obj |
||||
am--refresh: Makefile |
||||
@: |
||||
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) |
||||
@for dep in $?; do \
|
||||
case '$(am__configure_deps)' in \
|
||||
*$$dep*) \
|
||||
echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \
|
||||
$(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \
|
||||
&& exit 0; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
done; \
|
||||
echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
|
||||
$(am__cd) $(top_srcdir) && \
|
||||
$(AUTOMAKE) --foreign Makefile |
||||
.PRECIOUS: Makefile |
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status |
||||
@case '$?' in \
|
||||
*config.status*) \
|
||||
echo ' $(SHELL) ./config.status'; \
|
||||
$(SHELL) ./config.status;; \
|
||||
*) \
|
||||
echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
|
||||
esac; |
||||
|
||||
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) |
||||
$(SHELL) ./config.status --recheck |
||||
|
||||
$(top_srcdir)/configure: $(am__configure_deps) |
||||
$(am__cd) $(srcdir) && $(AUTOCONF) |
||||
$(ACLOCAL_M4): $(am__aclocal_m4_deps) |
||||
$(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) |
||||
$(am__aclocal_m4_deps): |
||||
|
||||
config.h: stamp-h1 |
||||
@if test ! -f $@; then rm -f stamp-h1; else :; fi |
||||
@if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) stamp-h1; else :; fi |
||||
|
||||
stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status |
||||
@rm -f stamp-h1 |
||||
cd $(top_builddir) && $(SHELL) ./config.status config.h |
||||
$(srcdir)/config.h.in: $(am__configure_deps) |
||||
($(am__cd) $(top_srcdir) && $(AUTOHEADER)) |
||||
rm -f stamp-h1 |
||||
touch $@ |
||||
|
||||
distclean-hdr: |
||||
-rm -f config.h stamp-h1 |
||||
install-binPROGRAMS: $(bin_PROGRAMS) |
||||
@$(NORMAL_INSTALL) |
||||
@list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
|
||||
if test -n "$$list"; then \
|
||||
echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \
|
||||
$(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \
|
||||
fi; \
|
||||
for p in $$list; do echo "$$p $$p"; done | \
|
||||
sed 's/$(EXEEXT)$$//' | \
|
||||
while read p p1; do if test -f $$p \
|
||||
; then echo "$$p"; echo "$$p"; else :; fi; \
|
||||
done | \
|
||||
sed -e 'p;s,.*/,,;n;h' \
|
||||
-e 's|.*|.|' \
|
||||
-e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
|
||||
sed 'N;N;N;s,\n, ,g' | \
|
||||
$(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
|
||||
{ d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
|
||||
if ($$2 == $$4) files[d] = files[d] " " $$1; \
|
||||
else { print "f", $$3 "/" $$4, $$1; } } \
|
||||
END { for (d in files) print "f", d, files[d] }' | \
|
||||
while read type dir files; do \
|
||||
if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
|
||||
test -z "$$files" || { \
|
||||
echo " $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \
|
||||
$(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
|
||||
} \
|
||||
; done |
||||
|
||||
uninstall-binPROGRAMS: |
||||
@$(NORMAL_UNINSTALL) |
||||
@list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
|
||||
files=`for p in $$list; do echo "$$p"; done | \
|
||||
sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
|
||||
-e 's/$$/$(EXEEXT)/' \
|
||||
`; \
|
||||
test -n "$$list" || exit 0; \
|
||||
echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
|
||||
cd "$(DESTDIR)$(bindir)" && rm -f $$files |
||||
|
||||
clean-binPROGRAMS: |
||||
-test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) |
||||
|
||||
i2p$(EXEEXT): $(i2p_OBJECTS) $(i2p_DEPENDENCIES) $(EXTRA_i2p_DEPENDENCIES) |
||||
@rm -f i2p$(EXEEXT) |
||||
$(AM_V_CXXLD)$(CXXLINK) $(i2p_OBJECTS) $(i2p_LDADD) $(LIBS) |
||||
|
||||
mostlyclean-compile: |
||||
-rm -f *.$(OBJEXT) |
||||
|
||||
distclean-compile: |
||||
-rm -f *.tab.c |
||||
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/AddressBook.Po@am__quote@ |
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/CryptoConst.Po@am__quote@ |
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Daemon.Po@am__quote@ |
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/DaemonLinux.Po@am__quote@ |
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/DaemonWin32.Po@am__quote@ |
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Garlic.Po@am__quote@ |
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/HTTPProxy.Po@am__quote@ |
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/HTTPServer.Po@am__quote@ |
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/I2NPProtocol.Po@am__quote@ |
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/I2PTunnel.Po@am__quote@ |
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Identity.Po@am__quote@ |
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/LeaseSet.Po@am__quote@ |
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Log.Po@am__quote@ |
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/NTCPSession.Po@am__quote@ |
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/NetDb.Po@am__quote@ |
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Reseed.Po@am__quote@ |
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/RouterContext.Po@am__quote@ |
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/RouterInfo.Po@am__quote@ |
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/SOCKS.Po@am__quote@ |
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/SSU.Po@am__quote@ |
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/SSUData.Po@am__quote@ |
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Streaming.Po@am__quote@ |
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/TransitTunnel.Po@am__quote@ |
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Transports.Po@am__quote@ |
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Tunnel.Po@am__quote@ |
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/TunnelEndpoint.Po@am__quote@ |
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/TunnelGateway.Po@am__quote@ |
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/TunnelPool.Po@am__quote@ |
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/UPnP.Po@am__quote@ |
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/aes.Po@am__quote@ |
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/base64.Po@am__quote@ |
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/i2p.Po@am__quote@ |
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/util.Po@am__quote@ |
||||
|
||||
.cpp.o: |
||||
@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< |
||||
@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po |
||||
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ |
||||
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ |
||||
@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ $< |
||||
|
||||
.cpp.obj: |
||||
@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` |
||||
@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po |
||||
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ |
||||
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ |
||||
@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` |
||||
|
||||
ID: $(am__tagged_files) |
||||
$(am__define_uniq_tagged_files); mkid -fID $$unique |
||||
tags: tags-am |
||||
TAGS: tags |
||||
|
||||
tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) |
||||
set x; \
|
||||
here=`pwd`; \
|
||||
$(am__define_uniq_tagged_files); \
|
||||
shift; \
|
||||
if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
|
||||
test -n "$$unique" || unique=$$empty_fix; \
|
||||
if test $$# -gt 0; then \ |
||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||
"$$@" $$unique; \
|
||||
else \
|
||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||
$$unique; \
|
||||
fi; \
|
||||
fi |
||||
ctags: ctags-am |
||||
|
||||
CTAGS: ctags |
||||
ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) |
||||
$(am__define_uniq_tagged_files); \
|
||||
test -z "$(CTAGS_ARGS)$$unique" \
|
||||
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
|
||||
$$unique |
||||
|
||||
GTAGS: |
||||
here=`$(am__cd) $(top_builddir) && pwd` \
|
||||
&& $(am__cd) $(top_srcdir) \
|
||||
&& gtags -i $(GTAGS_ARGS) "$$here" |
||||
cscope: cscope.files |
||||
test ! -s cscope.files \
|
||||
|| $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS) |
||||
clean-cscope: |
||||
-rm -f cscope.files |
||||
cscope.files: clean-cscope cscopelist |
||||
cscopelist: cscopelist-am |
||||
|
||||
cscopelist-am: $(am__tagged_files) |
||||
list='$(am__tagged_files)'; \
|
||||
case "$(srcdir)" in \
|
||||
[\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
|
||||
*) sdir=$(subdir)/$(srcdir) ;; \
|
||||
esac; \
|
||||
for i in $$list; do \
|
||||
if test -f "$$i"; then \
|
||||
echo "$(subdir)/$$i"; \
|
||||
else \
|
||||
echo "$$sdir/$$i"; \
|
||||
fi; \
|
||||
done >> $(top_builddir)/cscope.files |
||||
|
||||
distclean-tags: |
||||
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags |
||||
-rm -f cscope.out cscope.in.out cscope.po.out cscope.files |
||||
|
||||
distdir: $(DISTFILES) |
||||
$(am__remove_distdir) |
||||
test -d "$(distdir)" || mkdir "$(distdir)" |
||||
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||
list='$(DISTFILES)'; \
|
||||
dist_files=`for file in $$list; do echo $$file; done | \
|
||||
sed -e "s|^$$srcdirstrip/||;t" \
|
||||
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
|
||||
case $$dist_files in \
|
||||
*/*) $(MKDIR_P) `echo "$$dist_files" | \
|
||||
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
|
||||
sort -u` ;; \
|
||||
esac; \
|
||||
for file in $$dist_files; do \
|
||||
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
||||
if test -d $$d/$$file; then \
|
||||
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
|
||||
if test -d "$(distdir)/$$file"; then \
|
||||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||
fi; \
|
||||
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
||||
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
|
||||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||
fi; \
|
||||
cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
|
||||
else \
|
||||
test -f "$(distdir)/$$file" \
|
||||
|| cp -p $$d/$$file "$(distdir)/$$file" \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done |
||||
-test -n "$(am__skip_mode_fix)" \
|
||||
|| find "$(distdir)" -type d ! -perm -755 \
|
||||
-exec chmod u+rwx,go+rx {} \; -o \
|
||||
! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
|
||||
! -type d ! -perm -400 -exec chmod a+r {} \; -o \
|
||||
! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
|
||||
|| chmod -R a+r "$(distdir)" |
||||
dist-gzip: distdir |
||||
tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz |
||||
$(am__post_remove_distdir) |
||||
|
||||
dist-bzip2: distdir |
||||
tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2 |
||||
$(am__post_remove_distdir) |
||||
|
||||
dist-lzip: distdir |
||||
tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz |
||||
$(am__post_remove_distdir) |
||||
|
||||
dist-xz: distdir |
||||
tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz |
||||
$(am__post_remove_distdir) |
||||
|
||||
dist-tarZ: distdir |
||||
tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z |
||||
$(am__post_remove_distdir) |
||||
|
||||
dist-shar: distdir |
||||
shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz |
||||
$(am__post_remove_distdir) |
||||
|
||||
dist-zip: distdir |
||||
-rm -f $(distdir).zip |
||||
zip -rq $(distdir).zip $(distdir) |
||||
$(am__post_remove_distdir) |
||||
|
||||
dist dist-all: |
||||
$(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:' |
||||
$(am__post_remove_distdir) |
||||
|
||||
# This target untars the dist file and tries a VPATH configuration. Then
|
||||
# it guarantees that the distribution is self-contained by making another
|
||||
# tarfile.
|
||||
distcheck: dist |
||||
case '$(DIST_ARCHIVES)' in \
|
||||
*.tar.gz*) \
|
||||
GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
|
||||
*.tar.bz2*) \
|
||||
bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
|
||||
*.tar.lz*) \
|
||||
lzip -dc $(distdir).tar.lz | $(am__untar) ;;\
|
||||
*.tar.xz*) \
|
||||
xz -dc $(distdir).tar.xz | $(am__untar) ;;\
|
||||
*.tar.Z*) \
|
||||
uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
|
||||
*.shar.gz*) \
|
||||
GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
|
||||
*.zip*) \
|
||||
unzip $(distdir).zip ;;\
|
||||
esac |
||||
chmod -R a-w $(distdir) |
||||
chmod u+w $(distdir) |
||||
mkdir $(distdir)/_build $(distdir)/_inst |
||||
chmod a-w $(distdir) |
||||
test -d $(distdir)/_build || exit 0; \
|
||||
dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
|
||||
&& dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
|
||||
&& am__cwd=`pwd` \
|
||||
&& $(am__cd) $(distdir)/_build \
|
||||
&& ../configure --srcdir=.. --prefix="$$dc_install_base" \
|
||||
$(AM_DISTCHECK_CONFIGURE_FLAGS) \
|
||||
$(DISTCHECK_CONFIGURE_FLAGS) \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) dvi \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) check \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) install \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) installcheck \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) uninstall \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
|
||||
distuninstallcheck \
|
||||
&& chmod -R a-w "$$dc_install_base" \
|
||||
&& ({ \
|
||||
(cd ../.. && umask 077 && mkdir "$$dc_destdir") \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
|
||||
distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
|
||||
} || { rm -rf "$$dc_destdir"; exit 1; }) \
|
||||
&& rm -rf "$$dc_destdir" \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) dist \
|
||||
&& rm -rf $(DIST_ARCHIVES) \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
|
||||
&& cd "$$am__cwd" \
|
||||
|| exit 1 |
||||
$(am__post_remove_distdir) |
||||
@(echo "$(distdir) archives ready for distribution: "; \
|
||||
list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
|
||||
sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' |
||||
distuninstallcheck: |
||||
@test -n '$(distuninstallcheck_dir)' || { \
|
||||
echo 'ERROR: trying to run $@ with an empty' \
|
||||
'$$(distuninstallcheck_dir)' >&2; \
|
||||
exit 1; \
|
||||
}; \
|
||||
$(am__cd) '$(distuninstallcheck_dir)' || { \
|
||||
echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \
|
||||
exit 1; \
|
||||
}; \
|
||||
test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \
|
||||
|| { echo "ERROR: files left after uninstall:" ; \
|
||||
if test -n "$(DESTDIR)"; then \
|
||||
echo " (check DESTDIR support)"; \
|
||||
fi ; \
|
||||
$(distuninstallcheck_listfiles) ; \
|
||||
exit 1; } >&2 |
||||
distcleancheck: distclean |
||||
@if test '$(srcdir)' = . ; then \
|
||||
echo "ERROR: distcleancheck can only run from a VPATH build" ; \
|
||||
exit 1 ; \
|
||||
fi |
||||
@test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
|
||||
|| { echo "ERROR: files left in build directory after distclean:" ; \
|
||||
$(distcleancheck_listfiles) ; \
|
||||
exit 1; } >&2 |
||||
check-am: all-am |
||||
check: check-am |
||||
all-am: Makefile $(PROGRAMS) config.h |
||||
installdirs: |
||||
for dir in "$(DESTDIR)$(bindir)"; do \
|
||||
test -z "$$dir" || $(MKDIR_P) "$$dir"; \
|
||||
done |
||||
install: install-am |
||||
install-exec: install-exec-am |
||||
install-data: install-data-am |
||||
uninstall: uninstall-am |
||||
|
||||
install-am: all-am |
||||
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am |
||||
|
||||
installcheck: installcheck-am |
||||
install-strip: |
||||
if test -z '$(STRIP)'; then \
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
install; \
|
||||
else \
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
|
||||
fi |
||||
mostlyclean-generic: |
||||
|
||||
clean-generic: |
||||
|
||||
distclean-generic: |
||||
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) |
||||
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) |
||||
|
||||
maintainer-clean-generic: |
||||
@echo "This command is intended for maintainers to use" |
||||
@echo "it deletes files that may require special tools to rebuild." |
||||
clean: clean-am |
||||
|
||||
clean-am: clean-binPROGRAMS clean-generic mostlyclean-am |
||||
|
||||
distclean: distclean-am |
||||
-rm -f $(am__CONFIG_DISTCLEAN_FILES) |
||||
-rm -rf ./$(DEPDIR) |
||||
-rm -f Makefile |
||||
distclean-am: clean-am distclean-compile distclean-generic \ |
||||
distclean-hdr distclean-tags |
||||
|
||||
dvi: dvi-am |
||||
|
||||
dvi-am: |
||||
|
||||
html: html-am |
||||
|
||||
html-am: |
||||
|
||||
info: info-am |
||||
|
||||
info-am: |
||||
|
||||
install-data-am: |
||||
|
||||
install-dvi: install-dvi-am |
||||
|
||||
install-dvi-am: |
||||
|
||||
install-exec-am: install-binPROGRAMS |
||||
|
||||
install-html: install-html-am |
||||
|
||||
install-html-am: |
||||
|
||||
install-info: install-info-am |
||||
|
||||
install-info-am: |
||||
|
||||
install-man: |
||||
|
||||
install-pdf: install-pdf-am |
||||
|
||||
install-pdf-am: |
||||
|
||||
install-ps: install-ps-am |
||||
|
||||
install-ps-am: |
||||
|
||||
installcheck-am: |
||||
|
||||
maintainer-clean: maintainer-clean-am |
||||
-rm -f $(am__CONFIG_DISTCLEAN_FILES) |
||||
-rm -rf $(top_srcdir)/autom4te.cache |
||||
-rm -rf ./$(DEPDIR) |
||||
-rm -f Makefile |
||||
maintainer-clean-am: distclean-am maintainer-clean-generic |
||||
|
||||
mostlyclean: mostlyclean-am |
||||
|
||||
mostlyclean-am: mostlyclean-compile mostlyclean-generic |
||||
|
||||
pdf: pdf-am |
||||
|
||||
pdf-am: |
||||
|
||||
ps: ps-am |
||||
|
||||
ps-am: |
||||
|
||||
uninstall-am: uninstall-binPROGRAMS |
||||
|
||||
.MAKE: all install-am install-strip |
||||
|
||||
.PHONY: CTAGS GTAGS TAGS all all-am am--refresh check check-am clean \ |
||||
clean-binPROGRAMS clean-cscope clean-generic cscope \
|
||||
cscopelist-am ctags ctags-am dist dist-all dist-bzip2 \
|
||||
dist-gzip dist-lzip dist-shar dist-tarZ dist-xz dist-zip \
|
||||
distcheck distclean distclean-compile distclean-generic \
|
||||
distclean-hdr distclean-tags distcleancheck distdir \
|
||||
distuninstallcheck dvi dvi-am html html-am info info-am \
|
||||
install install-am install-binPROGRAMS install-data \
|
||||
install-data-am install-dvi install-dvi-am install-exec \
|
||||
install-exec-am install-html install-html-am install-info \
|
||||
install-info-am install-man install-pdf install-pdf-am \
|
||||
install-ps install-ps-am install-strip installcheck \
|
||||
installcheck-am installdirs maintainer-clean \
|
||||
maintainer-clean-generic mostlyclean mostlyclean-compile \
|
||||
mostlyclean-generic pdf pdf-am ps ps-am tags tags-am uninstall \
|
||||
uninstall-am uninstall-binPROGRAMS |
||||
|
||||
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT: |
@ -1,33 +0,0 @@
@@ -1,33 +0,0 @@
|
||||
|
||||
CC = g++ |
||||
CFLAGS = -g -Wall -std=c++0x |
||||
include filelist.mk |
||||
INCFLAGS = |
||||
LDFLAGS = -Wl,-rpath,/usr/local/lib -lcryptopp -lboost_system -lboost_date_time -lboost_filesystem -lboost_regex -lboost_program_options -lpthread |
||||
LIBS = |
||||
|
||||
#check if AES-NI is supported by CPU
|
||||
ifneq ($(shell grep -c aes /proc/cpuinfo),0) |
||||
CPU_FLAGS = -DAESNI |
||||
endif |
||||
|
||||
all: obj i2p |
||||
|
||||
i2p: $(OBJECTS:obj/%=obj/%) |
||||
$(CC) -o $@ $^ $(LDFLAGS) $(LIBS) |
||||
|
||||
.SUFFIXES: |
||||
.SUFFIXES: .c .cc .C .cpp .o |
||||
|
||||
obj/%.o : %.cpp |
||||
$(CC) -o $@ $< -c $(CFLAGS) $(INCFLAGS) $(CPU_FLAGS) |
||||
|
||||
obj: |
||||
mkdir -p obj |
||||
|
||||
clean: |
||||
rm -fr obj i2p |
||||
|
||||
.PHONY: all |
||||
.PHONY: clean |
||||
|
@ -1,38 +0,0 @@
@@ -1,38 +0,0 @@
|
||||
CC = clang++ |
||||
CFLAGS = -g -Wall -std=c++11 -lstdc++ -I/usr/local/include |
||||
include filelist.mk |
||||
INCFLAGS = -DCRYPTOPP_DISABLE_ASM |
||||
LDFLAGS = -Wl,-rpath,/usr/local/lib -L/usr/local/lib -lcryptopp -lboost_system -lboost_date_time -lboost_filesystem -lboost_regex -lboost_program_options -lpthread |
||||
LIBS = |
||||
|
||||
# OSX Notes
|
||||
# http://www.hutsby.net/2011/08/macs-with-aes-ni.html
|
||||
# Seems like all recent Mac's have AES-NI, after firmware upgrade 2.2
|
||||
# Found no good way to detect it from command line. TODO: Might be some osx sysinfo magic
|
||||
CPU_FLAGS = -DAESNI |
||||
|
||||
# Apple Mac OSX
|
||||
UNAME_S := $(shell uname -s) |
||||
ifeq ($(UNAME_S),Darwin) |
||||
endif |
||||
|
||||
all: obj i2p |
||||
|
||||
i2p: $(OBJECTS:obj/%=obj/%) |
||||
$(CC) -o $@ $^ $(LDFLAGS) $(LIBS) |
||||
|
||||
.SUFFIXES: |
||||
.SUFFIXES: .c .cc .C .cpp .o |
||||
|
||||
obj/%.o : %.cpp |
||||
$(CC) -o $@ $< -c $(CFLAGS) $(INCFLAGS) $(CPU_FLAGS) |
||||
|
||||
obj: |
||||
mkdir -p obj |
||||
|
||||
clean: |
||||
rm -fr obj i2p |
||||
|
||||
.PHONY: all |
||||
.PHONY: clean |
||||
|
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
/usr/share/automake-1.13/config.guess |
@ -0,0 +1,175 @@
@@ -0,0 +1,175 @@
|
||||
/* config.h.in. Generated from configure.ac by autoheader. */ |
||||
|
||||
/* define if the Boost library is available */ |
||||
#undef HAVE_BOOST |
||||
|
||||
/* define if the Boost::Date_Time library is available */ |
||||
#undef HAVE_BOOST_DATE_TIME |
||||
|
||||
/* define if the Boost::Filesystem library is available */ |
||||
#undef HAVE_BOOST_FILESYSTEM |
||||
|
||||
/* define if the Boost::PROGRAM_OPTIONS library is available */ |
||||
#undef HAVE_BOOST_PROGRAM_OPTIONS |
||||
|
||||
/* define if the Boost::Regex library is available */ |
||||
#undef HAVE_BOOST_REGEX |
||||
|
||||
/* define if the Boost::System library is available */ |
||||
#undef HAVE_BOOST_SYSTEM |
||||
|
||||
/* define if the compiler supports basic C++11 syntax */ |
||||
#undef HAVE_CXX11 |
||||
|
||||
/* Define to 1 if you have the <fcntl.h> header file. */ |
||||
#undef HAVE_FCNTL_H |
||||
|
||||
/* Define to 1 if you have the `fork' function. */ |
||||
#undef HAVE_FORK |
||||
|
||||
/* Define to 1 if you have the <inttypes.h> header file. */ |
||||
#undef HAVE_INTTYPES_H |
||||
|
||||
/* Define to 1 if you have the `memchr' function. */ |
||||
#undef HAVE_MEMCHR |
||||
|
||||
/* Define to 1 if you have the <memory.h> header file. */ |
||||
#undef HAVE_MEMORY_H |
||||
|
||||
/* Define to 1 if you have the `memset' function. */ |
||||
#undef HAVE_MEMSET |
||||
|
||||
/* Define if you have POSIX threads libraries and header files. */ |
||||
#undef HAVE_PTHREAD |
||||
|
||||
/* Have PTHREAD_PRIO_INHERIT. */ |
||||
#undef HAVE_PTHREAD_PRIO_INHERIT |
||||
|
||||
/* Define to 1 if the system has the type `ptrdiff_t'. */ |
||||
#undef HAVE_PTRDIFF_T |
||||
|
||||
/* Define to 1 if you have the `setlocale' function. */ |
||||
#undef HAVE_SETLOCALE |
||||
|
||||
/* Define to 1 if you have the `socket' function. */ |
||||
#undef HAVE_SOCKET |
||||
|
||||
/* Define to 1 if you have the <stdint.h> header file. */ |
||||
#undef HAVE_STDINT_H |
||||
|
||||
/* Define to 1 if you have the <stdlib.h> header file. */ |
||||
#undef HAVE_STDLIB_H |
||||
|
||||
/* Define to 1 if you have the <strings.h> header file. */ |
||||
#undef HAVE_STRINGS_H |
||||
|
||||
/* Define to 1 if you have the <string.h> header file. */ |
||||
#undef HAVE_STRING_H |
||||
|
||||
/* Define to 1 if you have the `strstr' function. */ |
||||
#undef HAVE_STRSTR |
||||
|
||||
/* Define to 1 if you have the <sys/stat.h> header file. */ |
||||
#undef HAVE_SYS_STAT_H |
||||
|
||||
/* Define to 1 if you have the <sys/types.h> header file. */ |
||||
#undef HAVE_SYS_TYPES_H |
||||
|
||||
/* Define to 1 if you have the <unistd.h> header file. */ |
||||
#undef HAVE_UNISTD_H |
||||
|
||||
/* Define to 1 if you have the `vfork' function. */ |
||||
#undef HAVE_VFORK |
||||
|
||||
/* Define to 1 if you have the <vfork.h> header file. */ |
||||
#undef HAVE_VFORK_H |
||||
|
||||
/* Define to 1 if `fork' works. */ |
||||
#undef HAVE_WORKING_FORK |
||||
|
||||
/* Define to 1 if `vfork' works. */ |
||||
#undef HAVE_WORKING_VFORK |
||||
|
||||
/* Define to 1 if the system has the type `_Bool'. */ |
||||
#undef HAVE__BOOL |
||||
|
||||
/* Name of package */ |
||||
#undef PACKAGE |
||||
|
||||
/* Define to the address where bug reports for this package should be sent. */ |
||||
#undef PACKAGE_BUGREPORT |
||||
|
||||
/* Define to the full name of this package. */ |
||||
#undef PACKAGE_NAME |
||||
|
||||
/* Define to the full name and version of this package. */ |
||||
#undef PACKAGE_STRING |
||||
|
||||
/* Define to the one symbol short name of this package. */ |
||||
#undef PACKAGE_TARNAME |
||||
|
||||
/* Define to the home page for this package. */ |
||||
#undef PACKAGE_URL |
||||
|
||||
/* Define to the version of this package. */ |
||||
#undef PACKAGE_VERSION |
||||
|
||||
/* Define to necessary symbol if this constant uses a non-standard name on
|
||||
your system. */ |
||||
#undef PTHREAD_CREATE_JOINABLE |
||||
|
||||
/* Define to 1 if you have the ANSI C header files. */ |
||||
#undef STDC_HEADERS |
||||
|
||||
/* Version number of package */ |
||||
#undef VERSION |
||||
|
||||
/* Define for Solaris 2.5.1 so the uint32_t typedef from <sys/synch.h>,
|
||||
<pthread.h>, or <semaphore.h> is not used. If the typedef were allowed, the |
||||
#define below would cause a syntax error. */ |
||||
#undef _UINT32_T |
||||
|
||||
/* Define for Solaris 2.5.1 so the uint64_t typedef from <sys/synch.h>,
|
||||
<pthread.h>, or <semaphore.h> is not used. If the typedef were allowed, the |
||||
#define below would cause a syntax error. */ |
||||
#undef _UINT64_T |
||||
|
||||
/* Define for Solaris 2.5.1 so the uint8_t typedef from <sys/synch.h>,
|
||||
<pthread.h>, or <semaphore.h> is not used. If the typedef were allowed, the |
||||
#define below would cause a syntax error. */ |
||||
#undef _UINT8_T |
||||
|
||||
/* Define to `__inline__' or `__inline' if that's what the C compiler
|
||||
calls it, or to nothing if 'inline' is not supported under any name. */ |
||||
#ifndef __cplusplus |
||||
#undef inline |
||||
#endif |
||||
|
||||
/* Define to the type of a signed integer type of width exactly 32 bits if
|
||||
such a type exists and the standard includes do not define it. */ |
||||
#undef int32_t |
||||
|
||||
/* Define to `int' if <sys/types.h> does not define. */ |
||||
#undef pid_t |
||||
|
||||
/* Define to `unsigned int' if <sys/types.h> does not define. */ |
||||
#undef size_t |
||||
|
||||
/* Define to the type of an unsigned integer type of width exactly 16 bits if
|
||||
such a type exists and the standard includes do not define it. */ |
||||
#undef uint16_t |
||||
|
||||
/* Define to the type of an unsigned integer type of width exactly 32 bits if
|
||||
such a type exists and the standard includes do not define it. */ |
||||
#undef uint32_t |
||||
|
||||
/* Define to the type of an unsigned integer type of width exactly 64 bits if
|
||||
such a type exists and the standard includes do not define it. */ |
||||
#undef uint64_t |
||||
|
||||
/* Define to the type of an unsigned integer type of width exactly 8 bits if
|
||||
such a type exists and the standard includes do not define it. */ |
||||
#undef uint8_t |
||||
|
||||
/* Define as `fork' if `vfork' does not work. */ |
||||
#undef vfork |
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
/usr/share/automake-1.13/config.sub |
@ -0,0 +1,72 @@
@@ -0,0 +1,72 @@
|
||||
AC_PREREQ([2.69]) |
||||
AC_INIT([i2pd], [0.0.0], |
||||
[https://track.privacysolutions.no/projects/i2pd/issues]) |
||||
AM_INIT_AUTOMAKE([-Wall foreign]) |
||||
AC_CONFIG_SRCDIR([I2NPProtocol.cpp]) |
||||
AC_CONFIG_HEADERS([config.h]) |
||||
|
||||
# Checks for programs. |
||||
AC_PROG_CXX |
||||
AC_PROG_CC |
||||
|
||||
# Check for C++11 |
||||
m4_include([m4/ax_cxx_compile_stdcxx_11.m4]) |
||||
AX_CXX_COMPILE_STDCXX_11([],[mandatory]) |
||||
|
||||
# Set platform specific flags |
||||
if test "$(uname -s)" = "Darwin" |
||||
then |
||||
CXXFLAGS="-DCRYPTOPP_DISABLE_ASM -DAESNI ${CXXFLAGS}" |
||||
|
||||
elif test "$(uname -s)" = "Linux" |
||||
then |
||||
if test -n "$(grep aes /proc/cpuinfo)" |
||||
then |
||||
CXXFLAGS="-DAESNI ${CXXFLAGS}" |
||||
fi |
||||
else |
||||
# emtpy |
||||
true |
||||
fi |
||||
|
||||
# Checks for libraries. |
||||
AC_SEARCH_LIBS([s_sosemanukMulTables], [cryptopp], |
||||
[], [AC_MSG_ERROR([Unable to find crypto++])]) |
||||
|
||||
m4_include([m4/ax_boost_base.m4]) |
||||
m4_include([m4/ax_boost_date_time.m4]) |
||||
m4_include([m4/ax_boost_filesystem.m4]) |
||||
m4_include([m4/ax_boost_program_options.m4]) |
||||
m4_include([m4/ax_boost_regex.m4]) |
||||
m4_include([m4/ax_boost_system.m4]) |
||||
AX_BOOST_BASE([1.46]) |
||||
AX_BOOST_DATE_TIME |
||||
AX_BOOST_FILESYSTEM |
||||
AX_BOOST_PROGRAM_OPTIONS |
||||
AX_BOOST_REGEX |
||||
AX_BOOST_SYSTEM |
||||
|
||||
m4_include([m4/ax_pthread.m4]) |
||||
AX_PTHREAD() |
||||
|
||||
# Checks for header files. |
||||
AC_CHECK_HEADERS([fcntl.h inttypes.h stdlib.h string.h unistd.h]) |
||||
|
||||
# Checks for typedefs, structures, and compiler characteristics. |
||||
AC_CHECK_HEADER_STDBOOL |
||||
AC_C_INLINE |
||||
AC_TYPE_INT32_T |
||||
AC_TYPE_PID_T |
||||
AC_TYPE_SIZE_T |
||||
AC_TYPE_UINT16_T |
||||
AC_TYPE_UINT32_T |
||||
AC_TYPE_UINT64_T |
||||
AC_TYPE_UINT8_T |
||||
AC_CHECK_TYPES([ptrdiff_t]) |
||||
|
||||
# Checks for library functions. |
||||
AC_FUNC_FORK |
||||
AC_CHECK_FUNCS([memchr memset setlocale socket strstr]) |
||||
|
||||
AC_CONFIG_FILES([Makefile]) |
||||
AC_OUTPUT |
@ -0,0 +1,272 @@
@@ -0,0 +1,272 @@
|
||||
# =========================================================================== |
||||
# http://www.gnu.org/software/autoconf-archive/ax_boost_base.html |
||||
# =========================================================================== |
||||
# |
||||
# SYNOPSIS |
||||
# |
||||
# AX_BOOST_BASE([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) |
||||
# |
||||
# DESCRIPTION |
||||
# |
||||
# Test for the Boost C++ libraries of a particular version (or newer) |
||||
# |
||||
# If no path to the installed boost library is given the macro searchs |
||||
# under /usr, /usr/local, /opt and /opt/local and evaluates the |
||||
# $BOOST_ROOT environment variable. Further documentation is available at |
||||
# <http://randspringer.de/boost/index.html>. |
||||
# |
||||
# This macro calls: |
||||
# |
||||
# AC_SUBST(BOOST_CPPFLAGS) / AC_SUBST(BOOST_LDFLAGS) |
||||
# |
||||
# And sets: |
||||
# |
||||
# HAVE_BOOST |
||||
# |
||||
# LICENSE |
||||
# |
||||
# Copyright (c) 2008 Thomas Porschberg <thomas@randspringer.de> |
||||
# Copyright (c) 2009 Peter Adolphs |
||||
# |
||||
# Copying and distribution of this file, with or without modification, are |
||||
# permitted in any medium without royalty provided the copyright notice |
||||
# and this notice are preserved. This file is offered as-is, without any |
||||
# warranty. |
||||
|
||||
#serial 23 |
||||
|
||||
AC_DEFUN([AX_BOOST_BASE], |
||||
[ |
||||
AC_ARG_WITH([boost], |
||||
[AS_HELP_STRING([--with-boost@<:@=ARG@:>@], |
||||
[use Boost library from a standard location (ARG=yes), |
||||
from the specified location (ARG=<path>), |
||||
or disable it (ARG=no) |
||||
@<:@ARG=yes@:>@ ])], |
||||
[ |
||||
if test "$withval" = "no"; then |
||||
want_boost="no" |
||||
elif test "$withval" = "yes"; then |
||||
want_boost="yes" |
||||
ac_boost_path="" |
||||
else |
||||
want_boost="yes" |
||||
ac_boost_path="$withval" |
||||
fi |
||||
], |
||||
[want_boost="yes"]) |
||||
|
||||
|
||||
AC_ARG_WITH([boost-libdir], |
||||
AS_HELP_STRING([--with-boost-libdir=LIB_DIR], |
||||
[Force given directory for boost libraries. Note that this will override library path detection, so use this parameter only if default library detection fails and you know exactly where your boost libraries are located.]), |
||||
[ |
||||
if test -d "$withval" |
||||
then |
||||
ac_boost_lib_path="$withval" |
||||
else |
||||
AC_MSG_ERROR(--with-boost-libdir expected directory name) |
||||
fi |
||||
], |
||||
[ac_boost_lib_path=""] |
||||
) |
||||
|
||||
if test "x$want_boost" = "xyes"; then |
||||
boost_lib_version_req=ifelse([$1], ,1.20.0,$1) |
||||
boost_lib_version_req_shorten=`expr $boost_lib_version_req : '\([[0-9]]*\.[[0-9]]*\)'` |
||||
boost_lib_version_req_major=`expr $boost_lib_version_req : '\([[0-9]]*\)'` |
||||
boost_lib_version_req_minor=`expr $boost_lib_version_req : '[[0-9]]*\.\([[0-9]]*\)'` |
||||
boost_lib_version_req_sub_minor=`expr $boost_lib_version_req : '[[0-9]]*\.[[0-9]]*\.\([[0-9]]*\)'` |
||||
if test "x$boost_lib_version_req_sub_minor" = "x" ; then |
||||
boost_lib_version_req_sub_minor="0" |
||||
fi |
||||
WANT_BOOST_VERSION=`expr $boost_lib_version_req_major \* 100000 \+ $boost_lib_version_req_minor \* 100 \+ $boost_lib_version_req_sub_minor` |
||||
AC_MSG_CHECKING(for boostlib >= $boost_lib_version_req) |
||||
succeeded=no |
||||
|
||||
dnl On 64-bit systems check for system libraries in both lib64 and lib. |
||||
dnl The former is specified by FHS, but e.g. Debian does not adhere to |
||||
dnl this (as it rises problems for generic multi-arch support). |
||||
dnl The last entry in the list is chosen by default when no libraries |
||||
dnl are found, e.g. when only header-only libraries are installed! |
||||
libsubdirs="lib" |
||||
ax_arch=`uname -m` |
||||
case $ax_arch in |
||||
x86_64|ppc64|s390x|sparc64|aarch64) |
||||
libsubdirs="lib64 lib lib64" |
||||
;; |
||||
esac |
||||
|
||||
dnl allow for real multi-arch paths e.g. /usr/lib/x86_64-linux-gnu. Give |
||||
dnl them priority over the other paths since, if libs are found there, they |
||||
dnl are almost assuredly the ones desired. |
||||
AC_REQUIRE([AC_CANONICAL_HOST]) |
||||
libsubdirs="lib/${host_cpu}-${host_os} $libsubdirs" |
||||
|
||||
case ${host_cpu} in |
||||
i?86) |
||||
libsubdirs="lib/i386-${host_os} $libsubdirs" |
||||
;; |
||||
esac |
||||
|
||||
dnl first we check the system location for boost libraries |
||||
dnl this location ist chosen if boost libraries are installed with the --layout=system option |
||||
dnl or if you install boost with RPM |
||||
if test "$ac_boost_path" != ""; then |
||||
BOOST_CPPFLAGS="-I$ac_boost_path/include" |
||||
for ac_boost_path_tmp in $libsubdirs; do |
||||
if test -d "$ac_boost_path"/"$ac_boost_path_tmp" ; then |
||||
BOOST_LDFLAGS="-L$ac_boost_path/$ac_boost_path_tmp" |
||||
break |
||||
fi |
||||
done |
||||
elif test "$cross_compiling" != yes; then |
||||
for ac_boost_path_tmp in /usr /usr/local /opt /opt/local ; do |
||||
if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then |
||||
for libsubdir in $libsubdirs ; do |
||||
if ls "$ac_boost_path_tmp/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi |
||||
done |
||||
BOOST_LDFLAGS="-L$ac_boost_path_tmp/$libsubdir" |
||||
BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include" |
||||
break; |
||||
fi |
||||
done |
||||
fi |
||||
|
||||
dnl overwrite ld flags if we have required special directory with |
||||
dnl --with-boost-libdir parameter |
||||
if test "$ac_boost_lib_path" != ""; then |
||||
BOOST_LDFLAGS="-L$ac_boost_lib_path" |
||||
fi |
||||
|
||||
CPPFLAGS_SAVED="$CPPFLAGS" |
||||
CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" |
||||
export CPPFLAGS |
||||
|
||||
LDFLAGS_SAVED="$LDFLAGS" |
||||
LDFLAGS="$LDFLAGS $BOOST_LDFLAGS" |
||||
export LDFLAGS |
||||
|
||||
AC_REQUIRE([AC_PROG_CXX]) |
||||
AC_LANG_PUSH(C++) |
||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ |
||||
@%:@include <boost/version.hpp> |
||||
]], [[ |
||||
#if BOOST_VERSION >= $WANT_BOOST_VERSION |
||||
// Everything is okay |
||||
#else |
||||
# error Boost version is too old |
||||
#endif |
||||
]])],[ |
||||
AC_MSG_RESULT(yes) |
||||
succeeded=yes |
||||
found_system=yes |
||||
],[ |
||||
]) |
||||
AC_LANG_POP([C++]) |
||||
|
||||
|
||||
|
||||
dnl if we found no boost with system layout we search for boost libraries |
||||
dnl built and installed without the --layout=system option or for a staged(not installed) version |
||||
if test "x$succeeded" != "xyes"; then |
||||
_version=0 |
||||
if test "$ac_boost_path" != ""; then |
||||
if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then |
||||
for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do |
||||
_version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'` |
||||
V_CHECK=`expr $_version_tmp \> $_version` |
||||
if test "$V_CHECK" = "1" ; then |
||||
_version=$_version_tmp |
||||
fi |
||||
VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'` |
||||
BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE" |
||||
done |
||||
fi |
||||
else |
||||
if test "$cross_compiling" != yes; then |
||||
for ac_boost_path in /usr /usr/local /opt /opt/local ; do |
||||
if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then |
||||
for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do |
||||
_version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'` |
||||
V_CHECK=`expr $_version_tmp \> $_version` |
||||
if test "$V_CHECK" = "1" ; then |
||||
_version=$_version_tmp |
||||
best_path=$ac_boost_path |
||||
fi |
||||
done |
||||
fi |
||||
done |
||||
|
||||
VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'` |
||||
BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE" |
||||
if test "$ac_boost_lib_path" = ""; then |
||||
for libsubdir in $libsubdirs ; do |
||||
if ls "$best_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi |
||||
done |
||||
BOOST_LDFLAGS="-L$best_path/$libsubdir" |
||||
fi |
||||
fi |
||||
|
||||
if test "x$BOOST_ROOT" != "x"; then |
||||
for libsubdir in $libsubdirs ; do |
||||
if ls "$BOOST_ROOT/stage/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi |
||||
done |
||||
if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/$libsubdir" && test -r "$BOOST_ROOT/stage/$libsubdir"; then |
||||
version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'` |
||||
stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'` |
||||
stage_version_shorten=`expr $stage_version : '\([[0-9]]*\.[[0-9]]*\)'` |
||||
V_CHECK=`expr $stage_version_shorten \>\= $_version` |
||||
if test "$V_CHECK" = "1" -a "$ac_boost_lib_path" = "" ; then |
||||
AC_MSG_NOTICE(We will use a staged boost library from $BOOST_ROOT) |
||||
BOOST_CPPFLAGS="-I$BOOST_ROOT" |
||||
BOOST_LDFLAGS="-L$BOOST_ROOT/stage/$libsubdir" |
||||
fi |
||||
fi |
||||
fi |
||||
fi |
||||
|
||||
CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" |
||||
export CPPFLAGS |
||||
LDFLAGS="$LDFLAGS $BOOST_LDFLAGS" |
||||
export LDFLAGS |
||||
|
||||
AC_LANG_PUSH(C++) |
||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ |
||||
@%:@include <boost/version.hpp> |
||||
]], [[ |
||||
#if BOOST_VERSION >= $WANT_BOOST_VERSION |
||||
// Everything is okay |
||||
#else |
||||
# error Boost version is too old |
||||
#endif |
||||
]])],[ |
||||
AC_MSG_RESULT(yes) |
||||
succeeded=yes |
||||
found_system=yes |
||||
],[ |
||||
]) |
||||
AC_LANG_POP([C++]) |
||||
fi |
||||
|
||||
if test "$succeeded" != "yes" ; then |
||||
if test "$_version" = "0" ; then |
||||
AC_MSG_NOTICE([[We could not detect the boost libraries (version $boost_lib_version_req_shorten or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation.]]) |
||||
else |
||||
AC_MSG_NOTICE([Your boost libraries seems to old (version $_version).]) |
||||
fi |
||||
# execute ACTION-IF-NOT-FOUND (if present): |
||||
ifelse([$3], , :, [$3]) |
||||
else |
||||
AC_SUBST(BOOST_CPPFLAGS) |
||||
AC_SUBST(BOOST_LDFLAGS) |
||||
AC_DEFINE(HAVE_BOOST,,[define if the Boost library is available]) |
||||
# execute ACTION-IF-FOUND (if present): |
||||
ifelse([$2], , :, [$2]) |
||||
fi |
||||
|
||||
CPPFLAGS="$CPPFLAGS_SAVED" |
||||
LDFLAGS="$LDFLAGS_SAVED" |
||||
fi |
||||
|
||||
]) |
@ -0,0 +1,113 @@
@@ -0,0 +1,113 @@
|
||||
# =========================================================================== |
||||
# http://www.gnu.org/software/autoconf-archive/ax_boost_date_time.html |
||||
# =========================================================================== |
||||
# |
||||
# SYNOPSIS |
||||
# |
||||
# AX_BOOST_DATE_TIME |
||||
# |
||||
# DESCRIPTION |
||||
# |
||||
# Test for Date_Time library from the Boost C++ libraries. The macro |
||||
# requires a preceding call to AX_BOOST_BASE. Further documentation is |
||||
# available at <http://randspringer.de/boost/index.html>. |
||||
# |
||||
# This macro calls: |
||||
# |
||||
# AC_SUBST(BOOST_DATE_TIME_LIB) |
||||
# |
||||
# And sets: |
||||
# |
||||
# HAVE_BOOST_DATE_TIME |
||||
# |
||||
# LICENSE |
||||
# |
||||
# Copyright (c) 2008 Thomas Porschberg <thomas@randspringer.de> |
||||
# Copyright (c) 2008 Michael Tindal |
||||
# |
||||
# Copying and distribution of this file, with or without modification, are |
||||
# permitted in any medium without royalty provided the copyright notice |
||||
# and this notice are preserved. This file is offered as-is, without any |
||||
# warranty. |
||||
|
||||
#serial 21 |
||||
|
||||
AC_DEFUN([AX_BOOST_DATE_TIME], |
||||
[ |
||||
AC_ARG_WITH([boost-date-time], |
||||
AS_HELP_STRING([--with-boost-date-time@<:@=special-lib@:>@], |
||||
[use the Date_Time library from boost - it is possible to specify a certain library for the linker |
||||
e.g. --with-boost-date-time=boost_date_time-gcc-mt-d-1_33_1 ]), |
||||
[ |
||||
if test "$withval" = "no"; then |
||||
want_boost="no" |
||||
elif test "$withval" = "yes"; then |
||||
want_boost="yes" |
||||
ax_boost_user_date_time_lib="" |
||||
else |
||||
want_boost="yes" |
||||
ax_boost_user_date_time_lib="$withval" |
||||
fi |
||||
], |
||||
[want_boost="yes"] |
||||
) |
||||
|
||||
if test "x$want_boost" = "xyes"; then |
||||
AC_REQUIRE([AC_PROG_CC]) |
||||
CPPFLAGS_SAVED="$CPPFLAGS" |
||||
CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" |
||||
export CPPFLAGS |
||||
|
||||
LDFLAGS_SAVED="$LDFLAGS" |
||||
LDFLAGS="$LDFLAGS $BOOST_LDFLAGS" |
||||
export LDFLAGS |
||||
|
||||
AC_CACHE_CHECK(whether the Boost::Date_Time library is available, |
||||
ax_cv_boost_date_time, |
||||
[AC_LANG_PUSH([C++]) |
||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[@%:@include <boost/date_time/gregorian/gregorian_types.hpp>]], |
||||
[[using namespace boost::gregorian; date d(2002,Jan,10); |
||||
return 0; |
||||
]])], |
||||
ax_cv_boost_date_time=yes, ax_cv_boost_date_time=no) |
||||
AC_LANG_POP([C++]) |
||||
]) |
||||
if test "x$ax_cv_boost_date_time" = "xyes"; then |
||||
AC_DEFINE(HAVE_BOOST_DATE_TIME,,[define if the Boost::Date_Time library is available]) |
||||
BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/@<:@^\/@:>@*//'` |
||||
if test "x$ax_boost_user_date_time_lib" = "x"; then |
||||
for libextension in `ls $BOOSTLIBDIR/libboost_date_time*.so* $BOOSTLIBDIR/libboost_date_time*.dylib* $BOOSTLIBDIR/libboost_date_time*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_date_time.*\)\.so.*$;\1;' -e 's;^lib\(boost_date_time.*\)\.dylib.*$;\1;' -e 's;^lib\(boost_date_time.*\)\.a*$;\1;'` ; do |
||||
ax_lib=${libextension} |
||||
AC_CHECK_LIB($ax_lib, exit, |
||||
[BOOST_DATE_TIME_LIB="-l$ax_lib"; AC_SUBST(BOOST_DATE_TIME_LIB) link_date_time="yes"; break], |
||||
[link_date_time="no"]) |
||||
done |
||||
if test "x$link_date_time" != "xyes"; then |
||||
for libextension in `ls $BOOSTLIBDIR/boost_date_time*.dll* $BOOSTLIBDIR/boost_date_time*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_date_time.*\)\.dll.*$;\1;' -e 's;^\(boost_date_time.*\)\.a.*$;\1;'` ; do |
||||
ax_lib=${libextension} |
||||
AC_CHECK_LIB($ax_lib, exit, |
||||
[BOOST_DATE_TIME_LIB="-l$ax_lib"; AC_SUBST(BOOST_DATE_TIME_LIB) link_date_time="yes"; break], |
||||
[link_date_time="no"]) |
||||
done |
||||
fi |
||||
|
||||
else |
||||
for ax_lib in $ax_boost_user_date_time_lib boost_date_time-$ax_boost_user_date_time_lib; do |
||||
AC_CHECK_LIB($ax_lib, main, |
||||
[BOOST_DATE_TIME_LIB="-l$ax_lib"; AC_SUBST(BOOST_DATE_TIME_LIB) link_date_time="yes"; break], |
||||
[link_date_time="no"]) |
||||
done |
||||
|
||||
fi |
||||
if test "x$ax_lib" = "x"; then |
||||
AC_MSG_ERROR(Could not find a version of the library!) |
||||
fi |
||||
if test "x$link_date_time" != "xyes"; then |
||||
AC_MSG_ERROR(Could not link against $ax_lib !) |
||||
fi |
||||
fi |
||||
|
||||
CPPFLAGS="$CPPFLAGS_SAVED" |
||||
LDFLAGS="$LDFLAGS_SAVED" |
||||
fi |
||||
]) |
@ -0,0 +1,118 @@
@@ -0,0 +1,118 @@
|
||||
# =========================================================================== |
||||
# http://www.gnu.org/software/autoconf-archive/ax_boost_filesystem.html |
||||
# =========================================================================== |
||||
# |
||||
# SYNOPSIS |
||||
# |
||||
# AX_BOOST_FILESYSTEM |
||||
# |
||||
# DESCRIPTION |
||||
# |
||||
# Test for Filesystem library from the Boost C++ libraries. The macro |
||||
# requires a preceding call to AX_BOOST_BASE. Further documentation is |
||||
# available at <http://randspringer.de/boost/index.html>. |
||||
# |
||||
# This macro calls: |
||||
# |
||||
# AC_SUBST(BOOST_FILESYSTEM_LIB) |
||||
# |
||||
# And sets: |
||||
# |
||||
# HAVE_BOOST_FILESYSTEM |
||||
# |
||||
# LICENSE |
||||
# |
||||
# Copyright (c) 2009 Thomas Porschberg <thomas@randspringer.de> |
||||
# Copyright (c) 2009 Michael Tindal |
||||
# Copyright (c) 2009 Roman Rybalko <libtorrent@romanr.info> |
||||
# |
||||
# Copying and distribution of this file, with or without modification, are |
||||
# permitted in any medium without royalty provided the copyright notice |
||||
# and this notice are preserved. This file is offered as-is, without any |
||||
# warranty. |
||||
|
||||
#serial 26 |
||||
|
||||
AC_DEFUN([AX_BOOST_FILESYSTEM], |
||||
[ |
||||
AC_ARG_WITH([boost-filesystem], |
||||
AS_HELP_STRING([--with-boost-filesystem@<:@=special-lib@:>@], |
||||
[use the Filesystem library from boost - it is possible to specify a certain library for the linker |
||||
e.g. --with-boost-filesystem=boost_filesystem-gcc-mt ]), |
||||
[ |
||||
if test "$withval" = "no"; then |
||||
want_boost="no" |
||||
elif test "$withval" = "yes"; then |
||||
want_boost="yes" |
||||
ax_boost_user_filesystem_lib="" |
||||
else |
||||
want_boost="yes" |
||||
ax_boost_user_filesystem_lib="$withval" |
||||
fi |
||||
], |
||||
[want_boost="yes"] |
||||
) |
||||
|
||||
if test "x$want_boost" = "xyes"; then |
||||
AC_REQUIRE([AC_PROG_CC]) |
||||
CPPFLAGS_SAVED="$CPPFLAGS" |
||||
CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" |
||||
export CPPFLAGS |
||||
|
||||
LDFLAGS_SAVED="$LDFLAGS" |
||||
LDFLAGS="$LDFLAGS $BOOST_LDFLAGS" |
||||
export LDFLAGS |
||||
|
||||
LIBS_SAVED=$LIBS |
||||
LIBS="$LIBS $BOOST_SYSTEM_LIB" |
||||
export LIBS |
||||
|
||||
AC_CACHE_CHECK(whether the Boost::Filesystem library is available, |
||||
ax_cv_boost_filesystem, |
||||
[AC_LANG_PUSH([C++]) |
||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[@%:@include <boost/filesystem/path.hpp>]], |
||||
[[using namespace boost::filesystem; |
||||
path my_path( "foo/bar/data.txt" ); |
||||
return 0;]])], |
||||
ax_cv_boost_filesystem=yes, ax_cv_boost_filesystem=no) |
||||
AC_LANG_POP([C++]) |
||||
]) |
||||
if test "x$ax_cv_boost_filesystem" = "xyes"; then |
||||
AC_DEFINE(HAVE_BOOST_FILESYSTEM,,[define if the Boost::Filesystem library is available]) |
||||
BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/@<:@^\/@:>@*//'` |
||||
if test "x$ax_boost_user_filesystem_lib" = "x"; then |
||||
for libextension in `ls -r $BOOSTLIBDIR/libboost_filesystem* 2>/dev/null | sed 's,.*/lib,,' | sed 's,\..*,,'` ; do |
||||
ax_lib=${libextension} |
||||
AC_CHECK_LIB($ax_lib, exit, |
||||
[BOOST_FILESYSTEM_LIB="-l$ax_lib"; AC_SUBST(BOOST_FILESYSTEM_LIB) link_filesystem="yes"; break], |
||||
[link_filesystem="no"]) |
||||
done |
||||
if test "x$link_filesystem" != "xyes"; then |
||||
for libextension in `ls -r $BOOSTLIBDIR/boost_filesystem* 2>/dev/null | sed 's,.*/,,' | sed -e 's,\..*,,'` ; do |
||||
ax_lib=${libextension} |
||||
AC_CHECK_LIB($ax_lib, exit, |
||||
[BOOST_FILESYSTEM_LIB="-l$ax_lib"; AC_SUBST(BOOST_FILESYSTEM_LIB) link_filesystem="yes"; break], |
||||
[link_filesystem="no"]) |
||||
done |
||||
fi |
||||
else |
||||
for ax_lib in $ax_boost_user_filesystem_lib boost_filesystem-$ax_boost_user_filesystem_lib; do |
||||
AC_CHECK_LIB($ax_lib, exit, |
||||
[BOOST_FILESYSTEM_LIB="-l$ax_lib"; AC_SUBST(BOOST_FILESYSTEM_LIB) link_filesystem="yes"; break], |
||||
[link_filesystem="no"]) |
||||
done |
||||
|
||||
fi |
||||
if test "x$ax_lib" = "x"; then |
||||
AC_MSG_ERROR(Could not find a version of the library!) |
||||
fi |
||||
if test "x$link_filesystem" != "xyes"; then |
||||
AC_MSG_ERROR(Could not link against $ax_lib !) |
||||
fi |
||||
fi |
||||
|
||||
CPPFLAGS="$CPPFLAGS_SAVED" |
||||
LDFLAGS="$LDFLAGS_SAVED" |
||||
LIBS="$LIBS_SAVED" |
||||
fi |
||||
]) |
@ -0,0 +1,108 @@
@@ -0,0 +1,108 @@
|
||||
# ============================================================================ |
||||
# http://www.gnu.org/software/autoconf-archive/ax_boost_program_options.html |
||||
# ============================================================================ |
||||
# |
||||
# SYNOPSIS |
||||
# |
||||
# AX_BOOST_PROGRAM_OPTIONS |
||||
# |
||||
# DESCRIPTION |
||||
# |
||||
# Test for program options library from the Boost C++ libraries. The macro |
||||
# requires a preceding call to AX_BOOST_BASE. Further documentation is |
||||
# available at <http://randspringer.de/boost/index.html>. |
||||
# |
||||
# This macro calls: |
||||
# |
||||
# AC_SUBST(BOOST_PROGRAM_OPTIONS_LIB) |
||||
# |
||||
# And sets: |
||||
# |
||||
# HAVE_BOOST_PROGRAM_OPTIONS |
||||
# |
||||
# LICENSE |
||||
# |
||||
# Copyright (c) 2009 Thomas Porschberg <thomas@randspringer.de> |
||||
# |
||||
# Copying and distribution of this file, with or without modification, are |
||||
# permitted in any medium without royalty provided the copyright notice |
||||
# and this notice are preserved. This file is offered as-is, without any |
||||
# warranty. |
||||
|
||||
#serial 22 |
||||
|
||||
AC_DEFUN([AX_BOOST_PROGRAM_OPTIONS], |
||||
[ |
||||
AC_ARG_WITH([boost-program-options], |
||||
AS_HELP_STRING([--with-boost-program-options@<:@=special-lib@:>@], |
||||
[use the program options library from boost - it is possible to specify a certain library for the linker |
||||
e.g. --with-boost-program-options=boost_program_options-gcc-mt-1_33_1 ]), |
||||
[ |
||||
if test "$withval" = "no"; then |
||||
want_boost="no" |
||||
elif test "$withval" = "yes"; then |
||||
want_boost="yes" |
||||
ax_boost_user_program_options_lib="" |
||||
else |
||||
want_boost="yes" |
||||
ax_boost_user_program_options_lib="$withval" |
||||
fi |
||||
], |
||||
[want_boost="yes"] |
||||
) |
||||
|
||||
if test "x$want_boost" = "xyes"; then |
||||
AC_REQUIRE([AC_PROG_CC]) |
||||
export want_boost |
||||
CPPFLAGS_SAVED="$CPPFLAGS" |
||||
CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" |
||||
export CPPFLAGS |
||||
LDFLAGS_SAVED="$LDFLAGS" |
||||
LDFLAGS="$LDFLAGS $BOOST_LDFLAGS" |
||||
export LDFLAGS |
||||
AC_CACHE_CHECK([whether the Boost::Program_Options library is available], |
||||
ax_cv_boost_program_options, |
||||
[AC_LANG_PUSH(C++) |
||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[@%:@include <boost/program_options.hpp> |
||||
]], |
||||
[[boost::program_options::options_description generic("Generic options"); |
||||
return 0;]])], |
||||
ax_cv_boost_program_options=yes, ax_cv_boost_program_options=no) |
||||
AC_LANG_POP([C++]) |
||||
]) |
||||
if test "$ax_cv_boost_program_options" = yes; then |
||||
AC_DEFINE(HAVE_BOOST_PROGRAM_OPTIONS,,[define if the Boost::PROGRAM_OPTIONS library is available]) |
||||
BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/@<:@^\/@:>@*//'` |
||||
if test "x$ax_boost_user_program_options_lib" = "x"; then |
||||
for libextension in `ls $BOOSTLIBDIR/libboost_program_options*.so* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_program_options.*\)\.so.*$;\1;'` `ls $BOOSTLIBDIR/libboost_program_options*.dylib* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_program_options.*\)\.dylib.*$;\1;'` `ls $BOOSTLIBDIR/libboost_program_options*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_program_options.*\)\.a.*$;\1;'` ; do |
||||
ax_lib=${libextension} |
||||
AC_CHECK_LIB($ax_lib, exit, |
||||
[BOOST_PROGRAM_OPTIONS_LIB="-l$ax_lib"; AC_SUBST(BOOST_PROGRAM_OPTIONS_LIB) link_program_options="yes"; break], |
||||
[link_program_options="no"]) |
||||
done |
||||
if test "x$link_program_options" != "xyes"; then |
||||
for libextension in `ls $BOOSTLIBDIR/boost_program_options*.dll* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_program_options.*\)\.dll.*$;\1;'` `ls $BOOSTLIBDIR/boost_program_options*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_program_options.*\)\.a.*$;\1;'` ; do |
||||
ax_lib=${libextension} |
||||
AC_CHECK_LIB($ax_lib, exit, |
||||
[BOOST_PROGRAM_OPTIONS_LIB="-l$ax_lib"; AC_SUBST(BOOST_PROGRAM_OPTIONS_LIB) link_program_options="yes"; break], |
||||
[link_program_options="no"]) |
||||
done |
||||
fi |
||||
else |
||||
for ax_lib in $ax_boost_user_program_options_lib boost_program_options-$ax_boost_user_program_options_lib; do |
||||
AC_CHECK_LIB($ax_lib, main, |
||||
[BOOST_PROGRAM_OPTIONS_LIB="-l$ax_lib"; AC_SUBST(BOOST_PROGRAM_OPTIONS_LIB) link_program_options="yes"; break], |
||||
[link_program_options="no"]) |
||||
done |
||||
fi |
||||
if test "x$ax_lib" = "x"; then |
||||
AC_MSG_ERROR(Could not find a version of the library!) |
||||
fi |
||||
if test "x$link_program_options" != "xyes"; then |
||||
AC_MSG_ERROR([Could not link against [$ax_lib] !]) |
||||
fi |
||||
fi |
||||
CPPFLAGS="$CPPFLAGS_SAVED" |
||||
LDFLAGS="$LDFLAGS_SAVED" |
||||
fi |
||||
]) |
@ -0,0 +1,111 @@
@@ -0,0 +1,111 @@
|
||||
# =========================================================================== |
||||
# http://www.gnu.org/software/autoconf-archive/ax_boost_regex.html |
||||
# =========================================================================== |
||||
# |
||||
# SYNOPSIS |
||||
# |
||||
# AX_BOOST_REGEX |
||||
# |
||||
# DESCRIPTION |
||||
# |
||||
# Test for Regex library from the Boost C++ libraries. The macro requires |
||||
# a preceding call to AX_BOOST_BASE. Further documentation is available at |
||||
# <http://randspringer.de/boost/index.html>. |
||||
# |
||||
# This macro calls: |
||||
# |
||||
# AC_SUBST(BOOST_REGEX_LIB) |
||||
# |
||||
# And sets: |
||||
# |
||||
# HAVE_BOOST_REGEX |
||||
# |
||||
# LICENSE |
||||
# |
||||
# Copyright (c) 2008 Thomas Porschberg <thomas@randspringer.de> |
||||
# Copyright (c) 2008 Michael Tindal |
||||
# |
||||
# Copying and distribution of this file, with or without modification, are |
||||
# permitted in any medium without royalty provided the copyright notice |
||||
# and this notice are preserved. This file is offered as-is, without any |
||||
# warranty. |
||||
|
||||
#serial 22 |
||||
|
||||
AC_DEFUN([AX_BOOST_REGEX], |
||||
[ |
||||
AC_ARG_WITH([boost-regex], |
||||
AS_HELP_STRING([--with-boost-regex@<:@=special-lib@:>@], |
||||
[use the Regex library from boost - it is possible to specify a certain library for the linker |
||||
e.g. --with-boost-regex=boost_regex-gcc-mt-d-1_33_1 ]), |
||||
[ |
||||
if test "$withval" = "no"; then |
||||
want_boost="no" |
||||
elif test "$withval" = "yes"; then |
||||
want_boost="yes" |
||||
ax_boost_user_regex_lib="" |
||||
else |
||||
want_boost="yes" |
||||
ax_boost_user_regex_lib="$withval" |
||||
fi |
||||
], |
||||
[want_boost="yes"] |
||||
) |
||||
|
||||
if test "x$want_boost" = "xyes"; then |
||||
AC_REQUIRE([AC_PROG_CC]) |
||||
CPPFLAGS_SAVED="$CPPFLAGS" |
||||
CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" |
||||
export CPPFLAGS |
||||
|
||||
LDFLAGS_SAVED="$LDFLAGS" |
||||
LDFLAGS="$LDFLAGS $BOOST_LDFLAGS" |
||||
export LDFLAGS |
||||
|
||||
AC_CACHE_CHECK(whether the Boost::Regex library is available, |
||||
ax_cv_boost_regex, |
||||
[AC_LANG_PUSH([C++]) |
||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[@%:@include <boost/regex.hpp> |
||||
]], |
||||
[[boost::regex r(); return 0;]])], |
||||
ax_cv_boost_regex=yes, ax_cv_boost_regex=no) |
||||
AC_LANG_POP([C++]) |
||||
]) |
||||
if test "x$ax_cv_boost_regex" = "xyes"; then |
||||
AC_DEFINE(HAVE_BOOST_REGEX,,[define if the Boost::Regex library is available]) |
||||
BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/@<:@^\/@:>@*//'` |
||||
if test "x$ax_boost_user_regex_lib" = "x"; then |
||||
for libextension in `ls $BOOSTLIBDIR/libboost_regex*.so* $BOOSTLIBDIR/libboost_regex*.dylib* $BOOSTLIBDIR/libboost_regex*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_regex.*\)\.so.*$;\1;' -e 's;^lib\(boost_regex.*\)\.dylib.*;\1;' -e 's;^lib\(boost_regex.*\)\.a.*$;\1;'` ; do |
||||
ax_lib=${libextension} |
||||
AC_CHECK_LIB($ax_lib, exit, |
||||
[BOOST_REGEX_LIB="-l$ax_lib"; AC_SUBST(BOOST_REGEX_LIB) link_regex="yes"; break], |
||||
[link_regex="no"]) |
||||
done |
||||
if test "x$link_regex" != "xyes"; then |
||||
for libextension in `ls $BOOSTLIBDIR/boost_regex*.dll* $BOOSTLIBDIR/boost_regex*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_regex.*\)\.dll.*$;\1;' -e 's;^\(boost_regex.*\)\.a.*$;\1;'` ; do |
||||
ax_lib=${libextension} |
||||
AC_CHECK_LIB($ax_lib, exit, |
||||
[BOOST_REGEX_LIB="-l$ax_lib"; AC_SUBST(BOOST_REGEX_LIB) link_regex="yes"; break], |
||||
[link_regex="no"]) |
||||
done |
||||
fi |
||||
|
||||
else |
||||
for ax_lib in $ax_boost_user_regex_lib boost_regex-$ax_boost_user_regex_lib; do |
||||
AC_CHECK_LIB($ax_lib, main, |
||||
[BOOST_REGEX_LIB="-l$ax_lib"; AC_SUBST(BOOST_REGEX_LIB) link_regex="yes"; break], |
||||
[link_regex="no"]) |
||||
done |
||||
fi |
||||
if test "x$ax_lib" = "x"; then |
||||
AC_MSG_ERROR(Could not find a version of the Boost::Regex library!) |
||||
fi |
||||
if test "x$link_regex" != "xyes"; then |
||||
AC_MSG_ERROR(Could not link against $ax_lib !) |
||||
fi |
||||
fi |
||||
|
||||
CPPFLAGS="$CPPFLAGS_SAVED" |
||||
LDFLAGS="$LDFLAGS_SAVED" |
||||
fi |
||||
]) |
@ -0,0 +1,120 @@
@@ -0,0 +1,120 @@
|
||||
# =========================================================================== |
||||
# http://www.gnu.org/software/autoconf-archive/ax_boost_system.html |
||||
# =========================================================================== |
||||
# |
||||
# SYNOPSIS |
||||
# |
||||
# AX_BOOST_SYSTEM |
||||
# |
||||
# DESCRIPTION |
||||
# |
||||
# Test for System library from the Boost C++ libraries. The macro requires |
||||
# a preceding call to AX_BOOST_BASE. Further documentation is available at |
||||
# <http://randspringer.de/boost/index.html>. |
||||
# |
||||
# This macro calls: |
||||
# |
||||
# AC_SUBST(BOOST_SYSTEM_LIB) |
||||
# |
||||
# And sets: |
||||
# |
||||
# HAVE_BOOST_SYSTEM |
||||
# |
||||
# LICENSE |
||||
# |
||||
# Copyright (c) 2008 Thomas Porschberg <thomas@randspringer.de> |
||||
# Copyright (c) 2008 Michael Tindal |
||||
# Copyright (c) 2008 Daniel Casimiro <dan.casimiro@gmail.com> |
||||
# |
||||
# Copying and distribution of this file, with or without modification, are |
||||
# permitted in any medium without royalty provided the copyright notice |
||||
# and this notice are preserved. This file is offered as-is, without any |
||||
# warranty. |
||||
|
||||
#serial 17 |
||||
|
||||
AC_DEFUN([AX_BOOST_SYSTEM], |
||||
[ |
||||
AC_ARG_WITH([boost-system], |
||||
AS_HELP_STRING([--with-boost-system@<:@=special-lib@:>@], |
||||
[use the System library from boost - it is possible to specify a certain library for the linker |
||||
e.g. --with-boost-system=boost_system-gcc-mt ]), |
||||
[ |
||||
if test "$withval" = "no"; then |
||||
want_boost="no" |
||||
elif test "$withval" = "yes"; then |
||||
want_boost="yes" |
||||
ax_boost_user_system_lib="" |
||||
else |
||||
want_boost="yes" |
||||
ax_boost_user_system_lib="$withval" |
||||
fi |
||||
], |
||||
[want_boost="yes"] |
||||
) |
||||
|
||||
if test "x$want_boost" = "xyes"; then |
||||
AC_REQUIRE([AC_PROG_CC]) |
||||
AC_REQUIRE([AC_CANONICAL_BUILD]) |
||||
CPPFLAGS_SAVED="$CPPFLAGS" |
||||
CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" |
||||
export CPPFLAGS |
||||
|
||||
LDFLAGS_SAVED="$LDFLAGS" |
||||
LDFLAGS="$LDFLAGS $BOOST_LDFLAGS" |
||||
export LDFLAGS |
||||
|
||||
AC_CACHE_CHECK(whether the Boost::System library is available, |
||||
ax_cv_boost_system, |
||||
[AC_LANG_PUSH([C++]) |
||||
CXXFLAGS_SAVE=$CXXFLAGS |
||||
|
||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[@%:@include <boost/system/error_code.hpp>]], |
||||
[[boost::system::system_category]])], |
||||
ax_cv_boost_system=yes, ax_cv_boost_system=no) |
||||
CXXFLAGS=$CXXFLAGS_SAVE |
||||
AC_LANG_POP([C++]) |
||||
]) |
||||
if test "x$ax_cv_boost_system" = "xyes"; then |
||||
AC_SUBST(BOOST_CPPFLAGS) |
||||
|
||||
AC_DEFINE(HAVE_BOOST_SYSTEM,,[define if the Boost::System library is available]) |
||||
BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/@<:@^\/@:>@*//'` |
||||
|
||||
LDFLAGS_SAVE=$LDFLAGS |
||||
if test "x$ax_boost_user_system_lib" = "x"; then |
||||
for libextension in `ls -r $BOOSTLIBDIR/libboost_system* 2>/dev/null | sed 's,.*/lib,,' | sed 's,\..*,,'` ; do |
||||
ax_lib=${libextension} |
||||
AC_CHECK_LIB($ax_lib, exit, |
||||
[BOOST_SYSTEM_LIB="-l$ax_lib"; AC_SUBST(BOOST_SYSTEM_LIB) link_system="yes"; break], |
||||
[link_system="no"]) |
||||
done |
||||
if test "x$link_system" != "xyes"; then |
||||
for libextension in `ls -r $BOOSTLIBDIR/boost_system* 2>/dev/null | sed 's,.*/,,' | sed -e 's,\..*,,'` ; do |
||||
ax_lib=${libextension} |
||||
AC_CHECK_LIB($ax_lib, exit, |
||||
[BOOST_SYSTEM_LIB="-l$ax_lib"; AC_SUBST(BOOST_SYSTEM_LIB) link_system="yes"; break], |
||||
[link_system="no"]) |
||||
done |
||||
fi |
||||
|
||||
else |
||||
for ax_lib in $ax_boost_user_system_lib boost_system-$ax_boost_user_system_lib; do |
||||
AC_CHECK_LIB($ax_lib, exit, |
||||
[BOOST_SYSTEM_LIB="-l$ax_lib"; AC_SUBST(BOOST_SYSTEM_LIB) link_system="yes"; break], |
||||
[link_system="no"]) |
||||
done |
||||
|
||||
fi |
||||
if test "x$ax_lib" = "x"; then |
||||
AC_MSG_ERROR(Could not find a version of the library!) |
||||
fi |
||||
if test "x$link_system" = "xno"; then |
||||
AC_MSG_ERROR(Could not link against $ax_lib !) |
||||
fi |
||||
fi |
||||
|
||||
CPPFLAGS="$CPPFLAGS_SAVED" |
||||
LDFLAGS="$LDFLAGS_SAVED" |
||||
fi |
||||
]) |
@ -0,0 +1,141 @@
@@ -0,0 +1,141 @@
|
||||
# ============================================================================ |
||||
# http://www.gnu.org/software/autoconf-archive/ax_cxx_compile_stdcxx_11.html |
||||
# ============================================================================ |
||||
# |
||||
# SYNOPSIS |
||||
# |
||||
# AX_CXX_COMPILE_STDCXX_11([ext|noext],[mandatory|optional]) |
||||
# |
||||
# DESCRIPTION |
||||
# |
||||
# Check for baseline language coverage in the compiler for the C++11 |
||||
# standard; if necessary, add switches to CXXFLAGS to enable support. |
||||
# |
||||
# The first argument, if specified, indicates whether you insist on an |
||||
# extended mode (e.g. -std=gnu++11) or a strict conformance mode (e.g. |
||||
# -std=c++11). If neither is specified, you get whatever works, with |
||||
# preference for an extended mode. |
||||
# |
||||
# The second argument, if specified 'mandatory' or if left unspecified, |
||||
# indicates that baseline C++11 support is required and that the macro |
||||
# should error out if no mode with that support is found. If specified |
||||
# 'optional', then configuration proceeds regardless, after defining |
||||
# HAVE_CXX11 if and only if a supporting mode is found. |
||||
# |
||||
# LICENSE |
||||
# |
||||
# Copyright (c) 2008 Benjamin Kosnik <bkoz@redhat.com> |
||||
# Copyright (c) 2012 Zack Weinberg <zackw@panix.com> |
||||
# Copyright (c) 2013 Roy Stogner <roystgnr@ices.utexas.edu> |
||||
# Copyright (c) 2014 Alexey Sokolov <sokolov@google.com> |
||||
# |
||||
# Copying and distribution of this file, with or without modification, are |
||||
# permitted in any medium without royalty provided the copyright notice |
||||
# and this notice are preserved. This file is offered as-is, without any |
||||
# warranty. |
||||
|
||||
#serial 4 |
||||
|
||||
m4_define([_AX_CXX_COMPILE_STDCXX_11_testbody], [[ |
||||
template <typename T> |
||||
struct check |
||||
{ |
||||
static_assert(sizeof(int) <= sizeof(T), "not big enough"); |
||||
}; |
||||
|
||||
struct Base { |
||||
virtual void f() {} |
||||
}; |
||||
struct Child : public Base { |
||||
virtual void f() {} |
||||
}; |
||||
|
||||
typedef check<check<bool>> right_angle_brackets; |
||||
|
||||
int a; |
||||
decltype(a) b; |
||||
|
||||
typedef check<int> check_type; |
||||
check_type c; |
||||
check_type&& cr = static_cast<check_type&&>(c); |
||||
|
||||
auto d = a; |
||||
]]) |
||||
|
||||
AC_DEFUN([AX_CXX_COMPILE_STDCXX_11], [dnl |
||||
m4_if([$1], [], [], |
||||
[$1], [ext], [], |
||||
[$1], [noext], [], |
||||
[m4_fatal([invalid argument `$1' to AX_CXX_COMPILE_STDCXX_11])])dnl |
||||
m4_if([$2], [], [ax_cxx_compile_cxx11_required=true], |
||||
[$2], [mandatory], [ax_cxx_compile_cxx11_required=true], |
||||
[$2], [optional], [ax_cxx_compile_cxx11_required=false], |
||||
[m4_fatal([invalid second argument `$2' to AX_CXX_COMPILE_STDCXX_11])]) |
||||
AC_LANG_PUSH([C++])dnl |
||||
ac_success=no |
||||
AC_CACHE_CHECK(whether $CXX supports C++11 features by default, |
||||
ax_cv_cxx_compile_cxx11, |
||||
[AC_COMPILE_IFELSE([AC_LANG_SOURCE([_AX_CXX_COMPILE_STDCXX_11_testbody])], |
||||
[ax_cv_cxx_compile_cxx11=yes], |
||||
[ax_cv_cxx_compile_cxx11=no])]) |
||||
if test x$ax_cv_cxx_compile_cxx11 = xyes; then |
||||
ac_success=yes |
||||
fi |
||||
|
||||
m4_if([$1], [noext], [], [dnl |
||||
if test x$ac_success = xno; then |
||||
for switch in -std=gnu++11 -std=gnu++0x; do |
||||
cachevar=AS_TR_SH([ax_cv_cxx_compile_cxx11_$switch]) |
||||
AC_CACHE_CHECK(whether $CXX supports C++11 features with $switch, |
||||
$cachevar, |
||||
[ac_save_CXXFLAGS="$CXXFLAGS" |
||||
CXXFLAGS="$CXXFLAGS $switch" |
||||
AC_COMPILE_IFELSE([AC_LANG_SOURCE([_AX_CXX_COMPILE_STDCXX_11_testbody])], |
||||
[eval $cachevar=yes], |
||||
[eval $cachevar=no]) |
||||
CXXFLAGS="$ac_save_CXXFLAGS"]) |
||||
if eval test x\$$cachevar = xyes; then |
||||
CXXFLAGS="$CXXFLAGS $switch" |
||||
ac_success=yes |
||||
break |
||||
fi |
||||
done |
||||
fi]) |
||||
|
||||
m4_if([$1], [ext], [], [dnl |
||||
if test x$ac_success = xno; then |
||||
for switch in -std=c++11 -std=c++0x; do |
||||
cachevar=AS_TR_SH([ax_cv_cxx_compile_cxx11_$switch]) |
||||
AC_CACHE_CHECK(whether $CXX supports C++11 features with $switch, |
||||
$cachevar, |
||||
[ac_save_CXXFLAGS="$CXXFLAGS" |
||||
CXXFLAGS="$CXXFLAGS $switch" |
||||
AC_COMPILE_IFELSE([AC_LANG_SOURCE([_AX_CXX_COMPILE_STDCXX_11_testbody])], |
||||
[eval $cachevar=yes], |
||||
[eval $cachevar=no]) |
||||
CXXFLAGS="$ac_save_CXXFLAGS"]) |
||||
if eval test x\$$cachevar = xyes; then |
||||
CXXFLAGS="$CXXFLAGS $switch" |
||||
ac_success=yes |
||||
break |
||||
fi |
||||
done |
||||
fi]) |
||||
AC_LANG_POP([C++]) |
||||
if test x$ax_cxx_compile_cxx11_required = xtrue; then |
||||
if test x$ac_success = xno; then |
||||
AC_MSG_ERROR([*** A compiler with support for C++11 language features is required.]) |
||||
fi |
||||
else |
||||
if test x$ac_success = xno; then |
||||
HAVE_CXX11=0 |
||||
AC_MSG_NOTICE([No compiler with C++11 support was found]) |
||||
else |
||||
HAVE_CXX11=1 |
||||
AC_DEFINE(HAVE_CXX11,1, |
||||
[define if the compiler supports basic C++11 syntax]) |
||||
fi |
||||
|
||||
AC_SUBST(HAVE_CXX11) |
||||
fi |
||||
]) |
@ -0,0 +1,332 @@
@@ -0,0 +1,332 @@
|
||||
# =========================================================================== |
||||
# http://www.gnu.org/software/autoconf-archive/ax_pthread.html |
||||
# =========================================================================== |
||||
# |
||||
# SYNOPSIS |
||||
# |
||||
# AX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) |
||||
# |
||||
# DESCRIPTION |
||||
# |
||||
# This macro figures out how to build C programs using POSIX threads. It |
||||
# sets the PTHREAD_LIBS output variable to the threads library and linker |
||||
# flags, and the PTHREAD_CFLAGS output variable to any special C compiler |
||||
# flags that are needed. (The user can also force certain compiler |
||||
# flags/libs to be tested by setting these environment variables.) |
||||
# |
||||
# Also sets PTHREAD_CC to any special C compiler that is needed for |
||||
# multi-threaded programs (defaults to the value of CC otherwise). (This |
||||
# is necessary on AIX to use the special cc_r compiler alias.) |
||||
# |
||||
# NOTE: You are assumed to not only compile your program with these flags, |
||||
# but also link it with them as well. e.g. you should link with |
||||
# $PTHREAD_CC $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS $LIBS |
||||
# |
||||
# If you are only building threads programs, you may wish to use these |
||||
# variables in your default LIBS, CFLAGS, and CC: |
||||
# |
||||
# LIBS="$PTHREAD_LIBS $LIBS" |
||||
# CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
||||
# CC="$PTHREAD_CC" |
||||
# |
||||
# In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute constant |
||||
# has a nonstandard name, defines PTHREAD_CREATE_JOINABLE to that name |
||||
# (e.g. PTHREAD_CREATE_UNDETACHED on AIX). |
||||
# |
||||
# Also HAVE_PTHREAD_PRIO_INHERIT is defined if pthread is found and the |
||||
# PTHREAD_PRIO_INHERIT symbol is defined when compiling with |
||||
# PTHREAD_CFLAGS. |
||||
# |
||||
# ACTION-IF-FOUND is a list of shell commands to run if a threads library |
||||
# is found, and ACTION-IF-NOT-FOUND is a list of commands to run it if it |
||||
# is not found. If ACTION-IF-FOUND is not specified, the default action |
||||
# will define HAVE_PTHREAD. |
||||
# |
||||
# Please let the authors know if this macro fails on any platform, or if |
||||
# you have any other suggestions or comments. This macro was based on work |
||||
# by SGJ on autoconf scripts for FFTW (http://www.fftw.org/) (with help |
||||
# from M. Frigo), as well as ac_pthread and hb_pthread macros posted by |
||||
# Alejandro Forero Cuervo to the autoconf macro repository. We are also |
||||
# grateful for the helpful feedback of numerous users. |
||||
# |
||||
# Updated for Autoconf 2.68 by Daniel Richard G. |
||||
# |
||||
# LICENSE |
||||
# |
||||
# Copyright (c) 2008 Steven G. Johnson <stevenj@alum.mit.edu> |
||||
# Copyright (c) 2011 Daniel Richard G. <skunk@iSKUNK.ORG> |
||||
# |
||||
# 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 3 of the License, 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, see <http://www.gnu.org/licenses/>. |
||||
# |
||||
# As a special exception, the respective Autoconf Macro's copyright owner |
||||
# gives unlimited permission to copy, distribute and modify the configure |
||||
# scripts that are the output of Autoconf when processing the Macro. You |
||||
# need not follow the terms of the GNU General Public License when using |
||||
# or distributing such scripts, even though portions of the text of the |
||||
# Macro appear in them. The GNU General Public License (GPL) does govern |
||||
# all other use of the material that constitutes the Autoconf Macro. |
||||
# |
||||
# This special exception to the GPL applies to versions of the Autoconf |
||||
# Macro released by the Autoconf Archive. When you make and distribute a |
||||
# modified version of the Autoconf Macro, you may extend this special |
||||
# exception to the GPL to apply to your modified version as well. |
||||
|
||||
#serial 21 |
||||
|
||||
AU_ALIAS([ACX_PTHREAD], [AX_PTHREAD]) |
||||
AC_DEFUN([AX_PTHREAD], [ |
||||
AC_REQUIRE([AC_CANONICAL_HOST]) |
||||
AC_LANG_PUSH([C]) |
||||
ax_pthread_ok=no |
||||
|
||||
# We used to check for pthread.h first, but this fails if pthread.h |
||||
# requires special compiler flags (e.g. on True64 or Sequent). |
||||
# It gets checked for in the link test anyway. |
||||
|
||||
# First of all, check if the user has set any of the PTHREAD_LIBS, |
||||
# etcetera environment variables, and if threads linking works using |
||||
# them: |
||||
if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then |
||||
save_CFLAGS="$CFLAGS" |
||||
CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
||||
save_LIBS="$LIBS" |
||||
LIBS="$PTHREAD_LIBS $LIBS" |
||||
AC_MSG_CHECKING([for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS]) |
||||
AC_TRY_LINK_FUNC([pthread_join], [ax_pthread_ok=yes]) |
||||
AC_MSG_RESULT([$ax_pthread_ok]) |
||||
if test x"$ax_pthread_ok" = xno; then |
||||
PTHREAD_LIBS="" |
||||
PTHREAD_CFLAGS="" |
||||
fi |
||||
LIBS="$save_LIBS" |
||||
CFLAGS="$save_CFLAGS" |
||||
fi |
||||
|
||||
# We must check for the threads library under a number of different |
||||
# names; the ordering is very important because some systems |
||||
# (e.g. DEC) have both -lpthread and -lpthreads, where one of the |
||||
# libraries is broken (non-POSIX). |
||||
|
||||
# Create a list of thread flags to try. Items starting with a "-" are |
||||
# C compiler flags, and other items are library names, except for "none" |
||||
# which indicates that we try without any flags at all, and "pthread-config" |
||||
# which is a program returning the flags for the Pth emulation library. |
||||
|
||||
ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" |
||||
|
||||
# The ordering *is* (sometimes) important. Some notes on the |
||||
# individual items follow: |
||||
|
||||
# pthreads: AIX (must check this before -lpthread) |
||||
# none: in case threads are in libc; should be tried before -Kthread and |
||||
# other compiler flags to prevent continual compiler warnings |
||||
# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) |
||||
# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) |
||||
# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) |
||||
# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) |
||||
# -pthreads: Solaris/gcc |
||||
# -mthreads: Mingw32/gcc, Lynx/gcc |
||||
# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it |
||||
# doesn't hurt to check since this sometimes defines pthreads too; |
||||
# also defines -D_REENTRANT) |
||||
# ... -mt is also the pthreads flag for HP/aCC |
||||
# pthread: Linux, etcetera |
||||
# --thread-safe: KAI C++ |
||||
# pthread-config: use pthread-config program (for GNU Pth library) |
||||
|
||||
case ${host_os} in |
||||
solaris*) |
||||
|
||||
# On Solaris (at least, for some versions), libc contains stubbed |
||||
# (non-functional) versions of the pthreads routines, so link-based |
||||
# tests will erroneously succeed. (We need to link with -pthreads/-mt/ |
||||
# -lpthread.) (The stubs are missing pthread_cleanup_push, or rather |
||||
# a function called by this macro, so we could check for that, but |
||||
# who knows whether they'll stub that too in a future libc.) So, |
||||
# we'll just look for -pthreads and -lpthread first: |
||||
|
||||
ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" |
||||
;; |
||||
|
||||
darwin*) |
||||
ax_pthread_flags="-pthread $ax_pthread_flags" |
||||
;; |
||||
esac |
||||
|
||||
# Clang doesn't consider unrecognized options an error unless we specify |
||||
# -Werror. We throw in some extra Clang-specific options to ensure that |
||||
# this doesn't happen for GCC, which also accepts -Werror. |
||||
|
||||
AC_MSG_CHECKING([if compiler needs -Werror to reject unknown flags]) |
||||
save_CFLAGS="$CFLAGS" |
||||
ax_pthread_extra_flags="-Werror" |
||||
CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument" |
||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([int foo(void);],[foo()])], |
||||
[AC_MSG_RESULT([yes])], |
||||
[ax_pthread_extra_flags= |
||||
AC_MSG_RESULT([no])]) |
||||
CFLAGS="$save_CFLAGS" |
||||
|
||||
if test x"$ax_pthread_ok" = xno; then |
||||
for flag in $ax_pthread_flags; do |
||||
|
||||
case $flag in |
||||
none) |
||||
AC_MSG_CHECKING([whether pthreads work without any flags]) |
||||
;; |
||||
|
||||
-*) |
||||
AC_MSG_CHECKING([whether pthreads work with $flag]) |
||||
PTHREAD_CFLAGS="$flag" |
||||
;; |
||||
|
||||
pthread-config) |
||||
AC_CHECK_PROG([ax_pthread_config], [pthread-config], [yes], [no]) |
||||
if test x"$ax_pthread_config" = xno; then continue; fi |
||||
PTHREAD_CFLAGS="`pthread-config --cflags`" |
||||
PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" |
||||
;; |
||||
|
||||
*) |
||||
AC_MSG_CHECKING([for the pthreads library -l$flag]) |
||||
PTHREAD_LIBS="-l$flag" |
||||
;; |
||||
esac |
||||
|
||||
save_LIBS="$LIBS" |
||||
save_CFLAGS="$CFLAGS" |
||||
LIBS="$PTHREAD_LIBS $LIBS" |
||||
CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags" |
||||
|
||||
# Check for various functions. We must include pthread.h, |
||||
# since some functions may be macros. (On the Sequent, we |
||||
# need a special flag -Kthread to make this header compile.) |
||||
# We check for pthread_join because it is in -lpthread on IRIX |
||||
# while pthread_create is in libc. We check for pthread_attr_init |
||||
# due to DEC craziness with -lpthreads. We check for |
||||
# pthread_cleanup_push because it is one of the few pthread |
||||
# functions on Solaris that doesn't have a non-functional libc stub. |
||||
# We try pthread_create on general principles. |
||||
AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <pthread.h> |
||||
static void routine(void *a) { a = 0; } |
||||
static void *start_routine(void *a) { return a; }], |
||||
[pthread_t th; pthread_attr_t attr; |
||||
pthread_create(&th, 0, start_routine, 0); |
||||
pthread_join(th, 0); |
||||
pthread_attr_init(&attr); |
||||
pthread_cleanup_push(routine, 0); |
||||
pthread_cleanup_pop(0) /* ; */])], |
||||
[ax_pthread_ok=yes], |
||||
[]) |
||||
|
||||
LIBS="$save_LIBS" |
||||
CFLAGS="$save_CFLAGS" |
||||
|
||||
AC_MSG_RESULT([$ax_pthread_ok]) |
||||
if test "x$ax_pthread_ok" = xyes; then |
||||
break; |
||||
fi |
||||
|
||||
PTHREAD_LIBS="" |
||||
PTHREAD_CFLAGS="" |
||||
done |
||||
fi |
||||
|
||||
# Various other checks: |
||||
if test "x$ax_pthread_ok" = xyes; then |
||||
save_LIBS="$LIBS" |
||||
LIBS="$PTHREAD_LIBS $LIBS" |
||||
save_CFLAGS="$CFLAGS" |
||||
CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
||||
|
||||
# Detect AIX lossage: JOINABLE attribute is called UNDETACHED. |
||||
AC_MSG_CHECKING([for joinable pthread attribute]) |
||||
attr_name=unknown |
||||
for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do |
||||
AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <pthread.h>], |
||||
[int attr = $attr; return attr /* ; */])], |
||||
[attr_name=$attr; break], |
||||
[]) |
||||
done |
||||
AC_MSG_RESULT([$attr_name]) |
||||
if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then |
||||
AC_DEFINE_UNQUOTED([PTHREAD_CREATE_JOINABLE], [$attr_name], |
||||
[Define to necessary symbol if this constant |
||||
uses a non-standard name on your system.]) |
||||
fi |
||||
|
||||
AC_MSG_CHECKING([if more special flags are required for pthreads]) |
||||
flag=no |
||||
case ${host_os} in |
||||
aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";; |
||||
osf* | hpux*) flag="-D_REENTRANT";; |
||||
solaris*) |
||||
if test "$GCC" = "yes"; then |
||||
flag="-D_REENTRANT" |
||||
else |
||||
# TODO: What about Clang on Solaris? |
||||
flag="-mt -D_REENTRANT" |
||||
fi |
||||
;; |
||||
esac |
||||
AC_MSG_RESULT([$flag]) |
||||
if test "x$flag" != xno; then |
||||
PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" |
||||
fi |
||||
|
||||
AC_CACHE_CHECK([for PTHREAD_PRIO_INHERIT], |
||||
[ax_cv_PTHREAD_PRIO_INHERIT], [ |
||||
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <pthread.h>]], |
||||
[[int i = PTHREAD_PRIO_INHERIT;]])], |
||||
[ax_cv_PTHREAD_PRIO_INHERIT=yes], |
||||
[ax_cv_PTHREAD_PRIO_INHERIT=no]) |
||||
]) |
||||
AS_IF([test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"], |
||||
[AC_DEFINE([HAVE_PTHREAD_PRIO_INHERIT], [1], [Have PTHREAD_PRIO_INHERIT.])]) |
||||
|
||||
LIBS="$save_LIBS" |
||||
CFLAGS="$save_CFLAGS" |
||||
|
||||
# More AIX lossage: compile with *_r variant |
||||
if test "x$GCC" != xyes; then |
||||
case $host_os in |
||||
aix*) |
||||
AS_CASE(["x/$CC"], |
||||
[x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6], |
||||
[#handle absolute path differently from PATH based program lookup |
||||
AS_CASE(["x$CC"], |
||||
[x/*], |
||||
[AS_IF([AS_EXECUTABLE_P([${CC}_r])],[PTHREAD_CC="${CC}_r"])], |
||||
[AC_CHECK_PROGS([PTHREAD_CC],[${CC}_r],[$CC])])]) |
||||
;; |
||||
esac |
||||
fi |
||||
fi |
||||
|
||||
test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" |
||||
|
||||
AC_SUBST([PTHREAD_LIBS]) |
||||
AC_SUBST([PTHREAD_CFLAGS]) |
||||
AC_SUBST([PTHREAD_CC]) |
||||
|
||||
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: |
||||
if test x"$ax_pthread_ok" = xyes; then |
||||
ifelse([$1],,[AC_DEFINE([HAVE_PTHREAD],[1],[Define if you have POSIX threads libraries and header files.])],[$1]) |
||||
: |
||||
else |
||||
ax_pthread_ok=no |
||||
$2 |
||||
fi |
||||
AC_LANG_POP |
||||
])dnl AX_PTHREAD |
Loading…
Reference in new issue