Annotation of embedtools/configure.in, revision 1.4.2.6
1.4 misho 1: #
2: # $Author: misho $
1.4.2.6 ! misho 3: # $Id: configure.in,v 1.4.2.5 2014/01/21 16:20:00 misho Exp $
1.4 misho 4: #
1.4.2.1 misho 5: AC_INIT(embedtools, 2.0, misho@elwix.org)
1.2 misho 6: AC_CONFIG_SRCDIR([src/cfexec.c])
7: AC_CONFIG_HEADERS([inc/config.h])
8:
1.4.2.2 misho 9: ac_cv_func_malloc_0_nonnull="yes"
10: ac_cv_func_realloc_0_nonnull="yes"
11:
1.2 misho 12: # Checks for programs.
13: AC_PROG_CC
14: AC_PROG_INSTALL
15:
16: AC_CANONICAL_HOST
17: AC_CANONICAL_TARGET
18:
19: AC_CHECK_TOOL(MKDEP, mkdep, no)
20: AC_SUBST(MKDEP)
21:
1.3 misho 22: OS=$(uname)
23: AC_SUBST(OS)
1.4.2.6 ! misho 24: MACHINE="${HOST_CPU:-i386}"
1.4.2.3 misho 25: AC_SUBST(MACHINE)
1.3 misho 26:
27: CFLAGS="-Wall -O2 -fPIC -g -DINET6 ${CFLAGS}"
28: LDFLAGS="${LDFLAGS}"
1.2 misho 29:
30: # Checks for libraries.
1.4.2.1 misho 31: AC_CHECK_LIB([elwix], [str_Trim])
1.2 misho 32: AC_CHECK_LIB([aitcfg], [LoadConfig])
33: AC_CHECK_LIB([aitsync], [syncDelta])
1.3 misho 34: AC_CHECK_LIB([aitwww], [www_XMLGet])
1.2 misho 35: AC_CHECK_LIB([crypto], [MD5_Init])
36: AC_CHECK_LIB([util], [openpty])
37:
38: # Checks for header files.
39: 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])
40: AC_CHECK_HEADERS([libutil.h])
41:
42: # Checks for typedefs, structures, and compiler characteristics.
43: AC_C_INLINE
44: AC_TYPE_MODE_T
45: AC_TYPE_OFF_T
46: AC_TYPE_PID_T
47: AC_TYPE_SIZE_T
48: AC_TYPE_SSIZE_T
49: AC_TYPE_UID_T
50: AC_TYPE_UINT32_T
51: AC_TYPE_UINT8_T
52:
53: # Checks for library functions.
54: AC_FUNC_FORK
55: AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
56: AC_FUNC_MALLOC
57: AC_FUNC_MMAP
58: AC_FUNC_REALLOC
59: AC_FUNC_WAIT3
1.3 misho 60: 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 strtonum])
1.2 misho 61: AC_CHECK_FUNCS([kldnext kldfirstmod modfnext modstat kldload])
62:
63: DEBUG=no
64: AC_MSG_CHECKING(Debug Build)
65: AC_ARG_ENABLE(debug,
66: [ --enable-debug Build library with debug information and additional messages],
67: [ DEBUG=$enableval
68: case "$enableval" in
69: yes)
70: AC_DEFINE(__DEBUG,, [Build libraries with debug information and additional messages])
71: CFLAGS="-g ${CFLAGS}"
72: ;;
73: *)
74: AC_DEFINE(NDEBUG,, [Build w/o assert() support])
75: ;;
76: esac ],)
77: AC_MSG_RESULT($DEBUG)
78:
79: AC_CONFIG_FILES([Makefile
80: bin/Makefile
81: inc/Makefile
82: src/Makefile])
83: AC_OUTPUT
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>