⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 configure.in

📁 该软件根据网络数据生成NetFlow记录。NetFlow可用于网络规划、负载均衡、安全监控等
💻 IN
字号:
dnl @(#) $Header: configure.in,v 1.67 97/07/27 22:16:17 leres Exp $ (LBL)dnldnl Copyright (c) 1994, 1995, 1996, 1997dnl	The Regents of the University of California.  All rights reserved.dnldnl Process this file with autoconf to produce a configure script.dnlAC_INIT(pcap.c)AC_CANONICAL_SYSTEMumask 002if test -z "$PWD" ; then	PWD=`pwd`fiAC_LBL_C_INIT(V_CCOPT, V_INCLS)AC_CHECK_HEADERS(malloc.h sys/ioccom.h sys/sockio.h)AC_LBL_FIXINCLUDESAC_CHECK_FUNCS(ether_hostton strerror)dnldnl Not all versions of test support -c (character special) but it's adnl better way of testing since the device might be protected. So wednl check in our normal order using -r and then check the for the /devdnl guys again using -c.dnlAC_ARG_WITH(pcap, [  --with-pcap=TYPE        use packet capture TYPE])AC_MSG_CHECKING(packet capture type)if test ! -z "$with_pcap" ; then	V_PCAP="$withval"elif test -r /dev/bpf0 ; then	V_PCAP=bpfelif test -r /usr/include/net/pfilt.h ; then	V_PCAP=pfelif test -r /dev/enet ; then	V_PCAP=enetelif test -r /dev/nit ; then	V_PCAP=snitelif test -r /usr/include/sys/net/nit.h ; then	V_PCAP=nitelif test -r /usr/include/net/raw.h ; then	V_PCAP=snoopelif test -r /usr/include/sys/dlpi.h ; then	V_PCAP=dlpielif test -r /usr/include/linux/socket.h ; then	V_PCAP=linuxelif test -c /dev/bpf0 ; then		# check again in case not readable	V_PCAP=bpfelif test -c /dev/enet ; then		# check again in case not readable	V_PCAP=enetelif test -c /dev/nit ; then		# check again in case not readable	V_PCAP=snitelse	V_PCAP=nullfiAC_MSG_RESULT($V_PCAP)case "$V_PCAP" indlpi)	AC_CHECK_HEADERS(sys/bufmod.h sys/dlpi_ext.h)	AC_MSG_CHECKING(for /dev/dlpi device)	if test -c /dev/dlpi ; then		AC_MSG_RESULT(yes)		AC_DEFINE(HAVE_DEV_DLPI)	else		AC_MSG_RESULT(no)		dir="/dev/dlpi"		AC_MSG_CHECKING(for $dir directory)		if test -d $dir ; then			AC_MSG_RESULT(yes)			AC_DEFINE_UNQUOTED(PCAP_DEV_PREFIX, "$dir")		else			AC_MSG_RESULT(no)		fi	fi	;;linux)	AC_CHECK_HEADERS(net/if_arp.h)	AC_MSG_CHECKING(Linux kernel version)	AC_CACHE_VAL(ac_cv_linux_vers,	    ac_cv_linux_vers=`uname -r 2>&1 | \		sed -n -e '$s/.* //' -e '$s/\..*//p'`)	AC_MSG_RESULT($ac_cv_linux_vers)	if test $ac_cv_linux_vers -lt 2 ; then		AC_MSG_ERROR(version 2 or higher required; see the INSTALL doc for more info)	fi	;;null)	AC_MSG_WARN(cannot determine packet capture interface)	AC_MSG_WARN((see the INSTALL doc for more info))	;;esacAC_LBL_LEX_AND_YACC(V_LEX, V_YACC, pcap_)case "$target_os" inaix*)	dnl Workaround to enable certain features	AC_DEFINE(_SUN)	;;hpux9*)	AC_DEFINE(HAVE_HPUX9)	;;hpux10.0*)	;;hpux10.1*)	;;hpux*)	dnl HPUX 10.20 and above is similar to HPUX 9...	AC_DEFINE(HAVE_HPUX10_20)	;;sinix*)	AC_MSG_CHECKING(if SINIX compiler defines sinix)	AC_CACHE_VAL(ac_cv_cc_sinix_defined,		AC_TRY_COMPILE(		    [],		    [int i = sinix;],		    ac_cv_cc_sinix_defined=yes,		    ac_cv_cc_sinix_defined=no))	    AC_MSG_RESULT($ac_cv_cc_sinix_defined)	    if test $ac_cv_cc_sinix_defined = no ; then		    AC_DEFINE(sinix)	    fi	;;solaris*)	AC_DEFINE(HAVE_SOLARIS)	;;linux*)	V_INCLS="$V_INCLS -Ilinux-include"	;;esacAC_CHECK_PROGS(V_RANLIB, ranlib, @true)AC_LBL_DEVEL(V_CCOPT)AC_LBL_SOCKADDR_SA_LENAC_LBL_UNALIGNED_ACCESSif test "${srcdir}" = "." ; then	srcdirprefix=""else	srcdirprefix="./"fiif test -r ${srcdirprefix}lbl/gnuc.h ; then	rm -f gnuc.h	ln -s ${srcdirprefix}lbl/gnuc.h gnuc.hfirm -f bpf_filter.cln -s ${srcdirprefix}bpf/net/bpf_filter.c bpf_filter.crm -f netln -s ${srcdirprefix}bpf/net netAC_SUBST(V_CCOPT)AC_SUBST(V_INCLS)AC_SUBST(V_LEX)AC_SUBST(V_PCAP)AC_SUBST(V_RANLIB)AC_SUBST(V_YACC)AC_PROG_INSTALLAC_OUTPUT(Makefile)if test -f .devel ; then	make dependfiexit 0

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -