--- libaitwww/configure.in 2012/03/08 23:40:21 1.1 +++ libaitwww/configure.in 2016/09/14 14:18:03 1.10 @@ -1,11 +1,14 @@ # # $Author: misho $ -# $Id: configure.in,v 1.1 2012/03/08 23:40:21 misho Exp $ +# $Id: configure.in,v 1.10 2016/09/14 14:18:03 misho Exp $ # -AC_INIT(libaitwww, 1.0, misho@elwix.org) +AC_INIT(libaitwww, 3.2, misho@elwix.org) AC_CONFIG_SRCDIR([src/aitwww.c]) AC_CONFIG_HEADERS([inc/config.h]) +ac_cv_func_malloc_0_nonnull="yes" +ac_cv_func_realloc_0_nonnull="yes" + # Checks for programs. AC_PROG_CC AC_PROG_INSTALL @@ -17,12 +20,14 @@ AC_CANONICAL_TARGET AC_CHECK_TOOL(MKDEP, mkdep, no) AC_SUBST(MKDEP) -CFLAGS="-Wall -O2 -fPIC -I/usr/local/include ${CFLAGS}" -LDFLAGS="-L/usr/local/lib ${LDFLAGS}" +CFLAGS="-Wall -O2 -fPIC ${CFLAGS}" +LDFLAGS="${LDFLAGS}" +AC_CHECK_LIB(elwix, [mpool_malloc]) + # Checks for header files. -AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/socket.h unistd.h]) +AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/socket.h unistd.h aitio.h]) # Checks for typedefs, structures, and compiler characteristics. AC_C_INLINE