|
version 1.1.2.1, 2008/09/30 14:33:36
|
version 1.6, 2011/05/01 17:24:28
|
|
Line 1
|
Line 1
|
| AC_INIT(libaitcfg, 3.0, misho@openbsd-bg.org) | # |
| | # $Author$ |
| | # $Id$ |
| | # |
| | AC_INIT(libaitcfg, 4.0, misho@openbsd-bg.org) |
| AC_CONFIG_SRCDIR([src/aitcfg.c]) |
AC_CONFIG_SRCDIR([src/aitcfg.c]) |
| AC_CONFIG_HEADERS([inc/config.h]) |
AC_CONFIG_HEADERS([inc/config.h]) |
| |
|
|
Line 16 CFLAGS="-Wall -O2 -fPIC -I/usr/local/include ${CFLAGS}
|
Line 20 CFLAGS="-Wall -O2 -fPIC -I/usr/local/include ${CFLAGS}
|
| LDFLAGS="-L/usr/local/lib ${LDFLAGS}" |
LDFLAGS="-L/usr/local/lib ${LDFLAGS}" |
| |
|
| # Checks for libraries. |
# Checks for libraries. |
| |
AC_CHECK_LIB([aitio], [io_TrimStr]) |
| |
|
| # Checks for header files. |
# Checks for header files. |
| |
|
|
Line 28 AC_FUNC_MALLOC
|
Line 33 AC_FUNC_MALLOC
|
| AC_FUNC_REALLOC |
AC_FUNC_REALLOC |
| AC_CHECK_FUNCS([bzero memmove memset strchr strspn]) |
AC_CHECK_FUNCS([bzero memmove memset strchr strspn]) |
| |
|
| |
DEBUG=no |
| AC_MSG_CHECKING(Debug Build) |
AC_MSG_CHECKING(Debug Build) |
| AC_ARG_ENABLE(debug, |
AC_ARG_ENABLE(debug, |
| [ --enable-debug Build library with debug information and additional messages], |
[ --enable-debug Build library with debug information and additional messages], |
|
Line 35 AC_ARG_ENABLE(debug,
|
Line 41 AC_ARG_ENABLE(debug,
|
| case "$enableval" in |
case "$enableval" in |
| yes) |
yes) |
| AC_DEFINE(__DEBUG,, [Build libraries with debug information and additional messages]) |
AC_DEFINE(__DEBUG,, [Build libraries with debug information and additional messages]) |
| |
CFLAGS="-g ${CFLAGS}" |
| ;; |
;; |
| *) |
*) |
| ;; |
;; |