File:  [ELWIX - Embedded LightWeight unIX -] / libaitcfg / configure.in
Revision 1.1.2.2: download - view: text, annotated - select for diffs - revision graph
Tue Sep 30 14:45:09 2008 UTC (15 years, 7 months ago) by misho
Branches: cfg3_0
*** empty log message ***

    1: AC_INIT(libaitcfg, 3.0, misho@openbsd-bg.org)
    2: AC_CONFIG_SRCDIR([src/aitcfg.c])
    3: AC_CONFIG_HEADERS([inc/config.h])
    4: 
    5: # Checks for programs.
    6: AC_PROG_CC
    7: AC_PROG_INSTALL
    8: 
    9: AC_CANONICAL_HOST
   10: AC_CANONICAL_TARGET
   11: 
   12: AC_CHECK_TOOL(MKDEP, mkdep, no)
   13: AC_SUBST(MKDEP)
   14: 
   15: CFLAGS="-Wall -O2 -fPIC -I/usr/local/include ${CFLAGS}"
   16: LDFLAGS="-L/usr/local/lib ${LDFLAGS}"
   17: 
   18: # Checks for libraries.
   19: 
   20: # Checks for header files.
   21: 
   22: # Checks for typedefs, structures, and compiler characteristics.
   23: AC_C_CONST
   24: AC_C_INLINE
   25: 
   26: # Checks for library functions.
   27: AC_FUNC_MALLOC
   28: AC_FUNC_REALLOC
   29: AC_CHECK_FUNCS([bzero memmove memset strchr strspn])
   30: 
   31: AC_MSG_CHECKING(Debug Build)
   32: AC_ARG_ENABLE(debug,
   33: 	[  --enable-debug          Build library with debug information and additional messages],
   34: 	[ DEBUG=$enableval
   35: 		case "$enableval" in
   36: 			yes)
   37: 				AC_DEFINE(_DEBUG,, [Build libraries with debug information and additional messages])
   38: 				;;
   39: 			*)
   40: 				;;
   41: 		esac ],)
   42: AC_MSG_RESULT($DEBUG)
   43: 
   44: AC_CONFIG_FILES([Makefile
   45: 		inc/Makefile
   46: 		lib/Makefile
   47: 		src/Makefile])
   48: AC_OUTPUT

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