File:  [ELWIX - Embedded LightWeight unIX -] / libaitsched / configure.in
Revision 1.11: download - view: text, annotated - select for diffs - revision graph
Sun Jul 22 21:50:37 2012 UTC (11 years, 10 months ago) by misho
Branches: MAIN
CVS tags: sched2_5, SCHED2_4, HEAD
version 2.4

    1: #
    2: # $Author: misho $
    3: # $Id: configure.in,v 1.11 2012/07/22 21:50:37 misho Exp $
    4: #
    5: AC_INIT(libaitsched, 2.4, misho@openbsd-bg.org)
    6: AC_CONFIG_SRCDIR([src/aitsched.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: 
   24: # Checks for libraries.
   25: AC_CHECK_LIB([pthread], [pthread_create])
   26: 
   27: # Checks for header files.
   28: AC_CHECK_HEADERS([stdint.h stdlib.h string.h sys/time.h unistd.h])
   29: 
   30: # Checks for typedefs, structures, and compiler characteristics.
   31: AC_C_INLINE
   32: AC_TYPE_SIZE_T
   33: 
   34: # Checks for library functions.
   35: AC_FUNC_MALLOC
   36: AC_CHECK_FUNCS([clock_gettime memset strerror])
   37: 
   38: DEBUG=no
   39: AC_MSG_CHECKING(Debug Build)
   40: AC_ARG_ENABLE(debug,
   41: 	[  --enable-debug          Build library with debug information and additional messages],
   42: 	[ DEBUG=$enableval
   43: 		case "$enableval" in
   44: 			yes)
   45: 				AC_DEFINE(__DEBUG,, [Build libraries with debug information and additional messages])
   46: 				CFLAGS="-g ${CFLAGS}"
   47: 				;;
   48: 			*)
   49: 				AC_DEFINE(NDEBUG,, [Turn off debug asserts])
   50: 				;;
   51: 		esac ], AC_DEFINE(NDEBUG,, [Turn off debug asserts]))
   52: AC_MSG_RESULT($DEBUG)
   53: 
   54: AC_CONFIG_FILES([Makefile
   55:                  inc/Makefile
   56:                  lib/Makefile
   57:                  src/Makefile])
   58: AC_OUTPUT

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