Annotation of embedtools/configure.in, revision 1.1.2.2
1.1.2.1 misho 1: AC_INIT(embedtools, 1.0, misho@elwix.org)
2: AC_CONFIG_SRCDIR([src/cfexec.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: AC_CHECK_LIB([aitcfg], [LoadConfig])
20: AC_CHECK_LIB([aitcrc], [crcAdler])
21: AC_CHECK_LIB([aitio], [io_TrimStr])
22: AC_CHECK_LIB([aitsync], [syncDelta])
23: AC_CHECK_LIB([axl], [axl_init])
24: AC_CHECK_LIB([crypto], [MD5_Init])
25: AC_CHECK_LIB([util], [openpty])
26:
27: # Checks for header files.
28: AC_CHECK_HEADERS([arpa/inet.h fcntl.h limits.h netdb.h netinet/in.h paths.h stdlib.h string.h sys/ioctl.h sys/mount.h sys/param.h sys/socket.h sys/time.h syslog.h unistd.h utmp.h utmpx.h])
1.1.2.2 ! misho 29: AC_CHECK_HEADERS([libutil.h])
1.1.2.1 misho 30:
31: # Checks for typedefs, structures, and compiler characteristics.
32: AC_C_INLINE
33: AC_TYPE_MODE_T
34: AC_TYPE_OFF_T
35: AC_TYPE_PID_T
36: AC_TYPE_SIZE_T
37: AC_TYPE_SSIZE_T
38: AC_TYPE_UID_T
39: AC_TYPE_UINT32_T
40: AC_TYPE_UINT8_T
41:
42: # Checks for library functions.
43: AC_FUNC_FORK
44: AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
45: AC_FUNC_MALLOC
46: AC_FUNC_MMAP
47: AC_FUNC_REALLOC
48: AC_FUNC_WAIT3
49: AC_CHECK_FUNCS([alarm bzero dup2 endpwent getcwd gethostbyname gethostname inet_ntoa isascii memmove memset munmap select socket strcasecmp strchr strdup strerror strrchr strspn strstr strtol strtoul])
50: AC_CHECK_FUNCS([kldnext kldfirstmod modfnext modstat kldload])
51:
52: DEBUG=no
53: AC_MSG_CHECKING(Debug Build)
54: AC_ARG_ENABLE(debug,
55: [ --enable-debug Build library with debug information and additional messages],
56: [ DEBUG=$enableval
57: case "$enableval" in
58: yes)
59: AC_DEFINE(__DEBUG,, [Build libraries with debug information and additional messages])
60: CFLAGS="-g ${CFLAGS}"
61: ;;
62: *)
63: AC_DEFINE(NDEBUG,, [Build w/o assert() support])
64: ;;
65: esac ],)
66: AC_MSG_RESULT($DEBUG)
67:
68: AC_CONFIG_FILES([Makefile
69: bin/Makefile
70: inc/Makefile
71: src/Makefile])
72: AC_OUTPUT
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>