Annotation of libaitsched/configure.in, revision 1.29

1.1       misho       1: #
                      2: # $Author: misho $
1.29    ! misho       3: # $Id: configure.in,v 1.28.2.1 2013/09/02 11:22:03 misho Exp $
1.1       misho       4: #
1.29    ! misho       5: AC_INIT(libaitsched, 4.4, misho@elwix.org)
1.1       misho       6: AC_CONFIG_SRCDIR([src/aitsched.c])
                      7: AC_CONFIG_HEADERS([inc/config.h])
                      8: 
1.20      misho       9: ac_cv_func_malloc_0_nonnull="yes"
                     10: ac_cv_func_realloc_0_nonnull="yes"
                     11: 
1.1       misho      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 -I/usr/local/include ${CFLAGS}"
                     24: LDFLAGS="-L/usr/local/lib ${LDFLAGS}"
                     25: 
1.4       misho      26: 
1.1       misho      27: # Checks for libraries.
1.4       misho      28: AC_CHECK_LIB([pthread], [pthread_create])
1.13      misho      29: AC_CHECK_LIB([rt], [aio_read])
1.1       misho      30: 
                     31: # Checks for header files.
                     32: AC_CHECK_HEADERS([stdint.h stdlib.h string.h sys/time.h unistd.h])
                     33: 
                     34: # Checks for typedefs, structures, and compiler characteristics.
                     35: AC_C_INLINE
                     36: AC_TYPE_SIZE_T
                     37: 
                     38: # Checks for library functions.
                     39: AC_FUNC_MALLOC
1.23      misho      40: AC_CHECK_FUNCS([clock_gettime memset strerror timer_create timer_settime])
1.1       misho      41: 
                     42: DEBUG=no
                     43: AC_MSG_CHECKING(Debug Build)
                     44: AC_ARG_ENABLE(debug,
                     45:        [  --enable-debug          Build library with debug information and additional messages],
                     46:        [ DEBUG=$enableval
                     47:                case "$enableval" in
                     48:                        yes)
                     49:                                AC_DEFINE(__DEBUG,, [Build libraries with debug information and additional messages])
                     50:                                CFLAGS="-g ${CFLAGS}"
                     51:                                ;;
                     52:                        *)
                     53:                                AC_DEFINE(NDEBUG,, [Turn off debug asserts])
                     54:                                ;;
                     55:                esac ], AC_DEFINE(NDEBUG,, [Turn off debug asserts]))
                     56: AC_MSG_RESULT($DEBUG)
                     57: 
1.13      misho      58: AIO=no
                     59: AC_MSG_CHECKING(AIO Builtin support)
                     60: AC_ARG_ENABLE(aio,
                     61:        [  --enable-aio            Build scheduler library with AIO operations ], 
                     62:        [ AIO=$enableval
                     63:                case "$enableval" in
                     64:                        yes)
                     65:                                AC_DEFINE(AIO_SUPPORT,, [Build scheduler library with AIO operations])
                     66:                                ;;
                     67:                        *)
                     68:                                ;;
                     69:                esac ],)
                     70: AC_MSG_RESULT($AIO)
                     71: 
1.22      misho      72: KQ_EVENTS=24
                     73: AC_MSG_CHECKING(How many kqueue events can scheduling at one time)
                     74: AC_ARG_WITH(kq_events, 
                     75:        [  --with-kq_events        Set how many kqueue events can scheduling at one time ],
                     76:        [ KQ_EVENTS=$withval ], KQ_EVENTS=32)
                     77: AC_DEFINE_UNQUOTED(KQ_EVENTS, $KQ_EVENTS, [ How many kqueue events can scheduling at one time ])
                     78: AC_MSG_RESULT($KQ_EVENTS)
                     79: 
1.1       misho      80: AC_CONFIG_FILES([Makefile
                     81:                  inc/Makefile
                     82:                  lib/Makefile
                     83:                  src/Makefile])
1.13      misho      84: AC_OUTPUT()

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