File:  [ELWIX - Embedded LightWeight unIX -] / libaitwww / configure.in
Revision 1.4: download - view: text, annotated - select for diffs - revision graph
Wed Aug 1 00:40:40 2012 UTC (12 years, 3 months ago) by misho
Branches: MAIN
CVS tags: www1_4, WWW1_3, HEAD
version 1.3

    1: #
    2: # $Author: misho $
    3: # $Id: configure.in,v 1.4 2012/08/01 00:40:40 misho Exp $
    4: #
    5: AC_INIT(libaitwww, 1.3, misho@elwix.org)
    6: AC_CONFIG_SRCDIR([src/aitwww.c])
    7: AC_CONFIG_HEADERS([inc/config.h])
    8: 
    9: # Checks for programs.
   10: AC_PROG_CC
   11: AC_PROG_INSTALL
   12: 
   13: # Checks for libraries.
   14: AC_CANONICAL_HOST
   15: AC_CANONICAL_TARGET
   16: 
   17: AC_CHECK_TOOL(MKDEP, mkdep, no)
   18: AC_SUBST(MKDEP)
   19: 
   20: CFLAGS="-Wall -O2 -fPIC -I/usr/local/include ${CFLAGS}"
   21: LDFLAGS="-L/usr/local/lib ${LDFLAGS}"
   22: 
   23: 
   24: AC_CHECK_LIB(aitio, [mpool_malloc])
   25: 
   26: # Checks for header files.
   27: AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/socket.h unistd.h aitio.h])
   28: 
   29: # Checks for typedefs, structures, and compiler characteristics.
   30: AC_C_INLINE
   31: AC_TYPE_SIZE_T
   32: 
   33: # Checks for library functions.
   34: AC_FUNC_MALLOC
   35: AC_FUNC_REALLOC
   36: AC_CHECK_FUNCS([memchr memset strcasecmp strchr strcspn strdup strerror strncasecmp strspn strstr strtol])
   37: 
   38: DEBUG=no
   39: AC_MSG_CHECKING(Debug Build)
   40: AC_ARG_ENABLE(debug,
   41: 	[  --enable-debug          Build library with debug information and additional messages],
   42: 	[ DEBUG=$enableval
   43: 		case "$enableval" in
   44: 			yes)
   45: 				AC_DEFINE(__DEBUG,, [Build libraries with debug information and additional messages])
   46: 				CFLAGS="-g ${CFLAGS}"
   47: 				;;
   48: 			*)
   49: 				AC_DEFINE(NDEBUG,, [Build w/o assert() support])
   50: 				;;
   51: 		esac ],)
   52: AC_MSG_RESULT($DEBUG)
   53: 
   54: 
   55: AC_CONFIG_FILES([Makefile
   56:                  inc/Makefile
   57:                  lib/Makefile
   58:                  src/Makefile])
   59: AC_OUTPUT

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