Annotation of libaitrpc/configure.in, revision 1.14.2.1

1.1       misho       1: #
                      2: # $Author: misho $
1.14.2.1! misho       3: # $Id: configure.in,v 1.14 2012/11/19 21:50:26 misho Exp $
1.1       misho       4: #
1.14.2.1! misho       5: AC_INIT(libaitrpc, 4.4, misho@elwix.org)
1.1       misho       6: AC_CONFIG_SRCDIR([src/aitrpc.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.
1.5       misho      23: AC_CHECK_LIB([aitio], [io_arrayInit])
1.7       misho      24: AC_CHECK_LIB([aitsched], [schedInit])
1.1       misho      25: AC_CHECK_LIB([aitcrc], [crcFletcher16])
1.4       misho      26: AC_CHECK_LIB([pthread], [pthread_create])
1.1       misho      27: 
                     28: # Checks for header files.
                     29: AC_CHECK_HEADERS([arpa/inet.h netdb.h netinet/in.h stdlib.h string.h sys/param.h sys/socket.h unistd.h])
                     30: 
                     31: # Checks for typedefs, structures, and compiler characteristics.
                     32: AC_C_INLINE
                     33: AC_TYPE_INT16_T
                     34: AC_TYPE_INT32_T
                     35: AC_TYPE_INT64_T
                     36: AC_TYPE_INT8_T
                     37: AC_TYPE_UINT16_T
                     38: AC_TYPE_UINT32_T
                     39: AC_TYPE_UINT64_T
                     40: AC_TYPE_UINT8_T
                     41: 
                     42: # Checks for library functions.
                     43: AC_FUNC_FORK
                     44: AC_FUNC_MALLOC
                     45: AC_FUNC_REALLOC
                     46: AC_CHECK_FUNCS([memset select socket strdup strerror])
1.2       misho      47: AC_CHECK_FUNCS([srandomdev])
1.1       misho      48: AC_CHECK_FUNCS([crcFletcher16 hash_fnv1])
1.4       misho      49: AC_CHECK_FUNCS([pthread_yield])
1.5       misho      50: AC_CHECK_FUNCS([io_arrayInit io_arrayDestroy])
1.7       misho      51: AC_CHECK_FUNCS([schedInit schedEnd])
1.1       misho      52: 
                     53: DEBUG=no
                     54: AC_MSG_CHECKING(Debug Build)
                     55: AC_ARG_ENABLE(debug,
                     56:        [  --enable-debug          Build library with debug information and additional messages],
                     57:        [ DEBUG=$enableval
                     58:                case "$enableval" in
                     59:                        yes)
                     60:                                AC_DEFINE(__DEBUG,, [Build libraries with debug information and additional messages])
                     61:                                CFLAGS="-g ${CFLAGS}"
                     62:                                ;;
                     63:                        *)
                     64:                                AC_DEFINE(NDEBUG,, [Build w/o assert() support])
                     65:                                ;;
                     66:                esac ],)
                     67: AC_MSG_RESULT($DEBUG)
                     68: 
1.13      misho      69: CLI_RES_ZC=no
                     70: AC_MSG_CHECKING(Client zero-copy return variables)
                     71: AC_ARG_ENABLE(cli-res-zcpy, 
                     72:        [  --enable-cli-res-zcpy   Build library with zero-copy return array from RPC client ], 
                     73:        [ CLI_RES_ZC=$enableval
                     74:                case "$enableval" in
                     75:                        yes)
                     76:                                AC_DEFINE(CLI_RES_ZCOPY,, 
                     77:                                          [Build library with zero-copy return array from RPC client])
                     78:                                ;;
                     79:                        *)
                     80:                                ;;
                     81:                esac ],)
                     82: AC_MSG_RESULT($CLI_RES_ZC)
                     83: 
1.1       misho      84: AC_CONFIG_FILES([Makefile
                     85:                  inc/Makefile
                     86:                  lib/Makefile
                     87:                  src/Makefile])
                     88: AC_OUTPUT

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