File:  [ELWIX - Embedded LightWeight unIX -] / libaitcfg / configure.in
Revision 1.10.2.1: download - view: text, annotated - select for diffs - revision graph
Wed Aug 1 00:42:23 2012 UTC (11 years, 8 months ago) by misho
Branches: cfg5_4
Diff to: branchpoint 1.10: preferred, unified
new ver 5.4

    1: #
    2: # $Author: misho $
    3: # $Id: configure.in,v 1.10.2.1 2012/08/01 00:42:23 misho Exp $
    4: #
    5: AC_INIT(libaitcfg, 5.4, misho@elwix.org)
    6: AC_CONFIG_SRCDIR([src/aitcfg.c])
    7: AC_CONFIG_HEADERS([inc/config.h])
    8: 
    9: # Checks for programs.
   10: AC_PROG_CC
   11: AC_PROG_INSTALL
   12: 
   13: AC_CANONICAL_HOST
   14: AC_CANONICAL_TARGET
   15: 
   16: AC_CHECK_TOOL(MKDEP, mkdep, no)
   17: AC_SUBST(MKDEP)
   18: 
   19: CFLAGS="-Wall -O2 -fPIC -I/usr/local/include ${CFLAGS}"
   20: LDFLAGS="-L/usr/local/lib ${LDFLAGS}"
   21: 
   22: # Checks for libraries.
   23: AC_CHECK_LIB([pthread], [pthread_mutex_lock])
   24: AC_CHECK_LIB([aitio], [io_TrimStr])
   25: AC_CHECK_LIB([aitcrc], [crcFletcher16])
   26: 
   27: # Checks for header files.
   28: 
   29: # Checks for typedefs, structures, and compiler characteristics.
   30: AC_C_CONST
   31: AC_C_INLINE
   32: 
   33: # Checks for library functions.
   34: AC_FUNC_MALLOC
   35: AC_FUNC_REALLOC
   36: AC_CHECK_FUNCS([bzero memmove memset strchr strspn])
   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,, [No debug, remove asserts])
   50: 				;;
   51: 		esac ],)
   52: AC_MSG_RESULT($DEBUG)
   53: 
   54: AC_CONFIG_FILES([Makefile
   55: 		inc/Makefile
   56: 		lib/Makefile
   57: 		src/Makefile])
   58: AC_OUTPUT

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