Annotation of libaitio/configure.in, revision 1.10

1.1       misho       1: #
                      2: # $Author: misho $
1.10    ! misho       3: # $Id: configure.in,v 1.9.2.1 2011/04/20 22:58:03 misho Exp $
1.1       misho       4: #
1.10    ! misho       5: AC_INIT(libaitio, 1.8, misho@elwix.org)
1.1       misho       6: AC_CONFIG_SRCDIR([src/aitio.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: 
1.8       misho      22: AC_CHECK_LIB([crypto], [EVP_CipherInit_ex])
                     23: 
1.1       misho      24: # Checks for header files.
                     25: AC_CHECK_HEADERS([stdlib.h string.h sys/ioctl.h termios.h unistd.h])
                     26: 
                     27: # Checks for typedefs, structures, and compiler characteristics.
                     28: AC_C_INLINE
                     29: 
                     30: # Checks for library functions.
                     31: AC_FUNC_MALLOC
                     32: AC_FUNC_REALLOC
                     33: AC_CHECK_FUNCS([memset regcomp strchr strerror])
                     34: 
                     35: DEBUG=no
                     36: AC_MSG_CHECKING(Debug Build)
                     37: AC_ARG_ENABLE(debug,
                     38:        [  --enable-debug          Build library with debug information and additional messages],
                     39:        [ DEBUG=$enableval
                     40:                case "$enableval" in
                     41:                        yes)
                     42:                                AC_DEFINE(__DEBUG,, [Build libraries with debug information and additional messages])
                     43:                                CFLAGS="-g ${CFLAGS}"
                     44:                                ;;
                     45:                        *)
                     46:                                AC_DEFINE(NDEBUG,, [Build w/o assert() support])
                     47:                                ;;
                     48:                esac ],)
                     49: AC_MSG_RESULT($DEBUG)
                     50: 
1.7       misho      51: AIO=no
1.5       misho      52: AC_MSG_CHECKING(AIO Build)
                     53: AC_ARG_ENABLE(aio,
                     54:        [  --enable-aio            Build library with AIO operations], 
                     55:        [ AIO=$enableval
                     56:                case "$enableval" in
                     57:                        yes)
                     58:                                AC_DEFINE(AIO_OPS,, [Build library with AIO operations])
                     59:                                ;;
                     60:                        *)
                     61:                                ;;
1.7       misho      62:                esac ],)
1.5       misho      63: AC_MSG_RESULT($AIO)
                     64: 
1.1       misho      65: AC_CONFIG_FILES([Makefile
                     66:                  inc/Makefile
                     67:                  lib/Makefile
                     68:                  src/Makefile])
                     69: AC_OUTPUT

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>