File:  [ELWIX - Embedded LightWeight unIX -] / libaitsync / configure.in
Revision 1.2: download - view: text, annotated - select for diffs - revision graph
Mon May 9 14:36:33 2011 UTC (13 years, 1 month ago) by misho
Branches: MAIN
CVS tags: sync1_1, SYNC1_0, HEAD
ver 1.0

    1: #
    2: # $Author: misho $
    3: # $Id: configure.in,v 1.2 2011/05/09 14:36:33 misho Exp $
    4: #
    5: AC_INIT(libaitsync, 1.0, misho@aitbg.com)
    6: AC_CONFIG_SRCDIR([src/aitsync.c])
    7: AC_CONFIG_HEADERS([inc/config.h])
    8: 
    9: # Checks for programs.
   10: AC_PROG_CC
   11: AC_PROG_RANLIB
   12: AC_PROG_INSTALL
   13: 
   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: # Checks for libraries.
   24: AC_CHECK_LIB([z], [deflate])
   25: 
   26: # Checks for header files.
   27: AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/param.h unistd.h])
   28: 
   29: # Checks for typedefs, structures, and compiler characteristics.
   30: AC_C_INLINE
   31: AC_TYPE_OFF_T
   32: AC_TYPE_SIZE_T
   33: 
   34: # Checks for library functions.
   35: AC_FUNC_MALLOC
   36: AC_FUNC_MMAP
   37: AC_FUNC_REALLOC
   38: AC_CHECK_FUNCS([memset munmap])
   39: AC_CHECK_FUNCS([mkstemps])
   40: 
   41: DEBUG=no
   42: AC_MSG_CHECKING(Debug Build)
   43: AC_ARG_ENABLE(debug,
   44: 	[  --enable-debug          Build library with debug information and additional messages],
   45: 	[ DEBUG=$enableval
   46: 		case "$enableval" in
   47: 			yes)
   48: 				AC_DEFINE(__DEBUG,, [Build libraries with debug information and additional messages])
   49: 				CFLAGS="-g ${CFLAGS}"
   50: 				;;
   51: 			*)
   52: 				AC_DEFINE(NDEBUG,, [Build w/o assert() support])
   53: 				;;
   54: 		esac ],)
   55: AC_MSG_RESULT($DEBUG)
   56: 
   57: AC_CONFIG_FILES([Makefile
   58:                  inc/Makefile
   59:                  lib/Makefile
   60:                  src/Makefile])
   61: AC_OUTPUT

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