Annotation of libelwix/configure.in, revision 1.1

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

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