Annotation of libaitio/configure.in, revision 1.5

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

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