version 1.1.2.3, 2008/09/30 14:56:51
|
version 1.11, 2012/08/06 14:53:34
|
Line 1
|
Line 1
|
AC_INIT(libaitcfg, 3.0, misho@openbsd-bg.org) | # |
| # $Author$ |
| # $Id$ |
| # |
| AC_INIT(libaitcfg, 5.4, misho@elwix.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([pthread], [pthread_mutex_lock]) |
|
AC_CHECK_LIB([aitio], [io_TrimStr]) |
|
AC_CHECK_LIB([aitcrc], [crcFletcher16]) |
|
|
# Checks for header files. |
# Checks for header files. |
|
|
Line 35 AC_ARG_ENABLE(debug,
|
Line 42 AC_ARG_ENABLE(debug,
|
[ DEBUG=$enableval |
[ DEBUG=$enableval |
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}" |
;; |
;; |
*) |
*) |
|
AC_DEFINE(NDEBUG,, [No debug, remove asserts]) |
;; |
;; |
esac ],) |
esac ],) |
AC_MSG_RESULT($DEBUG) |
AC_MSG_RESULT($DEBUG) |