Annotation of fwmaker/configure.in, revision 1.2
1.1 misho 1: AC_INIT(fwmaker, 1.0, misho@elwix.org)
2: AC_CONFIG_HEADERS([inc/config.h])
3: AC_CONFIG_SRCDIR([src/fwmaker.c])
4:
1.2 ! misho 5: ac_cv_func_malloc_0_nonnull="yes"
! 6: ac_cv_func_realloc_0_nonnull="yes"
! 7:
1.1 misho 8: # Checks for programs.
9: AC_PROG_CC
10: AC_PROG_INSTALL
11:
12: AC_CANONICAL_HOST
13: AC_CANONICAL_TARGET
14:
15: AC_CHECK_TOOL(MKDEP, mkdep, ../mkdep)
16: AC_SUBST(MKDEP)
17:
1.2 ! misho 18: CFLAGS="${CFLAGS:=-I/usr/local/include} -Wall -O2 -fPIC"
! 19: LDFLAGS="${LDFLAGS:=-L/usr/local/lib}"
! 20:
1.1 misho 21: # Checks for libraries.
1.2 ! misho 22: AC_CHECK_LIB([aitcli], [cli_addCommand])
! 23: AC_CHECK_LIB([elwix], [e_free])
1.1 misho 24:
25: # Checks for header files.
26: AC_CHECK_HEADERS([fcntl.h unistd.h])
27:
28: # Checks for typedefs, structures, and compiler characteristics.
29: AC_TYPE_OFF_T
30: AC_TYPE_SIZE_T
31:
32: DEBUG=no
33: AC_MSG_CHECKING(Debug Build)
34: AC_ARG_ENABLE(debug,
35: [ --enable-debug Build library with debug information and additional messages],
36: [ DEBUG=$enableval
37: case "$enableval" in
38: yes)
39: CFLAGS="-g ${CFLAGS}"
40: ;;
41: *)
42: AC_DEFINE(NDEBUG,, [Build w/o assert() support])
43: ;;
44: esac ],)
45: AC_MSG_RESULT($DEBUG)
46:
47: # Checks for library functions.
48: AC_CHECK_FUNCS([ftruncate memset strpbrk strtol])
49:
50: AC_CONFIG_FILES([Makefile
51: bin/Makefile
52: inc/Makefile
53: src/Makefile])
54: AC_OUTPUT
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>