summaryrefslogtreecommitdiff
path: root/m4
Commit message (Collapse)AuthorAgeFilesLines
* Do not require strict C++ mode and update ax_cxx_compile_stdcxx.m4Tatsuhiro Tsujikawa2023-11-022-148/+1018
|
* configure: Use pkg-config to find libs whenever possibleMichał Górny2016-11-121-19/+0
| | | | | | | | | | | | | | | | | | | | | | | | | Use pkg-config to find cppunit, libxml2 and expat. All those libraries provide pkg-config files, and in all of those cases the pkg-config macro is superior to the custom macros used currently. The advantages of pkg-config files include: - Explicit static linking support via --static. Currently, e.g. 'xml2-config --libs' prints all libraries needed for static linking when doing dynamic linking unnecessary, resulting in unnecessary direct deps. - Better cross-build support. You don't have to build the additional *-config tools for target. - Better multilib support. Per-ABI pkgconfig directories are commonly supported while packages usually fail to look for per-CHOST *-config variants. - Better override support. The current macros allow little to no result overrides, the pkg-config macros let you pass FOO_CFLAGS and FOO_LIBS manually. - Cleaner version checks. The code used in libxml.m4 is really creepy.
* Add --enable-werror option to configure to enable warning flagsTatsuhiro Tsujikawa2016-01-221-0/+74
|
* Don't modify user variables (e.g., CFLAGS, LIBS, etc)Tatsuhiro Tsujikawa2016-01-221-0/+2
|
* Make AX_CXX_COMPILE_STDCXX_11 test for -stdlib=libc++ via std::shared_ptrNils Maier2013-08-211-28/+43
| | | | | | | | | | The clang shipped with OSX XCode and clangs not build enabling libcpp, will default to the libstdc++ headers and lib installed on the system. In the OSX case, that libstdc++ is the one bundles with gcc-4.2, which is far too old to provide all required C++11 types, such as std::shared_ptr. Hence, the C++11 check should try to compile a program with a C++11 type and try -stdlib=libc++ if the default lib fails to compile said program.
* Make the configure check for C++11 compiler mandatoryNils Maier2013-08-211-1/+1
| | | | | Remove stray "dnl", so that mandatory actually works with (my) autoreconf.
* Use AX_CXX_COMPILE_STDCXX_11 macro to detect C++0x/C++11 support in compilerTatsuhiro Tsujikawa2013-06-221-0/+133
|
* aria2_arg.m4: Doc fixTatsuhiro Tsujikawa2013-03-121-1/+1
|
* Revert dbb12d1bc86e8884a21b1a4dbb3fa57d0358acc3Tatsuhiro Tsujikawa2013-03-121-3/+3
|
* aria2_arg.m4: Doc fix and use default=yes instead of checkTatsuhiro Tsujikawa2013-03-041-3/+3
|
* Make configure argument meaning more consistent and obvious.Nils Maier2013-03-031-3/+19
| | | | | | | | | | | Most other software uses --disable/--without for features it does build or at least check by default. Change aria2 configure options so that: * --enable-*: do not build by default, unless --enable specified * --disable-*: check and build by default, unless --disable specified * --with-*: do not use by default, unless --with specified * --without-*: check and use by default, unless without specified
* Check with pkg-config only: c-ares, openssl, sqlite3 and zlib.Tatsuhiro Tsujikawa2012-04-075-223/+3
| | | | | Removed --with-*-prefix configure option for c-ares, openssl, sqlite3, zlib and expat. Use CPPFLAGS and/or PKG_CONFIG_PATH instead.
* Use pkg-config for libcares. Dropped c-ares pre-1.5 support.Tatsuhiro Tsujikawa2011-02-181-34/+28
|
* Renamed libz.m4 as zlib.m4Tatsuhiro Tsujikawa2011-02-181-0/+0
|
* Replaced HAVE_LIBSSL with HAVE_OPENSSLTatsuhiro Tsujikawa2011-02-181-2/+2
|
* Replaced HAVE_LIBZ with HAVE_ZLIBTatsuhiro Tsujikawa2011-02-181-7/+7
|
* Use PKG_CONFIG_PATH along with PKG_CHECK_MODULES in openssl.m4 and libz.m4.Tatsuhiro Tsujikawa2011-02-182-31/+28
| | | | | Replaced LIBZ_LIB and LIBZ_CPPFLAGS with ZLIB_LIB and ZLIB_CFLAGS respectively.
* Use LIBS and CPPFLAGS instead of substituting them individually perTatsuhiro Tsujikawa2011-02-181-1/+1
| | | | library.
* Check the availability of ares_set_servers and ares_addr_node.Tatsuhiro Tsujikawa2011-02-181-1/+6
|
* Removed autogenerated files by automake/autoconf.Tatsuhiro Tsujikawa2010-11-2734-4193/+0
| | | | | | | To generate these files, run 'autoreconf -i'. Since libgnutls.m4 is no longer distributed, we removed AM_PATH_LIBGNUTLS from configure.ac.
* 2010-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>Tatsuhiro Tsujikawa2010-11-111-0/+6
| | | | | | | | | | Added sha-224, sha-384, sha-512 hash function support. * m4/openssl.m4 * src/MessageDigest.cc * src/LibgcryptMessageDigestImpl.cc * src/LibsslMessageDigestImpl.cc
* 2010-10-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>Tatsuhiro Tsujikawa2010-10-281-2/+1
| | | | | | | Fixed compiler warning when checking c-ares version. * m4/libcares.m4
* 2010-10-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>Tatsuhiro Tsujikawa2010-10-031-2/+3
| | | | | | | | | | | | Fixed compile error on OpenBSD4.7(i386). In openssl.m4, we first search libcrypto and then libssl because libssl depends on libcrypto on OpenBSD. * src/Netrc.cc * src/Netrc.h * src/Triplet.h * src/openssl.m4
* 2010-07-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>Tatsuhiro Tsujikawa2010-07-271-0/+17
| | | | | | | | Rewritten check for fallocate using AC_COMPILE_IFELSE. * configure.ac * m4/fallocate.m4
* 2010-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>Tatsuhiro Tsujikawa2010-06-011-29/+29
| | | | | | | | Bump up version number to 1.9.4 * configure.ac * doc/aria2c.1.txt
* 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>Tatsuhiro Tsujikawa2010-01-061-0/+19
| | | | | | | | | | | | | | Updated autoconf/automake auxiliary files. * INSTALL * config.guess * config.sub * depcomp * install-sh * m4/intldir.m4 * missing * mkinstalldirs
* 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>Tatsuhiro Tsujikawa2009-12-051-2/+17
| | | | | | | | | | In configure script, if --with-PACKAGE and --enable-FEATURE are given and PACKAGE is missing in the system or FEATURE cannot be enabled, print error message and stop the script. * configure.ac * m4/aria2_arg.m4
* 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>Tatsuhiro Tsujikawa2009-10-101-2/+2
| | | | | | | | | | | | Added --install to ACLOCAL_AMFLAGS. Removed m4 from SUBDIRS. Updated automake 1.11 and autoconf 2.64. Replaced some obsolute macros with new one. * Makefile.am * configure.ac * m4/aria2_arg.m4
* 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>Tatsuhiro Tsujikawa2009-10-103-465/+0
| | | | | | | | | | Removed Makefile.am in m4 directory. * configure.ac * m4/ChangeLog * m4/Makefile.am * m4/Makefile.in
* 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>Tatsuhiro Tsujikawa2009-10-105-256/+0
| | | | | | | | | | | Removed unused m4 macros. * m4/intldir.m4 * m4/inttypes.m4 * m4/isc-posix.m4 * m4/libgnutls-extra.m4 * m4/ulonglong.m4
* 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>Tatsuhiro Tsujikawa2009-08-091-0/+2
| | | | | | | | Fixed sqlite3.m4 macro so that sqlite3_open_v2 function is detected properly. * m4/sqlite3.m4
* 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>Tatsuhiro Tsujikawa2009-05-232-20/+7
| | | | | | | | | | | | Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since PKG_CHECK_MODULES macro uses latter name. * m4/sqlite3.m4 * src/Makefile.am * test/Makefile.am
* 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>Tatsuhiro Tsujikawa2009-05-232-7/+165
| | | | | | | | | Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check presence of libgnutls using pkg-config first. If it fails, fall back to old macro libgnutls.m4. * configure.ac
* 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>Tatsuhiro Tsujikawa2009-05-061-3/+4
| | | | | | | | | Generated configure and Makefile.in using autoconf 2.63 and automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter. * configure.ac
* 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>Tatsuhiro Tsujikawa2008-12-031-0/+1
| | | | | | | | | | | | | Enabled --check-certificate by default. Added compile time(configure) option --with-ca-bundle to specify CA bundle. Warn if --check-certificate=true and --ca-certificate is not specified or loading CA certificate is failed. * configure.ac * src/MultiUrlRequestInfo.cc * src/OptionHandlerFactory.cc * src/message.h
* 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>Tatsuhiro Tsujikawa2008-11-182-47/+12
| | | | | | | | | | | | Dropped ares support. * README * configure.ac * m4/libares.m4: Removed. * src/AsyncNameResolver.cc * src/Makefile.am * test/Makefile.am
* 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>Tatsuhiro Tsujikawa2008-10-086-14/+725
| | | | | | | | | | | Added missing m4 macros. * m4/cppunit.m4 * m4/libgcrypt.m4 * m4/libgnutls-extra.m4 * m4/libgnutls.m4 * m4/libxml2.m4
* 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>Tatsuhiro Tsujikawa2008-10-041-0/+1
| | | | | | | | | | Use sqlite3_open if sqlite3_open_v2 is not available. * src/Sqlite3MozCookieParser.cc * src/Sqlite3MozCookieParser.h * m4/sqlite3.m4 * test/Sqlite3MozCookieParserTest.cc
* 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>Tatsuhiro Tsujikawa2008-09-092-8/+37
| | | | | | | | | | Merged from stable-0.15 * m4/libcares.m4 Use pkg-config * m4/sqlite3.m4
* 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>Tatsuhiro Tsujikawa2008-09-031-20/+41
| | | | | | | Use pkg-config if is is available. * m4/openssl.m4
* 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>Tatsuhiro Tsujikawa2008-08-172-4/+39
| | | | | | | | | | | | | | | | | | | | | | | | | Added firefox3 cookie support based on the patch submitted by tizianomueller. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable this functionality. * configure.ac * m4/sqlite3.m4 * src/CookieBoxFactory.cc * src/CookieBoxFactory.h * src/Makefile.am * src/Makefile.in * src/Sqlite3MozCookieParser.cc * src/Sqlite3MozCookieParser.h * src/main.cc * test/CookieBoxFactoryTest.cc * test/Makefile.am * test/Makefile.in * test/Sqlite3MozCookieParserTest.cc * test/badcookies.sqlite * test/cookies.sqlite
* 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>Tatsuhiro Tsujikawa2008-08-041-1/+1
| | | | | | | | Fixed the bug that configure --enable-FEATURE actually disables FEATURE. * m4/aria2_arg.m4
* 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>Tatsuhiro Tsujikawa2008-06-293-14/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added gzip, deflate decoding support in HTTP using libz. If compiled with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header to a HTTP server. If a server returns "Content-Encoding: gzip" or "Content-Encoding: deflate" then, aria2 decodes the response body on the fly and writes decoded data to a local disk. * README * README.html * configure.ac * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively. * m4/libz.m4 * src/Decoder.h * src/DownloadCommand.cc * src/DownloadCommand.h * src/Exception.h * src/GZipDecoder.cc * src/GZipDecoder.h * src/HttpHeader.cc * src/HttpHeader.h * src/HttpRequest.cc * src/HttpRequest.h * src/HttpResponse.cc * src/HttpResponse.h * src/HttpResponseCommand.cc * src/Makefile.am * test/GZipDecoderTest.cc * test/HttpRequestTest.cc * test/HttpResponseTest.cc * test/Makefile.am * test/Makefile.in * test/gzip_decode_test.gz
* 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>Tatsuhiro Tsujikawa2008-06-101-60/+41
| | | | | | | Bump up version number to 0.14.0b. * src/configure.ac
* 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>Tatsuhiro Tsujikawa2008-02-0232-411/+2014
| | | | | | | | | | | | | | | | | | | | Fixed compiler warning about redefinition of SIZE_MAX. Use common.h instead of config.h directly here. * src/Platform.{h, cc} The check of ENABLE_NLS is made in gettext.h, so it is not required here. * common.h 2008-02-02 gettextize <bug-gnu-gettext@gnu.org> Updated gettext related files. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
* 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>Tatsuhiro Tsujikawa2007-12-142-4/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixed possible memory leak when an exception is thrown. * src/XML2SAXMetalinkProcessor.cc Added Expat support. If both libxml2 and Expat are installed, then libxml2 is used by default. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and ExpatMetalinkProcessor according to the configuration. * src/ExpatMetalinkProcessor.{h, cc} * src/main.cc: Removed libxml2 specific header and init/free function. * src/MetalinkProcessorFactory.{h, cc} * src/MetalinkHelper.cc * src/Metalinker.h: Removed unnecessary libxml2 header. * src/MetalinkProcessor.h * test/XML2SAXMetalinkProcessorTest.cc: Removed because MetalinkProcessorTest is used instead. * test/MetalinkProcessorTest.cc: Added. It is actually the same with XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with MetalinkProcessorFactory::newInstance(). * m4/libexpat.m4 * configure.ac: Added configuration options for libexpat.
* 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>Tatsuhiro Tsujikawa2007-11-252-2/+22
| | | | | | | | | | | Added the check to see whether ares_host_callback accepts timeouts with c-ares; only c-ares 1.5.0 or newer accepts it. * src/NameResolver.{h, cc} * m4/libcares.m4 * configure.ac: Set C++ for language choice.
* 2007-08-10 Ross Smith II <aria2spam at smithii dot com>Tatsuhiro Tsujikawa2007-08-141-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move sleep functions to Util class: * src/Util.cc (sleep): New function. (usleep): New function. * src/DownloadCommand.cc: sleep -> Util::sleep * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep MinGW build enhancements. The following files are added: * src/timegm.{c,h} Changes to support the above new files: * configure.ac * src/Makefile.am * src/a2time.h * src/Util.cc: * src/strptime.c: Added support for %Z option. Miscellenous build fixes/enhancements. * configure.ac: Added summary report. * src/Platform.h: Tweaked #include's. * src/a2netcompat.h: Tweaked #include's. * src/strptime.h: Tweaked #include's. * src/gai_strerror.c: Tweaked #include's. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H * src/getaddrinfo.h: Moved #ifndef __MINGW32__ * src/gettimeofday.h: Added HAVE_CONFIG_H
* 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>Tatsuhiro Tsujikawa2007-08-081-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MessageDigestHelper is introduced in order to simplify the use of message digest. Removed repeated code. The message digest algorithm is now specified by string, like "sha1", "md5". * src/messageDigest.{h, cc} * src/MessageDigestHelper.{h, cc}: New class. * src/DefaultPieceStorage.cc * src/DefaultBtContext.{h, cc} (computeFastSet): New function. (setInfoHash): Added for unit testing. (setNumPieces): Added for unit testing. * src/DefaultBtInteractive.cc * src/BtPieceMessage.cc * src/Peer.cc * src/Checksum.h * src/message.h * src/IteratableChecksumValidator.h * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator inside it. * src/SegmentMan.{h, cc} (checkIntegrity): Removed. * src/IteratableChunkChecksumValidator.{h, cc} * src/Util.h (sha1Sum): Removed. (simpleMessageDigest): Removed. (fileChecksum): Removed. (computeFastSet): Removed. * src/ShaVisitor.cc * src/ChunkChecksum.h * src/DownloadCommand.cc Removed messageDigest virtual functions. * src/MultiDiskAdaptor.{h, cc} * src/DiskAdaptor.h * src/ByteArrayDiskWriter.h * src/DiskWriter.h * src/DiskAdaptorWriter.h * src/AbstractSingleDiskAdaptor.{h, cc} * src/AbstractDiskWriter.{h, cc} Fixed comilation error when message digest is disabled. * src/MetalinkEntry.{h, cc} * src/MetalinkRequestInfo.cc Removed srandom and random. * src/SimpleRandomizer.h Added size() virtual function to DiskAdaptor * src/MultiDiskAdaptor.h Fixed the bug that causes that files are not opened correctly in multi-file torrent. * src/TorrentRequestInfo.cc * src/MultiDiskAdaptor.cc Added SHA256 support * src/messageDigest.cc * src/Xml2MetalinkProcessor.cc Show supported message digest algorithms * src/main.cc Updated contact info. * src/main.cc
* 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>Tatsuhiro Tsujikawa2007-07-311-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make a2netcompat.h include a2io.h to fix compilation error: * src/a2netcompat.h * src/SocketCore.cc: Removed include of a2io.h * src/Util.cc: Removed include of a2io.h Gather time related functions to a2time.h: * src/a2time.h: New file. * src/DefaultPeerStorage.cc * src/SimpleLogger.cc * src/Util.{h, cc} * src/SimpleRandomizer.h * src/TimeA2.{h,cc} * src/DownloadCommand.cc * src/main.cc Removed #ifdef __MINGW32__ since gai_strerror is included in a2netcompat.h: * src/NameResolver.cc Fixed compilation error without openssl: * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h Added default block to suppress compiler warnings: * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator()) 2007-07-26 Ross Smith II <aria2spam at smithii dot com> MinGW build enhancements. The following files are added: * src/gai_strerror.{c,h} * src/gettimeofday.{c,h} Changes to support the above new files: * configure.ac * src/Makefile.am * src/a2netcompat.h * src/TimeA2.cc * src/DefaultPeerStorage.cc * src/NameResolver.cc: removed mingw_strerror() function. * src/SocketCore.cc: removed mingw_strerror() function. Miscellaneous MinGW build fixes. * src/a2io.h: Use _lseeki64() instead of lseek() * src/common.h * src/DefaultFileAllocator.cc * src/GlowFileAllocator.cc * src/main.cc: Moved #include "prefs.h" to quiet compile error. * src/NameResolver.cc (callback): Changed int32_t to int. (resolve): Changed int32_t to int. * src/Platform.cc * src/Platform.h * test/MultiDiskWriterTest.cc * test/PeerMessageUtilTest.cc * src/localtime_r.c: Add DeleteCriticalSection() and at exit(). Other enhancements and fixes. * src/HttpRequestCommand.cc (executeInternal) Use non-blocking socket for HTTPS (MinGW only). * src/SocketCore.cc: (error): New function to abstract errno/WSAGetLastError(). (errorMsg): New function to abstract errno/WSAGetLastError(). (initiateSecureConnection): Added more detailed error reporting. * src/SocketCore.h: Added private variable blocking, to allow proper handling of OpenSSL psuedo-errors. * src/message.h (EX_SSL_INIT_FAILURE) (EX_SSL_IO_ERROR) (EX_SSL_PROTOCOL_ERROR) (EX_SSL_UNKNOWN_ERROR) (EX_SSL_CONNECT_ERROR) (EX_SOCKET_BLOCKING) (EX_SOCKET_NONBLOCKING) (EX_SOCKET_UNKNOWN_ERROR) * src/Util.cc (setGlobalSignalHandler): Renamed signal to sig as signal is a reserved name. (httpGMT): Fixed typo.