Annotation of embedaddon/arping/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(arping, 2.09, thomas@habets.pp.se)
! 6: AC_CANONICAL_SYSTEM
! 7: AC_CONFIG_SRCDIR([src/arping.c])
! 8: AM_INIT_AUTOMAKE
! 9: AM_MAINTAINER_MODE
! 10: AC_CONFIG_HEADER(config.h)
! 11:
! 12:
! 13: # Checks for programs.
! 14: AC_PROG_CC
! 15: AC_PROG_INSTALL
! 16: AC_PROG_MAKE_SET
! 17:
! 18: # Checks for libraries.
! 19: AC_CHECK_LIB([socket], [socket])
! 20: AC_CHECK_LIB([nsl], [gethostbyname])
! 21: AC_CHECK_LIB([net], [libnet_name_resolve],
! 22: [AC_MSG_ERROR([libnet 1.0.x found. Arping 2.x requires libnet 1.1.x])])
! 23: AC_CHECK_LIB([net], [libnet_init], ,[AC_MSG_ERROR([libnet 1.1.x not found])])
! 24: AC_CHECK_LIB([pcap], [pcap_open_live], ,[AC_MSG_ERROR([libpcap not found])])
! 25:
! 26: # Checks for header files.
! 27: AC_HEADER_STDC
! 28: AC_CHECK_HEADERS([\
! 29: arpa/inet.h \
! 30: netinet/in.h \
! 31: stdlib.h \
! 32: sys/socket.h \
! 33: sys/time.h \
! 34: sys/types.h \
! 35: stdint.h \
! 36: libnet.h \
! 37: win32/libnet.h \
! 38: net/bpf.h \
! 39: unistd.h])
! 40:
! 41: # Libnet include file is not optional
! 42: if test ! x$ac_cv_header_libnet_h = xyes; then
! 43: AC_MSG_ERROR([Can't find libnet.h. See INSTALL file for where to get Libnet])
! 44: fi
! 45:
! 46: # Checks for typedefs, structures, and compiler characteristics.
! 47: AC_C_CONST
! 48: AC_HEADER_TIME
! 49: AC_C_VOLATILE
! 50: AC_TYPE_UINT8_T
! 51: AC_TYPE_UINT16_T
! 52: AC_TYPE_UINT32_T
! 53: AC_TYPE_UINT64_T
! 54:
! 55: # Checks for library functions.
! 56: AC_PROG_GCC_TRADITIONAL
! 57: AC_FUNC_SELECT_ARGTYPES
! 58: AC_FUNC_SETVBUF_REVERSED
! 59: AC_TYPE_SIGNAL
! 60: AC_CHECK_FUNCS([gettimeofday memset select strchr strdup strerror strstr])
! 61:
! 62: case "$target_os" in
! 63: *linux*)
! 64: AC_LIBOBJ([findif_linux])
! 65: ;;
! 66: *freebsd*|*openbsd*|*solaris*)
! 67: AC_LIBOBJ([findif_bsd])
! 68: ;;
! 69: *)
! 70: AC_LIBOBJ([findif_other])
! 71: ;;
! 72: esac
! 73: AC_CONFIG_FILES([Makefile])
! 74: AC_CONFIG_FILES([src/Makefile])
! 75: AC_CONFIG_FILES([doc/Makefile])
! 76: AC_OUTPUT
! 77:
! 78: echo "
! 79: $PACKAGE_NAME version $PACKAGE_VERSION
! 80: Prefix.........: $prefix
! 81: Debug Build....: $debug
! 82: C Compiler.....: $CC $CFLAGS $CPPFLAGS
! 83: Linker.........: $LD $LDFLAGS $LIBS
! 84: "
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>