Annotation of suX/configure.in, revision 1.2.2.1
1.1 misho 1: #
2: # $Author: misho $
1.2.2.1 ! misho 3: # $Id: configure.in,v 1.2 2013/04/09 07:37:49 misho Exp $
1.1 misho 4: #
1.2.2.1 ! misho 5: AC_INIT(suX, 3.0, misho@aitnet.org)
1.1 misho 6: AC_CONFIG_SRCDIR([src/sux.c])
7: AC_CONFIG_HEADERS([inc/config.h])
8:
9: # Checks for programs.
10: AC_PROG_CC
11: AC_PROG_INSTALL
12:
13: AC_CANONICAL_HOST
14: AC_CANONICAL_TARGET
15:
16: AC_CHECK_TOOL(MKDEP, mkdep, no)
17: AC_SUBST(MKDEP)
18:
19: CFLAGS="-Wall -O2 -fPIC -I/usr/local/include ${CFLAGS}"
20: LDFLAGS="-L/usr/local/lib ${LDFLAGS}"
21:
22: # Checks for libraries.
1.2 misho 23: AC_CHECK_LIB([util], [setusercontext])
24: AC_CHECK_LIB([aitio], [io_arrayMake])
1.1 misho 25: AC_CHECK_LIB([aitcfg], [LoadConfig])
26:
27: # Checks for header files.
28: AC_CHECK_HEADERS([stdlib.h string.h sys/param.h syslog.h unistd.h])
29:
30: # Checks for typedefs, structures, and compiler characteristics.
31: AC_C_INLINE
32:
33: # Checks for library functions.
34: AC_CHECK_FUNCS([endgrent endpwent getcwd strcasecmp strerror strrchr strtol])
35:
1.2 misho 36: STATIC=no
37: AC_MSG_CHECKING(Static build)
38: AC_ARG_ENABLE(static,
39: [ --enable-static Build static program ],
40: [ STATIC=$enableval
41: case "$enableval" in
42: yes)
43: LDFLAGS="-static ${LDFLAGS}"
44: ;;
45: *)
46: ;;
47: esac ],)
48: AC_MSG_RESULT($STATIC)
49:
1.1 misho 50: DEBUG=no
51: AC_MSG_CHECKING(Debug Build)
52: AC_ARG_ENABLE(debug,
53: [ --enable-debug Build program with debug information and additional messages],
54: [ DEBUG=$enableval
55: case "$enableval" in
56: yes)
57: AC_DEFINE(__DEBUG,, [Build libraries with debug information and additional messages])
58: CFLAGS="-g ${CFLAGS}"
59: ;;
60: *)
61: AC_DEFINE(NDEBUG,, [Turn off debug asserts])
62: ;;
63: esac ], AC_DEFINE(NDEBUG,, [Turn off debug asserts]))
64: AC_MSG_RESULT($DEBUG)
65:
66: AC_CONFIG_FILES([Makefile
67: bin/Makefile
68: inc/Makefile
69: src/Makefile])
70: AC_OUTPUT
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>