File:  [ELWIX - Embedded LightWeight unIX -] / libaitsync / configure.in
Revision 1.8: download - view: text, annotated - select for diffs - revision graph
Sun Apr 27 16:33:42 2014 UTC (10 years ago) by misho
Branches: MAIN
CVS tags: sync2_3, SYNC2_2, HEAD
version 2.2

    1: #
    2: # $Author: misho $
    3: # $Id: configure.in,v 1.8 2014/04/27 16:33:42 misho Exp $
    4: #
    5: AC_INIT(libaitsync, 2.2, misho@elwix.org)
    6: AC_CONFIG_SRCDIR([src/aitsync.c])
    7: AC_CONFIG_HEADERS([inc/config.h])
    8: 
    9: ac_cv_func_malloc_0_nonnull="yes"
   10: ac_cv_func_realloc_0_nonnull="yes"
   11: 
   12: # Checks for programs.
   13: AC_PROG_CC
   14: AC_PROG_RANLIB
   15: AC_PROG_INSTALL
   16: 
   17: AC_CANONICAL_HOST
   18: AC_CANONICAL_TARGET
   19: 
   20: AC_CHECK_TOOL(MKDEP, mkdep, no)
   21: AC_SUBST(MKDEP)
   22: 
   23: CFLAGS="-Wall -O2 -fPIC ${CFLAGS}"
   24: LDFLAGS="${LDFLAGS}"
   25: 
   26: # Checks for libraries.
   27: AC_CHECK_LIB([z], [deflate])
   28: AC_CHECK_LIB([elwix], [crcAdler])
   29: 
   30: # Checks for header files.
   31: AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/param.h unistd.h])
   32: 
   33: # Checks for typedefs, structures, and compiler characteristics.
   34: AC_C_INLINE
   35: AC_TYPE_OFF_T
   36: AC_TYPE_SIZE_T
   37: 
   38: # Checks for library functions.
   39: AC_FUNC_MALLOC
   40: AC_FUNC_MMAP
   41: AC_FUNC_REALLOC
   42: AC_CHECK_FUNCS([memset munmap])
   43: AC_CHECK_FUNCS([mkstemps])
   44: 
   45: DEBUG=no
   46: AC_MSG_CHECKING(Debug Build)
   47: AC_ARG_ENABLE(debug,
   48: 	[  --enable-debug          Build library with debug information and additional messages],
   49: 	[ DEBUG=$enableval
   50: 		case "$enableval" in
   51: 			yes)
   52: 				AC_DEFINE(__DEBUG,, [Build libraries with debug information and additional messages])
   53: 				CFLAGS="-g ${CFLAGS}"
   54: 				;;
   55: 			*)
   56: 				AC_DEFINE(NDEBUG,, [Build w/o assert() support])
   57: 				;;
   58: 		esac ],)
   59: AC_MSG_RESULT($DEBUG)
   60: 
   61: AC_CONFIG_FILES([Makefile
   62:                  inc/Makefile
   63:                  lib/Makefile
   64:                  src/Makefile])
   65: AC_OUTPUT

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