Annotation of libaitcli/configure.in, revision 1.2

1.1       misho       1: #
                      2: # $Author: misho $
1.2     ! misho       3: # $Id: configure.in,v 1.1.1.1.2.2 2010/04/24 10:02:33 misho Exp $
1.1       misho       4: #
                      5: AC_INIT(libaitcli, 1.1, misho@openbsd-bg.org)
                      6: AC_CONFIG_SRCDIR([src/aitcli.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 libraries.
                     23: AC_CHECK_LIB(readline, [readline])
1.2     ! misho      24: AC_CHECK_LIB(util, [forkpty])
        !            25: AC_CHECK_LIB(aittelnet, [telnetRecv])
1.1       misho      26: 
                     27: # Checks for header files.
                     28: AC_CHECK_HEADERS([stdlib.h string.h sys/ioctl.h termios.h unistd.h])
                     29: 
                     30: # Checks for typedefs, structures, and compiler characteristics.
                     31: AC_C_INLINE
                     32: 
                     33: # Checks for library functions.
                     34: AC_CHECK_FUNCS([memset strdup strerror])
1.2     ! misho      35: AC_CHECK_FUNCS([readline])
        !            36: AC_CHECK_FUNCS([forkpty])
        !            37: AC_CHECK_FUNCS([telnetRecv telnetSend])
1.1       misho      38: 
                     39: DEBUG=no
                     40: AC_MSG_CHECKING(Debug Build)
                     41: AC_ARG_ENABLE(debug,
                     42:        [  --enable-debug          Build library with debug information and additional messages],
                     43:        [ DEBUG=$enableval
                     44:                case "$enableval" in
                     45:                        yes)
                     46:                                AC_DEFINE(__DEBUG,, [Build libraries with debug information and additional messages])
                     47:                                CFLAGS="-g ${CFLAGS}"
                     48:                                ;;
                     49:                        *)
                     50:                                AC_DEFINE(NDEBUG,, [Build w/o assert() support])
                     51:                                ;;
                     52:                esac ],)
                     53: AC_MSG_RESULT($DEBUG)
                     54: 
                     55: AC_CONFIG_FILES([Makefile
                     56:                  inc/Makefile
                     57:                  lib/Makefile
                     58:                  src/Makefile])
                     59: AC_OUTPUT

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