Annotation of libaitsync/configure.in, revision 1.5

1.1       misho       1: #
                      2: # $Author: misho $
1.5     ! misho       3: # $Id: configure.in,v 1.4.2.1 2012/11/13 14:20:51 misho Exp $
1.1       misho       4: #
1.5     ! misho       5: AC_INIT(libaitsync, 1.3, misho@elwix.org)
1.1       misho       6: AC_CONFIG_SRCDIR([src/aitsync.c])
                      7: AC_CONFIG_HEADERS([inc/config.h])
                      8: 
                      9: # Checks for programs.
                     10: AC_PROG_CC
                     11: AC_PROG_RANLIB
                     12: AC_PROG_INSTALL
                     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: # Checks for libraries.
                     24: AC_CHECK_LIB([z], [deflate])
1.4       misho      25: AC_CHECK_LIB([aitcrc], [crcAdler])
1.1       misho      26: 
                     27: # Checks for header files.
                     28: AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/param.h unistd.h])
                     29: 
                     30: # Checks for typedefs, structures, and compiler characteristics.
                     31: AC_C_INLINE
                     32: AC_TYPE_OFF_T
                     33: AC_TYPE_SIZE_T
                     34: 
                     35: # Checks for library functions.
                     36: AC_FUNC_MALLOC
                     37: AC_FUNC_MMAP
                     38: AC_FUNC_REALLOC
                     39: AC_CHECK_FUNCS([memset munmap])
1.2       misho      40: AC_CHECK_FUNCS([mkstemps])
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,, [Build w/o assert() support])
                     54:                                ;;
                     55:                esac ],)
                     56: AC_MSG_RESULT($DEBUG)
                     57: 
                     58: AC_CONFIG_FILES([Makefile
                     59:                  inc/Makefile
                     60:                  lib/Makefile
                     61:                  src/Makefile])
                     62: AC_OUTPUT

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