Annotation of libaitwww/configure.in, revision 1.3.2.2
1.1 misho 1: #
2: # $Author: misho $
1.3.2.2 ! misho 3: # $Id: configure.in,v 1.3.2.1 2012/07/22 22:16:33 misho Exp $
1.1 misho 4: #
1.3.2.1 misho 5: AC_INIT(libaitwww, 1.3, misho@elwix.org)
1.1 misho 6: AC_CONFIG_SRCDIR([src/aitwww.c])
7: AC_CONFIG_HEADERS([inc/config.h])
8:
9: # Checks for programs.
10: AC_PROG_CC
11: AC_PROG_INSTALL
12:
13: # Checks for libraries.
14: AC_CANONICAL_HOST
15: AC_CANONICAL_TARGET
16:
17: AC_CHECK_TOOL(MKDEP, mkdep, no)
18: AC_SUBST(MKDEP)
19:
20: CFLAGS="-Wall -O2 -fPIC -I/usr/local/include ${CFLAGS}"
21: LDFLAGS="-L/usr/local/lib ${LDFLAGS}"
22:
23:
1.3.2.2 ! misho 24: AC_CHECK_LIB(aitio, [mpool_malloc])
! 25:
1.1 misho 26: # Checks for header files.
1.3.2.2 ! misho 27: AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/socket.h unistd.h aitio.h])
1.1 misho 28:
29: # Checks for typedefs, structures, and compiler characteristics.
30: AC_C_INLINE
31: AC_TYPE_SIZE_T
32:
33: # Checks for library functions.
34: AC_FUNC_MALLOC
35: AC_FUNC_REALLOC
36: AC_CHECK_FUNCS([memchr memset strcasecmp strchr strcspn strdup strerror strncasecmp strspn strstr strtol])
37:
38: DEBUG=no
39: AC_MSG_CHECKING(Debug Build)
40: AC_ARG_ENABLE(debug,
41: [ --enable-debug Build library with debug information and additional messages],
42: [ DEBUG=$enableval
43: case "$enableval" in
44: yes)
45: AC_DEFINE(__DEBUG,, [Build libraries with debug information and additional messages])
46: CFLAGS="-g ${CFLAGS}"
47: ;;
48: *)
49: AC_DEFINE(NDEBUG,, [Build w/o assert() support])
50: ;;
51: esac ],)
52: AC_MSG_RESULT($DEBUG)
53:
54:
55: AC_CONFIG_FILES([Makefile
56: inc/Makefile
57: lib/Makefile
58: src/Makefile])
59: AC_OUTPUT
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>