File:  [ELWIX - Embedded LightWeight unIX -] / libaitio / configure.in
Revision 1.4.2.1: download - view: text, annotated - select for diffs - revision graph
Fri Apr 16 13:27:49 2010 UTC (14 years, 6 months ago) by misho
Branches: io1_3
remove readline depend

    1: #
    2: # $Author: misho $
    3: # $Id: configure.in,v 1.4.2.1 2010/04/16 13:27:49 misho Exp $
    4: #
    5: AC_INIT(libaitio, 1.3, 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: AC_CONFIG_FILES([Makefile
   50:                  inc/Makefile
   51:                  lib/Makefile
   52:                  src/Makefile])
   53: AC_OUTPUT

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