1
0
mirror of https://github.com/libuv/libuv synced 2025-03-28 21:13:16 +00:00
libuv/configure.ac

69 lines
3.1 KiB
Plaintext
Raw Normal View History

# Copyright (c) 2013, Ben Noordhuis <info@bnoordhuis.nl>
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
AC_PREREQ(2.57)
2016.04.08, Version 1.9.0 (Stable) Changes since version 1.8.0: * win: wait for full timeout duration (João Reis) * unix: fix support for uClibc-ng (Martin Bark) * doc: indicate where new test files need to be added (Dave) * test,unix: fix logic error in test runner (Ben Noordhuis) * fs: don't nullify req->bufs on EINTR (Dave) * osx: set the default thread stack size to RLIMIT_STACK (Saúl Ibarra Corretgé) * build: invoke libtoolize with --copy (Ben Noordhuis) * test: fixup eintr_handling (Saúl Ibarra Corretgé) * osx: avoid compilation warning with Clang (Saúl Ibarra Corretgé) * test,win: fix compilation with shared lib (Alexis Murzeau) * test: fix race condition in pipe-close-stdout (Imran Iqbal) * unix,win: add uv_os_tmpdir() (cjihrig) * ios: fix undefined PTHREAD_STACK_MIN (Didiet) * test: fix threadpool_multiple_event_loops for AIX (Imran Iqbal) * unix: report errors for unpollable fds (Ben Noordhuis) * win: fix watching root files (Nicholas Vavilov) * build,win: print the Visual Studio version in use (Saúl Ibarra Corretgé) * build,win: remove unneeded condition from GYP file (Saúl Ibarra Corretgé) * test,win: fix compilation warning (Saúl Ibarra Corretgé) * test: use uv_loop_close and assert its result (Nan Xiang) * build: map 'AMD64' host arch to 'x64' (Ben Noordhuis) * osx: protected use of potentially undefined macro (Samuel Lorétan) * linux: fix compilation with musl (Saúl Ibarra Corretgé) * doc: describe how to make release builds on Unix (Saúl Ibarra Corretgé) * doc: add missing link in README (Saúl Ibarra Corretgé) * build: python 2.x/3.x consistent print usage (Rasmus Christian Pedersen) * test: assume no IPv6 if interfaces cannot be listed (Nan Xiang) * darwin: replace F_FULLFSYNC with fdatasync syscall (Saúl Ibarra Corretgé) * doc: add missing write callback to example (Nándor István Krácser) * build: compile with -D_THREAD_SAFE on AIX (Imran Iqbal) * test: fix threadpool_multiple_event_loops on PPC (Imran Iqbal) * test: reduce timeout in tcp_close_while_connecting (Imran Iqbal) * unix, win: consistently null-terminate buffers (Saúl Ibarra Corretgé) * unix, win: count null byte on UV_ENOBUFS (Saúl Ibarra Corretgé) * test: fix deadlocks in uv_cond_wait (Katsutoshi Horie) * linux: fix cpu count (Lukasz Jagiello) * unix: fix uv__handle_type for AIX (Imran Iqbal) * linux: call fclose(), fix fdopen() memory leak (Ben Noordhuis) * win: remove unneeded condition (Saúl Ibarra Corretgé) * unix: fix compile error in Android using bionic (Robert Chiras) * linux: add braces to multi-statement if (Kári Tristan Helgason) * doc: add @cjihrig as a maintainer (Saúl Ibarra Corretgé) * unix: add fork-safe open file function (Kári Tristan Helgason) * linux: replace calls to fopen with uv__open_file (Kári Tristan Helgason) * linux: remove redundant call to rewind() (Krishnaraj Bhat) * win: remove duplicated code when processing fsevents (Saúl Ibarra Corretgé) * test: fix poll_bad_fdtype for AIX (Imran Iqbal) * linux: fix error checking in uv__open_file (Saúl Ibarra Corretgé) * poll: add UV_DISCONNECT event (Santiago Gimeno) * fs: realpath: fix string size before converting (Yuval Brik) * win: use native APIs for UTF conversions (cjihrig) * doc: clarify uv_loop_close() (Ben Noordhuis) * unix: retry ioctl(TIOCGWINSZ) on EINTR (Ben Noordhuis) * win,build: remove unused build defines (Saúl Ibarra Corretgé) * win: fix buffer overflow in fs events (Joran Dirk Greef) * win: fix uv_relative_path and remove dead branch (Joran Dirk Greef) * unix: use open(2) with O_CLOEXEC on OS X (Kári Tristan Helgason) * test: add missing copyright header (cjihrig) * aix: fix 'POLLRDHUP undeclared' build error (Ben Noordhuis) * unix,win: add uv_get_passwd() (cjihrig) * process: fix uv_spawn edge-case (Santiago Gimeno) * test: use %ld for printing uid/gid (Ben Noordhuis) * aix: fix ahafs implementation (Imran Iqbal) * aix: do not store absolute path to ahafs (Imran Iqbal) * process: close process pipes safely (Santiago Gimeno) * unix: open ttyname instead of /dev/tty (Enno Boland) * unix: remove outdated comment (Kári Tristan Helgason)
2016-04-07 12:14:56 +02:00
AC_INIT([libuv], [1.9.0], [https://github.com/libuv/libuv/issues])
AC_CONFIG_MACRO_DIR([m4])
m4_include([m4/libuv-extra-automake-flags.m4])
m4_include([m4/as_case.m4])
2014-09-14 15:09:48 +03:00
m4_include([m4/libuv-check-flags.m4])
AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects] UV_EXTRA_AUTOMAKE_FLAGS)
AC_CANONICAL_HOST
AC_ENABLE_SHARED
AC_ENABLE_STATIC
AC_PROG_CC
AM_PROG_CC_C_O
CC_CHECK_CFLAGS_APPEND([-fvisibility=hidden])
CC_CHECK_CFLAGS_APPEND([-g])
CC_CHECK_CFLAGS_APPEND([-std=gnu89])
CC_CHECK_CFLAGS_APPEND([-pedantic])
CC_CHECK_CFLAGS_APPEND([-Wall])
CC_CHECK_CFLAGS_APPEND([-Wextra])
CC_CHECK_CFLAGS_APPEND([-Wno-unused-parameter])
# AM_PROG_AR is not available in automake v0.11 but it's essential in v0.12.
m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
# autoconf complains if AC_PROG_LIBTOOL precedes AM_PROG_AR.
AC_PROG_LIBTOOL
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
LT_INIT
# TODO(bnoordhuis) Check for -pthread vs. -pthreads
AC_CHECK_LIB([dl], [dlopen])
AC_CHECK_LIB([kstat], [kstat_lookup])
AC_CHECK_LIB([kvm], [kvm_open])
AC_CHECK_LIB([nsl], [gethostbyname])
AC_CHECK_LIB([perfstat], [perfstat_cpu])
AC_CHECK_LIB([pthread], [pthread_mutex_init])
AC_CHECK_LIB([rt], [clock_gettime])
AC_CHECK_LIB([sendfile], [sendfile])
AC_CHECK_LIB([socket], [socket])
AC_SYS_LARGEFILE
AM_CONDITIONAL([AIX], [AS_CASE([$host_os],[aix*], [true], [false])])
AM_CONDITIONAL([ANDROID], [AS_CASE([$host_os],[linux-android*],[true], [false])])
AM_CONDITIONAL([DARWIN], [AS_CASE([$host_os],[darwin*], [true], [false])])
AM_CONDITIONAL([DRAGONFLY],[AS_CASE([$host_os],[dragonfly*], [true], [false])])
AM_CONDITIONAL([FREEBSD], [AS_CASE([$host_os],[freebsd*], [true], [false])])
AM_CONDITIONAL([LINUX], [AS_CASE([$host_os],[linux*], [true], [false])])
AM_CONDITIONAL([NETBSD], [AS_CASE([$host_os],[netbsd*], [true], [false])])
AM_CONDITIONAL([OPENBSD], [AS_CASE([$host_os],[openbsd*], [true], [false])])
AM_CONDITIONAL([SUNOS], [AS_CASE([$host_os],[solaris*], [true], [false])])
AM_CONDITIONAL([WINNT], [AS_CASE([$host_os],[mingw*], [true], [false])])
AC_CHECK_HEADERS([sys/ahafs_evProds.h])
AC_CHECK_PROG(PKG_CONFIG, pkg-config, yes)
AM_CONDITIONAL([HAVE_PKG_CONFIG], [test "x$PKG_CONFIG" != "x"])
AS_IF([test "x$PKG_CONFIG" != "x"], [
AC_CONFIG_FILES([libuv.pc])
2013-12-06 09:43:44 +01:00
])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT