Annotation of libaitcfg/configure.in, revision 1.1.2.3
1.1.2.1 misho 1: AC_INIT(libaitcfg, 3.0, misho@openbsd-bg.org)
2: AC_CONFIG_SRCDIR([src/aitcfg.c])
3: AC_CONFIG_HEADERS([inc/config.h])
4:
5: # Checks for programs.
6: AC_PROG_CC
7: AC_PROG_INSTALL
8:
9: AC_CANONICAL_HOST
10: AC_CANONICAL_TARGET
11:
12: AC_CHECK_TOOL(MKDEP, mkdep, no)
13: AC_SUBST(MKDEP)
14:
15: CFLAGS="-Wall -O2 -fPIC -I/usr/local/include ${CFLAGS}"
16: LDFLAGS="-L/usr/local/lib ${LDFLAGS}"
17:
18: # Checks for libraries.
19:
20: # Checks for header files.
21:
22: # Checks for typedefs, structures, and compiler characteristics.
23: AC_C_CONST
24: AC_C_INLINE
25:
26: # Checks for library functions.
27: AC_FUNC_MALLOC
28: AC_FUNC_REALLOC
29: AC_CHECK_FUNCS([bzero memmove memset strchr strspn])
30:
1.1.2.3 ! misho 31: DEBUG=no
1.1.2.1 misho 32: AC_MSG_CHECKING(Debug Build)
33: AC_ARG_ENABLE(debug,
34: [ --enable-debug Build library with debug information and additional messages],
35: [ DEBUG=$enableval
36: case "$enableval" in
37: yes)
1.1.2.2 misho 38: AC_DEFINE(_DEBUG,, [Build libraries with debug information and additional messages])
1.1.2.1 misho 39: ;;
40: *)
41: ;;
42: esac ],)
43: AC_MSG_RESULT($DEBUG)
44:
45: AC_CONFIG_FILES([Makefile
46: inc/Makefile
47: lib/Makefile
48: src/Makefile])
49: AC_OUTPUT
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>