File:  [ELWIX - Embedded LightWeight unIX -] / libaitpelco / configure.in
Revision 1.6: download - view: text, annotated - select for diffs - revision graph
Thu Aug 18 09:37:00 2016 UTC (7 years, 9 months ago) by misho
Branches: MAIN
CVS tags: pelco2_3, PELCO2_2, HEAD
version 2.2

    1: #
    2: # $Author: misho $
    3: # $Id: configure.in,v 1.6 2016/08/18 09:37:00 misho Exp $
    4: #
    5: AC_INIT(libaitpelco, 2.2, 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, ../mkdep)
   21: AC_SUBST(MKDEP)
   22: 
   23: CFLAGS="-Wall -O2 -fPIC ${CFLAGS}"
   24: LDFLAGS="${LDFLAGS}"
   25: 
   26: # Checks for libraries.
   27: AC_CHECK_LIB([elwix], [crcPelco])
   28: 
   29: # Checks for header files.
   30: 
   31: # Checks for typedefs, structures, and compiler characteristics.
   32: AC_C_CONST
   33: AC_C_INLINE
   34: 
   35: # Checks for library functions.
   36: AC_FUNC_MALLOC
   37: AC_CHECK_FUNCS([memset])
   38: 
   39: DEBUG=no
   40: AC_MSG_CHECKING(Debug Build)
   41: AC_ARG_ENABLE(debug,
   42: 	[  --enable-debug          Build library with debug information and additional messages],
   43: 	[ DEBUG=$enableval
   44: 		case "$enableval" in
   45: 			yes)
   46: 				AC_DEFINE(__DEBUG,, [Build libraries with debug information and additional messages])
   47: 				CFLAGS="-g ${CFLAGS}"
   48: 				;;
   49: 			*)
   50: 				AC_DEFINE(NDEBUG,, [Turn off asserts])
   51: 				;;
   52: 		esac ],)
   53: AC_MSG_RESULT($DEBUG)
   54: 
   55: AC_CONFIG_FILES([Makefile
   56: 		inc/Makefile
   57: 		lib/Makefile
   58: 		src/Makefile])
   59: AC_OUTPUT

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