Annotation of libaitwww/configure.in, revision 1.8

1.1       misho       1: #
                      2: # $Author: misho $
1.8     ! misho       3: # $Id: configure.in,v 1.7.2.2 2014/01/21 16:13:14 misho Exp $
1.1       misho       4: #
1.8     ! misho       5: AC_INIT(libaitwww, 3.1, misho@elwix.org)
1.1       misho       6: AC_CONFIG_SRCDIR([src/aitwww.c])
                      7: AC_CONFIG_HEADERS([inc/config.h])
                      8: 
1.7       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: 
                     16: # Checks for libraries.
                     17: AC_CANONICAL_HOST
                     18: AC_CANONICAL_TARGET
                     19: 
                     20: AC_CHECK_TOOL(MKDEP, mkdep, no)
                     21: AC_SUBST(MKDEP)
                     22: 
1.8     ! misho      23: CFLAGS="-Wall -O2 -fPIC ${CFLAGS}"
        !            24: LDFLAGS="${LDFLAGS}"
1.1       misho      25: 
                     26: 
1.7       misho      27: AC_CHECK_LIB(elwix, [mpool_malloc])
1.4       misho      28: 
1.1       misho      29: # Checks for header files.
1.4       misho      30: AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/socket.h unistd.h aitio.h])
1.1       misho      31: 
                     32: # Checks for typedefs, structures, and compiler characteristics.
                     33: AC_C_INLINE
                     34: AC_TYPE_SIZE_T
                     35: 
                     36: # Checks for library functions.
                     37: AC_FUNC_MALLOC
                     38: AC_FUNC_REALLOC
                     39: AC_CHECK_FUNCS([memchr memset strcasecmp strchr strcspn strdup strerror strncasecmp strspn strstr strtol])
                     40: 
                     41: DEBUG=no
                     42: AC_MSG_CHECKING(Debug Build)
                     43: AC_ARG_ENABLE(debug,
                     44:        [  --enable-debug          Build library with debug information and additional messages],
                     45:        [ DEBUG=$enableval
                     46:                case "$enableval" in
                     47:                        yes)
                     48:                                AC_DEFINE(__DEBUG,, [Build libraries with debug information and additional messages])
                     49:                                CFLAGS="-g ${CFLAGS}"
                     50:                                ;;
                     51:                        *)
                     52:                                AC_DEFINE(NDEBUG,, [Build w/o assert() support])
                     53:                                ;;
                     54:                esac ],)
                     55: AC_MSG_RESULT($DEBUG)
                     56: 
                     57: 
                     58: AC_CONFIG_FILES([Makefile
                     59:                  inc/Makefile
                     60:                  lib/Makefile
                     61:                  src/Makefile])
                     62: AC_OUTPUT

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