Annotation of libaitio/configure.in, revision 1.1
1.1 ! misho 1: #
! 2: # $Author: misho $
! 3: # $Id: configure.in,v 1.3.2.1 2009/10/19 15:03:08 misho Exp $
! 4: #
! 5: AC_INIT(libaitio, 1.0, misho@openbsd-bg.org)
! 6: AC_CONFIG_SRCDIR([src/aitio.c])
! 7: AC_CONFIG_HEADERS([inc/config.h])
! 8:
! 9: # Checks for programs.
! 10: AC_PROG_CC
! 11: AC_PROG_INSTALL
! 12:
! 13: AC_CANONICAL_HOST
! 14: AC_CANONICAL_TARGET
! 15:
! 16: AC_CHECK_TOOL(MKDEP, mkdep, no)
! 17: AC_SUBST(MKDEP)
! 18:
! 19: CFLAGS="-Wall -O2 -fPIC -I/usr/local/include ${CFLAGS}"
! 20: LDFLAGS="-L/usr/local/lib ${LDFLAGS}"
! 21:
! 22: # Checks for header files.
! 23: AC_CHECK_HEADERS([stdlib.h string.h sys/ioctl.h termios.h unistd.h])
! 24:
! 25: # Checks for typedefs, structures, and compiler characteristics.
! 26: AC_C_INLINE
! 27:
! 28: # Checks for library functions.
! 29: AC_FUNC_MALLOC
! 30: AC_FUNC_REALLOC
! 31: AC_CHECK_FUNCS([memset regcomp strchr strerror])
! 32:
! 33: DEBUG=no
! 34: AC_MSG_CHECKING(Debug Build)
! 35: AC_ARG_ENABLE(debug,
! 36: [ --enable-debug Build library with debug information and additional messages],
! 37: [ DEBUG=$enableval
! 38: case "$enableval" in
! 39: yes)
! 40: AC_DEFINE(__DEBUG,, [Build libraries with debug information and additional messages])
! 41: CFLAGS="-g ${CFLAGS}"
! 42: ;;
! 43: *)
! 44: AC_DEFINE(NDEBUG,, [Build w/o assert() support])
! 45: ;;
! 46: esac ],)
! 47: AC_MSG_RESULT($DEBUG)
! 48:
! 49: AC_CONFIG_FILES([Makefile
! 50: example/Makefile
! 51: inc/Makefile
! 52: lib/Makefile
! 53: src/Makefile])
! 54: AC_OUTPUT
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>