File:  [ELWIX - Embedded LightWeight unIX -] / libaitwww / configure.in
Revision 1.3: download - view: text, annotated - select for diffs - revision graph
Sun Jul 22 21:58:29 2012 UTC (11 years, 10 months ago) by misho
Branches: MAIN
CVS tags: www1_3, WWW1_2, HEAD
version 1.2

    1: #
    2: # $Author: misho $
    3: # $Id: configure.in,v 1.3 2012/07/22 21:58:29 misho Exp $
    4: #
    5: AC_INIT(libaitwww, 1.2, 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: # Checks for header files.
   25: AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/socket.h unistd.h])
   26: 
   27: # Checks for typedefs, structures, and compiler characteristics.
   28: AC_C_INLINE
   29: AC_TYPE_SIZE_T
   30: 
   31: # Checks for library functions.
   32: AC_FUNC_MALLOC
   33: AC_FUNC_REALLOC
   34: AC_CHECK_FUNCS([memchr memset strcasecmp strchr strcspn strdup strerror strncasecmp strspn strstr strtol])
   35: 
   36: DEBUG=no
   37: AC_MSG_CHECKING(Debug Build)
   38: AC_ARG_ENABLE(debug,
   39: 	[  --enable-debug          Build library with debug information and additional messages],
   40: 	[ DEBUG=$enableval
   41: 		case "$enableval" in
   42: 			yes)
   43: 				AC_DEFINE(__DEBUG,, [Build libraries with debug information and additional messages])
   44: 				CFLAGS="-g ${CFLAGS}"
   45: 				;;
   46: 			*)
   47: 				AC_DEFINE(NDEBUG,, [Build w/o assert() support])
   48: 				;;
   49: 		esac ],)
   50: AC_MSG_RESULT($DEBUG)
   51: 
   52: 
   53: AC_CONFIG_FILES([Makefile
   54:                  inc/Makefile
   55:                  lib/Makefile
   56:                  src/Makefile])
   57: AC_OUTPUT

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