File:  [ELWIX - Embedded LightWeight unIX -] / libaitio / configure.in
Revision 1.19.2.2: download - view: text, annotated - select for diffs - revision graph
Thu May 17 11:08:12 2012 UTC (12 years, 1 month ago) by misho
Branches: io2_8
Diff to: branchpoint 1.19: preferred, unified
NetBSD patch for AIO

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

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