File:  [ELWIX - Embedded LightWeight unIX -] / libaitcrc / configure.in
Revision 1.6: download - view: text, annotated - select for diffs - revision graph
Wed Aug 29 09:00:44 2012 UTC (11 years, 8 months ago) by misho
Branches: MAIN
CVS tags: crc2_4, HEAD, CRC2_3
version 3.2

    1: #
    2: # $Author: misho $
    3: # $Id: configure.in,v 1.6 2012/08/29 09:00:44 misho Exp $
    4: #
    5: AC_INIT(libaitcrc, 2.3, misho@openbsd-bg.org)
    6: AC_CONFIG_SRCDIR([src/aitcrc.c])
    7: AC_CONFIG_HEADERS([inc/config.h])
    8: 
    9: # Checks for programs.
   10: AC_PROG_CC
   11: AC_PROG_INSTALL
   12: AC_PROG_RANLIB
   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: 
   25: # Checks for header files.
   26: 
   27: # Checks for typedefs, structures, and compiler characteristics.
   28: AC_C_CONST
   29: AC_C_INLINE
   30: 
   31: # Checks for library functions.
   32: 
   33: DEBUG=no
   34: AC_MSG_CHECKING(Debug Build)
   35: AC_ARG_ENABLE(debug,
   36: 	[  --enable-debug          Build library with debug information and additional messages],
   37: 	[ DEBUG=$enableval
   38: 		case "$enableval" in
   39: 			yes)
   40: 				AC_DEFINE(__DEBUG,, [Build libraries with debug information and additional messages])
   41: 				CFLAGS="-g ${CFLAGS}"
   42: 				;;
   43: 			*)
   44: 				AC_DEFINE(NDEBUG,, [Turn off debug asserts])
   45: 				;;
   46: 		esac ], AC_DEFINE(NDEBUG,, [Turn off debug asserts]))
   47: AC_MSG_RESULT($DEBUG)
   48: 
   49: AC_CONFIG_FILES([Makefile
   50: 		inc/Makefile
   51: 		lib/Makefile
   52: 		src/Makefile])
   53: AC_OUTPUT

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