Annotation of libaitio/configure.in, revision 1.30.2.1
1.1 misho 1: #
2: # $Author: misho $
1.30.2.1! misho 3: # $Id: configure.in,v 1.30 2012/11/19 21:12:03 misho Exp $
1.1 misho 4: #
1.30.2.1! misho 5: AC_INIT(libaitio, 4.0, 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.23 misho 23: AC_CHECK_LIB([pthread], [pthread_mutex_init])
1.13 misho 24: AC_CHECK_LIB([util], [forkpty])
1.20 misho 25: AC_CHECK_LIB([rt], [aio_read])
1.27 misho 26: AC_CHECK_LIB([aitcrc], [crcFletcher16])
1.8 misho 27:
1.1 misho 28: # Checks for header files.
29: AC_CHECK_HEADERS([stdlib.h string.h sys/ioctl.h termios.h unistd.h])
30:
31: # Checks for typedefs, structures, and compiler characteristics.
32: AC_C_INLINE
33:
34: # Checks for library functions.
35: AC_FUNC_MALLOC
36: AC_FUNC_REALLOC
37: AC_CHECK_FUNCS([memset regcomp strchr strerror])
38:
39: DEBUG=no
40: AC_MSG_CHECKING(Debug Build)
41: AC_ARG_ENABLE(debug,
42: [ --enable-debug Build library with debug information and additional messages],
43: [ DEBUG=$enableval
44: case "$enableval" in
45: yes)
46: CFLAGS="-g ${CFLAGS}"
47: ;;
48: *)
49: AC_DEFINE(NDEBUG,, [Build w/o assert() support])
50: ;;
51: esac ],)
52: AC_MSG_RESULT($DEBUG)
53:
1.7 misho 54: AIO=no
1.5 misho 55: AC_MSG_CHECKING(AIO Build)
56: AC_ARG_ENABLE(aio,
1.22 misho 57: [ --enable-aio Build library with AIO operations ],
1.5 misho 58: [ AIO=$enableval
59: case "$enableval" in
60: yes)
61: AC_DEFINE(AIO_OPS,, [Build library with AIO operations])
62: ;;
63: *)
64: ;;
1.7 misho 65: esac ],)
1.5 misho 66: AC_MSG_RESULT($AIO)
67:
1.22 misho 68: #MPOOL=no
69: #AC_MSG_CHECKING(Use ELWIX MPOOL)
70: #AC_ARG_ENABLE(mpool,
71: # [ --enable-mpool Build library with MPOOL operations ],
72: # [ MPOOL=$enableval
73: # case "$enableval" in
74: # yes)
75: # AC_DEFINE(USE_MPOOL,, [Build library with MPOOL operations])
76: # ;;
77: # *)
78: # ;;
79: # esac ],)
80: #AC_MSG_RESULT($MPOOL)
81:
1.1 misho 82: AC_CONFIG_FILES([Makefile
83: inc/Makefile
84: lib/Makefile
85: src/Makefile])
86: AC_OUTPUT
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>