File:  [ELWIX - Embedded LightWeight unIX -] / libaitpelco / configure.in
Revision 1.5: download - view: text, annotated - select for diffs - revision graph
Sun Apr 27 16:31:32 2014 UTC (10 years, 1 month ago) by misho
Branches: MAIN
CVS tags: pelco2_2, PELCO2_1, HEAD
version 2.1

    1: #
    2: # $Author: misho $
    3: # $Id: configure.in,v 1.5 2014/04/27 16:31:32 misho Exp $
    4: #
    5: AC_INIT(libaitpelco, 2.1, misho@openbsd-bg.org)
    6: AC_CONFIG_SRCDIR([src/aitpelco.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_INSTALL
   15: AC_PROG_RANLIB
   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: # FIXME: Replace `main' with a function in `-laitcrc':
   28: AC_CHECK_LIB([elwix], [crcPelco])
   29: 
   30: # Checks for header files.
   31: 
   32: # Checks for typedefs, structures, and compiler characteristics.
   33: AC_C_CONST
   34: AC_C_INLINE
   35: 
   36: # Checks for library functions.
   37: AC_FUNC_MALLOC
   38: AC_CHECK_FUNCS([memset])
   39: 
   40: DEBUG=no
   41: AC_MSG_CHECKING(Debug Build)
   42: AC_ARG_ENABLE(debug,
   43: 	[  --enable-debug          Build library with debug information and additional messages],
   44: 	[ DEBUG=$enableval
   45: 		case "$enableval" in
   46: 			yes)
   47: 				AC_DEFINE(__DEBUG,, [Build libraries with debug information and additional messages])
   48: 				CFLAGS="-g ${CFLAGS}"
   49: 				;;
   50: 			*)
   51: 				AC_DEFINE(NDEBUG,, [Turn off asserts])
   52: 				;;
   53: 		esac ],)
   54: AC_MSG_RESULT($DEBUG)
   55: 
   56: AC_CONFIG_FILES([Makefile
   57: 		inc/Makefile
   58: 		lib/Makefile
   59: 		src/Makefile])
   60: AC_OUTPUT

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