configure.in.nse

来自「柯老师网站上找到的」· NSE 代码 · 共 71 行

NSE
71
字号
dnl autoconf rules for NS Emulator (NSE)dnl $Id: configure.in.nse,v 1.3 2000/03/10 01:49:32 salehi Exp $dnldnl Look for ethernet.hdnldnl Now look for supporting structuresdnlAC_MSG_CHECKING([for struct ether_header])AC_TRY_COMPILE([#include <stdio.h>#include <net/ethernet.h>], [int main(){	struct ether_header etherHdr;	return 1;}], [AC_DEFINE(HAVE_ETHER_HEADER_STRUCT)AC_MSG_RESULT(found)], [AC_MSG_RESULT(not found)]) dnl dnl Look for ether_addrdnlAC_MSG_CHECKING([for struct ether_addr])AC_TRY_COMPILE([#include <stdio.h>#include <net/ethernet.h>], [int main(){	struct ether_addr etherAddr;	return 0;}], [AC_DEFINE(HAVE_ETHER_ADDRESS_STRUCT)AC_MSG_RESULT(found)], [AC_MSG_RESULT(not found)])cross_compiling=nodnldnl Look for addr2ascii functiondnlAC_CHECK_FUNCS(addr2ascii)dnldnl look for SIOCGIFHWADDRdnlAC_TRY_RUN(#include <stdio.h>#include <sys/ioctl.h>int main(){	int i = SIOCGIFHWADDR;	return 0;}, AC_DEFINE(HAVE_SIOCGIFHWADDR), , echo 1)

⌨️ 快捷键说明

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