Annotation of libaitwww/configure.in, revision 1.11

1.1       misho       1: #
                      2: # $Author: misho $
1.11    ! misho       3: # $Id: configure.in,v 1.10.2.2 2016/09/14 14:22:48 misho Exp $
1.1       misho       4: #
1.11    ! misho       5: AC_INIT(libaitwww, 3.3, 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
1.11    ! misho      15: AC_PROG_RANLIB
1.1       misho      16: 
                     17: # Checks for libraries.
                     18: AC_CANONICAL_HOST
                     19: AC_CANONICAL_TARGET
                     20: 
1.11    ! misho      21: AC_CHECK_TOOL(MKDEP, mkdep, ../mkdep)
1.1       misho      22: AC_SUBST(MKDEP)
                     23: 
1.8       misho      24: CFLAGS="-Wall -O2 -fPIC ${CFLAGS}"
                     25: LDFLAGS="${LDFLAGS}"
1.1       misho      26: 
                     27: 
1.7       misho      28: AC_CHECK_LIB(elwix, [mpool_malloc])
1.4       misho      29: 
1.1       misho      30: # Checks for header files.
1.4       misho      31: AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/socket.h unistd.h aitio.h])
1.1       misho      32: 
                     33: # Checks for typedefs, structures, and compiler characteristics.
                     34: AC_C_INLINE
                     35: AC_TYPE_SIZE_T
                     36: 
                     37: # Checks for library functions.
                     38: AC_FUNC_MALLOC
                     39: AC_FUNC_REALLOC
                     40: AC_CHECK_FUNCS([memchr memset strcasecmp strchr strcspn strdup strerror strncasecmp strspn strstr strtol])
                     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: 
                     59: AC_CONFIG_FILES([Makefile
                     60:                  inc/Makefile
                     61:                  lib/Makefile
                     62:                  src/Makefile])
                     63: AC_OUTPUT

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