File:  [ELWIX - Embedded LightWeight unIX -] / libaitcli / configure.in
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Fri Apr 16 13:20:29 2010 UTC (14 years, 2 months ago) by misho
Branches: MAIN
CVS tags: HEAD
Initial revision

    1: #
    2: # $Author: misho $
    3: # $Id: configure.in,v 1.1 2010/04/16 13:20:29 misho Exp $
    4: #
    5: AC_INIT(libaitcli, 1.1, misho@openbsd-bg.org)
    6: AC_CONFIG_SRCDIR([src/aitcli.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(readline, [readline])
   24: 
   25: # Checks for header files.
   26: AC_CHECK_HEADERS([stdlib.h string.h sys/ioctl.h termios.h unistd.h])
   27: 
   28: # Checks for typedefs, structures, and compiler characteristics.
   29: AC_C_INLINE
   30: 
   31: # Checks for library functions.
   32: AC_CHECK_FUNCS([memset strdup strerror])
   33: 
   34: DEBUG=no
   35: AC_MSG_CHECKING(Debug Build)
   36: AC_ARG_ENABLE(debug,
   37: 	[  --enable-debug          Build library with debug information and additional messages],
   38: 	[ DEBUG=$enableval
   39: 		case "$enableval" in
   40: 			yes)
   41: 				AC_DEFINE(__DEBUG,, [Build libraries with debug information and additional messages])
   42: 				CFLAGS="-g ${CFLAGS}"
   43: 				;;
   44: 			*)
   45: 				AC_DEFINE(NDEBUG,, [Build w/o assert() support])
   46: 				;;
   47: 		esac ],)
   48: AC_MSG_RESULT($DEBUG)
   49: 
   50: AC_CONFIG_FILES([Makefile
   51:                  inc/Makefile
   52:                  lib/Makefile
   53:                  src/Makefile])
   54: AC_OUTPUT

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