Annotation of libaitsync/configure.in, revision 1.7

1.1       misho       1: #
                      2: # $Author: misho $
1.7     ! misho       3: # $Id: configure.in,v 1.6.2.2 2014/01/21 16:11:54 misho Exp $
1.1       misho       4: #
1.7     ! misho       5: AC_INIT(libaitsync, 2.1, misho@elwix.org)
1.1       misho       6: AC_CONFIG_SRCDIR([src/aitsync.c])
                      7: AC_CONFIG_HEADERS([inc/config.h])
                      8: 
1.6       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_RANLIB
                     15: AC_PROG_INSTALL
                     16: 
                     17: AC_CANONICAL_HOST
                     18: AC_CANONICAL_TARGET
                     19: 
                     20: AC_CHECK_TOOL(MKDEP, mkdep, no)
                     21: AC_SUBST(MKDEP)
                     22: 
1.7     ! misho      23: CFLAGS="-Wall -O2 -fPIC ${CFLAGS}"
        !            24: LDFLAGS="${LDFLAGS}"
1.1       misho      25: 
                     26: # Checks for libraries.
                     27: AC_CHECK_LIB([z], [deflate])
1.6       misho      28: AC_CHECK_LIB([elwix], [crcAdler])
1.1       misho      29: 
                     30: # Checks for header files.
                     31: AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/param.h unistd.h])
                     32: 
                     33: # Checks for typedefs, structures, and compiler characteristics.
                     34: AC_C_INLINE
                     35: AC_TYPE_OFF_T
                     36: AC_TYPE_SIZE_T
                     37: 
                     38: # Checks for library functions.
                     39: AC_FUNC_MALLOC
                     40: AC_FUNC_MMAP
                     41: AC_FUNC_REALLOC
                     42: AC_CHECK_FUNCS([memset munmap])
1.2       misho      43: AC_CHECK_FUNCS([mkstemps])
1.1       misho      44: 
                     45: DEBUG=no
                     46: AC_MSG_CHECKING(Debug Build)
                     47: AC_ARG_ENABLE(debug,
                     48:        [  --enable-debug          Build library with debug information and additional messages],
                     49:        [ DEBUG=$enableval
                     50:                case "$enableval" in
                     51:                        yes)
                     52:                                AC_DEFINE(__DEBUG,, [Build libraries with debug information and additional messages])
                     53:                                CFLAGS="-g ${CFLAGS}"
                     54:                                ;;
                     55:                        *)
                     56:                                AC_DEFINE(NDEBUG,, [Build w/o assert() support])
                     57:                                ;;
                     58:                esac ],)
                     59: AC_MSG_RESULT($DEBUG)
                     60: 
                     61: AC_CONFIG_FILES([Makefile
                     62:                  inc/Makefile
                     63:                  lib/Makefile
                     64:                  src/Makefile])
                     65: AC_OUTPUT

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