version 1.1, 2010/03/24 16:00:14
|
version 1.7, 2014/02/04 16:58:17
|
Line 2
|
Line 2
|
# $Author$ |
# $Author$ |
# $Id$ |
# $Id$ |
# |
# |
AC_INIT(libaitsync, 1.0, misho@aitbg.com) | AC_INIT(libaitsync, 2.1, misho@elwix.org) |
AC_CONFIG_SRCDIR([src/aitsync.c]) |
AC_CONFIG_SRCDIR([src/aitsync.c]) |
AC_CONFIG_HEADERS([inc/config.h]) |
AC_CONFIG_HEADERS([inc/config.h]) |
|
|
|
ac_cv_func_malloc_0_nonnull="yes" |
|
ac_cv_func_realloc_0_nonnull="yes" |
|
|
# Checks for programs. |
# Checks for programs. |
AC_PROG_CC |
AC_PROG_CC |
AC_PROG_RANLIB |
AC_PROG_RANLIB |
Line 17 AC_CANONICAL_TARGET
|
Line 20 AC_CANONICAL_TARGET
|
AC_CHECK_TOOL(MKDEP, mkdep, no) |
AC_CHECK_TOOL(MKDEP, mkdep, no) |
AC_SUBST(MKDEP) |
AC_SUBST(MKDEP) |
|
|
CFLAGS="-Wall -O2 -fPIC -I/usr/local/include ${CFLAGS}" | CFLAGS="-Wall -O2 -fPIC ${CFLAGS}" |
LDFLAGS="-L/usr/local/lib ${LDFLAGS}" | LDFLAGS="${LDFLAGS}" |
|
|
# Checks for libraries. |
# Checks for libraries. |
AC_CHECK_LIB([z], [deflate]) |
AC_CHECK_LIB([z], [deflate]) |
|
AC_CHECK_LIB([elwix], [crcAdler]) |
|
|
# Checks for header files. |
# Checks for header files. |
AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/param.h unistd.h]) |
AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/param.h unistd.h]) |
Line 36 AC_FUNC_MALLOC
|
Line 40 AC_FUNC_MALLOC
|
AC_FUNC_MMAP |
AC_FUNC_MMAP |
AC_FUNC_REALLOC |
AC_FUNC_REALLOC |
AC_CHECK_FUNCS([memset munmap]) |
AC_CHECK_FUNCS([memset munmap]) |
|
AC_CHECK_FUNCS([mkstemps]) |
|
|
DEBUG=no |
DEBUG=no |
AC_MSG_CHECKING(Debug Build) |
AC_MSG_CHECKING(Debug Build) |