Annotation of libaitio/configure.in, revision 1.16
1.1 misho 1: #
2: # $Author: misho $
1.16 ! misho 3: # $Id: configure.in,v 1.15.2.1 2012/02/05 12:19:21 misho Exp $
1.1 misho 4: #
1.16 ! misho 5: AC_INIT(libaitio, 2.4, misho@elwix.org)
1.1 misho 6: AC_CONFIG_SRCDIR([src/aitio.c])
7: AC_CONFIG_HEADERS([inc/config.h])
8:
9: # Checks for programs.
10: AC_PROG_CC
11: AC_PROG_INSTALL
12:
13: AC_CANONICAL_HOST
14: AC_CANONICAL_TARGET
15:
16: AC_CHECK_TOOL(MKDEP, mkdep, no)
17: AC_SUBST(MKDEP)
18:
19: CFLAGS="-Wall -O2 -fPIC -I/usr/local/include ${CFLAGS}"
20: LDFLAGS="-L/usr/local/lib ${LDFLAGS}"
21:
1.8 misho 22: AC_CHECK_LIB([crypto], [EVP_CipherInit_ex])
1.13 misho 23: AC_CHECK_LIB([util], [forkpty])
1.8 misho 24:
1.1 misho 25: # Checks for header files.
26: AC_CHECK_HEADERS([stdlib.h string.h sys/ioctl.h termios.h unistd.h])
27:
28: # Checks for typedefs, structures, and compiler characteristics.
29: AC_C_INLINE
30:
31: # Checks for library functions.
32: AC_FUNC_MALLOC
33: AC_FUNC_REALLOC
34: AC_CHECK_FUNCS([memset regcomp strchr strerror])
35:
36: DEBUG=no
37: AC_MSG_CHECKING(Debug Build)
38: AC_ARG_ENABLE(debug,
39: [ --enable-debug Build library with debug information and additional messages],
40: [ DEBUG=$enableval
41: case "$enableval" in
42: yes)
43: AC_DEFINE(__DEBUG,, [Build libraries with debug information and additional messages])
44: CFLAGS="-g ${CFLAGS}"
45: ;;
46: *)
47: AC_DEFINE(NDEBUG,, [Build w/o assert() support])
48: ;;
49: esac ],)
50: AC_MSG_RESULT($DEBUG)
51:
1.7 misho 52: AIO=no
1.5 misho 53: AC_MSG_CHECKING(AIO Build)
54: AC_ARG_ENABLE(aio,
55: [ --enable-aio Build library with AIO operations],
56: [ AIO=$enableval
57: case "$enableval" in
58: yes)
59: AC_DEFINE(AIO_OPS,, [Build library with AIO operations])
60: ;;
61: *)
62: ;;
1.7 misho 63: esac ],)
1.5 misho 64: AC_MSG_RESULT($AIO)
65:
1.1 misho 66: AC_CONFIG_FILES([Makefile
67: inc/Makefile
68: lib/Makefile
69: src/Makefile])
70: AC_OUTPUT
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>