File:  [ELWIX - Embedded LightWeight unIX -] / libaitio / configure.in
Revision 1.7: download - view: text, annotated - select for diffs - revision graph
Wed Mar 16 16:44:52 2011 UTC (13 years, 2 months ago) by misho
Branches: MAIN
CVS tags: io1_6, IO1_5, HEAD
1.5

    1: #
    2: # $Author: misho $
    3: # $Id: configure.in,v 1.7 2011/03/16 16:44:52 misho Exp $
    4: #
    5: AC_INIT(libaitio, 1.5, misho@openbsd-bg.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: # 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: 
   49: AIO=no
   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 ],)
   61: AC_MSG_RESULT($AIO)
   62: 
   63: AC_CONFIG_FILES([Makefile
   64:                  inc/Makefile
   65:                  lib/Makefile
   66:                  src/Makefile])
   67: AC_OUTPUT

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