File:  [ELWIX - Embedded LightWeight unIX -] / libaitsync / configure.in
Revision 1.4: download - view: text, annotated - select for diffs - revision graph
Tue Nov 13 14:19:39 2012 UTC (11 years, 11 months ago) by misho
Branches: MAIN
CVS tags: sync1_3, SYNC1_2, HEAD
version 1.2

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

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