Annotation of embedaddon/dhcdrop/configure.ac, revision 1.1

1.1     ! misho       1: #                                               -*- Autoconf -*-
        !             2: # Process this file with autoconf to produce a configure script.
        !             3: 
        !             4: AC_PREREQ(2.61)
        !             5: AC_INIT("DHCP-dropper", "0.5", "roma@ultranet.ru")
        !             6: AC_CANONICAL_TARGET
        !             7: AC_CONFIG_SRCDIR([src/dhcp.h])
        !             8: AC_CONFIG_HEADER([config.h])
        !             9: 
        !            10: AM_INIT_AUTOMAKE(dhcdrop, "0.5")
        !            11: AC_ARG_ENABLE([static-build],
        !            12:        AC_HELP_STRING([--enable-static-build], [enable static build of program]),
        !            13:        ENABLE_STATIC_BUILD=yes, [])
        !            14: AM_CONDITIONAL([ENABLE_STATIC_BUILD], [test x$ENABLE_STATIC_BUILD = xyes])
        !            15: # Checks for programs.
        !            16: AC_LANG_C
        !            17: AC_PROG_CC
        !            18: AM_PROG_LIBTOOL
        !            19: 
        !            20: # Checks for libraries.
        !            21: # FIXME: Replace `main' with a function in `-lpcap':
        !            22: AC_CHECK_LIB([pcap], [main])
        !            23: 
        !            24: # Checks for header files.
        !            25: AC_HEADER_STDC
        !            26: AC_HEADER_SYS_WAIT
        !            27: AC_CHECK_HEADERS([stdint.h stdio.h stdlib.h unistd.h errno.h string.h signal.h time.h arpa/inet.h \
        !            28:                                        sys/wait.h sys/socket.h netinet/in.h], 
        !            29:                                [], [AC_MSG_ERROR([You need C devel package installed])])
        !            30: AC_CHECK_HEADERS([pcap.h], [], [AC_MSG_ERROR([You need libpcap devel package installed])])
        !            31: 
        !            32: # Checks for typedefs, structures, and compiler characteristics.
        !            33: AC_C_CONST
        !            34: AC_C_INLINE
        !            35: AC_TYPE_UINT16_T
        !            36: AC_TYPE_UINT32_T
        !            37: AC_TYPE_UINT8_T
        !            38: 
        !            39: # Checks for library functions.
        !            40: AC_FUNC_FORK
        !            41: AC_FUNC_MALLOC
        !            42: AC_FUNC_MEMCMP
        !            43: AC_TYPE_SIGNAL
        !            44: AC_CHECK_FUNCS([bzero inet_ntoa memset pcap_open_live pcap_inject pcap_datalink pcap_setnonblock \
        !            45:                                pcap_close pcap_compile pcap_setfilter pcap_freecode pcap_findalldevs pcap_freealldevs \
        !            46:                                pcap_perror pcap_dispatch ],
        !            47:        [], [AC_MSG_ERROR([You need libpcap devel package installed])])
        !            48: 
        !            49: AC_CONFIG_FILES([Makefile src/Makefile man/Makefile man/ru/Makefile])
        !            50: AC_OUTPUT

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